aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/oauth2/src/main.js')
-rw-r--r--apps/oauth2/src/main.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/oauth2/src/main.js b/apps/oauth2/src/main.js
new file mode 100644
index 00000000000..10d537455df
--- /dev/null
+++ b/apps/oauth2/src/main.js
@@ -0,0 +1,21 @@
+/**
+ * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+import Vue from 'vue'
+import App from './App.vue'
+import { loadState } from '@nextcloud/initial-state'
+
+Vue.prototype.t = t
+Vue.prototype.OC = OC
+
+const clients = loadState('oauth2', 'clients')
+
+const View = Vue.extend(App)
+const oauth = new View({
+ propsData: {
+ clients,
+ },
+})
+oauth.$mount('#oauth2')