diff --git a/apps/files/src/services/WebdavClient.ts b/apps/files/src/services/WebdavClient.ts index 2985fd60131..52cbcfee1fe 100644 --- a/apps/files/src/services/WebdavClient.ts +++ b/apps/files/src/services/WebdavClient.ts @@ -1,8 +1,9 @@ -import type { Node } from '@nextcloud/files' -/** +/*! * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ + +import type { Node } from '@nextcloud/files' import type { FileStat, ResponseDataDetailed } from 'webdav' import { getClient, getDefaultPropfind, getRootPath, resultToNode } from '@nextcloud/files/dav' diff --git a/apps/systemtags/lib/Listeners/BeforeTemplateRenderedListener.php b/apps/systemtags/lib/Listeners/BeforeTemplateRenderedListener.php index 15d06394889..afb85dc6d6b 100644 --- a/apps/systemtags/lib/Listeners/BeforeTemplateRenderedListener.php +++ b/apps/systemtags/lib/Listeners/BeforeTemplateRenderedListener.php @@ -30,6 +30,7 @@ class BeforeTemplateRenderedListener implements IEventListener { return; } Util::addInitScript(Application::APP_ID, 'init'); + Util::addStyle(Application::APP_ID, 'init'); $restrictSystemTagsCreationToAdmin = $this->appConfig->getValueBool(Application::APP_ID, 'restrict_creation_to_admin', false); $this->initialState->provideInitialState('restrictSystemTagsCreationToAdmin', $restrictSystemTagsCreationToAdmin); diff --git a/apps/systemtags/lib/Listeners/LoadAdditionalScriptsListener.php b/apps/systemtags/lib/Listeners/LoadAdditionalScriptsListener.php index 87e50a48075..6ed1adc0834 100644 --- a/apps/systemtags/lib/Listeners/LoadAdditionalScriptsListener.php +++ b/apps/systemtags/lib/Listeners/LoadAdditionalScriptsListener.php @@ -30,6 +30,7 @@ class LoadAdditionalScriptsListener implements IEventListener { return; } Util::addInitScript(Application::APP_ID, 'init'); + Util::addStyle(Application::APP_ID, 'init'); $restrictSystemTagsCreationToAdmin = $this->appConfig->getValueBool(Application::APP_ID, 'restrict_creation_to_admin', false); $this->initialState->provideInitialState('restrictSystemTagsCreationToAdmin', $restrictSystemTagsCreationToAdmin); diff --git a/apps/systemtags/lib/Settings/Admin.php b/apps/systemtags/lib/Settings/Admin.php index 45ea8fc7368..a59c92cc1e6 100644 --- a/apps/systemtags/lib/Settings/Admin.php +++ b/apps/systemtags/lib/Settings/Admin.php @@ -28,8 +28,9 @@ class Admin implements ISettings { $restrictSystemTagsCreationToAdmin = $this->appConfig->getValueBool(Application::APP_ID, 'restrict_creation_to_admin', false); $this->initialStateService->provideInitialState('restrictSystemTagsCreationToAdmin', $restrictSystemTagsCreationToAdmin); - Util::addScript('systemtags', 'admin'); - return new TemplateResponse('systemtags', 'admin', [], ''); + Util::addStyle(Application::APP_ID, 'admin'); + Util::addScript(Application::APP_ID, 'admin'); + return new TemplateResponse(Application::APP_ID, 'admin', [], ''); } /** diff --git a/apps/systemtags/src/admin.ts b/apps/systemtags/src/admin.ts index 004c0df82f1..6a1f07e71a4 100644 --- a/apps/systemtags/src/admin.ts +++ b/apps/systemtags/src/admin.ts @@ -1,13 +1,10 @@ -/** +/*! * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { getCSPNonce } from '@nextcloud/auth' -import Vue from 'vue' +import { createApp } from 'vue' import SystemTagsSection from './views/SystemTagsSection.vue' -__webpack_nonce__ = getCSPNonce() - -const SystemTagsSectionView = Vue.extend(SystemTagsSection) -new SystemTagsSectionView().$mount('#vue-admin-systemtags') +const app = createApp(SystemTagsSection) +app.mount('#vue-admin-systemtags') diff --git a/apps/systemtags/src/components/SystemTagForm.vue b/apps/systemtags/src/components/SystemTagForm.vue index 44a669c7617..24bf5c872bf 100644 --- a/apps/systemtags/src/components/SystemTagForm.vue +++ b/apps/systemtags/src/components/SystemTagForm.vue @@ -3,6 +3,219 @@ - SPDX-License-Identifier: AGPL-3.0-or-later --> + + - -