Commit Graph

126 Commits

Author SHA1 Message Date
AdingApkgg
9b80b9429a feat: add search history management features in SettingsModal and SearchHeader
- Introduced a new section in SettingsModal for managing search history, including export and import functionality.
- Added visual prompts for users regarding the new domain change in SearchHeader.
- Implemented importHistory method in the history store to handle merging and deduplication of imported records.
2026-01-29 01:39:28 +08:00
Jurangren
fe5f836b87 chore: 将域名从 searchgal.homes 迁移至 searchgal.top并增加API节点
- 更新所有环境配置文件中的 API 和站点域名为 searchgal.top。
- 在 api.json 中新增多个区域的 ClawCloud API 节点。
2026-01-28 04:24:08 +08:00
AdingApkgg
04c8e43ef7 feat: enhance URL handling and update API server configuration
- Renamed extractPath function to decodeUrl for clarity and updated its implementation to decode URLs properly.
- Modified SettingsModal to use a new default API key variable for better maintainability.
- Added new API server entries for Vercel and Netlify in api.json to expand available options.
2026-01-21 00:48:39 +08:00
AdingApkgg
129df93694 chore: update API references in documentation and code
- Updated README.md to reflect the correct Cloudflare Workers API link for SearchGal.
- Modified search.ts to reference the updated API documentation link.
- Changed deployUrl in api.json to point to the correct SearchGal repository.
2026-01-20 11:49:59 +08:00
AdingApkgg
c323ea1fd9 feat: implement sound settings management in App and SettingsModal components
- Added sound settings functionality, allowing users to enable or disable sound effects.
- Integrated sound initialization and synchronization with user settings in App.vue.
- Updated SettingsModal.vue to include a dedicated sound settings card with toggle functionality.
- Enhanced sound management in useSound.ts to support initialization and synchronization with settings store.
2026-01-20 10:08:08 +08:00
AdingApkgg
8d4d5a2fa9 chore: update dependencies and fix countdown timer logic in UpdateToast component
- Updated various dependencies in package.json and pnpm-lock.yaml, including @typescript-eslint/eslint-plugin, vite, and vue-tsc to their latest versions.
- Improved countdown timer logic in UpdateToast.vue to ensure proper clearing of the interval when the countdown reaches zero.
2026-01-09 21:16:37 +08:00
AdingApkgg
04c802a84f feat: integrate PWA support with vite-plugin-pwa and remove legacy service worker files
- Added vite-plugin-pwa for enhanced PWA capabilities, including automatic service worker registration and caching strategies.
- Updated manifest configuration directly in vite.config.ts, removing the need for a separate manifest.json file.
- Removed legacy service worker and associated versioning plugin, streamlining the PWA setup.
- Adjusted UI components to reflect the new update handling mechanism for service workers.
2026-01-09 21:10:47 +08:00
AdingApkgg
d61c45a640 feat: add new entry for illlights API Wiki in friends.json 2026-01-09 18:09:30 +08:00
illlights
7a25e0cbc2 feat: image api slow mode after reached cache threshold 2026-01-07 17:36:56 +08:00
illlights
b154c10d46 fix: background image preloading follows user settings 2026-01-07 17:35:18 +08:00
AdingApkgg
666949e3fa Refactor sound management to utilize Web Audio API and remove snd-lib dependency
- Replaced snd-lib with Web Audio API for sound effects, enhancing performance and reducing external dependencies.
- Updated sound management functions to create and control audio contexts directly, improving sound playback reliability.
- Removed unused sound effect configurations and streamlined sound effect functions for better maintainability.
- Adjusted related components to ensure compatibility with the new sound management approach.
2026-01-07 06:00:13 +08:00
AdingApkgg
23429bf49f Add API latency measurement and update API options in SettingsModal.vue
- Introduced latency measurement for API options, displaying latency information conditionally.
- Updated API options to include new entries and modified labels for clarity.
- Enhanced the logic for fetching and displaying API latency, improving user feedback on network performance.
2025-12-28 21:55:05 +08:00
AdingApkgg
46725abfbf Refactor VndbPanel.vue to improve modal visibility and enhance URL safety checks
- Changed v-show to v-if for better conditional rendering of the VNDB panel.
- Added a function to validate URLs, ensuring only safe http/https links are rendered as clickable.
- Updated link rendering logic to display plain text for unsafe URLs, enhancing security against XSS attacks.
2025-12-28 08:27:42 +08:00
AdingApkgg
33811051b7 Remove unused configuration files and improve TypeScript settings
- Deleted eslint.config.mjs and tailwind.config.ts as they are no longer needed.
- Updated tsconfig.json to include additional TypeScript files for better project structure.
- Refactored various components to enhance modal management and improve code clarity.
- Changed console.log statements to console.info for consistent logging practices across the application.
2025-12-28 08:07:10 +08:00
AdingApkgg
5342ec75d5 Refactor SearchHeader and ImageViewer components for improved functionality
- Updated ImageViewer.vue to enhance event handling for image navigation.
- Refactored SearchHeader.vue to streamline search history management by removing direct persistence calls and utilizing historyStore for unified management.
2025-12-27 08:17:16 +08:00
AdingApkgg
22a05a35a7 Refactor ImageViewer component for improved functionality and performance
- Simplified image preview logic by removing unused features such as zooming and transformations, focusing on a straightforward full-screen preview experience.
- Enhanced event handling for image navigation and touch interactions, improving user experience on mobile devices.
- Updated styles for better visual consistency and responsiveness across different screen sizes.
- Removed unnecessary imports and streamlined the code for better maintainability.
2025-12-27 08:03:49 +08:00
AdingApkgg
9cb75fc9f0 Refactor StatsCorner.vue for improved readability and functionality
- Simplified the status indicator section by removing unnecessary elements and enhancing the display of response time.
- Updated visitor statistics display to use more descriptive titles and improved data binding for clarity.
- Removed unused gamepad icon and related logic, streamlining the component's structure.
2025-12-27 07:30:38 +08:00
AdingApkgg
0357dbe6ad Refactor component logic and improve performance tracking
- Updated KeyboardHelpPanel.vue to include an additional icon for better navigation clarity.
- Modified SearchHeader.vue to utilize window.performance for more accurate search timing metrics.
- Enhanced StatsCorner.vue by refining status text and icon logic for improved readability and maintainability.
- Cleaned up conditional returns in plugins.ts and stats.ts for better code consistency and clarity.
2025-12-27 07:19:24 +08:00
AdingApkgg
745bbea616 Enhance state management and statistics tracking across components
- Integrated new Pinia plugins for state persistence, snapshots, and tab synchronization in main.ts, improving state management capabilities.
- Updated SearchHeader.vue to utilize caching for VNDB data, enhancing performance and user experience by reducing unnecessary API calls.
- Refactored SearchHistoryModal.vue to leverage the history store for managing search history, improving data handling and user interaction.
- Enhanced StatsCorner.vue to display visitor statistics and search counts, providing users with better insights into application usage.
- Improved settings management in settings.ts by adding undo/redo functionality for setting changes, enhancing user control over preferences.
2025-12-27 07:18:21 +08:00
AdingApkgg
9e45db827d Enhance component visuals and functionality across multiple files
- Updated CommentsModal.vue to include additional icons and improved title display for better user engagement.
- Enhanced KeyboardHelpPanel.vue by adding icons next to navigation and operation shortcuts for improved clarity.
- Refactored ResultItem.vue to include a copy link feature with visual feedback, enhancing user interaction.
- Improved SearchHistoryModal.vue by adding icons and additional text for better user guidance on search history.
- Updated StatsCorner.vue to replace the gamepad icon and add status indicators for online/offline status.
- Refactored icons management in icons.ts for better organization and maintainability.
2025-12-27 07:10:49 +08:00
AdingApkgg
ccd87d06be Enhance image loading and refactor screenshot handling in VndbPanel.vue
- Added `referrerpolicy="no-referrer"` to image elements to improve privacy during image loading.
- Removed unused `screenshotsReady` state and related logic, simplifying the component's state management.
- Updated class names for consistency and improved styling of screenshot buttons.
- Cleaned up comments for better clarity regarding screenshot loading behavior.
2025-12-27 07:00:22 +08:00
AdingApkgg
7d5e789bb0 Add service worker update notification and countdown feature
- Implemented a toast notification to inform users of available service worker updates, enhancing user awareness of new versions.
- Added a countdown timer for automatic updates, allowing users to manually trigger the update if desired.
- Refactored service worker update handling in main.ts to integrate the new notification system, improving user experience during updates.
2025-12-27 06:54:54 +08:00
AdingApkgg
7c522b8108 Implement video parsing API configuration and enhance settings management
- Added a new function to retrieve the Video Parse API URL from settings, improving flexibility in API configuration.
- Updated SettingsModal.vue to include an input field for the Video Parse API URL, allowing users to customize their settings.
- Refactored the handling of video parsing API URL in the fetchGameVideoUrl function to utilize the new settings-based approach.
- Enhanced the settings store to include videoParseApiUrl, ensuring consistent access across components.
2025-12-27 06:32:09 +08:00
AdingApkgg
d785fb59da Add video parsing API and enhance translation functionality in VndbPanel.vue
- Introduced a new API for fetching game PV video URLs, improving multimedia support.
- Added a video player component in VndbPanel.vue to display PV videos, enhancing user engagement.
- Refactored translation logic to allow for a single API request to translate descriptions, tags, and quotes simultaneously, improving efficiency.
- Updated loading states and error handling for translations and video fetching, ensuring a smoother user experience.
2025-12-27 06:23:27 +08:00
AdingApkgg
5e408eeceb Refactor service worker implementation and update caching strategies
- Simplified service worker code in sw.js by consolidating caching patterns and improving resource handling.
- Enhanced fetch event logic to streamline caching strategies for static resources and cross-origin requests.
- Updated service worker registration and update handling in main.ts for better version management and user experience.
- Improved offline page design and functionality for clearer user communication during network issues.
- Adjusted font family order in SettingsModal.vue for consistency in code editor styling.
2025-12-27 03:17:56 +08:00
AdingApkgg
eba3e77c8e Refactor service worker update handling and clean up App.vue and SearchHeader.vue
- Removed the UpdateToast component and related service worker update logic from App.vue, streamlining the user interface.
- Implemented automatic application of service worker updates without user prompts in main.ts, enhancing user experience.
- Simplified friend logo error handling in SearchHeader.vue by removing the Google Favicon fallback logic, improving code clarity.
2025-12-27 02:49:37 +08:00
AdingApkgg
993de8bc16 Enhance search functionality and improve friend logo handling in components
- Added a comment in fetchVndbQuotes to clarify the increase in quote results based on user feedback.
- Implemented a function to extract domain names from URLs for better handling of friend logos in SearchHeader.vue.
- Updated logo error handling to utilize Google Favicon service as a fallback, improving user experience when logos fail to load.
- Adjusted the number of quotes displayed in VndbPanel.vue from 5 to 10, enhancing content visibility for users.
- Improved comments in VndbPanel.vue to clarify data loading behavior during component lifecycle events.
2025-12-27 02:37:27 +08:00
AdingApkgg
5aa86ff03c Enhance settings management and custom code application in App.vue and SettingsModal.vue
- Integrated custom JavaScript and HTML functionality into the application, allowing users to apply their scripts and markup dynamically.
- Updated API configuration handling in search.ts to utilize settings from the store, improving flexibility and maintainability.
- Refactored theme application logic to ensure custom styles are applied correctly during component lifecycle events.
- Improved the user interface in SettingsModal.vue with an IDE-style code editor for better user experience when editing custom code.
2025-12-27 02:17:43 +08:00
AdingApkgg
b86e7f4a31 Refactor translation logic in VndbPanel.vue for improved efficiency and error handling
- Updated the translation process to capture the current data state before executing tasks, allowing for parallel execution of translation functions.
- Implemented Promise.allSettled to ensure all translation tasks complete, enhancing reliability during the translation process.
- Adjusted conditions for translating descriptions, tags, and quotes to streamline the logic and improve performance.
2025-12-27 01:14:10 +08:00
AdingApkgg
e4f3633b89 Update fetchVndbQuotes to increase results limit and refactor translation logic in VndbPanel for improved API handling
- Increased the number of results returned by fetchVndbQuotes from 10 to 25 for better data retrieval.
- Refactored translation logic in VndbPanel.vue to execute tasks sequentially, preventing API rate limiting and ensuring accurate game ID checks during translations.
2025-12-27 01:02:31 +08:00
AdingApkgg
b8756fc09a Enhance App.vue and ImageViewer.vue for improved styling and animation handling
- Added a custom variant for dark mode in App.vue to support Tailwind v4 features.
- Simplified the onEnter function in ImageViewer.vue by removing the done parameter, allowing Vue to manage CSS animation completion automatically.
2025-12-27 00:13:16 +08:00
AdingApkgg
cc4def8b64 Enhance theme management and improve component logic for better user experience
- Updated theme handling in index.html and ui.ts to support migration from old format, ensuring compatibility with previous user settings.
- Refactored VndbPanel.vue to streamline game ID handling and improve race condition checks during data loading.
- Simplified the onEnter function in ImageViewer.vue to ensure sound effects play correctly during transitions.
2025-12-27 00:04:20 +08:00
AdingApkgg
5ae6399e9a Refactor theme management in index.html and App.vue for improved user experience
- Updated theme detection logic in index.html to support user-selected theme modes (light, dark, system) and improved handling of local storage.
- Removed unused theme-related functions from App.vue, streamlining the component and enhancing performance.
- Added new theme options in friends.json to expand the community resource list.
2025-12-26 23:42:58 +08:00
AdingApkgg
29fdabbb0e Refactor ImageViewer component to remove custom animation functions and simplify transition handling
- Eliminated the `useAnime` composable and its associated animation functions from ImageViewer.vue, opting for a more straightforward approach to transitions.
- Updated the onEnter function to focus solely on sound effects during transitions, enhancing clarity and maintainability of the code.
2025-12-26 23:01:22 +08:00
AdingApkgg
42608f50c1 Update package dependencies and refactor components for improved performance and consistency
- Replaced `vue-virtual-scroll-list` with `@tanstack/vue-virtual` in package.json for enhanced virtual scrolling capabilities.
- Refactored multiple components to utilize CSS transitions instead of JavaScript animations, improving performance and simplifying code.
- Updated transition classes in `AnimatedBackground.vue`, `CommentsModal.vue`, `KeyboardHelpPanel.vue`, `SettingsModal.vue`, `VndbPanel.vue`, and others for a more cohesive user experience.
- Removed unnecessary animation functions and streamlined component structures for better maintainability.
2025-12-26 22:53:20 +08:00
AdingApkgg
59ca9f924c Remove anime.js dependency and refactor SearchResults and SettingsModal components for improved performance and consistency
- Eliminated the use of anime.js in favor of simpler CSS transitions and effects.
- Updated SearchResults.vue to implement virtual scrolling for better performance with large result sets.
- Refactored SettingsModal.vue to enhance button interactions and remove unnecessary animation directives.
- Improved overall styling and structure for a more cohesive user experience across components.
2025-12-26 22:42:36 +08:00
AdingApkgg
9fd8f0005a Refactor theme management and enhance UI components for improved user experience
- Removed the `animejs` dependency and replaced it with a lightweight animation system using the Web Animations API for better performance.
- Introduced theme settings in `SettingsModal.vue`, allowing users to select between light, dark, and system themes.
- Updated `useUIStore` to manage theme state and apply changes dynamically, enhancing the overall UI consistency.
- Improved styling in `VndbPanel.vue` and other components to align with the new theme management system, ensuring a cohesive look and feel across the application.
2025-12-26 22:32:35 +08:00
AdingApkgg
c2fdc58f21 Update package dependencies and enhance component styles for consistency
- Added `vue-virtual-scroller` dependency to package.json for improved rendering performance.
- Updated styles across multiple components to implement a consistent translucent effect, enhancing visual coherence and performance.
- Adjusted background colors, borders, and shadows to align with the new design approach, ensuring a modern and clean aesthetic.
2025-12-26 22:20:56 +08:00
AdingApkgg
97bffb78cc Refactor components to replace liquid glass effects with translucent styles
- Removed liquid glass SVG filters and related styles from index.html and various components, including CommentsModal.vue, FloatingButtons.vue, and SearchHeader.vue.
- Updated styles across multiple components to implement a consistent translucent effect, enhancing visual coherence and performance.
- Adjusted background colors, borders, and shadows to align with the new design approach, ensuring a modern and clean aesthetic.
2025-12-26 21:58:28 +08:00
AdingApkgg
8ec22ec86b Refactor styles to implement translucent effects across components
- Updated SettingsModal.vue and VndbPanel.vue to replace the liquid glass effect with a translucent background style for improved performance and visual consistency.
- Modified glassmorphism.css to optimize styles, removing unnecessary backdrop-filter properties and enhancing color and shadow effects for various UI elements.
- Adjusted hover and focus states for buttons and inputs to align with the new translucent design, ensuring a cohesive user experience.
2025-12-26 21:50:31 +08:00
AdingApkgg
62c0abd4ac Refactor modals to use consistent structure and remove window management features
- Updated CommentsModal.vue, SettingsModal.vue, and VndbPanel.vue to change the comment, settings, and VNDB panels from floating windows to modal dialogs.
- Removed the WindowResizeHandles component and related window management logic to simplify the modal implementation.
- Enhanced the styling and structure of modals for improved consistency across the application.
2025-12-26 21:47:36 +08:00
AdingApkgg
56d4178da8 Implement parallel VNDB data fetching and improve scrolling behavior in SearchHeader.vue
- Added functionality to fetch VNDB data concurrently when in game search mode, ensuring data consistency during rapid search term changes.
- Introduced a flag to manage scrolling behavior, allowing for smoother user experience by scrolling to results only after a minimum number of platform results are available.
- Enhanced error handling for VNDB requests to prevent disruption of the main search process.
2025-12-26 21:29:32 +08:00
AdingApkgg
1e192cef3c Enhance service worker caching strategy and update fetchVndbQuotes filter structure
- Updated service worker to improve caching of static resources, including additional file types and core resources for faster loading.
- Refactored fetchVndbQuotes to modify filter structure for better clarity and functionality.
2025-12-26 21:21:19 +08:00
AdingApkgg
a3bed57fbb Fix filter structure in fetchVndbQuotes and enhance screenshot validation in VndbPanel.vue
- Updated the filter format in fetchVndbQuotes to directly use vnId for improved clarity.
- Added a check in VndbPanel.vue to ensure the current game ID matches before processing screenshots, preventing unnecessary updates.
2025-12-26 21:17:01 +08:00
AdingApkgg
fef9629b8f Enhance translation handling and state management in VndbPanel.vue
- Introduced a mechanism to track the current game ID to prevent data inconsistencies during game switches.
- Refactored translation functions to include silent mode for background translations without audio feedback.
- Improved logic for loading character and quote translations, ensuring they are only processed if the game ID remains unchanged.
- Enhanced screenshot loading checks to ensure images are fully loaded before updating the UI state.
2025-12-26 20:25:07 +08:00
AdingApkgg
6c72391768 Refactor VndbPanel.vue to streamline image loading and translation handling
- Removed lazy loading attribute from images for improved performance.
- Simplified the logic for loading characters and quotes, integrating automatic translation upon loading.
- Cleaned up unused imports and optimized the code structure for better maintainability.
2025-12-26 20:17:06 +08:00
AdingApkgg
228390194e Refactor image loading and placeholder logic in VndbPanel.vue
- Updated the structure for image loading to improve clarity and maintainability.
- Introduced a template for conditional rendering of images and skeleton loading.
- Enhanced the placeholder display for characters without images for better user experience.
2025-12-26 19:12:01 +08:00
Asuna
eb1950fa4c Merge pull request #43 from Feiyuwan09/patch-2
Update friends.json
2025-12-26 19:09:52 +08:00
AdingApkgg
80ea9774d9 Remove voice actor section from VndbPanel.vue and refactor related logic
- Eliminated the voice actor display section to streamline the component.
- Updated image loading logic to focus on screenshot handling within the current panel.
- Adjusted the layout and state management for improved clarity and performance.
2025-12-26 18:56:28 +08:00
Feiyuwan09
414f374aa4 Update friends.json 2025-12-26 15:40:48 +08:00