mirror of
https://github.com/shadoll/sLogos.git
synced 2026-08-28 11:33:29 +00:00
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.
This commit is contained in:
+3
-3
@@ -4,21 +4,21 @@ export const collections = [
|
||||
name: 'logos',
|
||||
label: 'Logos',
|
||||
baseDir: 'images/logos',
|
||||
genDir: 'images/logos_variants',
|
||||
varDir: 'images/logos_variants',
|
||||
dataFile: 'data/logos.json'
|
||||
},
|
||||
{
|
||||
name: 'flags',
|
||||
label: 'Flags',
|
||||
baseDir: 'images/flags',
|
||||
genDir: 'images/flags_variants',
|
||||
varDir: 'images/flags_variants',
|
||||
dataFile: 'data/flags.json'
|
||||
},
|
||||
{
|
||||
name: 'emblems',
|
||||
label: 'Emblems',
|
||||
baseDir: 'images/emblems',
|
||||
genDir: 'images/emblems_variants',
|
||||
varDir: 'images/emblems_variants',
|
||||
dataFile: 'data/emblems.json'
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user