From 7c5acad535da665e097911acb840e3e37d0def32 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 19 Dec 2023 20:29:57 +0100 Subject: [PATCH] add broken status page --- src/components/status/VulStatus.vue | 43 +++++++++++++++++++++++++++++ src/lib/api/entities/activity.ts | 25 +++++++++++++++++ src/router/index.ts | 5 ++++ src/views/StatusView.vue | 42 ++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 src/components/status/VulStatus.vue create mode 100644 src/lib/api/entities/activity.ts create mode 100644 src/views/StatusView.vue diff --git a/src/components/status/VulStatus.vue b/src/components/status/VulStatus.vue new file mode 100644 index 0000000..30051a8 --- /dev/null +++ b/src/components/status/VulStatus.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/lib/api/entities/activity.ts b/src/lib/api/entities/activity.ts new file mode 100644 index 0000000..13a3ce5 --- /dev/null +++ b/src/lib/api/entities/activity.ts @@ -0,0 +1,25 @@ +import type { Account } from "./account"; + +export default interface Activity { + id: string; + account: Account; + akkoma?: ActivityAkkoma; + created_at: string; + + content: string | null; + spoiler_text: string | null; + visibility: "public" | "unlisted" | "private" | "direct"; + + reblogs_count: number; + favourites_count: number; + replies_count: number; +} + +export interface ActivityAkkoma { + source: ActivityAkkomaSource; +} + +export interface ActivityAkkomaSource { + content: string; + mediaType: string; +} diff --git a/src/router/index.ts b/src/router/index.ts index 6f636bc..a76e05d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -14,6 +14,11 @@ const router = createRouter({ name: "auth-login", component: () => import("../views/LoginView.vue"), }, + { + path: "/@:username/statuses/:statusId", + name: "user-status", + component: () => import("../views/StatusView.vue"), + }, ], }); diff --git a/src/views/StatusView.vue b/src/views/StatusView.vue new file mode 100644 index 0000000..52aeefc --- /dev/null +++ b/src/views/StatusView.vue @@ -0,0 +1,42 @@ + +