- Added support for long press to play Live Photos on mobile devices.
- Implemented a ref for LivePhoto component to control play and stop actions.
- Updated localization files to include new strings for Live Photo playback status.
- Enhanced CSS styles to prevent text selection and improve layout consistency.
- Refactored ExifPanel and ProgressiveImage components for better integration with Live Photo features.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced multiple Vite plugins including `ogImagePlugin`, `feedSitemapPlugin`, `localesJsonPlugin`, and `manifestInjectPlugin` to enhance the build process and support dynamic content generation.
- Implemented a custom hot module replacement (HMR) for JSON localization files to improve development experience.
- Added a new `createDependencyChunksPlugin` for better chunk management in the build process.
- Established a structure for handling localization files and generating corresponding assets, improving internationalization support.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the icon color in the FloatingActionButton component from 'text-accent' to 'text-white' for better visibility.
- Removed the unused animation for the button's background when it is open, simplifying the component's rendering logic.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the default fallback language from Chinese (zh-CN) to English (en) in the i18n configuration.
- This adjustment ensures a more accessible experience for English-speaking users.
Signed-off-by: Innei <tukon479@gmail.com>
- Eliminated the 'edge' runtime export from multiple SSR route files to streamline the codebase.
- This change simplifies the routing logic and prepares for future enhancements in server-side rendering.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new analysis API endpoint to aggregate view and reaction data based on a reference key.
- Introduced DTOs for type safety in the analysis API.
- Integrated SWR for data fetching in the PhotoViewer component, improving reaction handling and user feedback.
- Replaced the previous reaction handling logic with a more efficient approach using the new analysis API.
- Updated the package.json to include the @lobehub/fluent-emoji dependency for enhanced emoji support.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored the database connection logic to utilize `neondatabase`, ensuring correct imports and type safety.
- Implemented atomic upsert operations in the views API, allowing for efficient insertion and updating of records using PostgreSQL's `ON CONFLICT` clause.
- Added new dependencies `ast-kit` and `unplugin-ast` for improved AST manipulation in the project.
- Enhanced the UI components with toast notifications for user feedback on reactions and improved styling with Tailwind CSS.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a Vite plugin to inject the photos manifest into the HTML, enabling dynamic updates and hot reloading.
- Updated ESLint configuration to ignore build errors during SSR.
- Modified package.json scripts for concurrent development of SSR and web applications.
- Adjusted paths and imports for better module resolution and consistency across the codebase.
- Added type definitions for the global __MANIFEST__ variable to ensure type safety.
Signed-off-by: Innei <tukon479@gmail.com>
- Implemented a height check to hide the EXIF information grid when the photo item height is less than 300px.
- Ensured that other information such as title, description, and tags remain visible regardless of the photo height.
- Updated the PhotoMasonryItem component to conditionally render the EXIF grid based on the calculated height.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed opacity transition from the EXIF information grid to ensure it is always visible.
- Simplified the layout for better accessibility of EXIF data.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>
- Removed the totalViews calculation from the ManifestStats component to streamline data handling.
- Adjusted the layout to accommodate the removal of the views stat, changing the grid columns from 5 to 4.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>
- Adjusted the styling of the ExifDataRow component to use 'self-start' for better alignment of labels.
- Modified the container div in RawExifViewer to ensure a minimum width, enhancing layout consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the HistogramChart component to calculate drawing width based on the canvas's bounding rectangle, enhancing accuracy in rendering.
- Added anti-aliasing settings for smoother lines and improved visual quality.
- Adjusted hover interaction logic to ensure accurate positioning of the hover indicator, improving user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced ExifTool support by adding the '@uswriting/exiftool' package to manage EXIF metadata extraction.
- Updated ExifPanel component to conditionally render raw EXIF data based on ExifTool availability.
- Enhanced localization files to include new EXIF metadata categories and descriptions for better user experience across multiple languages.
- Added a new atom to manage the loading state of ExifTool, improving state management in the application.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>
- Updated the title in the document head to include the site configuration title for better SEO.
- Modified Open Graph and Twitter meta tags to append the site configuration title to the photo ID, improving clarity and branding in social media shares.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated ExifPanel to use translation for tone analysis title.
- Improved HistogramChart by enhancing canvas resolution and rendering quality, including anti-aliasing and smoother histogram drawing.
- Added device pixel ratio handling for better display on high-DPI screens.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the HistogramChart component to display channel values (red, green, blue, and luminance) formatted to two decimal places for improved readability and precision in the user interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the initial state of showFloatingActions from true to false to improve user experience by hiding floating actions by default.
- This adjustment aims to streamline the interface and reduce visual clutter upon initial render.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the SSR routing to conditionally load development and production handlers based on the NODE_ENV variable.
- Introduced a new dev.ts file to handle requests in development mode, including asset proxying and HTML response generation.
- Removed the not-found.tsx file and streamlined the photoId route logic for better maintainability.
- Added support for Open Graph and Twitter meta tags in the production handler for improved SEO.
- Updated README with new S3 endpoint configuration.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new COLUMN_WIDTH_CONFIG object to manage responsive column widths for mobile and desktop views.
- Updated the column width calculation logic to dynamically adjust based on available width and maximum column constraints.
- Improved handling of auto and custom column modes to ensure optimal layout across different screen sizes.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new FloatingActionButton component to provide quick access to various actions in the gallery.
- Integrated animation effects for button visibility and action selection.
- Updated MasonryRoot to include the FloatingActionButton, allowing for dynamic action handling based on user interactions.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new HistogramChart component to visualize tone analysis data.
- Enhanced the ExifPanel to display tone analysis results, including brightness, contrast, shadow, and highlight ratios.
- Updated the formatExifData function to support tone analysis data.
- Implemented histogram compression and decompression logic for efficient data handling.
- Added localization support for new histogram-related terms in multiple languages.
Signed-off-by: Innei <tukon479@gmail.com>
- Implemented logic to calculate and maintain the original aspect ratio for images displayed within the film frame.
- Adjusted the frame dimensions dynamically based on the image's aspect ratio to ensure consistent visual presentation.
- Enhanced the image display structure to center the image while preserving its proportions, improving the overall aesthetic of the photo viewer.
Signed-off-by: Innei <tukon479@gmail.com>
- Implemented a new method to validate image blobs, checking MIME types and file size to ensure they are valid images before processing.
- Enhanced the image loading process to reject invalid image responses, improving error handling and user feedback.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the EXIF data formatting logic to conditionally include GPS information only when latitude and longitude are available.
- Introduced a new worker initialization message structure to facilitate the transfer of shared data between the main process and workers.
- Enhanced the worker process to handle initialization messages and deserialize shared data for improved task management.
- Refactored the manifest loading and saving functions to support a new manifest structure, ensuring compatibility with the updated data handling.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the film mode processing logic to map readable film modes for better clarity.
- Introduced a new function to handle film mode mapping, enhancing the overall EXIF data representation.
Signed-off-by: Innei <tukon479@gmail.com>
- Improved the EXIF data extraction logic to include additional fields such as GPS references and color temperature settings.
- Updated the translation keys in localization files for various languages to reflect changes in EXIF data representation, including dynamic range and white balance settings.
- Refactored the formatting logic to ensure accurate display of GPS information and other EXIF attributes.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored the EXIF data extraction to correctly access fields directly from the `photo.exif` object.
- Simplified the handling of date and shutter speed information for better clarity and consistency.
- Removed unnecessary nested object references to streamline the code.
Signed-off-by: Innei <tukon479@gmail.com>
- Added `date-fns` library to manage date formatting.
- Enhanced `ExifPanel` to display additional EXIF data including artist, copyright, lens make, and scene capture type.
- Updated localization files to include new translation keys for the added EXIF fields.
Signed-off-by: Innei <tukon479@gmail.com>
- Implemented GPS data display in the ExifPanel, including latitude, longitude, and altitude.
- Added a link to view the GPS location on a map.
- Updated localization files for Japanese, Korean, and various Chinese dialects to include new GPS-related translation keys.
- Refactored EXIF data formatting to support GPS information extraction.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced `exif-reader` with `exiftool-vendored` for improved EXIF data processing.
- Updated related components to utilize the new `PickedExif` type for better type safety.
- Refactored EXIF data extraction and formatting logic to align with the new library's structure.
- Removed deprecated dependencies and cleaned up related code for better maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the RSS EXIF specification to version 1.1, adding protocol metadata and expanding EXIF field definitions, including location and technical parameters.
- Modified the feed-sitemap generation to include new EXIF fields and improved date handling.
- Adjusted the SlidingNumber component to use a predefined spring transition for smoother animations.
- Updated VSCode settings to exclude specific directories from search.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed unnecessary background styling and improved layout for better readability.
- Streamlined the rendering of photo thumbnails while maintaining existing functionality.
Signed-off-by: Innei <tukon479@gmail.com>
- Added .project.json to .gitignore to exclude project identity files.
- Updated ExifPanel styling to include backdrop blur effect for mobile view, improving visual consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new NotFound component to display a user-friendly message when a photo is not found.
- Updated the photo route to return the NotFound component instead of a plain 404 response.
- Improved title handling in the photo viewer to default to 'Not Found' when no photo is available.
Signed-off-by: Innei <tukon479@gmail.com>
- Added 'zh-TW' (Traditional Chinese) to the list of supported languages.
- Included new localization file for Traditional Chinese with comprehensive translations.
- Updated existing language resources for Japanese and Korean to reflect changes in map view labels.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated translation keys for video conversion messages to improve accessibility across different languages.
- Updated conversion messages in the video conversion logic to utilize localized strings for better user experience.
- Added new translation entries in English, Japanese, Korean, and Chinese locales to support the updated video conversion features.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a conditional class to hide the video element when the live photo is not playing.
- Updated conversion message to remove the 'FFmpeg' method label for improved clarity.
Signed-off-by: Innei <tukon479@gmail.com>
- Added mp4-muxer dependency to facilitate MP4 video conversion.
- Updated video conversion logic to utilize WebCodecs API for improved performance and reliability.
- Enhanced ExifPanel layout by adjusting grid spacing and item alignment for better visual consistency.
Signed-off-by: Innei <tukon479@gmail.com>