From 61311dbeaaead56f8c50812f7a99f83234c9699f Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 1 Dec 2022 14:46:26 +0800 Subject: [PATCH] feat: hide actions in zen mode --- components/status/StatusActions.vue | 197 ++-------------------- components/status/StatusActionsMore.vue | 206 ++++++++++++++++++++++++ components/status/StatusCard.vue | 7 +- components/status/StatusDetails.vue | 3 +- composables/masto.ts | 2 +- composables/status.ts | 77 +++++++++ locales/en-US.json | 3 + locales/zh-CN.json | 4 + 8 files changed, 306 insertions(+), 193 deletions(-) create mode 100644 components/status/StatusActionsMore.vue create mode 100644 composables/status.ts diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index ea3272ba..de9ca77d 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -1,115 +1,21 @@ diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue new file mode 100644 index 00000000..e45618a8 --- /dev/null +++ b/components/status/StatusActionsMore.vue @@ -0,0 +1,206 @@ + + + diff --git a/components/status/StatusCard.vue b/components/status/StatusCard.vue index 88f0336c..7bb7b208 100644 --- a/components/status/StatusCard.vue +++ b/components/status/StatusCard.vue @@ -63,12 +63,12 @@ const timeago = useTimeAgo(() => status.createdAt, timeAgoOptions)
-
+
-
@@ -99,7 +100,7 @@ const timeago = useTimeAgo(() => status.createdAt, timeAgoOptions) :actions="false" />
- +
diff --git a/components/status/StatusDetails.vue b/components/status/StatusDetails.vue index 42a80164..8127a981 100644 --- a/components/status/StatusDetails.vue +++ b/components/status/StatusDetails.vue @@ -18,7 +18,8 @@ const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === sta