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

@@ -2,7 +2,7 @@
"name": "@afilmory/ssr",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@10.12.1",
"packageManager": "pnpm@10.12.3",
"description": "",
"author": "Innei",
"license": "ISC",
@@ -25,9 +25,9 @@
},
"devDependencies": {
"@cloudflare/next-on-pages": "1.13.12",
"@types/node": "24.0.1",
"@types/node": "24.0.4",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"next": "15.3.3"
"next": "15.3.4"
}
}
}