mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-05-11 04:34:06 +02:00

* Port admin settings to vue Co-authored-by: anoy. <anoymouserver@users.noreply.github.com> Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
|
|
// 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')
|