repod/src/main.js
Michel Roux 928a11e95e
All checks were successful
repod / nextcloud (push) Successful in 58s
repod / nodejs (push) Successful in 1m37s
Remove vue fragment
2023-08-28 21:18:14 +02:00

28 lines
692 B
JavaScript

import Vuex, { Store } from 'vuex'
import { translate, translatePlural } from '@nextcloud/l10n'
import App from './App.vue'
import Vue from 'vue'
import { generateFilePath } from '@nextcloud/router'
import modules from './modules/index.js'
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(Vuex)
Vue.prototype.AppConfig = window.oc_appconfig
const store = new Store({ modules })
export default new Vue({
el: '#content',
router,
store,
render: h => h(App),
})