From b15fdfd40e4bf96b53f7afcf0e4dce359158cf1c Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 13 Nov 2024 09:42:26 +0100 Subject: chore(profile): move profile app from core to apps Signed-off-by: skjnldsv --- core/src/profile.ts | 27 -- core/src/profile/ProfileSections.js | 25 -- core/src/views/Profile.vue | 489 ------------------------------------ 3 files changed, 541 deletions(-) delete mode 100644 core/src/profile.ts delete mode 100644 core/src/profile/ProfileSections.js delete mode 100644 core/src/views/Profile.vue (limited to 'core/src') diff --git a/core/src/profile.ts b/core/src/profile.ts deleted file mode 100644 index 454562edb05..00000000000 --- a/core/src/profile.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -import { getCSPNonce } from '@nextcloud/auth' -import Vue from 'vue' - -import Profile from './views/Profile.vue' -import ProfileSections from './profile/ProfileSections.js' - -__webpack_nonce__ = getCSPNonce() - -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') -}) diff --git a/core/src/profile/ProfileSections.js b/core/src/profile/ProfileSections.js deleted file mode 100644 index 9c6ca08e33f..00000000000 --- a/core/src/profile/ProfileSections.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -export default class ProfileSections { - - _sections - - constructor() { - this._sections = [] - } - - /** - * @param {registerSectionCallback} section To be called to mount the section to the profile page - */ - registerSection(section) { - this._sections.push(section) - } - - getSections() { - return this._sections - } - -} diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue deleted file mode 100644 index 661e9a7fa0b..00000000000 --- a/core/src/views/Profile.vue +++ /dev/null @@ -1,489 +0,0 @@ - - - - - - - -- cgit v1.2.3