nextcloud-app-radio issueshttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues2020-11-19T10:06:35Zhttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/185npm update2020-11-19T10:06:35Zonnynpm updatehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/183good coding practice: array mapping2021-01-20T10:44:43Zonnygood coding practice: array mapping```
items() {
return this.notifications.map((n) => {
return {
id: n.id,
targetUrl: generateUrl('/apps/radio/api/favorites'),
avatarUrl: n.favicon,
avatarUsername: this.getAvatarText(n),
overlayIconUrl: t...```
items() {
return this.notifications.map((n) => {
return {
id: n.id,
targetUrl: generateUrl('/apps/radio/api/favorites'),
avatarUrl: n.favicon,
avatarUsername: this.getAvatarText(n),
overlayIconUrl: this.getNotificationTypeImage(n),
mainText: n.name,
subText: n.tags,
}
})
```
https://github.com/nextcloud/integration_twitter/blob/master/src/views/Dashboard.vuehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/182good coding practice: vue calculate emptycontent2020-11-19T09:46:15Zonnygood coding practice: vue calculate emptycontent```
<EmptyContent
v-if="emptyContentMessage"
:icon="emptyContentIcon">
```
https://github.com/nextcloud/integration_twitter/blob/master/src/views/Dashboard.vue```
<EmptyContent
v-if="emptyContentMessage"
:icon="emptyContentIcon">
```
https://github.com/nextcloud/integration_twitter/blob/master/src/views/Dashboard.vuehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/181good coding pracitce: process function axios response2021-01-20T10:44:59Zonnygood coding pracitce: process function axios response```
axios.get(generateUrl('/apps/radio/favorites'), req).then((response) => {
this.processNotifications(response.data)
this.state = 'ok'
}).catch((error) => {
clearInterval(this.loop)
if (error.response && error.res...```
axios.get(generateUrl('/apps/radio/favorites'), req).then((response) => {
this.processNotifications(response.data)
this.state = 'ok'
}).catch((error) => {
clearInterval(this.loop)
if (error.response && error.response.status === 400) {
this.state = 'no-token'
} else if (error.response && error.response.status === 401) {
showError(t('integration_twitter', 'Failed to get Twitter notifications'))
this.state = 'error'
} else {
// there was an error in notif processing
console.debug(error)
}
})
},
processNotifications(newNotifications) {
if (this.lastDate) {
// just add those which are more recent than our most recent one
let i = 0
while (i < newNotifications.length && this.lastDate < newNotifications[i].timestamp) {
i++
}
if (i > 0) {
const toAdd = this.filter(newNotifications.slice(0, i))
this.notifications = toAdd.concat(this.notifications)
}
} else {
// first time we don't check the date
this.notifications = this.filter(newNotifications)
}
// update lastDate manually (explained in data)
const nbNotif = this.notifications.length
this.lastDate = (nbNotif > 0) ? this.notifications[0].timestamp : null
},
```
https://github.com/nextcloud/integration_twitter/blob/master/src/views/Dashboard.vuehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/180ui glitch when playing station: window size2020-11-21T14:17:40Zonnyui glitch when playing station: window sizehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/177recent: show empty page no recent stations yet2020-11-19T09:46:30Zonnyrecent: show empty page no recent stations yethttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/176sidebar: unable to close and reopen same station2020-11-17T12:33:07Zonnysidebar: unable to close and reopen same stationhttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/175sidebar: copy url2020-11-19T09:16:21Zonnysidebar: copy urlhttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/174recent page: resort when playing station there2021-01-20T10:45:21Zonnyrecent page: resort when playing station therehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/172sometimes recent load two times2020-11-21T14:18:25Zonnysometimes recent load two timeshttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/171sidebar on favorites infos missing2020-11-19T21:13:00Zonnysidebar on favorites infos missinghttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/170recent: correct sort order, remove duplicates2020-11-15T22:55:15Zonnyrecent: correct sort order, remove duplicateshttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/169unable to play stations on favorites page2020-11-13T11:42:29Zonnyunable to play stations on favorites pagehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/168use one single /settings route2021-01-20T10:45:36Zonnyuse one single /settings routehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/167popup menu stations wrong place with dynamic loading2020-11-14T11:04:48Zonnypopup menu stations wrong place with dynamic loadinghttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/165unified search empty icon white not black :(2020-11-11T14:57:51Zonnyunified search empty icon white not black :(https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/164fix loading more stations: search npr -> scroll down2021-02-26T16:39:37Zonnyfix loading more stations: search npr -> scroll downhttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/163fix routing to search result without reloading page2020-11-11T14:58:10Zonnyfix routing to search result without reloading pagehttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/162unified search results: use vue-router2020-11-10T16:37:11Zonnyunified search results: use vue-routerhttps://stackoverflow.com/questions/58422424/vue-js-both-history-and-hash-routerhttps://stackoverflow.com/questions/58422424/vue-js-both-history-and-hash-routerhttps://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/161icon-radio if no thumbnail given @ unified search2020-11-10T14:10:43Zonnyicon-radio if no thumbnail given @ unified search