import Vue from 'vue' import { getRequestToken } from '@nextcloud/auth' import App from './App' import store from './store' // eslint-disable-next-line camelcase __webpack_nonce__ = btoa(getRequestToken()) // Correct the root of the app for chunk loading // OC.linkTo matches the apps folders // OC.generateUrl ensure the index.php (or not) // eslint-disable-next-line __webpack_public_path__ = OC.linkTo('user_status', 'js/') Vue.prototype.t = t Vue.prototype.$t = t const app = new Vue({ render: h => h(App), store, }).$mount('li[data-id="user_status-menuitem"]') export { app }