From 753e88793e0525cadd8a544e3f4093cc3cf7b331 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 30 Aug 2022 18:07:25 +0200 Subject: Port admin settings to vue (#1880) * Port admin settings to vue Co-authored-by: anoy. Co-authored-by: Benjamin Brahmer Signed-off-by: Carl Schwan --- src/main-admin.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main-admin.js (limited to 'src/main-admin.js') diff --git a/src/main-admin.js b/src/main-admin.js new file mode 100644 index 000000000..c5883565e --- /dev/null +++ b/src/main-admin.js @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: 2022 Carl Schwan +// SPDX-Licence-Identifier: AGPL-3.0-or-later + +import Vue from 'vue' +import { getRequestToken } from '@nextcloud/auth' +import { translate as t } from '@nextcloud/l10n' + +import AdminSettings from './components/AdminSettings.vue' + +// eslint-disable-next-line +__webpack_nonce__ = btoa(getRequestToken()) + +Vue.mixin({ + methods: { + t, + }, +}) + +const AdminSettingsView = Vue.extend(AdminSettings) +new AdminSettingsView().$mount('#vue-admin-news') -- cgit v1.2.3