Commit Graph

237 Commits

Author SHA1 Message Date
sHa
21e400e989 Enhance accessibility: Add ARIA roles and keyboard navigation to reset confirmation dialog in FlagQuiz page; remove unused CSS class from AchievementButton component 2025-08-11 16:15:58 +03:00
sHa
292c7e88b6 Refactor components to use InlineSvg for icons, enhance Header layout with grid, and implement achievement system in FlagQuiz page
- Replaced inline SVGs with InlineSvg component in Filter, Header, and ThemeSwitcher components for better maintainability.
- Improved Header layout using CSS Grid for better alignment and spacing of elements.
- Added achievement tracking and display functionality in FlagQuiz, including reset confirmation dialog and achievement count updates.
- Enhanced user feedback with animated result icons in FlagQuiz for correct and wrong answers.
- Introduced country info tooltips in FlagQuiz for additional context on answers.
2025-08-11 16:14:18 +03:00
sHa
f9182a6867 Add game feature: Implement Flag Quiz and Game selection page with theme support 2025-08-11 03:04:50 +03:00
sHa
39cbaa32e1 Update rollup-plugin-terser to version 7.0.2 and add new logos for Ntfy and Vite 2025-08-11 00:20:06 +03:00
sHa
61f8e30e4e Refactor App.svelte: Update Router import for consistency and clarity 2025-07-02 10:59:25 +03:00
sHa
0dcc8f0eba Refactor App.svelte: Reorganize imports for better clarity and structure 2025-07-02 10:49:37 +03:00
sHa
4ea8da4a34 Refactor App.svelte: Remove unused imports and variables for cleaner code 2025-07-02 10:42:22 +03:00
sHa
ef4f1c31c6 Refactor Makefile for improved container runtime detection and simplify commands 2025-07-02 10:20:57 +03:00
sHa
745cfb602c Add new SVG logo for Vite 2025-07-01 19:11:10 +03:00
sHa
fff1e0b395 Refactor SVG handling for responsive scaling and improve styling attributes 2025-06-20 00:02:36 +03:00
sHa
cb373ffef2 Refactor SVG gradients and IDs for consistency and clarity
- Updated gradient IDs in google_chrome_icon.svg to be more descriptive.
- Refactored gradient IDs in grafana.svg for better identification.
- Changed gradient IDs in homebridge.svg to follow a consistent naming convention.
- Modified gradient IDs in jellyfin.svg for clarity and consistency.
- Updated gradient IDs in shadoll.svg to avoid conflicts.
- Renamed ID in tesla.svg for better identification.
- Enhanced svg-cleanup.js to fix single-letter ID conflicts by prefixing them with the filename, improving SVG file integrity.
2025-06-19 17:21:55 +03:00
sHa
374ece5142 Refactor SVG processing scripts and add new functionality
- Updated `svg-cleanup.js` to improve SVG file processing and validation.
- Refactored `update-data.js` to streamline the data update process and integrate new scripts for generating image variants and syncing data files.
- Introduced `generate-variants.js` to handle the conversion of SVG files to PNG and JPG formats.
- Created `sync-data.js` to synchronize logo data with the filesystem, ensuring accurate representation of available images.
- Enhanced error handling and logging throughout the scripts for better debugging and user feedback.
- Added support for processing all collections or a specific collection based on command-line arguments or environment variables.
2025-06-19 17:09:45 +03:00
sHa
1db0f1cbe9 Clean up SVG files and update logos
- Removed unnecessary XML and DOCTYPE declarations from SVG files.
- Eliminated comments within SVG files for cleaner output.
- Trimmed leading and trailing whitespace from SVG content.
- Ensured all SVG files end with a newline character.
- Updated multiple logo SVG files including WireGuard, Wise, WOG, Yahoo, and others to conform to the new standards.
- Enhanced the update-data.js script to automate the cleanup process for SVG files.
2025-06-19 16:54:55 +03:00
sHa
e86600b610 Update SVG logos to use percentage dimensions and add viewBox where missing
- Modified SVG files for logos (webtorrent, wifi, wise-icon, zoom-icon, zoom) to set width and height to 100% for better responsiveness.
- Added viewBox attribute to SVGs that lacked it, using existing width and height values when available.
- Implemented a validation and fixing function in update-data.js to automate the process of ensuring SVGs have the correct attributes.
2025-06-19 16:46:12 +03:00
sHa
8c8078dcd9 Add US states flags 2025-06-19 16:13:14 +03:00
sHa
9d8205f321 Add new SVG logos for mini, Rolls Royce flat, and Rolls Royce 2025-06-19 00:50:06 +03:00
sHa
e4e571fd17 Add SVG logos for Subaru and Volvo
- Added Subaru logo SVG file to the project.
- Added Volvo logo SVG file to the project.
2025-06-18 22:07:01 +03:00
sHa
26d6a65499 Add Lesser Coat of Arms of Ukraine image and Belarus flag (1918, 1991–1995) SVG 2025-06-18 19:45:35 +03:00
sHa
44b73116b3 feat: add Armenian flag SVG and update existing flag SVGs
- Added a new SVG file for the Armenian flag (am-1952–1990.svg).
- Updated the existing Armenian flag SVG (am.svg) to use a new structure and color scheme.
- Refactored logo loading logic in App.svelte to reset filters and state when loading a new collection.
- Simplified PNG and JPG download functions in Actions.svelte to directly use collection variable directory.
- Enhanced SVG source fetching in CardFull.svelte to utilize a helper function for image URL generation.
2025-06-18 18:41:00 +03:00
sHa
2463661748 Refactor code structure for improved readability and maintainability 2025-06-18 17:02:46 +03:00
sHa
83dd8245a8 fix: Update collection label retrieval to support titles and improve SVG error handling 2025-06-18 16:49:05 +03:00
sHa
5baa4bfab4 Add titles to collections and update image URL resolution in components
- Added 'title' property to collections for 'Logos', 'Flags', and 'Emblems'.
- Updated image URL generation in CardMiddle, CardSmall, and CardTiny components to dynamically resolve the current collection based on window.appData.
2025-06-18 14:55:13 +03:00
sHa
e1fb0f60f3 Add Emblem of Ethiopia image to emblems_variants directory 2025-06-18 14:17:10 +03:00
sHa
77f18007a6 fix: Correct variable name for image variable directory in update-data.js 2025-06-18 13:55:53 +03:00
sHa
60d26c5388 feat: Enhance search functionality to include logo metadata 2025-06-18 13:54:23 +03:00
sHa
4a32deaeb5 Refactor PWA caching and image generation scripts
- Updated `generate-pwa-cache-list.js` to include images directory and remove duplicate file entries.
- Refactored `generate-svg-variants.js` to utilize collections from a centralized source and renamed generation directory variable.
- Modified `update-data.js` to align with new directory structure for images and variants, ensuring proper paths are used.
- Adjusted `collections.js` to standardize directory naming for variants.
- Enhanced Svelte components (`Actions.svelte`, `CardFull.svelte`, `CardMiddle.svelte`, `CardSmall.svelte`, `CardTiny.svelte`) to utilize context for collection management, simplifying image URL generation.
2025-06-18 13:18:15 +03:00
sHa
d7feb6db19 Refactor logo path handling in update-data.js
- Updated logic to create a Set of logo filenames instead of paths.
- Stripped directory path from logo.path to ensure only filenames are compared.
- Adjusted filtering for new logos to check against filenames directly.
- Ensured consistency in handling logo paths across the scanLogos and main functions.
- Minor formatting adjustments in logos.json to ensure proper file structure.
2025-06-18 12:36:55 +03:00
sHa
6e8168daac Refactor code structure for improved readability and maintainability 2025-06-18 12:31:26 +03:00
sHa
06ecfbf377 feat: Update asset paths and add emblems collection for PWA caching 2025-06-18 12:27:34 +03:00
sHa
708334bcf4 Refactor logo image handling across components
- Introduced utility functions to determine the base directory and image URL for logos based on their collection.
- Updated `Actions.svelte`, `CardFull.svelte`, `CardMiddle.svelte`, `CardSmall.svelte`, and `CardTiny.svelte` to use the new utility functions for generating image paths.
- Ensured that the correct image format (SVG, PNG, JPG) is used based on the logo's properties and active color sets.
2025-06-18 12:27:27 +03:00
sHa
a7762803b8 Implement new feature for user authentication and improve error handling 2025-06-18 12:26:19 +03:00
sHa
5c4bbe05b3 fix: Correct icon file names in GitHub Pages deployment workflow 2025-06-18 10:31:44 +03:00
sHa
a93922097a feat: Update GitHub Pages deployment to include additional PWA assets 2025-06-18 10:28:40 +03:00
sHa
5bf292f4c6 Refactor code structure for improved readability and maintainability 2025-06-18 04:22:55 +03:00
sHa
acfe315e20 Add UA cities flags 2025-06-18 04:15:32 +03:00
sHa
d87e79f44d chore: update code structure and remove redundant changes 2025-06-18 00:30:47 +03:00
sHa
ca97046961 feat: Enhance collection management with dropdown in Header and update related components 2025-06-17 17:50:47 +03:00
sHa
91918c5b0f refactor: Remove unused PWA cache generation script 2025-06-17 16:48:50 +03:00
sHa
b81271c1cc feat: Implement collection support for logos and flags in the gallery 2025-06-17 16:21:31 +03:00
sHa
ed7c0e1b96 fix: Update script names in .gitignore and DEVELOPMENT.md for favicon generation and data update 2025-06-17 16:15:46 +03:00
sHa
8b2adef1af Add favicon and logo generation scripts
- Implemented `generate-favicons.js` to create various favicon formats from a single SVG file.
- Created `update-data.js` to scan logo directories, generate PNG and JPG images from SVGs, and update the logos JSON data.
- Added a `.gitignore` file in the `flags_gen` directory to exclude all files except the `.gitignore` itself.
- Updated `logos.json` to ensure proper formatting.
2025-06-17 16:15:15 +03:00
sHa
cff94aacb8 Add SVG flags directory with all countries flags 2025-06-17 15:49:30 +03:00
sHa
56a093d301 feat: Add FastAPI logo SVG and update variants in logos.json 2025-06-16 01:18:44 +03:00
sHa
b0014295c8 refactor: Remove padding from logo image container in CardSmall component 2025-06-16 00:56:34 +03:00
sHa
211775b1cb feat: Add variants to logos and update OpenVPN SVG structure 2025-06-12 21:11:22 +03:00
sHa
d88c5b802d Enhance logo search and display functionality
- Updated logo filtering to include title in search criteria across multiple components.
- Modified CardFull, CardMiddle, CardSmall, and CardTiny components to display title or name as appropriate.
- Added support for displaying logo variants in CardFull component.
- Improved logo retrieval logic in Preview page to account for title matching.
2025-06-12 18:23:42 +03:00
sHa
de3c5dc52b refactor: Remove unused import of push from svelte-spa-router in Home component 2025-06-12 17:35:12 +03:00
sHa
1a006e75b8 feat: Enhance filtering capabilities by adding support for variants in Filter, Header, and Home components 2025-06-12 17:34:43 +03:00
sHa
b4bd726dad feat: Add Filter, ListViewSwitcher, SearchBar, and ThemeSwitcher components
- Implemented Filter component for managing tags and brands with localStorage and URL parameter updates.
- Created ListViewSwitcher component to toggle between compact, grid, and list views.
- Developed SearchBar component with global hotkey support for quick access and URL search parameter management.
- Added ThemeSwitcher component to allow users to switch between system, light, and dark themes.
2025-06-12 16:14:17 +03:00
sHa
1b51146c29 refactor: Enhance logo loading logic and streamline theme setting in Preview component 2025-06-12 11:18:39 +03:00