diff options
Diffstat (limited to 'core/src/profile.ts')
-rw-r--r-- | core/src/profile.ts | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/core/src/profile.ts b/core/src/profile.ts deleted file mode 100644 index c0ed479c080..00000000000 --- a/core/src/profile.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -import { getRequestToken } from '@nextcloud/auth' -import Vue from 'vue' - -import Profile from './views/Profile.vue' -import ProfileSections from './profile/ProfileSections.js' - -// @ts-expect-error Script nonce required for webpack loading additional scripts -__webpack_nonce__ = btoa(getRequestToken() ?? '') - -if (!window.OCA) { - window.OCA = {} -} - -if (!window.OCA.Core) { - window.OCA.Core = {} -} -Object.assign(window.OCA.Core, { ProfileSections: new ProfileSections() }) - -const View = Vue.extend(Profile) - -window.addEventListener('DOMContentLoaded', () => { - new View().$mount('#content') -}) |