aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/src/personal-settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/src/personal-settings.js')
-rw-r--r--apps/theming/src/personal-settings.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/theming/src/personal-settings.js b/apps/theming/src/personal-settings.js
new file mode 100644
index 00000000000..bbee88e3804
--- /dev/null
+++ b/apps/theming/src/personal-settings.js
@@ -0,0 +1,20 @@
+/**
+ * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+import { getCSPNonce } from '@nextcloud/auth'
+import Vue from 'vue'
+
+import { refreshStyles } from './helpers/refreshStyles.js'
+import App from './UserTheming.vue'
+
+// eslint-disable-next-line camelcase
+__webpack_nonce__ = getCSPNonce()
+
+Vue.prototype.OC = OC
+Vue.prototype.t = t
+
+const View = Vue.extend(App)
+const theming = new View()
+theming.$mount('#theming')
+theming.$on('update:background', refreshStyles)