nextcloud-app-radio/src/dashboard.js

20 lines
482 B
JavaScript
Raw Normal View History

2020-11-18 13:21:33 +00:00
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)
})
})