mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
make deployable
This commit is contained in:
parent
eaa1167f16
commit
309aee427e
15 changed files with 317 additions and 886 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Set } from 'immutable'
|
||||
import * as UIActions from '../../actions/ui'
|
||||
import { getViewMap } from '../role-picker/actions'
|
||||
import ksuid from 'ksuid'
|
||||
import uuidv4 from 'uuid/v4'
|
||||
import superagent from 'superagent'
|
||||
|
||||
export const constructView = id => (dispatch, getState) => {
|
||||
|
@ -72,7 +72,6 @@ export const saveCategory = (id, category) => (dispatch) => {
|
|||
mode: Symbol.for('drop')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
export const openEditor = (id) => ({
|
||||
|
@ -108,7 +107,7 @@ export const deleteCategory = (id, category) => (dispatch, getState) => {
|
|||
})
|
||||
}
|
||||
|
||||
export const createCategory = async (dispatch, getState) => {
|
||||
export const createCategory = (dispatch, getState) => {
|
||||
const { roleEditor } = getState()
|
||||
const vm = roleEditor.get('viewMap')
|
||||
|
||||
|
@ -119,7 +118,7 @@ export const createCategory = async (dispatch, getState) => {
|
|||
name = `New Category ${idx}`
|
||||
}
|
||||
|
||||
const id = (await ksuid.random()).string
|
||||
const id = uuidv4()
|
||||
|
||||
dispatch({
|
||||
type: Symbol.for('re: set category'),
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import React, { Component } from 'react'
|
||||
import { Route } from 'react-router-dom'
|
||||
import { CSSTransition, TransitionGroup } from 'react-transition-group'
|
||||
import { Scrollbars } from 'react-custom-scrollbars'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue