diff --git a/deploy.bat b/deploy.bat new file mode 100644 index 0000000..4cdded7 --- /dev/null +++ b/deploy.bat @@ -0,0 +1,9 @@ +@echo off + +call php d:\www\von\sftp\sftpsync2.php --host nutrio.tpsoft.org --user igor ^ + --delete-dir /storage/tpsoft.org/nutrio/public ^ + --sync d:/www/Nutrio/dist /storage/tpsoft.org/nutrio ^ + --skip .git ^ + --print-relative + +echo ✔️ Done. \ No newline at end of file diff --git a/doc/prompt.txt b/doc/prompt.txt index 025a028..908c680 100644 --- a/doc/prompt.txt +++ b/doc/prompt.txt @@ -163,3 +163,76 @@ Požiadavky na build.bat: - na konci vypíš, že DocumentRoot má byť nastavený na dist/public a frontend je v dist/public Dodaj kompletný obsah súboru build.bat. + +----- 2026-02-15 17:05:23 ----------------------------------------------------- +Úloha: +V projekte vytvor plne funkčnú konfiguráciu PWA. + +1️⃣ Manifest +Vytvor súbor: frontend/public/manifest.json +Obsah musí: +- byť validný JSON +obsahovať: +- name +- short_name +- start_url +- display = "standalone" +- background_color +- theme_color +- icons pole +Použi tieto hodnoty: +{ + "name": "Nutrio", + "short_name": "Nutrio", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#22c55e" +} +2️⃣ Ikony +Zdrojový obrázok: +frontend/public/Nutrio.600.png +Z neho vytvor PNG ikony do adresára: +frontend/public/icons/ +Vygeneruj tieto veľkosti: +16x16 +32x32 +48x48 +180x180 (apple touch icon) +192x192 (PWA required) +512x512 (PWA required) +Požiadavky: +zachovať pomer strán +zachovať priehľadnosť +nepoužívať žiadne orezávanie +výstupné názvy: +icon-16.png +icon-32.png +icon-48.png +icon-180.png +icon-192.png +icon-512.png +3️⃣ Manifest icons sekcia +Pole icons musí obsahovať iba: +[ + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + "src": "/icons/icon-512.png", + "sizes": "512x512", + } +] +4️⃣ Úprava index.html +Do frontend/index.html pridaj do : + + + + + +5️⃣ Výstup +nevysvetľuj +nevypisuj komentáre +vytvor alebo uprav iba potrebné súbory +ak adresár icons neexistuje, vytvor ho \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index cc7a837..26fa864 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,11 @@ - + + + + + Nutrio diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico index 2708139..4fa2af3 100644 Binary files a/frontend/public/favicon.ico and b/frontend/public/favicon.ico differ diff --git a/frontend/public/icons/icon-16.png b/frontend/public/icons/icon-16.png new file mode 100644 index 0000000..dc2abf2 Binary files /dev/null and b/frontend/public/icons/icon-16.png differ diff --git a/frontend/public/icons/icon-180.png b/frontend/public/icons/icon-180.png new file mode 100644 index 0000000..2dc3de2 Binary files /dev/null and b/frontend/public/icons/icon-180.png differ diff --git a/frontend/public/icons/icon-192.png b/frontend/public/icons/icon-192.png new file mode 100644 index 0000000..78c3f38 Binary files /dev/null and b/frontend/public/icons/icon-192.png differ diff --git a/frontend/public/icons/icon-32.png b/frontend/public/icons/icon-32.png new file mode 100644 index 0000000..36ee266 Binary files /dev/null and b/frontend/public/icons/icon-32.png differ diff --git a/frontend/public/icons/icon-48.png b/frontend/public/icons/icon-48.png new file mode 100644 index 0000000..e3deae7 Binary files /dev/null and b/frontend/public/icons/icon-48.png differ diff --git a/frontend/public/icons/icon-512.png b/frontend/public/icons/icon-512.png new file mode 100644 index 0000000..33ed105 Binary files /dev/null and b/frontend/public/icons/icon-512.png differ diff --git a/frontend/public/manifest.json b/frontend/public/manifest.json new file mode 100644 index 0000000..bead112 --- /dev/null +++ b/frontend/public/manifest.json @@ -0,0 +1,20 @@ +{ + "name": "Nutrio", + "short_name": "Nutrio", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#22c55e", + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icons/icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +}