import { translate, translatePlural } from '@nextcloud/l10n' import App from './App.vue' import { Plugin } from 'vue-fragment' import Vue from 'vue' import { generateFilePath } from '@nextcloud/router' import router from './router.js' // eslint-disable-next-line __webpack_public_path__ = generateFilePath(appName, '', 'js/') const t = (...args) => translate('repod', ...args) const n = (...args) => translatePlural('repod', ...args) Vue.mixin({ methods: { t, n } }) Vue.use(Plugin) Vue.prototype.OC = window.OC Vue.prototype.OCA = window.OCA export default new Vue({ el: '#content', router, render: h => h(App), })