diff options
Diffstat (limited to 'apps/settings/src/main-apps-users-management.ts')
-rw-r--r-- | apps/settings/src/main-apps-users-management.ts | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/settings/src/main-apps-users-management.ts b/apps/settings/src/main-apps-users-management.ts new file mode 100644 index 00000000000..62ea009de11 --- /dev/null +++ b/apps/settings/src/main-apps-users-management.ts @@ -0,0 +1,40 @@ +/** + * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +import Vue from 'vue' +import Vuex from 'vuex' +import VTooltipPlugin from 'v-tooltip' +import { sync } from 'vuex-router-sync' +import { t, n } from '@nextcloud/l10n' + +import SettingsApp from './views/SettingsApp.vue' +import router from './router/index.ts' +import { useStore } from './store/index.js' +import { getCSPNonce } from '@nextcloud/auth' +import { PiniaVuePlugin, createPinia } from 'pinia' + +// CSP config for webpack dynamic chunk loading +// eslint-disable-next-line camelcase +__webpack_nonce__ = getCSPNonce() + +// bind to window +Vue.prototype.t = t +Vue.prototype.n = n +Vue.use(PiniaVuePlugin) +Vue.use(VTooltipPlugin, { defaultHtml: false }) +Vue.use(Vuex) + +const store = useStore() +sync(store, router) + +const pinia = createPinia() + +export default new Vue({ + router, + store, + pinia, + render: h => h(SettingsApp), + el: '#content', +}) |