kopia lustrzana https://github.com/nextcloud/social
fix eslint errors
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>pull/1162/head
rodzic
0915e4e101
commit
c2524c6707
|
@ -12,11 +12,10 @@
|
|||
*/
|
||||
|
||||
import Vue from 'vue'
|
||||
import { translate, translatePlural } from '@nextcloud/l10n'
|
||||
import Dashboard from './views/Dashboard'
|
||||
import Dashboard from './views/Dashboard.vue'
|
||||
|
||||
Vue.prototype.t = translate
|
||||
Vue.prototype.n = translatePlural
|
||||
Vue.prototype.t = t
|
||||
Vue.prototype.n = n
|
||||
Vue.prototype.OC = window.OC
|
||||
Vue.prototype.OCA = window.OCA
|
||||
|
||||
|
@ -25,7 +24,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
OCA.Dashboard.register('social_notifications', (el, { widget }) => {
|
||||
const View = Vue.extend(Dashboard)
|
||||
new View({
|
||||
propsData: { title: widget.title },
|
||||
propsData: { title: widget.title }
|
||||
}).$mount(el)
|
||||
})
|
||||
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
<script>
|
||||
import axios from '@nextcloud/axios'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { showError, showSuccess } from '@nextcloud/dialogs'
|
||||
import moment from '@nextcloud/moment'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { DashboardWidget } from '@nextcloud/vue-dashboard'
|
||||
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
|
||||
|
||||
|
@ -33,14 +32,14 @@ export default {
|
|||
|
||||
components: {
|
||||
DashboardWidget,
|
||||
EmptyContent,
|
||||
EmptyContent
|
||||
},
|
||||
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
|
@ -50,7 +49,7 @@ export default {
|
|||
showMoreText: t('social', 'Social notifications'),
|
||||
loop: null,
|
||||
state: 'loading',
|
||||
appUrl: generateUrl('/apps/social'),
|
||||
appUrl: generateUrl('/apps/social')
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -64,7 +63,7 @@ export default {
|
|||
avatarUsername: this.getActorName(n),
|
||||
overlayIconUrl: this.getNotificationTypeImage(n),
|
||||
mainText: this.getMainText(n),
|
||||
subText: this.getSubline(n),
|
||||
subText: this.getSubline(n)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -88,7 +87,7 @@ export default {
|
|||
return 'icon-checkmark'
|
||||
}
|
||||
return 'icon-checkmark'
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
beforeMount() {
|
||||
|
@ -100,8 +99,8 @@ export default {
|
|||
fetchNotifications() {
|
||||
const req = {
|
||||
params: {
|
||||
limit: 10,
|
||||
},
|
||||
limit: 10
|
||||
}
|
||||
}
|
||||
const url = generateUrl('/apps/social/api/v1/stream/notifications')
|
||||
// TODO check why 'since' param is in fact 'until'
|
||||
|
@ -188,8 +187,8 @@ export default {
|
|||
return generateUrl('/svg/social/add_user')
|
||||
}
|
||||
return ''
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue