refactor: update WebGL image viewer and improve loading state handling

- Enhanced the ProgressiveImage component to utilize the new LoadingState enum for better loading state management.
- Updated the WebGLImageViewerEngine to notify loading states using the LoadingState enum, improving clarity in loading messages.
- Refactored spring animations to use the Transition type for better type safety.
- Updated localization files to include new loading messages for WebGL operations in both English and Chinese.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-26 21:08:16 +08:00
parent 3c45df6e13
commit c8315c29b0
17 changed files with 879 additions and 793 deletions

View File

@@ -3,7 +3,7 @@
"type": "module",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.12.1",
"packageManager": "pnpm@10.12.3",
"repository": {
"type": "git",
"url": "https://github.com/Afilmory/Afilmory"
@@ -23,26 +23,26 @@
"@afilmory/builder": "workspace:*",
"@t3-oss/env-core": "0.13.8",
"dotenv": "16.5.0",
"es-toolkit": "1.39.3",
"zod": "3.25.63"
"es-toolkit": "1.39.5",
"zod": "3.25.67"
},
"devDependencies": {
"@innei/prettier": "0.15.0",
"consola": "3.4.2",
"dotenv-expand": "12.0.2",
"eslint": "9.28.0",
"eslint": "9.29.0",
"eslint-config-hyoban": "4.0.8",
"fast-glob": "3.3.3",
"lint-staged": "16.1.0",
"lint-staged": "16.1.2",
"opentype.js": "1.3.4",
"prettier": "3.5.3",
"prettier": "3.6.1",
"sharp": "0.34.2",
"simple-git-hooks": "2.13.0",
"tailwindcss": "4.1.10",
"tsx": "4.20.2",
"tailwindcss": "4.1.11",
"tsx": "4.20.3",
"typescript": "5.8.3",
"vite": "6.3.5",
"vite-bundle-analyzer": "0.22.2",
"vite": "7.0.0",
"vite-bundle-analyzer": "0.23.0",
"vite-plugin-babel": "1.3.1",
"vite-plugin-checker": "0.9.3",
"vite-tsconfig-paths": "5.1.4"
@@ -58,4 +58,4 @@
"eslint --fix"
]
}
}
}