20 lines
482 B
JavaScript
20 lines
482 B
JavaScript
|
import Vue from 'vue'
|
||
|
import { translate, translatePlural } from '@nextcloud/l10n'
|
||
|
import Dashboard from './components/Dashboard'
|
||
|
|
||
|
Vue.prototype.t = translate
|
||
|
Vue.prototype.n = translatePlural
|
||
|
Vue.prototype.OC = window.OC
|
||
|
Vue.prototype.OCA = window.OCA
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', function() {
|
||
|
|
||
|
OCA.Dashboard.register('radio', (el, { widget }) => {
|
||
|
const View = Vue.extend(Dashboard)
|
||
|
new View({
|
||
|
propsData: { title: widget.title },
|
||
|
}).$mount(el)
|
||
|
})
|
||
|
|
||
|
})
|