2020-11-24 14:16:53 +00:00
|
|
|
/*
|
|
|
|
* @copyright Copyright (c) 2020 Jonas Heinrich <onny@project-insanity.org>
|
|
|
|
*
|
|
|
|
* @author Jonas Heinrich <onny@project-insanity.org>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-11-18 13:21:33 +00:00
|
|
|
import Vue from 'vue'
|
2020-11-19 09:01:55 +00:00
|
|
|
import router from './router'
|
|
|
|
import store from './store'
|
|
|
|
import Dashboard from './components/Dashboard.vue'
|
2020-12-02 12:44:53 +00:00
|
|
|
import { translate, translatePlural } from '@nextcloud/l10n'
|
|
|
|
|
|
|
|
Vue.prototype.t = translate
|
|
|
|
Vue.prototype.n = translatePlural
|
|
|
|
Vue.prototype.OC = window.OC
|
|
|
|
Vue.prototype.OCA = window.OCA
|
2020-11-19 09:01:55 +00:00
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
OCA.Dashboard.register('radio', (el) => {
|
|
|
|
global.Radio = new Vue({
|
|
|
|
el,
|
|
|
|
store,
|
|
|
|
router,
|
|
|
|
render: h => h(Dashboard),
|
|
|
|
})
|
2020-11-18 13:21:33 +00:00
|
|
|
})
|
|
|
|
})
|