Commit Graph

162 Commits

Author SHA1 Message Date
sHa
90719f2e16 Refactor JSON data structure and add new logo for Shkafnik
- 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.
2025-12-09 23:12:34 +02:00
sHa
4ee8757577 Add color and target definitions for Nikamebel brand in logos.json; update SVG file to new design
Some checks failed
Deploy to GitHub Pages / build-and-deploy (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-12-07 15:51:05 +02:00
sHa
1cd6764078 Add CLAUDE.md guidance and add targets/sets for Dalnoboy Service in logos.json
Some checks failed
Deploy to GitHub Pages / build-and-deploy (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-10-30 14:43:21 +02:00
sHa
fc172cfa36 Add SVG cleanup utility for worldmap.svg
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.
2025-09-01 02:07:34 +03:00
sHa
fe07f166cf Add ISO 3166-1 country codes JSON file and refactor Game.svelte to remove upcoming games section 2025-08-16 01:35:03 +03:00
sHa
fba47c142c Refactor CountryMap and CardFull components for ISO code handling
- 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.
2025-08-16 00:01:01 +03:00
sHa
3ee3ffeb17 Implement code changes to enhance functionality and improve performance 2025-08-15 23:09:19 +03:00
sHa
c1bfa83963 Enhance Geography Quiz functionality and UI
- 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.
2025-08-15 15:03:40 +03:00
sHa
ecc09b6b9a Add Geography Quiz and related components with quiz info and routing 2025-08-14 13:42:06 +03:00
sHa
88f786496c Add new SVG icons for stars and map points
- 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.
2025-08-14 10:51:50 +03:00
sHa
0dfb29d6f8 Add country flag section to CardFull component
- 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.
2025-08-14 00:07:11 +03:00
sHa
e64075b5e9 Add clock-circle SVG icon for improved UI elements 2025-08-12 09:26:40 +03:00
sHa
348617688c Refactor FlagQuiz component: standardize string quotes, improve session state management, and integrate ActionButtons component for better UI control 2025-08-11 21:47:11 +03:00
sHa
32846dfc6f Add WelcomeStats component and integrate session management in FlagQuiz
- 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.
2025-08-11 21:09:41 +03:00
sHa
bf615ff94f Refactor FlagQuiz to integrate QuizSettings component and implement auto-advance feature with timer 2025-08-11 19:05:59 +03:00
sHa
118f7e9399 Add tracking for correct and incorrect answers in FlagQuiz and implement adaptive learning settings 2025-08-11 18:06:43 +03:00
sHa
317d953a78 Enhance achievements: Add continent knowledge achievements and track progress for correct answers in FlagQuiz 2025-08-11 17:00:22 +03:00
sHa
064401dc58 Update achievement icon: Replace 'crown-minimalistic.svg' with 'crown-star.svg' for improved design 2025-08-11 16:25:42 +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
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
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
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
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
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