13 lines
550 B
JavaScript
13 lines
550 B
JavaScript
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
|
|
__webpack_public_path__ = OC.linkTo('notes', 'js/') // eslint-disable-line
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
OCA.Dashboard.register('notes', async (el) => {
|
|
const { default: Vue } = await import(/* webpackChunkName: "dashboard-lazy" */'vue')
|
|
const { default: Dashboard } = await import(/* webpackChunkName: "dashboard-lazy" */'./components/Dashboard.vue')
|
|
Vue.mixin({ methods: { t, n } })
|
|
const View = Vue.extend(Dashboard)
|
|
new View().$mount(el)
|
|
})
|
|
})
|