Skip to content
Snippets Groups Projects
Commit de7e8b63 authored by Xiao Gui's avatar Xiao Gui
Browse files
parent 2800cccf
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
"build-export-aot": "webpack --config webpack.export.aot.js",
"build-aot": "PRODUCTION=true GIT_HASH=`git rev-parse --short HEAD` webpack --config webpack.aot.js",
"plugin-server": "node ./src/plugin_examples/server.js",
"dev-server": "BACKEND_URL=http://localhost:3000/ webpack-dev-server --config webpack.dev.js --mode development",
"dev-server": "BACKEND_URL=${BACKEND_URL:-http://localhost:3000/} webpack-dev-server --config webpack.dev.js --mode development",
"dev": "npm run dev-server & (cd deploy; node server.js)",
"dev-server-aot": "PRODUCTION=true GIT_HASH=`git log --pretty=format:'%h' --invert-grep --grep=^.ignore -1` webpack-dev-server --config webpack.aot.js",
"dev-server-all-interfaces": "webpack-dev-server --config webpack.dev.js --mode development --hot --host 0.0.0.0",
......
......@@ -80,9 +80,8 @@ export class WidgetServices implements OnDestroy {
const component = this.widgetUnitFactory.create(this.injector)
const _option = getOption(options)
if (this.useMobileUI) {
_option.state = 'docked'
}
// TODO bring back docked state?
_option.state = 'floating'
_option.state === 'floating'
? this.floatingContainer.insert(component.hostView)
......
......@@ -40,7 +40,7 @@ export class PluginServiceUseEffect {
fetch(url, constantService.getFetchOption())
.then(res => res.json())
.then(json => pluginService.launchNewWidget(json))
.catch(this.log.error)
.catch(e => this.log.error(e))
}
// clear init manifest
......
import { Action } from '@ngrx/store'
import { GENERAL_ACTION_TYPES } from '../stateStore.service'
export const defaultState: StateInterface = {
initManifests: []
......@@ -44,6 +45,9 @@ export const getStateStore = ({ state = defaultState } = {}) => (prevState: Stat
initManifests: newManifests,
}
}
case GENERAL_ACTION_TYPES.APPLY_STATE:
const { pluginState } = (action as any).state
return pluginState
default: return prevState
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment