18 Commits

Author SHA1 Message Date
Innei
af170a43bb refactor!: builder pipe and plugin system
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-28 19:48:04 +08:00
Innei
bfe1537602 chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-02 17:58:43 +08:00
Innei
d62ecb34f1 chore: add Git LFS support for media files and update build scripts
- Introduced .gitattributes to manage large media files with Git LFS for various formats including HEIC, MOV, and JPG.
- Added a new build script in package.json for preparing demo data.
- Enhanced logging in the PhotoGalleryBuilder to include storage provider information.
- Updated the LocalStorageProvider to use the correct type for file stats.
- Added multiple new media files to the project.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 00:26:30 +08:00
Innei
2df511bff7 fix!: remove webp transformer
- Introduced a migration system for manifest files to support versioning and backward compatibility.
- Updated image processing to switch thumbnail format from WebP to JPEG for better compatibility.
- Added new commands for manifest migration and improved thumbnail handling in the builder.
- Enhanced documentation with architecture details and development commands.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-13 23:11:00 +08:00
MaxtuneLee
41b0d7a73d Afilmory Docs (#66) 2025-09-11 18:42:47 +08:00
Innei
e4fde5ae74 feat: integrate PWA support and update manifest configuration
- Added PWA support using vite-plugin-pwa, including configuration for service worker and caching strategies.
- Updated index.html to include necessary meta tags for iOS Safari PWA support.
- Changed references from site.webmanifest to manifest.webmanifest for consistency.
- Removed redundant manifest generation from the favicon script, as it is now handled by vite-plugin-pwa.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 16:02:28 +08:00
Innei
ae4f15e3ea refactor: update photo data handling and types
- Changed the PhotoManifest type to PhotoManifestItem across various components and services for consistency.
- Removed the views property from the PhotoInfo interface to streamline photo data.
- Updated rules in color.mdc and project.mdc to adjust glob patterns and application behavior.
- Enhanced the feed-sitemap plugin to utilize the new PhotoManifestItem type for better data management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-26 00:48:04 +08:00
Innei
b18bb76451 chore: update favicon images and enhance favicon generation script
- Replaced existing favicon images with updated versions for better visual quality.
- Modified the favicon generation script to add rounded corners to the generated images, improving aesthetics.
- Ensured the script checks for the presence of the logo file before generating favicons.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-24 12:41:46 +08:00
Ryogi Mutsuki
ed82daa5a0 Fix: photo data parsing to access 'data' property from JSON manifest (#17) 2025-06-19 14:38:55 +08:00
Innei
604ea15ce6 fix: update build script to use new builder CLI
- Changed the build command in the remote repository update script to utilize the new builder CLI instead of the previous manifest build command.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 17:23:50 +08:00
Innei
8b57c878e8 chore: rename project to Afilmory and update related configurations
- Changed project name and title from "Photo Gallery" to "Afilmory" across multiple files including configuration, README, and web manifest.
- Updated descriptions and URLs to reflect the new branding.
- Adjusted OG image plugin and favicon generation scripts to align with the new project name.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 01:15:41 +08:00
Innei
8f28d75266 chore: change namespace
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 21:51:25 +08:00
Innei
09e6f439d7 fix(generate-og-image): handle missing EXIF date values to prevent sorting errors
- Added a check to ensure that both photos have valid EXIF DateTimeOriginal values before sorting, preventing potential errors when the data is missing.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 01:39:55 +08:00
Innei
ccfb313038 feat: add avatar support and update dependencies
- Added avatar configuration to the author section in config.example.json and README.md.
- Integrated @radix-ui/react-avatar package for avatar rendering in the MasonryHeaderMasonryItem component.
- Updated pnpm-lock.yaml and package.json to include @radix-ui/react-avatar dependency.
- Removed loading text from index.html for a cleaner UI.
- Adjusted photo-loader.ts to use the workdir for manifest path.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 01:11:56 +08:00
Innei
9630aa9a85 feat(og): enhance image generation with new font and layout adjustments
- Added SF Pro Display font for improved typography in OG images.
- Increased padding and dimensions for better visual presentation.
- Updated font sizes and margins for titles, descriptions, and tags to enhance readability.
- Adjusted layout properties for image containers and text alignment.

Signed-off-by: Innei <tukon479@gmail.com>

fix(og): update typography and layout for OG images

- Changed letter spacing from 2px to 1px for improved text clarity.
- Updated font family to include Geist for enhanced visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>

feat(og): enhance OG image styling with new background and decorative elements

Signed-off-by: Innei <tukon479@gmail.com>

update og
2025-06-10 16:53:04 +08:00
Innei
7e1600c7e8 fix: optimize photo processing in generateOGImage function
- Changed the iteration logic to process photos in reverse order, improving the handling of the latest photos.
- Introduced a variable to store the minimum length for cleaner and more readable code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-07 17:59:49 +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
f841d2ada2 feat: init 2025-06-05 13:27:09 +08:00