From 3ff229af6f843aaddb253fe0bd3152044f65b0d8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 21 Jan 2024 20:26:52 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=E3=83=AA=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=AF=E3=82=BF=E3=83=AA=E3=83=B3=E3=82=B0=E3=81=AA?= =?UTF-8?q?=E3=81=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 12 ++++++ .../frontend/src/components/MkLaunchPad.vue | 2 +- packages/frontend/src/components/MkMenu.vue | 2 +- .../global/MkMisskeyFlavoredMarkdown.ts | 6 +-- .../frontend/src/pages/reversi/game.board.vue | 2 +- packages/frontend/src/pages/reversi/index.vue | 41 ++++++++++++++++--- packages/frontend/src/style.scss | 8 ++-- .../src/ui/_common_/navbar-for-mobile.vue | 2 +- packages/frontend/src/ui/_common_/navbar.vue | 4 +- packages/frontend/src/ui/classic.header.vue | 2 +- packages/frontend/src/ui/classic.sidebar.vue | 2 +- packages/frontend/src/ui/deck.vue | 2 +- packages/frontend/src/ui/universal.vue | 2 +- 13 files changed, 64 insertions(+), 23 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index ae27bd110b..e0924eb021 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -4824,6 +4824,9 @@ export interface Locale extends ILocale { * タイトルへ */ "backToTitle": string; + /** + * お住まいの地域 + */ "hemisphere": string; /** * センシティブなファイルを含むノートを表示 @@ -9422,8 +9425,17 @@ export interface Locale extends ILocale { }; }; "_hemisphere": { + /** + * 北半球 + */ "N": string; + /** + * 南半球 + */ "S": string; + /** + * 一部のクライアント設定で、季節を判定するために使用します。 + */ "caption": string; }; "_reversi": { diff --git a/packages/frontend/src/components/MkLaunchPad.vue b/packages/frontend/src/components/MkLaunchPad.vue index 120ed7a86c..6980192d01 100644 --- a/packages/frontend/src/components/MkLaunchPad.vue +++ b/packages/frontend/src/components/MkLaunchPad.vue @@ -138,7 +138,7 @@ function close() { left: 32px; color: var(--indicator); font-size: 8px; - animation: blink 1s infinite; + animation: global-blink 1s infinite; @media (max-width: 500px) { top: 16px; diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 3026d4f015..17ace227ff 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -450,7 +450,7 @@ onBeforeUnmount(() => { align-items: center; color: var(--indicator); font-size: 12px; - animation: blink 1s infinite; + animation: global-blink 1s infinite; } .divider { diff --git a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts index 9eab855004..b234144c13 100644 --- a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts +++ b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts @@ -62,12 +62,12 @@ export default function(props: MfmProps, context: SetupContext) { if (t == null) return null; return t.match(/^[0-9.]+s$/) ? t : null; }; - + const validColor = (c: string | null | undefined): string | null => { if (c == null) return null; return c.match(/^[0-9a-f]{3,6}$/i) ? c : null; }; - + const useAnim = defaultStore.state.advancedMfm && defaultStore.state.animatedMfm; /** @@ -118,7 +118,7 @@ export default function(props: MfmProps, context: SetupContext) { case 'tada': { const speed = validTime(token.props.args.speed) ?? '1s'; const delay = validTime(token.props.args.delay) ?? '0s'; - style = 'font-size: 150%;' + (useAnim ? `animation: tada ${speed} linear infinite both; animation-delay: ${delay};` : ''); + style = 'font-size: 150%;' + (useAnim ? `animation: global-tada ${speed} linear infinite both; animation-delay: ${delay};` : ''); break; } case 'jelly': { diff --git a/packages/frontend/src/pages/reversi/game.board.vue b/packages/frontend/src/pages/reversi/game.board.vue index 6ad779c605..4d4450ed7d 100644 --- a/packages/frontend/src/pages/reversi/game.board.vue +++ b/packages/frontend/src/pages/reversi/game.board.vue @@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts._reversi.opponentTurn }}({{ i18n.tsx.remainingN({ n: opTurnTimerRmain }) }})
-
{{ i18n.ts._reversi.myTurn }}({{ i18n.tsx.remainingN({ n: myTurnTimerRmain }) }})
+
{{ i18n.ts._reversi.myTurn }}({{ i18n.tsx.remainingN({ n: myTurnTimerRmain }) }})