You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main-user-status-menu.js 588B

1234567891011121314151617181920212223
  1. import Vue from 'vue'
  2. import { getRequestToken } from '@nextcloud/auth'
  3. import App from './App'
  4. import store from './store'
  5. // eslint-disable-next-line camelcase
  6. __webpack_nonce__ = btoa(getRequestToken())
  7. // Correct the root of the app for chunk loading
  8. // OC.linkTo matches the apps folders
  9. // OC.generateUrl ensure the index.php (or not)
  10. // eslint-disable-next-line
  11. __webpack_public_path__ = OC.linkTo('user_status', 'js/')
  12. Vue.prototype.t = t
  13. Vue.prototype.$t = t
  14. const app = new Vue({
  15. render: h => h(App),
  16. store,
  17. }).$mount('li[data-id="user_status-menuitem"]')
  18. export { app }