From ef45939008246f59257caedec92b3cc0e1d2271d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Wed, 13 Dec 2023 23:14:07 +0900 Subject: [PATCH] =?UTF-8?q?(add)=20Misskey=E5=86=85=E9=83=A8=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E3=83=87=E3=82=A3=E3=83=BC=E3=83=97=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 + components/content/ProseA.vue | 6 +- components/g/MisskeyGateway.vue | 222 ++++++++++++++++++++++++++++++++ components/g/NuxtLink.vue | 13 +- locales/ja-JP.yml | 4 + pages/mi-web.vue | 38 ++++++ pages/share.vue | 214 +----------------------------- 7 files changed, 293 insertions(+), 210 deletions(-) create mode 100644 components/g/MisskeyGateway.vue create mode 100644 pages/mi-web.vue diff --git a/README.md b/README.md index 75f4ef3f..f6a7de27 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ Release date: **TBD(未定)** 内部リンク・外部リンクに関する処理を強化した[``](./components/g/NuxtLink.vue)を使用していますので、**リンクを追加する際は``ではなく``を使用してください。** +### Misskey Webへのリンクについて + +GNuxtLinkおよび各種Docsで、アドレスに `x-mi-web://` から始め、続けてMisskeyの相対パスを入力すると、Misskey Webへのリンクに置き換えられます。 + +例: `/play` → `x-mi-web://play` + ## Setup Make sure to install the dependencies: diff --git a/components/content/ProseA.vue b/components/content/ProseA.vue index 5c3a3775..1dbf6827 100644 --- a/components/content/ProseA.vue +++ b/components/content/ProseA.vue @@ -1,4 +1,5 @@ + + \ No newline at end of file diff --git a/components/g/NuxtLink.vue b/components/g/NuxtLink.vue index 7074adb1..88ebb2ed 100644 --- a/components/g/NuxtLink.vue +++ b/components/g/NuxtLink.vue @@ -2,13 +2,14 @@ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index cb230d8d..f003a251 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -273,6 +273,10 @@ _shareLinkGenerator: typeSomethingToGetLink: "本文を入力するとリンクが生成されます。" typeSomethingToGetButton: "本文を入力するとボタンが生成されます。" +_goToMisskey: + title: "Misskey Webに移動" + heading: "このページを開きたいサーバーを選択してください" + _api: _permissions: title: "権限" diff --git a/pages/mi-web.vue b/pages/mi-web.vue new file mode 100644 index 00000000..d911fc65 --- /dev/null +++ b/pages/mi-web.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/pages/share.vue b/pages/share.vue index 6675fcb1..b36bc874 100644 --- a/pages/share.vue +++ b/pages/share.vue @@ -1,93 +1,11 @@ - - \ No newline at end of file + \ No newline at end of file