From 81b50498eee737cc32751058387c19342ac32d97 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sat, 6 Jan 2024 18:27:50 +0900 Subject: [PATCH] audio --- locales/index.d.ts | 2 + locales/ja-JP.yml | 2 + .../frontend/src/components/MkMediaAudio.vue | 347 ++++++++++++++++++ .../frontend/src/components/MkMediaBanner.vue | 13 +- .../frontend/src/components/MkMediaRange.vue | 16 +- .../frontend/src/components/MkMediaVideo.vue | 17 +- packages/frontend/src/filters/hms.ts | 39 +- 7 files changed, 394 insertions(+), 42 deletions(-) create mode 100644 packages/frontend/src/components/MkMediaAudio.vue diff --git a/locales/index.d.ts b/locales/index.d.ts index 3937784153..b74e4b096c 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1055,6 +1055,8 @@ export interface Locale { "noteIdOrUrl": string; "video": string; "videos": string; + "audio": string; + "audioFiles": string; "dataSaver": string; "accountMigration": string; "accountMoved": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 77f9a9ec0f..e76bb48656 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1052,6 +1052,8 @@ limitWidthOfReaction: "リアクションの最大横幅を制限し、縮小し noteIdOrUrl: "ノートIDまたはURL" video: "動画" videos: "動画" +audio: "音声" +audioFiles: "音声" dataSaver: "データセーバー" accountMigration: "アカウントの移行" accountMoved: "このユーザーは新しいアカウントに移行しました:" diff --git a/packages/frontend/src/components/MkMediaAudio.vue b/packages/frontend/src/components/MkMediaAudio.vue new file mode 100644 index 0000000000..453b17fe3b --- /dev/null +++ b/packages/frontend/src/components/MkMediaAudio.vue @@ -0,0 +1,347 @@ + + + + + + + diff --git a/packages/frontend/src/components/MkMediaBanner.vue b/packages/frontend/src/components/MkMediaBanner.vue index 3f8fef6632..b21960a490 100644 --- a/packages/frontend/src/components/MkMediaBanner.vue +++ b/packages/frontend/src/components/MkMediaBanner.vue @@ -5,20 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only