diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-12-13 11:51:36 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-12-13 11:51:36 +0100 |
commit | 8e02db6a162a18c51b20fc76ac8a40f7411eb7ff (patch) | |
tree | ff1e79f92bd88717af7afc213fc1160daa1ab4fa /apps/files/src/main.ts | |
parent | 0862632b2c8f11cd5d3742a7061e2797ec59f230 (diff) | |
download | nextcloud-server-feat/files-shortcuts-2.tar.gz nextcloud-server-feat/files-shortcuts-2.zip |
chore(files): add hotkey service testsfeat/files-shortcuts-2
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/main.ts')
-rw-r--r-- | apps/files/src/main.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/src/main.ts b/apps/files/src/main.ts index 26fa7cdca95..b4755df8eed 100644 --- a/apps/files/src/main.ts +++ b/apps/files/src/main.ts @@ -2,12 +2,13 @@ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ +import type { Pinia } from 'pinia' import { getCSPNonce } from '@nextcloud/auth' import { getNavigation } from '@nextcloud/files' import { PiniaVuePlugin } from 'pinia' import Vue from 'vue' -import { pinia } from './store/index.ts' +import { getPinia } from './store/index.ts' import { registerHotkeys } from './services/HotKeysService.ts' import FilesApp from './FilesApp.vue' import router from './router/router' @@ -23,6 +24,7 @@ declare global { OCP: Nextcloud.v29.OCP // eslint-disable-next-line @typescript-eslint/no-explicit-any OCA: Record<string, any> + _nc_files_pinia: Pinia } } @@ -55,5 +57,5 @@ Object.assign(window.OCA.Files.Settings, { Setting: SettingsModel }) const FilesAppVue = Vue.extend(FilesApp) new FilesAppVue({ router: (window.OCP.Files.Router as RouterService)._router, - pinia, + pinia: getPinia(), }).$mount('#content') |