Fetch real data from backend

This commit is contained in:
Tusooa Zhu 2022-03-17 14:01:45 -04:00 committed by tusooa
commit 95750509b1
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 117 additions and 32 deletions

View file

@ -4,37 +4,12 @@ const AnnouncementsPage = {
components: {
Announcement
},
mounted () {
this.$store.dispatch('fetchAnnouncements')
},
computed: {
announcements () {
return [{
"id": "8",
"content": "<p>Looks like there was an issue processing audio attachments without embedded art since yesterday due to an experimental new feature. That issue has now been fixed, so you may see older posts with audio from other servers pop up in your feeds now as they are being finally properly processed. Sorry!</p>",
"starts_at": null,
"ends_at": null,
"all_day": false,
"published_at": "2020-07-03T01:27:38.726Z",
"updated_at": "2020-07-03T01:27:38.752Z",
"read": true,
"mentions": [],
"statuses": [],
"tags": [],
"emojis": [],
"reactions": []
}, {
"id": "8",
"content": "<p>Looks like there was an issue processing audio attachments without embedded art since yesterday due to an experimental new feature. That issue has now been fixed, so you may see older posts with audio from other servers pop up in your feeds now as they are being finally properly processed. Sorry!</p>",
"starts_at": null,
"ends_at": null,
"all_day": false,
"published_at": "2020-07-03T01:27:38.726Z",
"updated_at": "2020-07-03T01:27:38.752Z",
"read": true,
"mentions": [],
"statuses": [],
"tags": [],
"emojis": [],
"reactions": []
}]
return this.$store.state.announcements.announcements
}
}
}