aboutsummaryrefslogtreecommitdiff
path: root/src/components/announcements_page
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-03-17 12:59:10 -0400
committertusooa <tusooa@kazv.moe>2022-11-24 18:26:46 -0500
commite067783a30be41644abe1aecca631ef31cf476a8 (patch)
tree0be2fb9479e960ef8004398f0f6b12897fd444f6 /src/components/announcements_page
parent2e3d4d772835b5de8750db2e8669c1abc4903994 (diff)
Add announcement display with placeholder messages
Diffstat (limited to 'src/components/announcements_page')
-rw-r--r--src/components/announcements_page/announcements_page.js42
-rw-r--r--src/components/announcements_page/announcements_page.vue21
2 files changed, 63 insertions, 0 deletions
diff --git a/src/components/announcements_page/announcements_page.js b/src/components/announcements_page/announcements_page.js
new file mode 100644
index 00000000..716468e6
--- /dev/null
+++ b/src/components/announcements_page/announcements_page.js
@@ -0,0 +1,42 @@
+import Announcement from '../announcement/announcement.vue'
+
+const AnnouncementsPage = {
+ components: {
+ Announcement
+ },
+ 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": []
+ }]
+ }
+ }
+}
+
+export default AnnouncementsPage
diff --git a/src/components/announcements_page/announcements_page.vue b/src/components/announcements_page/announcements_page.vue
new file mode 100644
index 00000000..16b2f955
--- /dev/null
+++ b/src/components/announcements_page/announcements_page.vue
@@ -0,0 +1,21 @@
+<template>
+ <div class="panel panel-default announcements-page">
+ <div class="panel-heading">
+ <span>
+ {{ $t('announcements.page_header') }}
+ </span>
+ </div>
+ <div class="panel-body">
+ <section
+ v-for="announcement in announcements"
+ :key="announcement.id"
+ >
+ <announcement
+ :announcement="announcement"
+ />
+ </section>
+ </div>
+ </div>
+</template>
+
+<script src="./announcements_page.js"></script>