- Cleaned up formatting in flags.json for better readability by removing unnecessary newlines.
- Added new logo entry for "Shkafnik" in logos.json with associated properties and color sets.
- Created a new SVG file for "Shkafnik" logo with detailed path definitions.
- Ensured proper formatting in existing SVG files by adding missing newlines at the end of files.
This commit introduces a new script, cleanup_worldmap.py, which provides a utility for cleaning and normalizing the SVG file worldmap.svg. The script performs various transformations including:
- Normalizing path tags and attributes
- Adding data-iso attributes based on a provided JSON mapping
- Pretty-printing the SVG output
- Creating a backup before overwriting the original file when using the --in-place option
The script is designed for ease of use with command-line arguments and includes error handling for XML validation.
- Updated CardFull to ensure ISO codes are trimmed and uppercased before passing to CountryMap.
- Removed unused countryNames prop from CountryMap and adjusted highlighting logic to use data-iso attributes for country identification.
- Enhanced GeographyQuiz to prioritize ISO code checks and normalize values for consistency.
- Cleaned up code by removing legacy attribute handling and ensuring robust attribute management during country highlighting.
- Updated Header component to recognize new quiz route for geography.
- Improved InlineSvg component to ensure proper SVG scaling and color handling.
- Refactored GeographyQuiz component to streamline game logic, including session management, question generation, and scoring.
- Added achievements tracking and settings management for user preferences.
- Enhanced UI elements for better user experience, including loading states and responsive design adjustments.
- Implemented auto-advance timer for quiz questions and improved state restoration on page reload.
- Added star-shine.svg, star.svg, stars-1.svg, stars-line.svg, stars-minimalistic.svg, stars.svg, streets-map-point.svg, and ticker-star.svg to the public/icons directory.
- Each SVG file contains unique designs for various star and map point icons, enhancing the icon library for the project.
- Introduced a new section to display country information for logos tagged with 'Country'.
- Displays the ISO code and includes an inline SVG world map highlighting the specified country.
- Added styles for the new section to ensure proper layout and visual appeal.
- Created a new WelcomeStats component to display user statistics and session results.
- Integrated session management in FlagQuiz, allowing users to track their performance across multiple sessions.
- Updated game state handling to include session completion and results display.
- Enhanced user experience with improved navigation and session reset functionality.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.