562 Commits

Author SHA1 Message Date
Innei
47f54ad11c feat: enhance gallery settings with adjustable column layout
- Replaced the gallery settings atom with atomWithStorage to persist settings across sessions.
- Added a new AdjustColumnsButton component to allow users to dynamically adjust the number of columns in the gallery based on device type.
- Implemented responsive column width calculation in the MasonryRoot component to accommodate the new column settings.
- Updated the ActionGroup component to include the new AdjustColumnsButton for better user interaction.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 21:51:15 +08:00
Innei
0b6160f6d5 feat: add DateRangeIndicator component and integrate into MasonryRoot
- Introduced a new DateRangeIndicator component to display the date range and location of visible photos.
- Integrated the DateRangeIndicator into the MasonryRoot component, enhancing the user interface for both mobile and desktop views.
- Implemented a custom hook, useVisiblePhotosDateRange, to calculate the date range of currently visible photos.
- Updated README to reflect the new project name and description.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 21:08:36 +08:00
Innei
b51d81bd47 chore: update package dependencies and versions
- Upgraded `eslint-config-hyoban` from 4.0.7 to 4.0.8.
- Updated AWS SDK packages `@aws-sdk/client-s3` and `@aws-sdk/s3-request-presigner` from 3.823.0 to 3.824.0.
- Bumped `@tanstack/react-query` from 5.80.2 to 5.80.5.
- Updated `@types/react-dom` from 19.1.5 to 19.1.6.
- Incremented `tsdown` version from 0.12.6 to 0.12.7.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:43:36 +08:00
Innei
bd6be8ba6e refactor: update HEIC conversion logic and cache management
- Increased the cache size for HEIC images from 5 to 10 to improve performance.
- Refactored the cache key generation to use the source string instead of file properties.
- Updated the HEIC image processing function to accept the original URL as a parameter.
- Removed unused video cache management functions to streamline the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:39:17 +08:00
Innei
2a9990509b refactor: remove unused imports in ProgressiveImage component
- Eliminated unnecessary imports from the ProgressiveImage component to streamline the codebase.
- This change enhances readability and reduces potential confusion regarding unused dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:32:19 +08:00
Innei
5e1c00a3e9 fix: first load thumbnail transition
- Removed the loading progress percentage display from the LoadingIndicator component.
- Updated the ProgressiveImage component to manage thumbnail loading state with a new useState hook.
- Adjusted the thumbnail image rendering to transition opacity based on loading state.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:31:23 +08:00
Innei
15a928b4d8 feat: update loading messages for image and video conversion
- Changed the loading message for image format conversion to 'HEIC/HEIF 图片格式转换中...'.
- Updated the loading message for video transcoding to '视频转码中...'.
- Adjusted the default loading message to '图片格式转换中...' when no specific message is provided.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:22:44 +08:00
Innei
0fb4cd4c8e feat: enhance font glyph extraction and SVG text rendering
- Added additional characters ('\', '~', '`', "'", '{', '}') to the CHARACTERS array in extract-font-glyphs.ts.
- Updated the font path in extract-font-glyphs.ts to use SF-Pro-Display-Medium.ttf.
- Made adjustments to the character paths and dimensions in svg-text-renderer.ts for improved rendering accuracy.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 18:11:06 +08:00
Innei
238cbb71e7 feat: implement dynamic title and description in HTML template
- Updated index.html to use placeholders for title and description.
- Enhanced vite.config.ts to transform HTML and replace placeholders with site configuration values.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 14:28:42 +08:00
Innei
024df63885 refactor: improve code organization and update documentation for clarity
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 13:51:41 +08:00
Innei
2244ca8d77 refactor: clean up builder configuration and enhance README with detailed features and setup instructions
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 13:43:52 +08:00
Innei
f841d2ada2 feat: init 2025-06-05 13:27:09 +08:00