2020-12-14 13:36:10 +00:00
|
|
|
/* jshint esversion: 6 */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Nextcloud - social
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later. See the COPYING file.
|
|
|
|
*
|
|
|
|
* @author Julien Veyssier <eneiluj@posteo.net>
|
|
|
|
* @copyright Julien Veyssier 2020
|
|
|
|
*/
|
|
|
|
|
|
|
|
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
|
|
|
})
|
|
|
|
})
|