From 4c24bd39336ec75be57889168c51881436b5517c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 28 Dec 2022 13:34:47 +0900 Subject: [PATCH] tweak ui --- locales/ja-JP.yml | 1 + packages/frontend/src/ui/_common_/common.ts | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index fe3013063..598b888c3 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -914,6 +914,7 @@ windowMaximize: "最大化" windowRestore: "元に戻す" caption: "キャプション" loggedInAsBot: "Botアカウントでログイン中" +tools: "ツール" _sensitiveMediaDetection: description: "機械学習を使って自動でセンシティブなメディアを検出し、モデレーションに役立てることができます。サーバーの負荷が少し増えます。" diff --git a/packages/frontend/src/ui/_common_/common.ts b/packages/frontend/src/ui/_common_/common.ts index 10c9b66d4..1c4e4b9a6 100644 --- a/packages/frontend/src/ui/_common_/common.ts +++ b/packages/frontend/src/ui/_common_/common.ts @@ -29,14 +29,9 @@ export function openInstanceMenu(ev: MouseEvent) { to: '/about#charts', }, null, { type: 'parent', - text: i18n.ts.help, - icon: 'ti ti-question-circle', + text: i18n.ts.tools, + icon: 'ti ti-tool', children: [{ - type: 'link', - to: '/mfm-cheat-sheet', - text: i18n.ts._mfm.cheatSheet, - icon: 'ti ti-code', - }, { type: 'link', to: '/scratchpad', text: i18n.ts.scratchpad, @@ -46,6 +41,16 @@ export function openInstanceMenu(ev: MouseEvent) { to: '/api-console', text: 'API Console', icon: 'ti ti-terminal-2', + }], + }, null, { + type: 'parent', + text: i18n.ts.help, + icon: 'ti ti-question-circle', + children: [{ + type: 'link', + to: '/mfm-cheat-sheet', + text: i18n.ts._mfm.cheatSheet, + icon: 'ti ti-code', }, null, { text: i18n.ts.document, icon: 'ti ti-question-circle',