main.js 434 B

123456789101112131415161718192021
  1. /**
  2. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. import Vue from 'vue'
  6. import App from './App.vue'
  7. import { loadState } from '@nextcloud/initial-state'
  8. Vue.prototype.t = t
  9. Vue.prototype.OC = OC
  10. const clients = loadState('oauth2', 'clients')
  11. const View = Vue.extend(App)
  12. const oauth = new View({
  13. propsData: {
  14. clients,
  15. },
  16. })
  17. oauth.$mount('#oauth2')