diff --git a/AGENTS.md b/AGENTS.md index cd23de4..5b29904 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1,7 @@ # GitNexus — Code Intelligence -This project is indexed by GitNexus as **36-character-flower** (3087 symbols, 5931 relationships, 265 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. +This project is indexed by GitNexus as **36-character-flower** (2879 symbols, 5735 relationships, 245 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. > If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first. diff --git a/CLAUDE.md b/CLAUDE.md index cd23de4..5b29904 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ # GitNexus — Code Intelligence -This project is indexed by GitNexus as **36-character-flower** (3087 symbols, 5931 relationships, 265 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. +This project is indexed by GitNexus as **36-character-flower** (2879 symbols, 5735 relationships, 245 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. > If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first. diff --git a/figma/img.png b/figma/img.png new file mode 100644 index 0000000..c9a5a14 Binary files /dev/null and b/figma/img.png differ diff --git a/src/assets/game/mobile-add-reduce-bg.webp b/src/assets/game/mobile-add-reduce-bg.webp new file mode 100644 index 0000000..d641226 Binary files /dev/null and b/src/assets/game/mobile-add-reduce-bg.webp differ diff --git a/src/assets/game/mobile-confirm-red-bg.webp b/src/assets/game/mobile-confirm-red-bg.webp new file mode 100644 index 0000000..a9ec7cd Binary files /dev/null and b/src/assets/game/mobile-confirm-red-bg.webp differ diff --git a/src/assets/game/mobile-contro-comfirm.webp b/src/assets/game/mobile-contro-comfirm.webp new file mode 100644 index 0000000..78bf73d Binary files /dev/null and b/src/assets/game/mobile-contro-comfirm.webp differ diff --git a/src/assets/game/mobile-control-actions-bg.png b/src/assets/game/mobile-control-actions-bg.png new file mode 100644 index 0000000..813aa6d Binary files /dev/null and b/src/assets/game/mobile-control-actions-bg.png differ diff --git a/src/assets/game/mobile-control-number.webp b/src/assets/game/mobile-control-number.webp new file mode 100644 index 0000000..a2ef98d Binary files /dev/null and b/src/assets/game/mobile-control-number.webp differ diff --git a/src/assets/system/mobile-add-reduce-bg.webp b/src/assets/system/mobile-add-reduce-bg.webp new file mode 100644 index 0000000..d641226 Binary files /dev/null and b/src/assets/system/mobile-add-reduce-bg.webp differ diff --git a/src/assets/system/mobile-contro-comfirm.webp b/src/assets/system/mobile-contro-comfirm.webp new file mode 100644 index 0000000..78bf73d Binary files /dev/null and b/src/assets/system/mobile-contro-comfirm.webp differ diff --git a/src/assets/system/mobile-control-number.webp b/src/assets/system/mobile-control-number.webp new file mode 100644 index 0000000..a2ef98d Binary files /dev/null and b/src/assets/system/mobile-control-number.webp differ diff --git a/src/components/app-boot-resource-gate.tsx b/src/components/app-boot-resource-gate.tsx index 4f0debb..dcd5ac5 100644 --- a/src/components/app-boot-resource-gate.tsx +++ b/src/components/app-boot-resource-gate.tsx @@ -1,4 +1,5 @@ import { type PropsWithChildren, useEffect, useMemo, useState } from 'react' +import { useTranslation } from 'react-i18next' const bootImageModules = import.meta.glob( '../assets/**/*.{jpg,jpeg,png,svg,webp}', @@ -90,6 +91,8 @@ function useBootResourceLoader() { } function AppLoadingOverlay({ progress }: { progress: number }) { + const { t } = useTranslation() + return (
- 资源加载中 + {t('commonUi.boot.loading')}
- 正在同步字花图鉴与游戏界面 + {t('commonUi.boot.syncing')}
diff --git a/src/components/ui/notification-alert.tsx b/src/components/ui/notification-alert.tsx index d117e39..aae9231 100644 --- a/src/components/ui/notification-alert.tsx +++ b/src/components/ui/notification-alert.tsx @@ -77,6 +77,8 @@ export function AppNotificationAlert() { const tone = TONE_CLASS_BY_TYPE[activeDialog.type] const isClosing = closingDialogId === activeDialog.id + const isMobileViewport = + typeof window !== 'undefined' ? window.innerWidth <= 768 : false const motionState = isClosing ? 'closing' : 'visible' const motionVariants = { @@ -111,17 +113,31 @@ export function AppNotificationAlert() { } as const return createPortal( -
+
@@ -134,7 +150,9 @@ export function AppNotificationAlert() {