aboutsummaryrefslogtreecommitdiffstats
path: root/apps/profile/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/profile/src/main.ts')
-rw-r--r--apps/profile/src/main.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/profile/src/main.ts b/apps/profile/src/main.ts
new file mode 100644
index 00000000000..b48c6d5dc74
--- /dev/null
+++ b/apps/profile/src/main.ts
@@ -0,0 +1,27 @@
+/**
+ * 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 './services/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')
+})