2020-12-14 13:36:10 +00:00
|
|
|
/* jshint esversion: 6 */
|
|
|
|
|
|
|
|
/**
|
2024-09-08 10:12:49 +00:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-12-14 13:36:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import Vue from 'vue'
|
2020-12-14 18:33:14 +00:00
|
|
|
import Dashboard from './views/Dashboard.vue'
|
2020-12-14 13:36:10 +00:00
|
|
|
|
2022-09-14 13:39:47 +00:00
|
|
|
// eslint-disable-next-line
|
|
|
|
__webpack_nonce__ = btoa(OC.requestToken);
|
|
|
|
// eslint-disable-next-line
|
|
|
|
__webpack_public_path__ = OC.linkTo('social', 'js/');
|
|
|
|
|
2020-12-14 18:33:14 +00:00
|
|
|
Vue.prototype.t = t
|
|
|
|
Vue.prototype.n = n
|
2020-12-14 13:36:10 +00:00
|
|
|
Vue.prototype.OC = window.OC
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
OCA.Dashboard.register('social_notifications', (el, { widget }) => {
|
|
|
|
const View = Vue.extend(Dashboard)
|
2023-04-06 15:41:25 +00:00
|
|
|
/* eslint-disable-next-line no-new */
|
2020-12-14 13:36:10 +00:00
|
|
|
new View({
|
2022-10-27 13:07:12 +00:00
|
|
|
propsData: { title: widget.title },
|
2023-04-06 15:41:25 +00:00
|
|
|
el,
|
|
|
|
name: 'SocialDashboard',
|
|
|
|
})
|
2020-12-14 13:36:10 +00:00
|
|
|
})
|
|
|
|
})
|