mirror of
https://github.com/nextcloud/server.git
synced 2026-02-23 18:05:02 -05:00
24 lines
702 B
JavaScript
24 lines
702 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import { getCSPNonce } from '@nextcloud/auth'
|
|
import { t } from '@nextcloud/l10n'
|
|
import VTooltip from '@nextcloud/vue/directives/Tooltip'
|
|
import Vue from 'vue'
|
|
import DashboardApp from './DashboardApp.vue'
|
|
|
|
__webpack_nonce__ = getCSPNonce()
|
|
|
|
Vue.directive('Tooltip', VTooltip)
|
|
|
|
Vue.prototype.t = t
|
|
|
|
const Dashboard = Vue.extend(DashboardApp)
|
|
const Instance = new Dashboard({}).$mount('#app-content-vue')
|
|
|
|
window.OCA.Dashboard = {
|
|
register: (app, callback) => Instance.register(app, callback),
|
|
registerStatus: (app, callback) => Instance.registerStatus(app, callback),
|
|
}
|