зеркало из https://github.com/nextcloud/cookbook.git
Register initial state library
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
c73d3f711a
Коммит
eb2a5b43ec
|
@ -30,6 +30,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nextcloud/browserslist-config": "^3.0.0",
|
"@nextcloud/browserslist-config": "^3.0.0",
|
||||||
|
"@nextcloud/initial-state": "^2.1.0",
|
||||||
"@nextcloud/stylelint-config": "^2.1.2",
|
"@nextcloud/stylelint-config": "^2.1.2",
|
||||||
"@nextcloud/webpack-vue-config": "^6.0.0",
|
"@nextcloud/webpack-vue-config": "^6.0.0",
|
||||||
"check-peer-dependencies": "^4.1.0",
|
"check-peer-dependencies": "^4.1.0",
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nextcloud/axios": "^2.0.0",
|
"@nextcloud/axios": "^2.0.0",
|
||||||
"@nextcloud/event-bus": "^3.1.0",
|
"@nextcloud/event-bus": "^3.1.0",
|
||||||
|
"@nextcloud/initial-state": "^2.1.0",
|
||||||
"@nextcloud/moment": "^1.1.1",
|
"@nextcloud/moment": "^1.1.1",
|
||||||
"@nextcloud/router": "^2.0.0",
|
"@nextcloud/router": "^2.0.0",
|
||||||
"@nextcloud/vue": "^7.1.0",
|
"@nextcloud/vue": "^7.1.0",
|
||||||
|
|
|
@ -15,11 +15,16 @@ import * as ModalDialogs from "vue-modal-dialogs"
|
||||||
import helpers from "cookbook/js/helper"
|
import helpers from "cookbook/js/helper"
|
||||||
import setupLogging from "cookbook/js/logging"
|
import setupLogging from "cookbook/js/logging"
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
import {loadState} from '@nextcloud/initial-state'
|
||||||
import router from "./router"
|
import router from "./router"
|
||||||
import store from "./store"
|
import store from "./store"
|
||||||
|
|
||||||
import AppMain from "./components/AppMain.vue"
|
import AppMain from "./components/AppMain.vue"
|
||||||
|
|
||||||
|
// Initialize the configuration
|
||||||
|
// store.commit('setConfig', { config: loadState('cookbook', 'config', {})})
|
||||||
|
|
||||||
// eslint-disable-next-line camelcase,no-undef
|
// eslint-disable-next-line camelcase,no-undef
|
||||||
if (__webpack_use_dev_server__ || false) {
|
if (__webpack_use_dev_server__ || false) {
|
||||||
// eslint-disable-next-line camelcase,no-undef
|
// eslint-disable-next-line camelcase,no-undef
|
||||||
|
|
Загрузка…
Ссылка в новой задаче