Repository navigation
GUI v2: le tessere usano gli asset di resources/gui - #21
Merged
Merged
Conversation
Anteprime degli stili, generi, categorie di Modifica, controlli (luoghi, meteo, stagioni, costumi, animali, espressioni), locandine delle ricette, modi, copertine LoRA, mascotte e sfondi. Gli asset passano da Vite (import.meta.glob ?url) e finiscono in app.asar; senza file la tessera resta con l'icona. Test: test/asset.mjs (in npm test) e test/asset-ui.mjs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cosa
Il renderer ora usa i 111 WebP di
resources/gui(prima nessun riferimento insrc/).ride→facce/ridere), locandine delle 6 ricette, 4 modi della strip, copertinelora/qwen|kleinper i LoRA senza anteprima.hero-pianeta+ mascotte «fluttua» in Crea, mascotte nella tela vuota di Modifica, «saluta» +setup-pianetanel setup, «cartello» nella schermata d'errore,aurorain Opzioni,nebulosa-caldanella galleria vuota.src/renderer/src/anteprime.ts(solo chiavi, testabile in Node); gli URL insrc/renderer/src/asset.ts.import.meta.glob(..., { query: '?url' })), nienteextraResourcesné protocollo. Gli asset finiscono inout/renderer/assets→app.asar.Verifiche (locali)
npm run typecheck,npm test(con il nuovotest/asset.mjs: ogni tessera punta a un file esistente, WebP validi, tutti nel manifest, nessun asset orfano,url()del CSS validi),npm run build.test/asset-ui.mjs(Chromium +test/finto.js): immagini caricate su tutte le tessere (generi 12, stili 28 in Crea e in Modifica, controlli 40, categorie 10, ricette 6, modi 4) e ripiego confoto.webpbloccato. Regressioni: studio-layout, gui-v2-flussi, gui, interfaccia, box, ricette, lora-ssr, uncensored-ssr, pila-lora, ricette-v2, controlli.electron-builder --win --dir:app.asarcontiene 105.webp(gli altri 6, sotto 4 kB, sono inline come data URI; CSP già permettedata:).file://.Nota:
asset.tsmetteimport.meta.globin un try/catch perché i test SSR compilano i componenti con esbuild fuori da Vite.