diff --git a/components/status/StatusMedia.vue b/components/status/StatusMedia.vue
index bd72b795..6507231f 100644
--- a/components/status/StatusMedia.vue
+++ b/components/status/StatusMedia.vue
@@ -1,8 +1,8 @@
diff --git a/components/status/edit/StatusEditPreview.vue b/components/status/edit/StatusEditPreview.vue
index 92c18b0b..fe6a44d9 100644
--- a/components/status/edit/StatusEditPreview.vue
+++ b/components/status/edit/StatusEditPreview.vue
@@ -22,10 +22,7 @@ const { edit } = defineProps<{
{{ edit.spoilerText }}
-
+
diff --git a/composables/gestures/index.ts b/composables/gestures/index.ts
index 2b04ae5b..5cb2b747 100644
--- a/composables/gestures/index.ts
+++ b/composables/gestures/index.ts
@@ -24,7 +24,6 @@ export const useImageGesture = (
const { set } = useSpring(motionProperties as Partial
)
- // @ts-expect-error we need to fix types: just suppress it for now
const handlers: Handlers = {
onPinch({ offset: [d] }) {
set({ scale: 1 + d / 200 })
diff --git a/composables/translate.ts b/composables/translate.ts
index a275453f..79e9625d 100644
--- a/composables/translate.ts
+++ b/composables/translate.ts
@@ -1,4 +1,4 @@
-import type { Status } from 'masto'
+import type { Status, StatusEdit } from 'masto'
export interface TranslationResponse {
translatedText: string
@@ -24,15 +24,18 @@ export async function translateText(text: string, from?: string | null, to?: str
return translatedText
}
-const translations = new WeakMap()
+const translations = new WeakMap()
-export function useTranslation(status: Status) {
+export function useTranslation(status: Status | StatusEdit) {
if (!translations.has(status))
translations.set(status, reactive({ visible: false, text: '' }))
const translation = translations.get(status)!
async function toggle() {
+ if (!('language' in status))
+ return
+
if (!translation.text)
translation.text = await translateText(status.content, status.language)
diff --git a/html.d.ts b/html.d.ts
deleted file mode 100644
index 343ccfd9..00000000
--- a/html.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// for UnoCSS attributify mode compact in Volar
-// refer: https://github.com/johnsoncodehk/volar/issues/1077#issuecomment-1145361472
-declare module '@vue/runtime-dom' {
- interface HTMLAttributes {
- [key: string]: any
- }
-}
-declare module '@vue/runtime-core' {
- interface AllowedComponentProps {
- [key: string]: any
- }
-}
-export {}
diff --git a/pages/[[server]]/@[account]/[status].vue b/pages/[[server]]/@[account]/[status].vue
index 467278fc..7c11f52a 100644
--- a/pages/[[server]]/@[account]/[status].vue
+++ b/pages/[[server]]/@[account]/[status].vue
@@ -1,5 +1,4 @@
-
+
diff --git a/pages/[[server]]/@[account]/index/following.vue b/pages/[[server]]/@[account]/index/following.vue
index 6de806b1..ef4bed73 100644
--- a/pages/[[server]]/@[account]/index/following.vue
+++ b/pages/[[server]]/@[account]/index/following.vue
@@ -16,7 +16,7 @@ if (account) {
-
+
diff --git a/pages/[[server]]/tags/[tag].vue b/pages/[[server]]/tags/[tag].vue
index 412408d8..fa2d057e 100644
--- a/pages/[[server]]/tags/[tag].vue
+++ b/pages/[[server]]/tags/[tag].vue
@@ -32,8 +32,10 @@ onReactivated(() => {
#{{ tagName }}
-
-
+
+
+
+