From 59fc18f2cd04853ccef23ea33f39401145bb8b04 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 14 May 2025 08:26:30 +0900 Subject: [PATCH] enhance(frontend): add performance tip --- locales/index.d.ts | 30 +++++++++++++++++++ locales/ja-JP.yml | 9 ++++++ .../src/pages/settings/preferences.vue | 18 +++++++++++ 3 files changed, 57 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index d4ff9a8b03..24be6be0cd 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -11898,6 +11898,36 @@ export interface Locale extends ILocale { "text3": string; }; }; + "_clientPerformanceIssueTip": { + /** + * バッテリー消費が多いと感じたら + */ + "title": string; + /** + * アドブロッカーを無効にしてください + */ + "makeSureDisabledAdBlocker": string; + /** + * アドブロッカーはパフォーマンスに影響を及ぼすことがあります。OSの機能やブラウザの機能・アドオンなどでアドブロッカーが有効になっていないか確認してください。 + */ + "makeSureDisabledAdBlocker_description": string; + /** + * カスタムCSSを無効にしてください + */ + "makeSureDisabledCustomCss": string; + /** + * スタイルを上書きするとパフォーマンスに影響を及ぼすことがあります。カスタムCSSや、スタイルを上書きする拡張機能が有効になっていないか確認してください。 + */ + "makeSureDisabledCustomCss_description": string; + /** + * 拡張機能を無効にしてください + */ + "makeSureDisabledAddons": string; + /** + * 一部の拡張機能はクライアントの動作に干渉しパフォーマンスに影響を及ぼすことがあります。ブラウザの拡張機能を無効にして改善するか確認してください。 + */ + "makeSureDisabledAddons_description": string; + }; } declare const locales: { [lang: string]: Locale; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8f1a245f02..ab2ea71aa0 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -3181,3 +3181,12 @@ _serverSetupWizard: text1: "Misskeyは有志によって開発されている無料のソフトウェアです。" text2: "今後も開発を続けられるように、よろしければぜひカンパをお願いいたします。" text3: "支援者向け特典もあります!" + +_clientPerformanceIssueTip: + title: "バッテリー消費が多いと感じたら" + makeSureDisabledAdBlocker: "アドブロッカーを無効にしてください" + makeSureDisabledAdBlocker_description: "アドブロッカーはパフォーマンスに影響を及ぼすことがあります。OSの機能やブラウザの機能・アドオンなどでアドブロッカーが有効になっていないか確認してください。" + makeSureDisabledCustomCss: "カスタムCSSを無効にしてください" + makeSureDisabledCustomCss_description: "スタイルを上書きするとパフォーマンスに影響を及ぼすことがあります。カスタムCSSや、スタイルを上書きする拡張機能が有効になっていないか確認してください。" + makeSureDisabledAddons: "拡張機能を無効にしてください" + makeSureDisabledAddons_description: "一部の拡張機能はクライアントの動作に干渉しパフォーマンスに影響を及ぼすことがあります。ブラウザの拡張機能を無効にして改善するか確認してください。" diff --git a/packages/frontend/src/pages/settings/preferences.vue b/packages/frontend/src/pages/settings/preferences.vue index e0c13d6ffa..8a8774fcd0 100644 --- a/packages/frontend/src/pages/settings/preferences.vue +++ b/packages/frontend/src/pages/settings/preferences.vue @@ -601,6 +601,24 @@ SPDX-License-Identifier: AGPL-3.0-only + + +
+
{{ i18n.ts._clientPerformanceIssueTip.title }}
+
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledAdBlocker }}
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledAdBlocker_description }}
+
+
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledCustomCss }}
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledCustomCss_description }}
+
+
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledAddons }}
+
{{ i18n.ts._clientPerformanceIssueTip.makeSureDisabledAddons_description }}
+
+
+