make deployable

This commit is contained in:
41666 2017-12-29 10:12:54 -06:00
parent eaa1167f16
commit 309aee427e
15 changed files with 317 additions and 886 deletions

View file

@ -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'),

View file

@ -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'