From 4e6291fa5d1ed72961b77312a35ca339dd698707 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Mon, 19 Jun 2023 20:38:45 +0200 Subject: [PATCH] first working prototype --- +page.server.ts | 65 ------- src/+page.svelte | 61 ------ .../lib/assets/img}/aelplermagronen.webp | Bin .../lib/assets/img}/aglio_e_olio.webp | Bin .../lib/assets/img}/ajitama.webp | Bin .../lib/assets/img}/al_ragu.webp | Bin .../lib/assets/img}/anisbrot.webp | Bin .../lib/assets/img}/annaomelette.webp | Bin .../lib/assets/img}/apfelkompott.webp | Bin .../lib/assets/img}/apfelstrudel.webp | Bin .../lib/assets/img}/apfelwaehe.webp | Bin .../lib/assets/img}/aprikosenwaehe.webp | Bin .../lib/assets/img}/baerlauchravioli.webp | Bin .../lib/assets/img}/basler_brunsli.webp | Bin .../images => src/lib/assets/img}/brezel.webp | Bin .../lib/assets/img}/broeseltopfen.webp | Bin .../lib/assets/img}/brokkolisuppe.webp | Bin .../lib/assets/img}/brotgewuerz.webp | Bin .../lib/assets/img}/buchtel_vanillesauce.webp | Bin .../lib/assets/img}/buendner_nusstorte.webp | Bin .../lib/assets/img}/burger_buns.webp | Bin .../lib/assets/img}/carbonara.webp | Bin .../lib/assets/img}/chaeschueechli.webp | Bin .../images => src/lib/assets/img}/checca.webp | Bin .../assets/img}/daenische_kardamomkekse.webp | Bin .../lib/assets/img}/dinette.webp | Bin .../assets/img}/eierschwammerlgoulash.webp | Bin .../lib/assets/img}/eingelegte_zwiebel.webp | Bin .../lib/assets/img}/erdaepfelgoulasch.webp | Bin .../lib/assets/img}/fastenwaehe.webp | Bin .../lib/assets/img}/firecracker.webp | Bin .../lib/assets/img}/flammkuchen.webp | Bin .../lib/assets/img}/frittatensuppe.webp | Bin .../lib/assets/img}/germknoedel.webp | Bin .../lib/assets/img}/gnocchi.webp | Bin .../lib/assets/img}/gratin_dauphinois.webp | Bin .../lib/assets/img}/gurkensalat.webp | Bin .../lib/assets/img}/hashbrown.webp | Bin .../assets/img}/hoernli_mit_gehacktem.webp | Bin .../lib/assets/img}/hollondaise.webp | Bin .../lib/assets/img}/hollundersirup.webp | Bin .../lib/assets/img}/huehnerbouillon.webp | Bin .../images => src/lib/assets/img}/hummus.webp | Bin .../lib/assets/img}/kaesspaetzle.webp | Bin .../lib/assets/img}/kaiserschmarrn.webp | Bin .../lib/assets/img}/karottensalat.webp | Bin .../lib/assets/img}/kartoffelsalat.webp | Bin .../lib/assets/img}/kasnudeln.webp | Bin .../lib/assets/img}/kirschwaehe.webp | Bin .../lib/assets/img}/kletzennudel.webp | Bin .../lib/assets/img}/knoblauchbrot.webp | Bin .../lib/assets/img}/knochensuppe.webp | Bin .../lib/assets/img}/kokosbusserl.webp | Bin .../lib/assets/img}/kottbullar.webp | Bin .../lib/assets/img}/kraftbruehe.webp | Bin .../lib/assets/img}/kuerbiscremesuppe.webp | Bin .../lib/assets/img}/kuerbisnudeln.webp | Bin .../lib/assets/img}/lauch_dinette.webp | Bin .../lib/assets/img}/lauchquiche.webp | Bin .../lib/assets/img}/linsen_curry.webp | Bin .../lib/assets/img}/load_html.js | 0 .../lib/assets/img}/marillenknoedel.webp | Bin .../lib/assets/img}/maronisuppe.webp | Bin .../lib/assets/img}/masalachai.webp | Bin .../lib/assets/img}/mayonnaise.webp | Bin .../lib/assets/img}/miso_steak_aubergine.webp | Bin .../lib/assets/img}/mousse_au_chocolat.webp | Bin .../lib/assets/img}/ofen_pommes_frites.webp | Bin .../lib/assets/img}/orecchiette.webp | Bin .../assets/img}/orecchiette_al_pomodoro.webp | Bin .../lib/assets/img}/osterkuchen.webp | Bin .../img}/osterkuchen_osterlamm_schablone.svg | 0 .../lib/assets/img}/osterlamm.webp | Bin .../lib/assets/img}/palatschinken.webp | Bin .../lib/assets/img}/petersilkartoffeln.webp | Bin .../lib/assets/img}/pfeffermaenner.webp | Bin {lib/images => src/lib/assets/img}/pilze.webp | Bin .../lib/assets/img}/pilzrahmsauce.webp | Bin .../lib/assets/img}/pizokel.webp | Bin .../lib/assets/img}/pizza_chorizo.webp | Bin .../lib/assets/img}/pizza_veggie.webp | Bin .../lib/assets/img}/plunderteig.webp | Bin .../lib/assets/img}/poulet_katsu.webp | Bin .../lib/assets/img}/pressgurken.webp | Bin .../lib/assets/img}/quiche_lorraine.webp | Bin .../assets/img}/randen_avocado_roesti.webp | Bin .../lib/assets/img}/randensalat.webp | Bin .../lib/assets/img}/ratatouille.webp | Bin .../lib/assets/img}/reindling.webp | Bin .../lib/assets/img}/rhabarberkonfi.webp | Bin .../lib/assets/img}/rindsgoulasch.webp | Bin .../images => src/lib/assets/img}/roesti.webp | Bin .../lib/assets/img}/rote_linsen_hummus.webp | Bin .../lib/assets/img}/rotkraut.webp | Bin .../lib/assets/img}/ruchbrot.webp | Bin .../lib/assets/img}/rustikal.webp | Bin .../lib/assets/img}/sachertorte.webp | Bin .../lib/assets/img}/salbei_spaghetti.webp | Bin .../lib/assets/img}/sauerkrautauflauf.webp | Bin .../lib/assets/img}/sauerteigbrot.webp | Bin .../lib/assets/img}/schoggi.webp | Bin .../lib/assets/img}/schupfnudeln.webp | Bin .../schupfnudeln_mit_kraut_und_speck.webp | Bin .../lib/assets/img}/semmelknoedel.webp | Bin .../lib/assets/img}/semmeln.webp | Bin .../lib/assets/img}/shokupan.webp | Bin .../lib/assets/img}/siebbrot.webp | Bin .../lib/assets/img}/spinat_spaghetti.webp | Bin .../lib/assets/img}/spitzbuben.webp | Bin .../lib/assets/img}/strudelteig.webp | Bin .../lib/assets/img}/tiramisu.webp | Bin .../lib/assets/img}/tirggel.webp | Bin .../lib/assets/img}/tomatensuppe.webp | Bin .../assets/img}/uromas_vanillekipferl.webp | Bin .../lib/assets/img}/weihnachtsgans.webp | Bin .../lib/assets/img}/wienerschnitzel.webp | Bin .../lib/assets/img}/wintergemuesestrudel.webp | Bin .../lib/assets/img}/zimtsterne.webp | Bin .../lib/assets/img}/zitrone_kaeseravioli.webp | Bin {lib/images => src/lib/assets/img}/zopf.webp | Bin {lib/images => src/lib/assets/img}/zopf2.webp | Bin .../lib/assets/img}/zucchinicremesuppe.webp | Bin .../lib/assets/img}/zwiebelsuppe.webp | Bin src/lib/assets/load_html.js | 12 -- src/lib/components/.jukit/.jukit_info.json | 1 + src/lib/components/Card.svelte | 34 ++++ src/lib/components/MediaScroller.svelte | 19 ++ src/lib/components/Recipes.svelte | 13 ++ src/lib/components/Search.svelte | 105 +++++++++++ src/lib/components/SeasonLayout.svelte | 42 +++++ src/lib/components/TagBall.svelte | 22 +++ src/lib/components/TagCloud.svelte | 16 ++ .../rezepte => lib/components}/card.css | 42 ++++- src/lib/components/nordtheme.css | 25 +++ src/routes/api/add/+server.ts | 23 +++ src/routes/api/items/all_brief/+server.ts | 8 +- src/routes/api/items/category/+server.ts | 13 ++ .../api/items/category/[category]/+server.ts | 13 ++ src/routes/api/items/in_season/+server.ts | 12 -- .../api/items/in_season/[month]/+server.ts | 11 ++ src/routes/api/items/tag/+server.ts | 13 ++ src/routes/api/seed/+server.ts | 175 +++++++++++++++++- src/routes/rezepte/+layout.svelte | 66 +++++++ src/routes/rezepte/+page.svelte | 22 ++- .../rezepte/{+page.server.ts => +page.ts} | 3 +- src/routes/rezepte/Card.svelte | 29 --- .../[name]/{+page.server.ts => +page.ts} | 0 src/routes/rezepte/add/+page.svelte | 76 ++++++++ src/routes/rezepte/add/+page.ts | 13 ++ .../rezepte/add/.jukit/.jukit_info.json | 1 + src/routes/rezepte/category/+page.svelte | 16 ++ src/routes/rezepte/category/+page.ts | 7 + .../rezepte/category/[category]/+page.svelte | 17 ++ .../rezepte/category/[category]/+page.ts | 10 + src/routes/rezepte/season/+page.svelte | 23 +++ src/routes/rezepte/season/+page.ts | 10 + .../rezepte/season/.jukit/.jukit_info.json | 1 + .../rezepte/season/[month]/+page.svelte | 19 ++ src/routes/rezepte/season/[month]/+page.ts | 12 ++ src/routes/rezepte/tag/+page.server.ts | 9 - src/routes/rezepte/tag/+page.svelte | 30 +-- src/routes/rezepte/tag/+page.ts | 7 + src/routes/rezepte/tag/[tag]/+page.svelte | 29 +-- .../tag/[tag]/{+page.server.ts => +page.ts} | 0 .../images}/aelplermagronen.webp | Bin .../images}/aglio_e_olio.webp | Bin .../lib/assets => static/images}/ajitama.webp | Bin .../lib/assets => static/images}/al_ragu.webp | Bin .../assets => static/images}/anisbrot.webp | Bin .../images}/annaomelette.webp | Bin .../images}/apfelkompott.webp | Bin .../images}/apfelstrudel.webp | Bin .../assets => static/images}/apfelwaehe.webp | Bin .../images}/aprikosenwaehe.webp | Bin .../images}/baerlauchravioli.webp | Bin .../images}/basler_brunsli.webp | Bin {src/lib/assets => static/images}/brezel.webp | Bin .../images}/broeseltopfen.webp | Bin .../images}/brokkolisuppe.webp | Bin .../assets => static/images}/brotgewuerz.webp | Bin .../images}/buchtel_vanillesauce.webp | Bin .../images}/buendner_nusstorte.webp | Bin .../assets => static/images}/burger_buns.webp | Bin .../assets => static/images}/carbonara.webp | Bin .../images}/chaeschueechli.webp | Bin {src/lib/assets => static/images}/checca.webp | Bin .../images}/daenische_kardamomkekse.webp | Bin .../lib/assets => static/images}/dinette.webp | Bin .../images}/eierschwammerlgoulash.webp | Bin .../images}/eingelegte_zwiebel.webp | Bin .../images}/erdaepfelgoulasch.webp | Bin .../assets => static/images}/fastenwaehe.webp | Bin .../assets => static/images}/firecracker.webp | Bin .../assets => static/images}/flammkuchen.webp | Bin .../images}/frittatensuppe.webp | Bin .../assets => static/images}/germknoedel.webp | Bin .../lib/assets => static/images}/gnocchi.webp | Bin .../images}/gratin_dauphinois.webp | Bin .../assets => static/images}/gurkensalat.webp | Bin .../assets => static/images}/hashbrown.webp | Bin .../images}/hoernli_mit_gehacktem.webp | Bin .../assets => static/images}/hollondaise.webp | Bin .../images}/hollundersirup.webp | Bin .../images}/huehnerbouillon.webp | Bin {src/lib/assets => static/images}/hummus.webp | Bin .../images}/kaesspaetzle.webp | Bin .../images}/kaiserschmarrn.webp | Bin .../images}/karottensalat.webp | Bin .../images}/kartoffelsalat.webp | Bin .../assets => static/images}/kasnudeln.webp | Bin .../assets => static/images}/kirschwaehe.webp | Bin .../images}/kletzennudel.webp | Bin .../images}/knoblauchbrot.webp | Bin .../images}/knochensuppe.webp | Bin .../images}/kokosbusserl.webp | Bin .../assets => static/images}/kottbullar.webp | Bin .../assets => static/images}/kraftbruehe.webp | Bin .../images}/kuerbiscremesuppe.webp | Bin .../images}/kuerbisnudeln.webp | Bin .../images}/lauch_dinette.webp | Bin .../assets => static/images}/lauchquiche.webp | Bin .../images}/linsen_curry.webp | Bin .../images}/marillenknoedel.webp | Bin .../assets => static/images}/maronisuppe.webp | Bin .../assets => static/images}/masalachai.webp | Bin .../assets => static/images}/mayonnaise.webp | Bin .../images}/miso_steak_aubergine.webp | Bin .../images}/mousse_au_chocolat.webp | Bin .../images}/ofen_pommes_frites.webp | Bin .../assets => static/images}/orecchiette.webp | Bin .../images}/orecchiette_al_pomodoro.webp | Bin .../assets => static/images}/osterkuchen.webp | Bin .../osterkuchen_osterlamm_schablone.svg | 0 .../assets => static/images}/osterlamm.webp | Bin .../images}/palatschinken.webp | Bin .../images}/petersilkartoffeln.webp | Bin .../images}/pfeffermaenner.webp | Bin {src/lib/assets => static/images}/pilze.webp | Bin .../images}/pilzrahmsauce.webp | Bin .../lib/assets => static/images}/pizokel.webp | Bin .../images}/pizza_chorizo.webp | Bin .../images}/pizza_veggie.webp | Bin .../assets => static/images}/plunderteig.webp | Bin .../images}/poulet_katsu.webp | Bin .../assets => static/images}/pressgurken.webp | Bin .../images}/quiche_lorraine.webp | Bin .../images}/randen_avocado_roesti.webp | Bin .../assets => static/images}/randensalat.webp | Bin .../assets => static/images}/ratatouille.webp | Bin .../assets => static/images}/reindling.webp | Bin .../img => static/images}/rhabarberkonfi.webp | Bin .../images/rharbarberkonfi.webp | Bin .../images}/rindsgoulasch.webp | Bin {src/lib/assets => static/images}/roesti.webp | Bin .../images}/rote_linsen_hummus.webp | Bin .../assets => static/images}/rotkraut.webp | Bin .../assets => static/images}/ruchbrot.webp | Bin .../assets => static/images}/rustikal.webp | Bin .../assets => static/images}/sachertorte.webp | Bin .../images}/salbei_spaghetti.webp | Bin .../images}/sauerkrautauflauf.webp | Bin .../images}/sauerteigbrot.webp | Bin .../lib/assets => static/images}/schoggi.webp | Bin .../images}/schupfnudeln.webp | Bin .../schupfnudeln_mit_kraut_und_speck.webp | Bin .../images}/semmelknoedel.webp | Bin .../lib/assets => static/images}/semmeln.webp | Bin .../assets => static/images}/shokupan.webp | Bin .../assets => static/images}/siebbrot.webp | Bin .../images}/spinat_spaghetti.webp | Bin .../assets => static/images}/spitzbuben.webp | Bin .../assets => static/images}/strudelteig.webp | Bin .../assets => static/images}/tiramisu.webp | Bin .../lib/assets => static/images}/tirggel.webp | Bin .../images}/tomatensuppe.webp | Bin .../images}/uromas_vanillekipferl.webp | Bin .../images}/weihnachtsgans.webp | Bin .../images}/wienerschnitzel.webp | Bin .../images}/wintergemuesestrudel.webp | Bin .../assets => static/images}/zimtsterne.webp | Bin .../images}/zitrone_kaeseravioli.webp | Bin {src/lib/assets => static/images}/zopf.webp | Bin {src/lib/assets => static/images}/zopf2.webp | Bin .../images}/zucchinicremesuppe.webp | Bin .../images}/zwiebelsuppe.webp | Bin svelte.config.js | 4 +- vite.config.ts | 2 +- 287 files changed, 863 insertions(+), 268 deletions(-) delete mode 100644 +page.server.ts delete mode 100644 src/+page.svelte rename {lib/images => src/lib/assets/img}/aelplermagronen.webp (100%) rename {lib/images => src/lib/assets/img}/aglio_e_olio.webp (100%) rename {lib/images => src/lib/assets/img}/ajitama.webp (100%) rename {lib/images => src/lib/assets/img}/al_ragu.webp (100%) rename {lib/images => src/lib/assets/img}/anisbrot.webp (100%) rename {lib/images => src/lib/assets/img}/annaomelette.webp (100%) rename {lib/images => src/lib/assets/img}/apfelkompott.webp (100%) rename {lib/images => src/lib/assets/img}/apfelstrudel.webp (100%) rename {lib/images => src/lib/assets/img}/apfelwaehe.webp (100%) rename {lib/images => src/lib/assets/img}/aprikosenwaehe.webp (100%) rename {lib/images => src/lib/assets/img}/baerlauchravioli.webp (100%) rename {lib/images => src/lib/assets/img}/basler_brunsli.webp (100%) rename {lib/images => src/lib/assets/img}/brezel.webp (100%) rename {lib/images => src/lib/assets/img}/broeseltopfen.webp (100%) rename {lib/images => src/lib/assets/img}/brokkolisuppe.webp (100%) rename {lib/images => src/lib/assets/img}/brotgewuerz.webp (100%) rename {lib/images => src/lib/assets/img}/buchtel_vanillesauce.webp (100%) rename {lib/images => src/lib/assets/img}/buendner_nusstorte.webp (100%) rename {lib/images => src/lib/assets/img}/burger_buns.webp (100%) rename {lib/images => src/lib/assets/img}/carbonara.webp (100%) rename {lib/images => src/lib/assets/img}/chaeschueechli.webp (100%) rename {lib/images => src/lib/assets/img}/checca.webp (100%) rename {lib/images => src/lib/assets/img}/daenische_kardamomkekse.webp (100%) rename {lib/images => src/lib/assets/img}/dinette.webp (100%) rename {lib/images => src/lib/assets/img}/eierschwammerlgoulash.webp (100%) rename {lib/images => src/lib/assets/img}/eingelegte_zwiebel.webp (100%) rename {lib/images => src/lib/assets/img}/erdaepfelgoulasch.webp (100%) rename {lib/images => src/lib/assets/img}/fastenwaehe.webp (100%) rename {lib/images => src/lib/assets/img}/firecracker.webp (100%) rename {lib/images => src/lib/assets/img}/flammkuchen.webp (100%) rename {lib/images => src/lib/assets/img}/frittatensuppe.webp (100%) rename {lib/images => src/lib/assets/img}/germknoedel.webp (100%) rename {lib/images => src/lib/assets/img}/gnocchi.webp (100%) rename {lib/images => src/lib/assets/img}/gratin_dauphinois.webp (100%) rename {lib/images => src/lib/assets/img}/gurkensalat.webp (100%) rename {lib/images => src/lib/assets/img}/hashbrown.webp (100%) rename {lib/images => src/lib/assets/img}/hoernli_mit_gehacktem.webp (100%) rename {lib/images => src/lib/assets/img}/hollondaise.webp (100%) rename {lib/images => src/lib/assets/img}/hollundersirup.webp (100%) rename {lib/images => src/lib/assets/img}/huehnerbouillon.webp (100%) rename {lib/images => src/lib/assets/img}/hummus.webp (100%) rename {lib/images => src/lib/assets/img}/kaesspaetzle.webp (100%) rename {lib/images => src/lib/assets/img}/kaiserschmarrn.webp (100%) rename {lib/images => src/lib/assets/img}/karottensalat.webp (100%) rename {lib/images => src/lib/assets/img}/kartoffelsalat.webp (100%) rename {lib/images => src/lib/assets/img}/kasnudeln.webp (100%) rename {lib/images => src/lib/assets/img}/kirschwaehe.webp (100%) rename {lib/images => src/lib/assets/img}/kletzennudel.webp (100%) rename {lib/images => src/lib/assets/img}/knoblauchbrot.webp (100%) rename {lib/images => src/lib/assets/img}/knochensuppe.webp (100%) rename {lib/images => src/lib/assets/img}/kokosbusserl.webp (100%) rename {lib/images => src/lib/assets/img}/kottbullar.webp (100%) rename {lib/images => src/lib/assets/img}/kraftbruehe.webp (100%) rename {lib/images => src/lib/assets/img}/kuerbiscremesuppe.webp (100%) rename {lib/images => src/lib/assets/img}/kuerbisnudeln.webp (100%) rename {lib/images => src/lib/assets/img}/lauch_dinette.webp (100%) rename {lib/images => src/lib/assets/img}/lauchquiche.webp (100%) rename {lib/images => src/lib/assets/img}/linsen_curry.webp (100%) rename {lib/images => src/lib/assets/img}/load_html.js (100%) rename {lib/images => src/lib/assets/img}/marillenknoedel.webp (100%) rename {lib/images => src/lib/assets/img}/maronisuppe.webp (100%) rename {lib/images => src/lib/assets/img}/masalachai.webp (100%) rename {lib/images => src/lib/assets/img}/mayonnaise.webp (100%) rename {lib/images => src/lib/assets/img}/miso_steak_aubergine.webp (100%) rename {lib/images => src/lib/assets/img}/mousse_au_chocolat.webp (100%) rename {lib/images => src/lib/assets/img}/ofen_pommes_frites.webp (100%) rename {lib/images => src/lib/assets/img}/orecchiette.webp (100%) rename {lib/images => src/lib/assets/img}/orecchiette_al_pomodoro.webp (100%) rename {lib/images => src/lib/assets/img}/osterkuchen.webp (100%) rename {lib/images => src/lib/assets/img}/osterkuchen_osterlamm_schablone.svg (100%) rename {lib/images => src/lib/assets/img}/osterlamm.webp (100%) rename {lib/images => src/lib/assets/img}/palatschinken.webp (100%) rename {lib/images => src/lib/assets/img}/petersilkartoffeln.webp (100%) rename {lib/images => src/lib/assets/img}/pfeffermaenner.webp (100%) rename {lib/images => src/lib/assets/img}/pilze.webp (100%) rename {lib/images => src/lib/assets/img}/pilzrahmsauce.webp (100%) rename {lib/images => src/lib/assets/img}/pizokel.webp (100%) rename {lib/images => src/lib/assets/img}/pizza_chorizo.webp (100%) rename {lib/images => src/lib/assets/img}/pizza_veggie.webp (100%) rename {lib/images => src/lib/assets/img}/plunderteig.webp (100%) rename {lib/images => src/lib/assets/img}/poulet_katsu.webp (100%) rename {lib/images => src/lib/assets/img}/pressgurken.webp (100%) rename {lib/images => src/lib/assets/img}/quiche_lorraine.webp (100%) rename {lib/images => src/lib/assets/img}/randen_avocado_roesti.webp (100%) rename {lib/images => src/lib/assets/img}/randensalat.webp (100%) rename {lib/images => src/lib/assets/img}/ratatouille.webp (100%) rename {lib/images => src/lib/assets/img}/reindling.webp (100%) rename {lib/images => src/lib/assets/img}/rhabarberkonfi.webp (100%) rename {lib/images => src/lib/assets/img}/rindsgoulasch.webp (100%) rename {lib/images => src/lib/assets/img}/roesti.webp (100%) rename {lib/images => src/lib/assets/img}/rote_linsen_hummus.webp (100%) rename {lib/images => src/lib/assets/img}/rotkraut.webp (100%) rename {lib/images => src/lib/assets/img}/ruchbrot.webp (100%) rename {lib/images => src/lib/assets/img}/rustikal.webp (100%) rename {lib/images => src/lib/assets/img}/sachertorte.webp (100%) rename {lib/images => src/lib/assets/img}/salbei_spaghetti.webp (100%) rename {lib/images => src/lib/assets/img}/sauerkrautauflauf.webp (100%) rename {lib/images => src/lib/assets/img}/sauerteigbrot.webp (100%) rename {lib/images => src/lib/assets/img}/schoggi.webp (100%) rename {lib/images => src/lib/assets/img}/schupfnudeln.webp (100%) rename {lib/images => src/lib/assets/img}/schupfnudeln_mit_kraut_und_speck.webp (100%) rename {lib/images => src/lib/assets/img}/semmelknoedel.webp (100%) rename {lib/images => src/lib/assets/img}/semmeln.webp (100%) rename {lib/images => src/lib/assets/img}/shokupan.webp (100%) rename {lib/images => src/lib/assets/img}/siebbrot.webp (100%) rename {lib/images => src/lib/assets/img}/spinat_spaghetti.webp (100%) rename {lib/images => src/lib/assets/img}/spitzbuben.webp (100%) rename {lib/images => src/lib/assets/img}/strudelteig.webp (100%) rename {lib/images => src/lib/assets/img}/tiramisu.webp (100%) rename {lib/images => src/lib/assets/img}/tirggel.webp (100%) rename {lib/images => src/lib/assets/img}/tomatensuppe.webp (100%) rename {lib/images => src/lib/assets/img}/uromas_vanillekipferl.webp (100%) rename {lib/images => src/lib/assets/img}/weihnachtsgans.webp (100%) rename {lib/images => src/lib/assets/img}/wienerschnitzel.webp (100%) rename {lib/images => src/lib/assets/img}/wintergemuesestrudel.webp (100%) rename {lib/images => src/lib/assets/img}/zimtsterne.webp (100%) rename {lib/images => src/lib/assets/img}/zitrone_kaeseravioli.webp (100%) rename {lib/images => src/lib/assets/img}/zopf.webp (100%) rename {lib/images => src/lib/assets/img}/zopf2.webp (100%) rename {lib/images => src/lib/assets/img}/zucchinicremesuppe.webp (100%) rename {lib/images => src/lib/assets/img}/zwiebelsuppe.webp (100%) delete mode 100644 src/lib/assets/load_html.js create mode 100644 src/lib/components/.jukit/.jukit_info.json create mode 100644 src/lib/components/Card.svelte create mode 100644 src/lib/components/MediaScroller.svelte create mode 100644 src/lib/components/Recipes.svelte create mode 100644 src/lib/components/Search.svelte create mode 100644 src/lib/components/SeasonLayout.svelte create mode 100644 src/lib/components/TagBall.svelte create mode 100644 src/lib/components/TagCloud.svelte rename src/{routes/rezepte => lib/components}/card.css (72%) create mode 100644 src/lib/components/nordtheme.css create mode 100644 src/routes/api/add/+server.ts create mode 100644 src/routes/api/items/category/+server.ts create mode 100644 src/routes/api/items/category/[category]/+server.ts delete mode 100644 src/routes/api/items/in_season/+server.ts create mode 100644 src/routes/api/items/in_season/[month]/+server.ts create mode 100644 src/routes/api/items/tag/+server.ts create mode 100644 src/routes/rezepte/+layout.svelte rename src/routes/rezepte/{+page.server.ts => +page.ts} (72%) delete mode 100644 src/routes/rezepte/Card.svelte rename src/routes/rezepte/[name]/{+page.server.ts => +page.ts} (100%) create mode 100644 src/routes/rezepte/add/+page.svelte create mode 100644 src/routes/rezepte/add/+page.ts create mode 100644 src/routes/rezepte/add/.jukit/.jukit_info.json create mode 100644 src/routes/rezepte/category/+page.svelte create mode 100644 src/routes/rezepte/category/+page.ts create mode 100644 src/routes/rezepte/category/[category]/+page.svelte create mode 100644 src/routes/rezepte/category/[category]/+page.ts create mode 100644 src/routes/rezepte/season/+page.svelte create mode 100644 src/routes/rezepte/season/+page.ts create mode 100644 src/routes/rezepte/season/.jukit/.jukit_info.json create mode 100644 src/routes/rezepte/season/[month]/+page.svelte create mode 100644 src/routes/rezepte/season/[month]/+page.ts delete mode 100644 src/routes/rezepte/tag/+page.server.ts create mode 100644 src/routes/rezepte/tag/+page.ts rename src/routes/rezepte/tag/[tag]/{+page.server.ts => +page.ts} (100%) rename {src/lib/assets => static/images}/aelplermagronen.webp (100%) rename {src/lib/assets => static/images}/aglio_e_olio.webp (100%) rename {src/lib/assets => static/images}/ajitama.webp (100%) rename {src/lib/assets => static/images}/al_ragu.webp (100%) rename {src/lib/assets => static/images}/anisbrot.webp (100%) rename {src/lib/assets => static/images}/annaomelette.webp (100%) rename {src/lib/assets => static/images}/apfelkompott.webp (100%) rename {src/lib/assets => static/images}/apfelstrudel.webp (100%) rename {src/lib/assets => static/images}/apfelwaehe.webp (100%) rename {src/lib/assets => static/images}/aprikosenwaehe.webp (100%) rename {src/lib/assets => static/images}/baerlauchravioli.webp (100%) rename {src/lib/assets => static/images}/basler_brunsli.webp (100%) rename {src/lib/assets => static/images}/brezel.webp (100%) rename {src/lib/assets => static/images}/broeseltopfen.webp (100%) rename {src/lib/assets => static/images}/brokkolisuppe.webp (100%) rename {src/lib/assets => static/images}/brotgewuerz.webp (100%) rename {src/lib/assets => static/images}/buchtel_vanillesauce.webp (100%) rename {src/lib/assets => static/images}/buendner_nusstorte.webp (100%) rename {src/lib/assets => static/images}/burger_buns.webp (100%) rename {src/lib/assets => static/images}/carbonara.webp (100%) rename {src/lib/assets => static/images}/chaeschueechli.webp (100%) rename {src/lib/assets => static/images}/checca.webp (100%) rename {src/lib/assets => static/images}/daenische_kardamomkekse.webp (100%) rename {src/lib/assets => static/images}/dinette.webp (100%) rename {src/lib/assets => static/images}/eierschwammerlgoulash.webp (100%) rename {src/lib/assets => static/images}/eingelegte_zwiebel.webp (100%) rename {src/lib/assets => static/images}/erdaepfelgoulasch.webp (100%) rename {src/lib/assets => static/images}/fastenwaehe.webp (100%) rename {src/lib/assets => static/images}/firecracker.webp (100%) rename {src/lib/assets => static/images}/flammkuchen.webp (100%) rename {src/lib/assets => static/images}/frittatensuppe.webp (100%) rename {src/lib/assets => static/images}/germknoedel.webp (100%) rename {src/lib/assets => static/images}/gnocchi.webp (100%) rename {src/lib/assets => static/images}/gratin_dauphinois.webp (100%) rename {src/lib/assets => static/images}/gurkensalat.webp (100%) rename {src/lib/assets => static/images}/hashbrown.webp (100%) rename {src/lib/assets => static/images}/hoernli_mit_gehacktem.webp (100%) rename {src/lib/assets => static/images}/hollondaise.webp (100%) rename {src/lib/assets => static/images}/hollundersirup.webp (100%) rename {src/lib/assets => static/images}/huehnerbouillon.webp (100%) rename {src/lib/assets => static/images}/hummus.webp (100%) rename {src/lib/assets => static/images}/kaesspaetzle.webp (100%) rename {src/lib/assets => static/images}/kaiserschmarrn.webp (100%) rename {src/lib/assets => static/images}/karottensalat.webp (100%) rename {src/lib/assets => static/images}/kartoffelsalat.webp (100%) rename {src/lib/assets => static/images}/kasnudeln.webp (100%) rename {src/lib/assets => static/images}/kirschwaehe.webp (100%) rename {src/lib/assets => static/images}/kletzennudel.webp (100%) rename {src/lib/assets => static/images}/knoblauchbrot.webp (100%) rename {src/lib/assets => static/images}/knochensuppe.webp (100%) rename {src/lib/assets => static/images}/kokosbusserl.webp (100%) rename {src/lib/assets => static/images}/kottbullar.webp (100%) rename {src/lib/assets => static/images}/kraftbruehe.webp (100%) rename {src/lib/assets => static/images}/kuerbiscremesuppe.webp (100%) rename {src/lib/assets => static/images}/kuerbisnudeln.webp (100%) rename {src/lib/assets => static/images}/lauch_dinette.webp (100%) rename {src/lib/assets => static/images}/lauchquiche.webp (100%) rename {src/lib/assets => static/images}/linsen_curry.webp (100%) rename {src/lib/assets => static/images}/marillenknoedel.webp (100%) rename {src/lib/assets => static/images}/maronisuppe.webp (100%) rename {src/lib/assets => static/images}/masalachai.webp (100%) rename {src/lib/assets => static/images}/mayonnaise.webp (100%) rename {src/lib/assets => static/images}/miso_steak_aubergine.webp (100%) rename {src/lib/assets => static/images}/mousse_au_chocolat.webp (100%) rename {src/lib/assets => static/images}/ofen_pommes_frites.webp (100%) rename {src/lib/assets => static/images}/orecchiette.webp (100%) rename {src/lib/assets => static/images}/orecchiette_al_pomodoro.webp (100%) rename {src/lib/assets => static/images}/osterkuchen.webp (100%) rename {src/lib/assets => static/images}/osterkuchen_osterlamm_schablone.svg (100%) rename {src/lib/assets => static/images}/osterlamm.webp (100%) rename {src/lib/assets => static/images}/palatschinken.webp (100%) rename {src/lib/assets => static/images}/petersilkartoffeln.webp (100%) rename {src/lib/assets => static/images}/pfeffermaenner.webp (100%) rename {src/lib/assets => static/images}/pilze.webp (100%) rename {src/lib/assets => static/images}/pilzrahmsauce.webp (100%) rename {src/lib/assets => static/images}/pizokel.webp (100%) rename {src/lib/assets => static/images}/pizza_chorizo.webp (100%) rename {src/lib/assets => static/images}/pizza_veggie.webp (100%) rename {src/lib/assets => static/images}/plunderteig.webp (100%) rename {src/lib/assets => static/images}/poulet_katsu.webp (100%) rename {src/lib/assets => static/images}/pressgurken.webp (100%) rename {src/lib/assets => static/images}/quiche_lorraine.webp (100%) rename {src/lib/assets => static/images}/randen_avocado_roesti.webp (100%) rename {src/lib/assets => static/images}/randensalat.webp (100%) rename {src/lib/assets => static/images}/ratatouille.webp (100%) rename {src/lib/assets => static/images}/reindling.webp (100%) rename {lib/img => static/images}/rhabarberkonfi.webp (100%) rename src/lib/assets/rhabarberkonfi.webp => static/images/rharbarberkonfi.webp (100%) rename {src/lib/assets => static/images}/rindsgoulasch.webp (100%) rename {src/lib/assets => static/images}/roesti.webp (100%) rename {src/lib/assets => static/images}/rote_linsen_hummus.webp (100%) rename {src/lib/assets => static/images}/rotkraut.webp (100%) rename {src/lib/assets => static/images}/ruchbrot.webp (100%) rename {src/lib/assets => static/images}/rustikal.webp (100%) rename {src/lib/assets => static/images}/sachertorte.webp (100%) rename {src/lib/assets => static/images}/salbei_spaghetti.webp (100%) rename {src/lib/assets => static/images}/sauerkrautauflauf.webp (100%) rename {src/lib/assets => static/images}/sauerteigbrot.webp (100%) rename {src/lib/assets => static/images}/schoggi.webp (100%) rename {src/lib/assets => static/images}/schupfnudeln.webp (100%) rename {src/lib/assets => static/images}/schupfnudeln_mit_kraut_und_speck.webp (100%) rename {src/lib/assets => static/images}/semmelknoedel.webp (100%) rename {src/lib/assets => static/images}/semmeln.webp (100%) rename {src/lib/assets => static/images}/shokupan.webp (100%) rename {src/lib/assets => static/images}/siebbrot.webp (100%) rename {src/lib/assets => static/images}/spinat_spaghetti.webp (100%) rename {src/lib/assets => static/images}/spitzbuben.webp (100%) rename {src/lib/assets => static/images}/strudelteig.webp (100%) rename {src/lib/assets => static/images}/tiramisu.webp (100%) rename {src/lib/assets => static/images}/tirggel.webp (100%) rename {src/lib/assets => static/images}/tomatensuppe.webp (100%) rename {src/lib/assets => static/images}/uromas_vanillekipferl.webp (100%) rename {src/lib/assets => static/images}/weihnachtsgans.webp (100%) rename {src/lib/assets => static/images}/wienerschnitzel.webp (100%) rename {src/lib/assets => static/images}/wintergemuesestrudel.webp (100%) rename {src/lib/assets => static/images}/zimtsterne.webp (100%) rename {src/lib/assets => static/images}/zitrone_kaeseravioli.webp (100%) rename {src/lib/assets => static/images}/zopf.webp (100%) rename {src/lib/assets => static/images}/zopf2.webp (100%) rename {src/lib/assets => static/images}/zucchinicremesuppe.webp (100%) rename {src/lib/assets => static/images}/zwiebelsuppe.webp (100%) diff --git a/+page.server.ts b/+page.server.ts deleted file mode 100644 index c338eb9..0000000 --- a/+page.server.ts +++ /dev/null @@ -1,65 +0,0 @@ -import type { Actions, Load } from '@sveltejs/kit'; -import { Recipe } from '../../../models/Recipe'; -import { dbConnect, dbDisconnect } from '../../../utils/db'; -import { redirect } from '@sveltejs/kit'; - -export const load: Load = async () => { - await dbConnect(); - let todos = await Recipe.find().lean(); - await dbDisconnect(); - todos = JSON.parse(JSON.stringify(todos)); - todos = todos.reverse(); - return { - todos, - }; -}; - -export const actions: Actions = { - create: async ({ request }) => { - const formData = await request.formData(); - const todoName = formData.get('todoName'); - - const newTodo = { - title: todoName, - isDone: false, - }; - - await dbConnect(); - await Recipe.create(newTodo); - await dbDisconnect(); - - console.log('New todo added: ', newTodo); - return { - success: true, - }; - }, - update: async ({ request }) => { - const formData = await request.formData(); - const todoId = formData.get('todoId'); - const todoName = formData.get('todoName'); - await dbConnect(); - await Recipe.findByIdAndUpdate(todoId, { - title: todoName, - }).lean(); - await dbDisconnect(); - - console.log('Todo updated: ', todoId); - - return { - success: true, - }; - }, - - delete: async ({ request }) => { - const formData = await request.formData(); - const todoId = formData.get('todoId'); - await dbConnect(); - await Recipe.findByIdAndDelete(todoId); - await dbDisconnect(); - - console.log('Todo deleted: ', todoId); - return { - success: true, - }; - }, -}; diff --git a/src/+page.svelte b/src/+page.svelte deleted file mode 100644 index 5ba19fe..0000000 --- a/src/+page.svelte +++ /dev/null @@ -1,61 +0,0 @@ - - -

{data.name}

- -{#if data.images.length > 0} - 1} class='double'> - {#each data.images as media} -
- {media.alt} -
{media.caption}
-
- {/each} -
-{/if} - -{data.recipe.baking.length} bei {data.recipe.baking.temperature} °C -{#if data.baking.mode} - {data.baking.mode} -{:else} - Ober-/Unterhitze -{/if} - -data.preparation -data.total_time -data.portions - -{#if data.ingredients} -

Zutaten

-{#each data.ingredients as list} -{#if list.name} -

{list.name}

-{/if} - -{/each} -{/if} - - -{#if data.instructions} -

Zubereitung

-{#each data.instructions as list} -{#if list.name} -

{list.name}

-{/if} -
    - {#each list.steps as step} -
  1. {step}
  2. - {/each} -
-{/each} -{/if} diff --git a/lib/images/aelplermagronen.webp b/src/lib/assets/img/aelplermagronen.webp similarity index 100% rename from lib/images/aelplermagronen.webp rename to src/lib/assets/img/aelplermagronen.webp diff --git a/lib/images/aglio_e_olio.webp b/src/lib/assets/img/aglio_e_olio.webp similarity index 100% rename from lib/images/aglio_e_olio.webp rename to src/lib/assets/img/aglio_e_olio.webp diff --git a/lib/images/ajitama.webp b/src/lib/assets/img/ajitama.webp similarity index 100% rename from lib/images/ajitama.webp rename to src/lib/assets/img/ajitama.webp diff --git a/lib/images/al_ragu.webp b/src/lib/assets/img/al_ragu.webp similarity index 100% rename from lib/images/al_ragu.webp rename to src/lib/assets/img/al_ragu.webp diff --git a/lib/images/anisbrot.webp b/src/lib/assets/img/anisbrot.webp similarity index 100% rename from lib/images/anisbrot.webp rename to src/lib/assets/img/anisbrot.webp diff --git a/lib/images/annaomelette.webp b/src/lib/assets/img/annaomelette.webp similarity index 100% rename from lib/images/annaomelette.webp rename to src/lib/assets/img/annaomelette.webp diff --git a/lib/images/apfelkompott.webp b/src/lib/assets/img/apfelkompott.webp similarity index 100% rename from lib/images/apfelkompott.webp rename to src/lib/assets/img/apfelkompott.webp diff --git a/lib/images/apfelstrudel.webp b/src/lib/assets/img/apfelstrudel.webp similarity index 100% rename from lib/images/apfelstrudel.webp rename to src/lib/assets/img/apfelstrudel.webp diff --git a/lib/images/apfelwaehe.webp b/src/lib/assets/img/apfelwaehe.webp similarity index 100% rename from lib/images/apfelwaehe.webp rename to src/lib/assets/img/apfelwaehe.webp diff --git a/lib/images/aprikosenwaehe.webp b/src/lib/assets/img/aprikosenwaehe.webp similarity index 100% rename from lib/images/aprikosenwaehe.webp rename to src/lib/assets/img/aprikosenwaehe.webp diff --git a/lib/images/baerlauchravioli.webp b/src/lib/assets/img/baerlauchravioli.webp similarity index 100% rename from lib/images/baerlauchravioli.webp rename to src/lib/assets/img/baerlauchravioli.webp diff --git a/lib/images/basler_brunsli.webp b/src/lib/assets/img/basler_brunsli.webp similarity index 100% rename from lib/images/basler_brunsli.webp rename to src/lib/assets/img/basler_brunsli.webp diff --git a/lib/images/brezel.webp b/src/lib/assets/img/brezel.webp similarity index 100% rename from lib/images/brezel.webp rename to src/lib/assets/img/brezel.webp diff --git a/lib/images/broeseltopfen.webp b/src/lib/assets/img/broeseltopfen.webp similarity index 100% rename from lib/images/broeseltopfen.webp rename to src/lib/assets/img/broeseltopfen.webp diff --git a/lib/images/brokkolisuppe.webp b/src/lib/assets/img/brokkolisuppe.webp similarity index 100% rename from lib/images/brokkolisuppe.webp rename to src/lib/assets/img/brokkolisuppe.webp diff --git a/lib/images/brotgewuerz.webp b/src/lib/assets/img/brotgewuerz.webp similarity index 100% rename from lib/images/brotgewuerz.webp rename to src/lib/assets/img/brotgewuerz.webp diff --git a/lib/images/buchtel_vanillesauce.webp b/src/lib/assets/img/buchtel_vanillesauce.webp similarity index 100% rename from lib/images/buchtel_vanillesauce.webp rename to src/lib/assets/img/buchtel_vanillesauce.webp diff --git a/lib/images/buendner_nusstorte.webp b/src/lib/assets/img/buendner_nusstorte.webp similarity index 100% rename from lib/images/buendner_nusstorte.webp rename to src/lib/assets/img/buendner_nusstorte.webp diff --git a/lib/images/burger_buns.webp b/src/lib/assets/img/burger_buns.webp similarity index 100% rename from lib/images/burger_buns.webp rename to src/lib/assets/img/burger_buns.webp diff --git a/lib/images/carbonara.webp b/src/lib/assets/img/carbonara.webp similarity index 100% rename from lib/images/carbonara.webp rename to src/lib/assets/img/carbonara.webp diff --git a/lib/images/chaeschueechli.webp b/src/lib/assets/img/chaeschueechli.webp similarity index 100% rename from lib/images/chaeschueechli.webp rename to src/lib/assets/img/chaeschueechli.webp diff --git a/lib/images/checca.webp b/src/lib/assets/img/checca.webp similarity index 100% rename from lib/images/checca.webp rename to src/lib/assets/img/checca.webp diff --git a/lib/images/daenische_kardamomkekse.webp b/src/lib/assets/img/daenische_kardamomkekse.webp similarity index 100% rename from lib/images/daenische_kardamomkekse.webp rename to src/lib/assets/img/daenische_kardamomkekse.webp diff --git a/lib/images/dinette.webp b/src/lib/assets/img/dinette.webp similarity index 100% rename from lib/images/dinette.webp rename to src/lib/assets/img/dinette.webp diff --git a/lib/images/eierschwammerlgoulash.webp b/src/lib/assets/img/eierschwammerlgoulash.webp similarity index 100% rename from lib/images/eierschwammerlgoulash.webp rename to src/lib/assets/img/eierschwammerlgoulash.webp diff --git a/lib/images/eingelegte_zwiebel.webp b/src/lib/assets/img/eingelegte_zwiebel.webp similarity index 100% rename from lib/images/eingelegte_zwiebel.webp rename to src/lib/assets/img/eingelegte_zwiebel.webp diff --git a/lib/images/erdaepfelgoulasch.webp b/src/lib/assets/img/erdaepfelgoulasch.webp similarity index 100% rename from lib/images/erdaepfelgoulasch.webp rename to src/lib/assets/img/erdaepfelgoulasch.webp diff --git a/lib/images/fastenwaehe.webp b/src/lib/assets/img/fastenwaehe.webp similarity index 100% rename from lib/images/fastenwaehe.webp rename to src/lib/assets/img/fastenwaehe.webp diff --git a/lib/images/firecracker.webp b/src/lib/assets/img/firecracker.webp similarity index 100% rename from lib/images/firecracker.webp rename to src/lib/assets/img/firecracker.webp diff --git a/lib/images/flammkuchen.webp b/src/lib/assets/img/flammkuchen.webp similarity index 100% rename from lib/images/flammkuchen.webp rename to src/lib/assets/img/flammkuchen.webp diff --git a/lib/images/frittatensuppe.webp b/src/lib/assets/img/frittatensuppe.webp similarity index 100% rename from lib/images/frittatensuppe.webp rename to src/lib/assets/img/frittatensuppe.webp diff --git a/lib/images/germknoedel.webp b/src/lib/assets/img/germknoedel.webp similarity index 100% rename from lib/images/germknoedel.webp rename to src/lib/assets/img/germknoedel.webp diff --git a/lib/images/gnocchi.webp b/src/lib/assets/img/gnocchi.webp similarity index 100% rename from lib/images/gnocchi.webp rename to src/lib/assets/img/gnocchi.webp diff --git a/lib/images/gratin_dauphinois.webp b/src/lib/assets/img/gratin_dauphinois.webp similarity index 100% rename from lib/images/gratin_dauphinois.webp rename to src/lib/assets/img/gratin_dauphinois.webp diff --git a/lib/images/gurkensalat.webp b/src/lib/assets/img/gurkensalat.webp similarity index 100% rename from lib/images/gurkensalat.webp rename to src/lib/assets/img/gurkensalat.webp diff --git a/lib/images/hashbrown.webp b/src/lib/assets/img/hashbrown.webp similarity index 100% rename from lib/images/hashbrown.webp rename to src/lib/assets/img/hashbrown.webp diff --git a/lib/images/hoernli_mit_gehacktem.webp b/src/lib/assets/img/hoernli_mit_gehacktem.webp similarity index 100% rename from lib/images/hoernli_mit_gehacktem.webp rename to src/lib/assets/img/hoernli_mit_gehacktem.webp diff --git a/lib/images/hollondaise.webp b/src/lib/assets/img/hollondaise.webp similarity index 100% rename from lib/images/hollondaise.webp rename to src/lib/assets/img/hollondaise.webp diff --git a/lib/images/hollundersirup.webp b/src/lib/assets/img/hollundersirup.webp similarity index 100% rename from lib/images/hollundersirup.webp rename to src/lib/assets/img/hollundersirup.webp diff --git a/lib/images/huehnerbouillon.webp b/src/lib/assets/img/huehnerbouillon.webp similarity index 100% rename from lib/images/huehnerbouillon.webp rename to src/lib/assets/img/huehnerbouillon.webp diff --git a/lib/images/hummus.webp b/src/lib/assets/img/hummus.webp similarity index 100% rename from lib/images/hummus.webp rename to src/lib/assets/img/hummus.webp diff --git a/lib/images/kaesspaetzle.webp b/src/lib/assets/img/kaesspaetzle.webp similarity index 100% rename from lib/images/kaesspaetzle.webp rename to src/lib/assets/img/kaesspaetzle.webp diff --git a/lib/images/kaiserschmarrn.webp b/src/lib/assets/img/kaiserschmarrn.webp similarity index 100% rename from lib/images/kaiserschmarrn.webp rename to src/lib/assets/img/kaiserschmarrn.webp diff --git a/lib/images/karottensalat.webp b/src/lib/assets/img/karottensalat.webp similarity index 100% rename from lib/images/karottensalat.webp rename to src/lib/assets/img/karottensalat.webp diff --git a/lib/images/kartoffelsalat.webp b/src/lib/assets/img/kartoffelsalat.webp similarity index 100% rename from lib/images/kartoffelsalat.webp rename to src/lib/assets/img/kartoffelsalat.webp diff --git a/lib/images/kasnudeln.webp b/src/lib/assets/img/kasnudeln.webp similarity index 100% rename from lib/images/kasnudeln.webp rename to src/lib/assets/img/kasnudeln.webp diff --git a/lib/images/kirschwaehe.webp b/src/lib/assets/img/kirschwaehe.webp similarity index 100% rename from lib/images/kirschwaehe.webp rename to src/lib/assets/img/kirschwaehe.webp diff --git a/lib/images/kletzennudel.webp b/src/lib/assets/img/kletzennudel.webp similarity index 100% rename from lib/images/kletzennudel.webp rename to src/lib/assets/img/kletzennudel.webp diff --git a/lib/images/knoblauchbrot.webp b/src/lib/assets/img/knoblauchbrot.webp similarity index 100% rename from lib/images/knoblauchbrot.webp rename to src/lib/assets/img/knoblauchbrot.webp diff --git a/lib/images/knochensuppe.webp b/src/lib/assets/img/knochensuppe.webp similarity index 100% rename from lib/images/knochensuppe.webp rename to src/lib/assets/img/knochensuppe.webp diff --git a/lib/images/kokosbusserl.webp b/src/lib/assets/img/kokosbusserl.webp similarity index 100% rename from lib/images/kokosbusserl.webp rename to src/lib/assets/img/kokosbusserl.webp diff --git a/lib/images/kottbullar.webp b/src/lib/assets/img/kottbullar.webp similarity index 100% rename from lib/images/kottbullar.webp rename to src/lib/assets/img/kottbullar.webp diff --git a/lib/images/kraftbruehe.webp b/src/lib/assets/img/kraftbruehe.webp similarity index 100% rename from lib/images/kraftbruehe.webp rename to src/lib/assets/img/kraftbruehe.webp diff --git a/lib/images/kuerbiscremesuppe.webp b/src/lib/assets/img/kuerbiscremesuppe.webp similarity index 100% rename from lib/images/kuerbiscremesuppe.webp rename to src/lib/assets/img/kuerbiscremesuppe.webp diff --git a/lib/images/kuerbisnudeln.webp b/src/lib/assets/img/kuerbisnudeln.webp similarity index 100% rename from lib/images/kuerbisnudeln.webp rename to src/lib/assets/img/kuerbisnudeln.webp diff --git a/lib/images/lauch_dinette.webp b/src/lib/assets/img/lauch_dinette.webp similarity index 100% rename from lib/images/lauch_dinette.webp rename to src/lib/assets/img/lauch_dinette.webp diff --git a/lib/images/lauchquiche.webp b/src/lib/assets/img/lauchquiche.webp similarity index 100% rename from lib/images/lauchquiche.webp rename to src/lib/assets/img/lauchquiche.webp diff --git a/lib/images/linsen_curry.webp b/src/lib/assets/img/linsen_curry.webp similarity index 100% rename from lib/images/linsen_curry.webp rename to src/lib/assets/img/linsen_curry.webp diff --git a/lib/images/load_html.js b/src/lib/assets/img/load_html.js similarity index 100% rename from lib/images/load_html.js rename to src/lib/assets/img/load_html.js diff --git a/lib/images/marillenknoedel.webp b/src/lib/assets/img/marillenknoedel.webp similarity index 100% rename from lib/images/marillenknoedel.webp rename to src/lib/assets/img/marillenknoedel.webp diff --git a/lib/images/maronisuppe.webp b/src/lib/assets/img/maronisuppe.webp similarity index 100% rename from lib/images/maronisuppe.webp rename to src/lib/assets/img/maronisuppe.webp diff --git a/lib/images/masalachai.webp b/src/lib/assets/img/masalachai.webp similarity index 100% rename from lib/images/masalachai.webp rename to src/lib/assets/img/masalachai.webp diff --git a/lib/images/mayonnaise.webp b/src/lib/assets/img/mayonnaise.webp similarity index 100% rename from lib/images/mayonnaise.webp rename to src/lib/assets/img/mayonnaise.webp diff --git a/lib/images/miso_steak_aubergine.webp b/src/lib/assets/img/miso_steak_aubergine.webp similarity index 100% rename from lib/images/miso_steak_aubergine.webp rename to src/lib/assets/img/miso_steak_aubergine.webp diff --git a/lib/images/mousse_au_chocolat.webp b/src/lib/assets/img/mousse_au_chocolat.webp similarity index 100% rename from lib/images/mousse_au_chocolat.webp rename to src/lib/assets/img/mousse_au_chocolat.webp diff --git a/lib/images/ofen_pommes_frites.webp b/src/lib/assets/img/ofen_pommes_frites.webp similarity index 100% rename from lib/images/ofen_pommes_frites.webp rename to src/lib/assets/img/ofen_pommes_frites.webp diff --git a/lib/images/orecchiette.webp b/src/lib/assets/img/orecchiette.webp similarity index 100% rename from lib/images/orecchiette.webp rename to src/lib/assets/img/orecchiette.webp diff --git a/lib/images/orecchiette_al_pomodoro.webp b/src/lib/assets/img/orecchiette_al_pomodoro.webp similarity index 100% rename from lib/images/orecchiette_al_pomodoro.webp rename to src/lib/assets/img/orecchiette_al_pomodoro.webp diff --git a/lib/images/osterkuchen.webp b/src/lib/assets/img/osterkuchen.webp similarity index 100% rename from lib/images/osterkuchen.webp rename to src/lib/assets/img/osterkuchen.webp diff --git a/lib/images/osterkuchen_osterlamm_schablone.svg b/src/lib/assets/img/osterkuchen_osterlamm_schablone.svg similarity index 100% rename from lib/images/osterkuchen_osterlamm_schablone.svg rename to src/lib/assets/img/osterkuchen_osterlamm_schablone.svg diff --git a/lib/images/osterlamm.webp b/src/lib/assets/img/osterlamm.webp similarity index 100% rename from lib/images/osterlamm.webp rename to src/lib/assets/img/osterlamm.webp diff --git a/lib/images/palatschinken.webp b/src/lib/assets/img/palatschinken.webp similarity index 100% rename from lib/images/palatschinken.webp rename to src/lib/assets/img/palatschinken.webp diff --git a/lib/images/petersilkartoffeln.webp b/src/lib/assets/img/petersilkartoffeln.webp similarity index 100% rename from lib/images/petersilkartoffeln.webp rename to src/lib/assets/img/petersilkartoffeln.webp diff --git a/lib/images/pfeffermaenner.webp b/src/lib/assets/img/pfeffermaenner.webp similarity index 100% rename from lib/images/pfeffermaenner.webp rename to src/lib/assets/img/pfeffermaenner.webp diff --git a/lib/images/pilze.webp b/src/lib/assets/img/pilze.webp similarity index 100% rename from lib/images/pilze.webp rename to src/lib/assets/img/pilze.webp diff --git a/lib/images/pilzrahmsauce.webp b/src/lib/assets/img/pilzrahmsauce.webp similarity index 100% rename from lib/images/pilzrahmsauce.webp rename to src/lib/assets/img/pilzrahmsauce.webp diff --git a/lib/images/pizokel.webp b/src/lib/assets/img/pizokel.webp similarity index 100% rename from lib/images/pizokel.webp rename to src/lib/assets/img/pizokel.webp diff --git a/lib/images/pizza_chorizo.webp b/src/lib/assets/img/pizza_chorizo.webp similarity index 100% rename from lib/images/pizza_chorizo.webp rename to src/lib/assets/img/pizza_chorizo.webp diff --git a/lib/images/pizza_veggie.webp b/src/lib/assets/img/pizza_veggie.webp similarity index 100% rename from lib/images/pizza_veggie.webp rename to src/lib/assets/img/pizza_veggie.webp diff --git a/lib/images/plunderteig.webp b/src/lib/assets/img/plunderteig.webp similarity index 100% rename from lib/images/plunderteig.webp rename to src/lib/assets/img/plunderteig.webp diff --git a/lib/images/poulet_katsu.webp b/src/lib/assets/img/poulet_katsu.webp similarity index 100% rename from lib/images/poulet_katsu.webp rename to src/lib/assets/img/poulet_katsu.webp diff --git a/lib/images/pressgurken.webp b/src/lib/assets/img/pressgurken.webp similarity index 100% rename from lib/images/pressgurken.webp rename to src/lib/assets/img/pressgurken.webp diff --git a/lib/images/quiche_lorraine.webp b/src/lib/assets/img/quiche_lorraine.webp similarity index 100% rename from lib/images/quiche_lorraine.webp rename to src/lib/assets/img/quiche_lorraine.webp diff --git a/lib/images/randen_avocado_roesti.webp b/src/lib/assets/img/randen_avocado_roesti.webp similarity index 100% rename from lib/images/randen_avocado_roesti.webp rename to src/lib/assets/img/randen_avocado_roesti.webp diff --git a/lib/images/randensalat.webp b/src/lib/assets/img/randensalat.webp similarity index 100% rename from lib/images/randensalat.webp rename to src/lib/assets/img/randensalat.webp diff --git a/lib/images/ratatouille.webp b/src/lib/assets/img/ratatouille.webp similarity index 100% rename from lib/images/ratatouille.webp rename to src/lib/assets/img/ratatouille.webp diff --git a/lib/images/reindling.webp b/src/lib/assets/img/reindling.webp similarity index 100% rename from lib/images/reindling.webp rename to src/lib/assets/img/reindling.webp diff --git a/lib/images/rhabarberkonfi.webp b/src/lib/assets/img/rhabarberkonfi.webp similarity index 100% rename from lib/images/rhabarberkonfi.webp rename to src/lib/assets/img/rhabarberkonfi.webp diff --git a/lib/images/rindsgoulasch.webp b/src/lib/assets/img/rindsgoulasch.webp similarity index 100% rename from lib/images/rindsgoulasch.webp rename to src/lib/assets/img/rindsgoulasch.webp diff --git a/lib/images/roesti.webp b/src/lib/assets/img/roesti.webp similarity index 100% rename from lib/images/roesti.webp rename to src/lib/assets/img/roesti.webp diff --git a/lib/images/rote_linsen_hummus.webp b/src/lib/assets/img/rote_linsen_hummus.webp similarity index 100% rename from lib/images/rote_linsen_hummus.webp rename to src/lib/assets/img/rote_linsen_hummus.webp diff --git a/lib/images/rotkraut.webp b/src/lib/assets/img/rotkraut.webp similarity index 100% rename from lib/images/rotkraut.webp rename to src/lib/assets/img/rotkraut.webp diff --git a/lib/images/ruchbrot.webp b/src/lib/assets/img/ruchbrot.webp similarity index 100% rename from lib/images/ruchbrot.webp rename to src/lib/assets/img/ruchbrot.webp diff --git a/lib/images/rustikal.webp b/src/lib/assets/img/rustikal.webp similarity index 100% rename from lib/images/rustikal.webp rename to src/lib/assets/img/rustikal.webp diff --git a/lib/images/sachertorte.webp b/src/lib/assets/img/sachertorte.webp similarity index 100% rename from lib/images/sachertorte.webp rename to src/lib/assets/img/sachertorte.webp diff --git a/lib/images/salbei_spaghetti.webp b/src/lib/assets/img/salbei_spaghetti.webp similarity index 100% rename from lib/images/salbei_spaghetti.webp rename to src/lib/assets/img/salbei_spaghetti.webp diff --git a/lib/images/sauerkrautauflauf.webp b/src/lib/assets/img/sauerkrautauflauf.webp similarity index 100% rename from lib/images/sauerkrautauflauf.webp rename to src/lib/assets/img/sauerkrautauflauf.webp diff --git a/lib/images/sauerteigbrot.webp b/src/lib/assets/img/sauerteigbrot.webp similarity index 100% rename from lib/images/sauerteigbrot.webp rename to src/lib/assets/img/sauerteigbrot.webp diff --git a/lib/images/schoggi.webp b/src/lib/assets/img/schoggi.webp similarity index 100% rename from lib/images/schoggi.webp rename to src/lib/assets/img/schoggi.webp diff --git a/lib/images/schupfnudeln.webp b/src/lib/assets/img/schupfnudeln.webp similarity index 100% rename from lib/images/schupfnudeln.webp rename to src/lib/assets/img/schupfnudeln.webp diff --git a/lib/images/schupfnudeln_mit_kraut_und_speck.webp b/src/lib/assets/img/schupfnudeln_mit_kraut_und_speck.webp similarity index 100% rename from lib/images/schupfnudeln_mit_kraut_und_speck.webp rename to src/lib/assets/img/schupfnudeln_mit_kraut_und_speck.webp diff --git a/lib/images/semmelknoedel.webp b/src/lib/assets/img/semmelknoedel.webp similarity index 100% rename from lib/images/semmelknoedel.webp rename to src/lib/assets/img/semmelknoedel.webp diff --git a/lib/images/semmeln.webp b/src/lib/assets/img/semmeln.webp similarity index 100% rename from lib/images/semmeln.webp rename to src/lib/assets/img/semmeln.webp diff --git a/lib/images/shokupan.webp b/src/lib/assets/img/shokupan.webp similarity index 100% rename from lib/images/shokupan.webp rename to src/lib/assets/img/shokupan.webp diff --git a/lib/images/siebbrot.webp b/src/lib/assets/img/siebbrot.webp similarity index 100% rename from lib/images/siebbrot.webp rename to src/lib/assets/img/siebbrot.webp diff --git a/lib/images/spinat_spaghetti.webp b/src/lib/assets/img/spinat_spaghetti.webp similarity index 100% rename from lib/images/spinat_spaghetti.webp rename to src/lib/assets/img/spinat_spaghetti.webp diff --git a/lib/images/spitzbuben.webp b/src/lib/assets/img/spitzbuben.webp similarity index 100% rename from lib/images/spitzbuben.webp rename to src/lib/assets/img/spitzbuben.webp diff --git a/lib/images/strudelteig.webp b/src/lib/assets/img/strudelteig.webp similarity index 100% rename from lib/images/strudelteig.webp rename to src/lib/assets/img/strudelteig.webp diff --git a/lib/images/tiramisu.webp b/src/lib/assets/img/tiramisu.webp similarity index 100% rename from lib/images/tiramisu.webp rename to src/lib/assets/img/tiramisu.webp diff --git a/lib/images/tirggel.webp b/src/lib/assets/img/tirggel.webp similarity index 100% rename from lib/images/tirggel.webp rename to src/lib/assets/img/tirggel.webp diff --git a/lib/images/tomatensuppe.webp b/src/lib/assets/img/tomatensuppe.webp similarity index 100% rename from lib/images/tomatensuppe.webp rename to src/lib/assets/img/tomatensuppe.webp diff --git a/lib/images/uromas_vanillekipferl.webp b/src/lib/assets/img/uromas_vanillekipferl.webp similarity index 100% rename from lib/images/uromas_vanillekipferl.webp rename to src/lib/assets/img/uromas_vanillekipferl.webp diff --git a/lib/images/weihnachtsgans.webp b/src/lib/assets/img/weihnachtsgans.webp similarity index 100% rename from lib/images/weihnachtsgans.webp rename to src/lib/assets/img/weihnachtsgans.webp diff --git a/lib/images/wienerschnitzel.webp b/src/lib/assets/img/wienerschnitzel.webp similarity index 100% rename from lib/images/wienerschnitzel.webp rename to src/lib/assets/img/wienerschnitzel.webp diff --git a/lib/images/wintergemuesestrudel.webp b/src/lib/assets/img/wintergemuesestrudel.webp similarity index 100% rename from lib/images/wintergemuesestrudel.webp rename to src/lib/assets/img/wintergemuesestrudel.webp diff --git a/lib/images/zimtsterne.webp b/src/lib/assets/img/zimtsterne.webp similarity index 100% rename from lib/images/zimtsterne.webp rename to src/lib/assets/img/zimtsterne.webp diff --git a/lib/images/zitrone_kaeseravioli.webp b/src/lib/assets/img/zitrone_kaeseravioli.webp similarity index 100% rename from lib/images/zitrone_kaeseravioli.webp rename to src/lib/assets/img/zitrone_kaeseravioli.webp diff --git a/lib/images/zopf.webp b/src/lib/assets/img/zopf.webp similarity index 100% rename from lib/images/zopf.webp rename to src/lib/assets/img/zopf.webp diff --git a/lib/images/zopf2.webp b/src/lib/assets/img/zopf2.webp similarity index 100% rename from lib/images/zopf2.webp rename to src/lib/assets/img/zopf2.webp diff --git a/lib/images/zucchinicremesuppe.webp b/src/lib/assets/img/zucchinicremesuppe.webp similarity index 100% rename from lib/images/zucchinicremesuppe.webp rename to src/lib/assets/img/zucchinicremesuppe.webp diff --git a/lib/images/zwiebelsuppe.webp b/src/lib/assets/img/zwiebelsuppe.webp similarity index 100% rename from lib/images/zwiebelsuppe.webp rename to src/lib/assets/img/zwiebelsuppe.webp diff --git a/src/lib/assets/load_html.js b/src/lib/assets/load_html.js deleted file mode 100644 index 85b148b..0000000 --- a/src/lib/assets/load_html.js +++ /dev/null @@ -1,12 +0,0 @@ -document.querySelectorAll('.url_insert').forEach(url_insert); -function url_insert(el) { - var url = el.dataset.url; - var xhttp = new XMLHttpRequest(); - xhttp.onreadystatechange = function() { - if (this.readyState == 4 && this.status == 200) { - el.innerHTML = this.response; - } - }; - xhttp.open("GET", url, true); - xhttp.send(); -} diff --git a/src/lib/components/.jukit/.jukit_info.json b/src/lib/components/.jukit/.jukit_info.json new file mode 100644 index 0000000..b2931c9 --- /dev/null +++ b/src/lib/components/.jukit/.jukit_info.json @@ -0,0 +1 @@ +{"display_param": "0", "terminal": "nvimterm"} \ No newline at end of file diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte new file mode 100644 index 0000000..010e142 --- /dev/null +++ b/src/lib/components/Card.svelte @@ -0,0 +1,34 @@ + + +{#if icon_override || recipe.season.includes(current_month)} + {recipe.icon} +{/if} + {recipe.alt} +
+ {recipe.category} +
{recipe.name}
+
+ {#each recipe.tags as tag} + {tag} + {/each} +
+
+ diff --git a/src/lib/components/MediaScroller.svelte b/src/lib/components/MediaScroller.svelte new file mode 100644 index 0000000..02b1b5b --- /dev/null +++ b/src/lib/components/MediaScroller.svelte @@ -0,0 +1,19 @@ + + +
+ +
diff --git a/src/lib/components/Recipes.svelte b/src/lib/components/Recipes.svelte new file mode 100644 index 0000000..798c2fe --- /dev/null +++ b/src/lib/components/Recipes.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/lib/components/Search.svelte b/src/lib/components/Search.svelte new file mode 100644 index 0000000..8138300 --- /dev/null +++ b/src/lib/components/Search.svelte @@ -0,0 +1,105 @@ + + + diff --git a/src/lib/components/SeasonLayout.svelte b/src/lib/components/SeasonLayout.svelte new file mode 100644 index 0000000..905ba63 --- /dev/null +++ b/src/lib/components/SeasonLayout.svelte @@ -0,0 +1,42 @@ + + + + + +
+{#each months as month, i} + {month} +{/each} +
+ +
+ +
diff --git a/src/lib/components/TagBall.svelte b/src/lib/components/TagBall.svelte new file mode 100644 index 0000000..66e38c5 --- /dev/null +++ b/src/lib/components/TagBall.svelte @@ -0,0 +1,22 @@ + + + +{tag} diff --git a/src/lib/components/TagCloud.svelte b/src/lib/components/TagCloud.svelte new file mode 100644 index 0000000..356f139 --- /dev/null +++ b/src/lib/components/TagCloud.svelte @@ -0,0 +1,16 @@ + + +
+ +
diff --git a/src/routes/rezepte/card.css b/src/lib/components/card.css similarity index 72% rename from src/routes/rezepte/card.css rename to src/lib/components/card.css index a4159b1..3576630 100644 --- a/src/routes/rezepte/card.css +++ b/src/lib/components/card.css @@ -12,6 +12,10 @@ flex-direction: column; justify-content: end; transition: 200ms; + background-color: #5E81AC; +} +.card .icon:hover{ + transform: scale(1.2,1.2); } .card:hover, .card:focus-visible{ @@ -23,36 +27,40 @@ object-fit: cover; border-top-left-radius: inherit; border-top-right-radius: inherit; - background-color: #5E81AC; + /* background-color: #5E81AC; */ } .card .title { + position: relative; box-sizing: border-box; padding-top: 0.5em; height: 50%; width: 100% ; - padding-inline: 1em; + /* padding-inline: 1em; */ border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; - background-color: #5E81AC; + /* background-color: #5E81AC; */ display: flex; flex-direction: column; justify-content: space-between; transition: 100ms; } -.card:hover .title{ +.card:hover{ background-color:#BF616A; } .card .name{ font-size: 2em; color: white; - margin-bottom: 0.5em; + padding: 0.5em; + padding-top: 0.2em; } .card .tags{ + box-sizing: border-box; display: flex; flex-wrap: wrap; overflow: hidden; column-gap: 0.25em; + padding-inline: 0.5em; margin-bottom:0.5em; flex-grow: 0; } @@ -72,16 +80,34 @@ background-color: #D08770; } -.card .title .icon{ +.card .icon{ + text-decoration: unset; position: absolute; font-size: 1.5rem; top:-0.5em; right:-0.5em; padding: 0.25em; - background-color: white; + background-color: #ECEFF4; border-radius:1000px; + transition: 100ms; } -.card:hover .title .icon{ +.card .title .category{ + position: absolute; + text-decoration: none; + color: #ECEFF4; + font-size: 1.5rem; + top: -0.8em; + left: -0.5em; + background-color: #2E3440; + padding-inline: 1em; + border-radius: 1000px; + transition: 100ms; +} +.card .title .category:hover{ + background-color: #434C5E; + transform: scale(1.05, 1.05) +} +.card:hover .icon{ animation: shake 0.6s } diff --git a/src/lib/components/nordtheme.css b/src/lib/components/nordtheme.css new file mode 100644 index 0000000..7feacda --- /dev/null +++ b/src/lib/components/nordtheme.css @@ -0,0 +1,25 @@ +:root{ + --nord0: #2E3440; + --nord1: #3B4252; + --nord2: #434C5E; + --nord3: #4C566A; + --nord4: #D8DEE9; + --nord5: #E5E9F0; + --nord6: #ECEFF4; + --nord7: #8FBCBB; + --nord8: #88C0D0; + --nord9: #81A1C1; + --nord10: #5E81AC; + --nord11: #BF616A; + --nord12: #D08770; + --nord13: #EBCB8B; + --nord14: #A3BE8C; + --nord15: #B48EAD; + --lightblue: var(--nord9); + --blue: var(--nord10); + --red: var(--nord11); + --orange: var(--nord12); + --yellow: var(--nord13); + --green: var(--nord14); + --purple: var(--nord15); +} diff --git a/src/routes/api/add/+server.ts b/src/routes/api/add/+server.ts new file mode 100644 index 0000000..990ec83 --- /dev/null +++ b/src/routes/api/add/+server.ts @@ -0,0 +1,23 @@ +import type { RequestHandler } from '@sveltejs/kit'; +import { Recipe } from '../../../models/Recipe'; +import { dbConnect, dbDisconnect } from '../../../utils/db'; +import type {RecipeModelType} from '../../../types/types'; +import { BEARER_TOKEN } from '$env/static/private' +// header: use for bearer token for now +// recipe json in body +export const POST: RequestHandler = async ({request}) => { + let message = await request.json() + const recipe_json = message.recipe + const bearer_token = message.headers.bearer + console.log("RECIPE:", recipe_json) + console.log("BEARER:", bearer_token) + if(bearer_token === BEARER_TOKEN){ + await dbConnect(); + await Recipe.create(recipe_json); + await dbDisconnect(); + return {status: 400} + } + else{ + return {status: 403} + } +}; diff --git a/src/routes/api/items/all_brief/+server.ts b/src/routes/api/items/all_brief/+server.ts index 35c36c8..6b491b2 100644 --- a/src/routes/api/items/all_brief/+server.ts +++ b/src/routes/api/items/all_brief/+server.ts @@ -1,13 +1,11 @@ import { json, type RequestHandler } from '@sveltejs/kit'; +import type { BriefRecipeType } from '../../../../types/types'; import { Recipe } from '../../../../models/Recipe' import { dbConnect, dbDisconnect } from '../../../../utils/db'; export const GET: RequestHandler = async ({params}) => { - let current_month = 6; await dbConnect(); - let found_brief = (await Recipe.find({}, 'name short_name images tags category icon description season').lean()); + let found_brief = (await Recipe.find({}, 'name short_name images tags category icon description season').lean()) as BriefRecipeType[]; await dbDisconnect(); - console.log(found_brief) - let recipes = JSON.parse(JSON.stringify(found_brief)); - return json(recipes); + return json(JSON.parse(JSON.stringify(found_brief))); }; diff --git a/src/routes/api/items/category/+server.ts b/src/routes/api/items/category/+server.ts new file mode 100644 index 0000000..ca79946 --- /dev/null +++ b/src/routes/api/items/category/+server.ts @@ -0,0 +1,13 @@ +import { json, type RequestHandler } from '@sveltejs/kit'; +import { Recipe } from '../../../../models/Recipe'; +import { dbConnect, dbDisconnect } from '../../../../utils/db'; +import type {BriefRecipeType} from '../../../../types/types'; + +export const GET: RequestHandler = async ({params}) => { + await dbConnect(); + let categories = (await Recipe.distinct('category').lean()); + await dbDisconnect(); + + categories= JSON.parse(JSON.stringify(categories)); + return json(categories); +}; diff --git a/src/routes/api/items/category/[category]/+server.ts b/src/routes/api/items/category/[category]/+server.ts new file mode 100644 index 0000000..64a7f9d --- /dev/null +++ b/src/routes/api/items/category/[category]/+server.ts @@ -0,0 +1,13 @@ +import { json, type RequestHandler } from '@sveltejs/kit'; +import { Recipe } from '../../../../../models/Recipe'; +import { dbConnect, dbDisconnect } from '../../../../../utils/db'; +import type {BriefRecipeType} from '../../../../../types/types'; + +export const GET: RequestHandler = async ({params}) => { + await dbConnect(); + let recipes = (await Recipe.find({category: params.category}, 'name short_name images tags category icon description season').lean()) as BriefRecipeType[]; + await dbDisconnect(); + + recipes = JSON.parse(JSON.stringify(recipes)); + return json(recipes); +}; diff --git a/src/routes/api/items/in_season/+server.ts b/src/routes/api/items/in_season/+server.ts deleted file mode 100644 index 5ea49fc..0000000 --- a/src/routes/api/items/in_season/+server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { json, type RequestHandler } from '@sveltejs/kit'; -import { Recipe } from '../../../../models/Recipe' -import { dbConnect, dbDisconnect } from '../../../../utils/db'; - -export const GET: RequestHandler = async ({params}) => { - let current_month = 6; - await dbConnect(); - let found_in_season = (await Recipe.find({season: current_month}, 'name short_name images tags category icon description season').lean()); - await dbDisconnect(); - found_in_season = JSON.parse(JSON.stringify(found_in_season)); - return json(found_in_season); -}; diff --git a/src/routes/api/items/in_season/[month]/+server.ts b/src/routes/api/items/in_season/[month]/+server.ts new file mode 100644 index 0000000..faeebbf --- /dev/null +++ b/src/routes/api/items/in_season/[month]/+server.ts @@ -0,0 +1,11 @@ +import { json, type RequestHandler } from '@sveltejs/kit'; +import { Recipe } from '../../../../../models/Recipe' +import { dbConnect, dbDisconnect } from '../../../../../utils/db'; + +export const GET: RequestHandler = async ({params}) => { + await dbConnect(); + let found_in_season = (await Recipe.find({season: params.month}, 'name short_name images tags category icon description season').lean()); + await dbDisconnect(); + found_in_season = JSON.parse(JSON.stringify(found_in_season)); + return json(found_in_season); +}; diff --git a/src/routes/api/items/tag/+server.ts b/src/routes/api/items/tag/+server.ts new file mode 100644 index 0000000..bfc8612 --- /dev/null +++ b/src/routes/api/items/tag/+server.ts @@ -0,0 +1,13 @@ +import { json, type RequestHandler } from '@sveltejs/kit'; +import { Recipe } from '../../../../models/Recipe'; +import { dbConnect, dbDisconnect } from '../../../../utils/db'; +import type {BriefRecipeType} from '../../../../types/types'; + +export const GET: RequestHandler = async ({params}) => { + await dbConnect(); + let categories = (await Recipe.distinct('tags').lean()); + await dbDisconnect(); + + categories= JSON.parse(JSON.stringify(categories)); + return json(categories); +}; diff --git a/src/routes/api/seed/+server.ts b/src/routes/api/seed/+server.ts index cfc61e0..1e62628 100644 --- a/src/routes/api/seed/+server.ts +++ b/src/routes/api/seed/+server.ts @@ -2,22 +2,177 @@ import { json } from '@sveltejs/kit'; import { Recipe } from '../../../models/Recipe'; import { dbConnect, dbDisconnect } from '../../../utils/db'; -const test_json = [ +const test_json = [{ + short_name: "anisbroetli", + name : "Anisbrötli", + category: "Guetzli", + icon: "🎄", + datecreated: 20230619, + datemodified: 20230619, + images: [{ + mediapath: "anisbrot.webp", + alt: "Ein ganzes Brot", + caption: "", + }], + description: "Einfach und sehr lecker", + tags: ["backen", "advent", "schweiz", "deutschland", "anis", "weihnachtenn", "kekse"], + season: [ 12,1], + baking: { + temperature: "220", + length: "40 Minuten", + mode: "Ober-/Unterhitze", + }, + preparation: "20 Minuten", + fermentation: { + bulk: "2.5 Stunden", + final: "2 Stunden" + }, + portions: "4 Pizzen", + total_time: "1 Tag", + ingredients: [], + instructions: [] +}, +{ + short_name: "alragu", + name : "Pasta al Ragù", + category: "Pasta", + icon: "☀️", + datecreated: 20230619, + datemodified: 20230619, + images: [{ + mediapath: "al_ragu.webp", + alt: "Ein ganzes Brot", + caption: "", + }], + description: "Einfach und sehr lecker", + tags: ["pasta", "fleisch", "rind", "italienisch", "bolognese"], + season: [ 6,7,8,9], + baking: { + temperature: "220", + length: "40 Minuten", + mode: "Ober-/Unterhitze", + }, + preparation: "20 Minuten", + fermentation: { + bulk: "2.5 Stunden", + final: "2 Stunden" + }, + portions: "4 Pizzen", + total_time: "1 Tag", + ingredients: [ { + name: "Teig", + list: [ + {name: "Mehl", + unit: "g", + amount: 500 + } , + { + name: "Salz", + unit: "g", + amount: 6 + } + ]}, + { + name: "Füllung", + list: [ + { + name: "Aprikose", + unit: "Stück", + amount: 10 + }, + { + name: "Zuckerwürfel", + unit: "Stück", + amount: 10 + } + ] } + ], + instructions: [ + {name: "", + steps: [ + "Den Rhabarber schälen und in ca. 1 cm große Stücke schneiden", + "Have fun" + ] + } + ]}, + { + short_name: "sauerteigbrot", + name : "Simples Sauerteigbrot", + category: "Brot", + icon: "🍂", + datecreated: 20230619, + datemodified: 20230619, + images: [{ + mediapath: "sauerteigbrot.webp", + alt: "Ein ganzes Brot", + caption: "", + }], + description: "Einfach und sehr lecker", + tags: ["brot", "backen", "sauerteig", "hefe"], + season: [], + baking: { + temperature: "220", + length: "40 Minuten", + mode: "Ober-/Unterhitze", + }, + preparation: "20 Minuten", + fermentation: { + bulk: "2.5 Stunden", + final: "2 Stunden" + }, + portions: "4 Pizzen", + total_time: "1 Tag", + ingredients: [ { + name: "Teig", + list: [ + {name: "Mehl", + unit: "g", + amount: 500 + } , + { + name: "Salz", + unit: "g", + amount: 6 + } + ]}, + { + name: "Füllung", + list: [ + { + name: "Aprikose", + unit: "Stück", + amount: 10 + }, + { + name: "Zuckerwürfel", + unit: "Stück", + amount: 10 + } + ] } + ], + instructions: [ + {name: "", + steps: [ + "Den Rhabarber schälen und in ca. 1 cm große Stücke schneiden", + "Have fun" + ] + } + ]}, { short_name: "rhabarberkonfi", - name: "Rharbarberkonfi", + name: "Rhabarberkonfi", category: "Aufstrich", icon: "☀️", datecreated: 20230610, datemodified: 20230611, images: [ { - mediapath: "rharbarberkonfi.webp", + mediapath: "rhabarberkonfi.webp", alt: "Ein Brot mit Marmelade darauf.", caption: "" } ], description: "Saure Marmelade", - tags:["marmelade", "schweiz", "sauer", "rhabarber", "zucker", "aufstrich", "marmelade" , "ein weteres langes tag", "und noch eins", "und ein weiteres", "und nochmal"], + tags:["marmelade", "sauer", "sommer", "süß"], season: [4,5,6], baking: { temperature: "160", @@ -68,22 +223,22 @@ const test_json = [ } ] }, - { short_name: "osterfladen", - name: "Osterfladen", - category: "Aufstrich", + { short_name: "osterkuchen", + name: "Osterkuchen", + category: "Kuchen", icon: "🐇", datecreated: 20230610, datemodified: 20230611, images: [ { - mediapath: "osterfladen.webp", + mediapath: "osterkuchen.webp", alt: "Ein Brot mit Marmelade darauf.", caption: "" } ], description: "Saure Marmelade", - tags:["marmelade", "schweiz", "sauer", "rhabarber", "zucker", "aufstrich", "marmelade"], - season: [2,3,4], + tags:["schweiz", "ostern", "milchreis", "aprikosen", 'backen', 'süß', "marmelade"], + season: [3,4], baking: { temperature: "160", length: "4 Stunden", diff --git a/src/routes/rezepte/+layout.svelte b/src/routes/rezepte/+layout.svelte new file mode 100644 index 0000000..a2975c5 --- /dev/null +++ b/src/routes/rezepte/+layout.svelte @@ -0,0 +1,66 @@ + + +
+
+ + + +
+
+Ad maiorem Dei gloriam +
+
diff --git a/src/routes/rezepte/+page.svelte b/src/routes/rezepte/+page.svelte index 01de614..766a91f 100644 --- a/src/routes/rezepte/+page.svelte +++ b/src/routes/rezepte/+page.svelte @@ -1,8 +1,11 @@ +

Rezept hinzufügen

+ + + + + + + + + +

Zutaten

+ + diff --git a/src/routes/rezepte/add/+page.ts b/src/routes/rezepte/add/+page.ts new file mode 100644 index 0000000..475472d --- /dev/null +++ b/src/routes/rezepte/add/+page.ts @@ -0,0 +1,13 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch }) { + let current_month = new Date().getMonth() + 1 + const res_season = await fetch(`/api/items/category`); + const res_all_brief = await fetch(`/api/items/tag`); + const item_season = await res_season.json(); + const item_all_brief = await res_all_brief.json(); + return { + season: item_season, + all_brief: item_all_brief, + }; +}; diff --git a/src/routes/rezepte/add/.jukit/.jukit_info.json b/src/routes/rezepte/add/.jukit/.jukit_info.json new file mode 100644 index 0000000..92c7342 --- /dev/null +++ b/src/routes/rezepte/add/.jukit/.jukit_info.json @@ -0,0 +1 @@ +{"terminal": "nvimterm"} \ No newline at end of file diff --git a/src/routes/rezepte/category/+page.svelte b/src/routes/rezepte/category/+page.svelte new file mode 100644 index 0000000..94e011f --- /dev/null +++ b/src/routes/rezepte/category/+page.svelte @@ -0,0 +1,16 @@ + +

Rezepte

+

Kategorien

+
+ +{#each data.categories as tag} + + +{/each} + +
diff --git a/src/routes/rezepte/category/+page.ts b/src/routes/rezepte/category/+page.ts new file mode 100644 index 0000000..0381050 --- /dev/null +++ b/src/routes/rezepte/category/+page.ts @@ -0,0 +1,7 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch}) { + const res = await fetch(`/api/items/category`); + const categories= await res.json(); + return {categories} +}; diff --git a/src/routes/rezepte/category/[category]/+page.svelte b/src/routes/rezepte/category/[category]/+page.svelte new file mode 100644 index 0000000..ef96902 --- /dev/null +++ b/src/routes/rezepte/category/[category]/+page.svelte @@ -0,0 +1,17 @@ + +

Rezepte

+

In Kategorie {data.category}

+
+ + {#each data.recipes as recipe} + + {/each} + +
diff --git a/src/routes/rezepte/category/[category]/+page.ts b/src/routes/rezepte/category/[category]/+page.ts new file mode 100644 index 0000000..a21ae88 --- /dev/null +++ b/src/routes/rezepte/category/[category]/+page.ts @@ -0,0 +1,10 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch, params }) { + const res = await fetch(`/api/items/category/${params.category}`); + const items = await res.json(); + return { + category: params.category, + recipes: items + } +}; diff --git a/src/routes/rezepte/season/+page.svelte b/src/routes/rezepte/season/+page.svelte new file mode 100644 index 0000000..d3bf5c5 --- /dev/null +++ b/src/routes/rezepte/season/+page.svelte @@ -0,0 +1,23 @@ + + + + +

Rezepte des Monats

+ + + {#each data.season as recipe} + + {/each} + +
diff --git a/src/routes/rezepte/season/+page.ts b/src/routes/rezepte/season/+page.ts new file mode 100644 index 0000000..0ff98a1 --- /dev/null +++ b/src/routes/rezepte/season/+page.ts @@ -0,0 +1,10 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch }) { + let current_month = new Date().getMonth() + 1 + const res_season = await fetch(`/api/items/in_season/` + current_month); + const item_season = await res_season.json(); + return { + season: item_season, + }; +}; diff --git a/src/routes/rezepte/season/.jukit/.jukit_info.json b/src/routes/rezepte/season/.jukit/.jukit_info.json new file mode 100644 index 0000000..92c7342 --- /dev/null +++ b/src/routes/rezepte/season/.jukit/.jukit_info.json @@ -0,0 +1 @@ +{"terminal": "nvimterm"} \ No newline at end of file diff --git a/src/routes/rezepte/season/[month]/+page.svelte b/src/routes/rezepte/season/[month]/+page.svelte new file mode 100644 index 0000000..20cae83 --- /dev/null +++ b/src/routes/rezepte/season/[month]/+page.svelte @@ -0,0 +1,19 @@ + + +

Rezepte die im {months[data.month-1]} in Saison sind

+ + {#each data.season as recipe} + + {/each} + +
diff --git a/src/routes/rezepte/season/[month]/+page.ts b/src/routes/rezepte/season/[month]/+page.ts new file mode 100644 index 0000000..6e66f10 --- /dev/null +++ b/src/routes/rezepte/season/[month]/+page.ts @@ -0,0 +1,12 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch, params }) { + const res_season = await fetch(`/api/items/in_season/` + params.month); + const res_all_brief = await fetch(`/api/items/all_brief`); + const item_season = await res_season.json(); + const item_all_brief = await res_all_brief.json(); + return { + month: params.month, + season: item_season, + }; +}; diff --git a/src/routes/rezepte/tag/+page.server.ts b/src/routes/rezepte/tag/+page.server.ts deleted file mode 100644 index 0f4d406..0000000 --- a/src/routes/rezepte/tag/+page.server.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { PageLoad } from "./$types"; - -export async function load({ fetch }) { - const res_tag = await fetch(`/api/tags`); - const items_tag = await res_tag.json(); - return { - tags: item.tags - } -}; diff --git a/src/routes/rezepte/tag/+page.svelte b/src/routes/rezepte/tag/+page.svelte index b793e42..6ad79d8 100644 --- a/src/routes/rezepte/tag/+page.svelte +++ b/src/routes/rezepte/tag/+page.svelte @@ -1,30 +1,16 @@ -

Rezepte

-

In Tag {data.tag}

+

Kategorien

-
-{#each data.recipes as recipe} - + +{#each data.tags as tag} + + {/each} -
+
diff --git a/src/routes/rezepte/tag/+page.ts b/src/routes/rezepte/tag/+page.ts new file mode 100644 index 0000000..9f687a2 --- /dev/null +++ b/src/routes/rezepte/tag/+page.ts @@ -0,0 +1,7 @@ +import type { PageLoad } from "./$types"; + +export async function load({ fetch}) { + const res = await fetch(`/api/items/tag`); + const tags = await res.json(); + return {tags} +}; diff --git a/src/routes/rezepte/tag/[tag]/+page.svelte b/src/routes/rezepte/tag/[tag]/+page.svelte index 466ca3b..08429a6 100644 --- a/src/routes/rezepte/tag/[tag]/+page.svelte +++ b/src/routes/rezepte/tag/[tag]/+page.svelte @@ -1,30 +1,17 @@ -

Rezepte

In Tag {data.tag}

-
-{#each data.recipes as recipe} - -{/each} -
+ + {#each data.recipes as recipe} + + {/each} +
diff --git a/src/routes/rezepte/tag/[tag]/+page.server.ts b/src/routes/rezepte/tag/[tag]/+page.ts similarity index 100% rename from src/routes/rezepte/tag/[tag]/+page.server.ts rename to src/routes/rezepte/tag/[tag]/+page.ts diff --git a/src/lib/assets/aelplermagronen.webp b/static/images/aelplermagronen.webp similarity index 100% rename from src/lib/assets/aelplermagronen.webp rename to static/images/aelplermagronen.webp diff --git a/src/lib/assets/aglio_e_olio.webp b/static/images/aglio_e_olio.webp similarity index 100% rename from src/lib/assets/aglio_e_olio.webp rename to static/images/aglio_e_olio.webp diff --git a/src/lib/assets/ajitama.webp b/static/images/ajitama.webp similarity index 100% rename from src/lib/assets/ajitama.webp rename to static/images/ajitama.webp diff --git a/src/lib/assets/al_ragu.webp b/static/images/al_ragu.webp similarity index 100% rename from src/lib/assets/al_ragu.webp rename to static/images/al_ragu.webp diff --git a/src/lib/assets/anisbrot.webp b/static/images/anisbrot.webp similarity index 100% rename from src/lib/assets/anisbrot.webp rename to static/images/anisbrot.webp diff --git a/src/lib/assets/annaomelette.webp b/static/images/annaomelette.webp similarity index 100% rename from src/lib/assets/annaomelette.webp rename to static/images/annaomelette.webp diff --git a/src/lib/assets/apfelkompott.webp b/static/images/apfelkompott.webp similarity index 100% rename from src/lib/assets/apfelkompott.webp rename to static/images/apfelkompott.webp diff --git a/src/lib/assets/apfelstrudel.webp b/static/images/apfelstrudel.webp similarity index 100% rename from src/lib/assets/apfelstrudel.webp rename to static/images/apfelstrudel.webp diff --git a/src/lib/assets/apfelwaehe.webp b/static/images/apfelwaehe.webp similarity index 100% rename from src/lib/assets/apfelwaehe.webp rename to static/images/apfelwaehe.webp diff --git a/src/lib/assets/aprikosenwaehe.webp b/static/images/aprikosenwaehe.webp similarity index 100% rename from src/lib/assets/aprikosenwaehe.webp rename to static/images/aprikosenwaehe.webp diff --git a/src/lib/assets/baerlauchravioli.webp b/static/images/baerlauchravioli.webp similarity index 100% rename from src/lib/assets/baerlauchravioli.webp rename to static/images/baerlauchravioli.webp diff --git a/src/lib/assets/basler_brunsli.webp b/static/images/basler_brunsli.webp similarity index 100% rename from src/lib/assets/basler_brunsli.webp rename to static/images/basler_brunsli.webp diff --git a/src/lib/assets/brezel.webp b/static/images/brezel.webp similarity index 100% rename from src/lib/assets/brezel.webp rename to static/images/brezel.webp diff --git a/src/lib/assets/broeseltopfen.webp b/static/images/broeseltopfen.webp similarity index 100% rename from src/lib/assets/broeseltopfen.webp rename to static/images/broeseltopfen.webp diff --git a/src/lib/assets/brokkolisuppe.webp b/static/images/brokkolisuppe.webp similarity index 100% rename from src/lib/assets/brokkolisuppe.webp rename to static/images/brokkolisuppe.webp diff --git a/src/lib/assets/brotgewuerz.webp b/static/images/brotgewuerz.webp similarity index 100% rename from src/lib/assets/brotgewuerz.webp rename to static/images/brotgewuerz.webp diff --git a/src/lib/assets/buchtel_vanillesauce.webp b/static/images/buchtel_vanillesauce.webp similarity index 100% rename from src/lib/assets/buchtel_vanillesauce.webp rename to static/images/buchtel_vanillesauce.webp diff --git a/src/lib/assets/buendner_nusstorte.webp b/static/images/buendner_nusstorte.webp similarity index 100% rename from src/lib/assets/buendner_nusstorte.webp rename to static/images/buendner_nusstorte.webp diff --git a/src/lib/assets/burger_buns.webp b/static/images/burger_buns.webp similarity index 100% rename from src/lib/assets/burger_buns.webp rename to static/images/burger_buns.webp diff --git a/src/lib/assets/carbonara.webp b/static/images/carbonara.webp similarity index 100% rename from src/lib/assets/carbonara.webp rename to static/images/carbonara.webp diff --git a/src/lib/assets/chaeschueechli.webp b/static/images/chaeschueechli.webp similarity index 100% rename from src/lib/assets/chaeschueechli.webp rename to static/images/chaeschueechli.webp diff --git a/src/lib/assets/checca.webp b/static/images/checca.webp similarity index 100% rename from src/lib/assets/checca.webp rename to static/images/checca.webp diff --git a/src/lib/assets/daenische_kardamomkekse.webp b/static/images/daenische_kardamomkekse.webp similarity index 100% rename from src/lib/assets/daenische_kardamomkekse.webp rename to static/images/daenische_kardamomkekse.webp diff --git a/src/lib/assets/dinette.webp b/static/images/dinette.webp similarity index 100% rename from src/lib/assets/dinette.webp rename to static/images/dinette.webp diff --git a/src/lib/assets/eierschwammerlgoulash.webp b/static/images/eierschwammerlgoulash.webp similarity index 100% rename from src/lib/assets/eierschwammerlgoulash.webp rename to static/images/eierschwammerlgoulash.webp diff --git a/src/lib/assets/eingelegte_zwiebel.webp b/static/images/eingelegte_zwiebel.webp similarity index 100% rename from src/lib/assets/eingelegte_zwiebel.webp rename to static/images/eingelegte_zwiebel.webp diff --git a/src/lib/assets/erdaepfelgoulasch.webp b/static/images/erdaepfelgoulasch.webp similarity index 100% rename from src/lib/assets/erdaepfelgoulasch.webp rename to static/images/erdaepfelgoulasch.webp diff --git a/src/lib/assets/fastenwaehe.webp b/static/images/fastenwaehe.webp similarity index 100% rename from src/lib/assets/fastenwaehe.webp rename to static/images/fastenwaehe.webp diff --git a/src/lib/assets/firecracker.webp b/static/images/firecracker.webp similarity index 100% rename from src/lib/assets/firecracker.webp rename to static/images/firecracker.webp diff --git a/src/lib/assets/flammkuchen.webp b/static/images/flammkuchen.webp similarity index 100% rename from src/lib/assets/flammkuchen.webp rename to static/images/flammkuchen.webp diff --git a/src/lib/assets/frittatensuppe.webp b/static/images/frittatensuppe.webp similarity index 100% rename from src/lib/assets/frittatensuppe.webp rename to static/images/frittatensuppe.webp diff --git a/src/lib/assets/germknoedel.webp b/static/images/germknoedel.webp similarity index 100% rename from src/lib/assets/germknoedel.webp rename to static/images/germknoedel.webp diff --git a/src/lib/assets/gnocchi.webp b/static/images/gnocchi.webp similarity index 100% rename from src/lib/assets/gnocchi.webp rename to static/images/gnocchi.webp diff --git a/src/lib/assets/gratin_dauphinois.webp b/static/images/gratin_dauphinois.webp similarity index 100% rename from src/lib/assets/gratin_dauphinois.webp rename to static/images/gratin_dauphinois.webp diff --git a/src/lib/assets/gurkensalat.webp b/static/images/gurkensalat.webp similarity index 100% rename from src/lib/assets/gurkensalat.webp rename to static/images/gurkensalat.webp diff --git a/src/lib/assets/hashbrown.webp b/static/images/hashbrown.webp similarity index 100% rename from src/lib/assets/hashbrown.webp rename to static/images/hashbrown.webp diff --git a/src/lib/assets/hoernli_mit_gehacktem.webp b/static/images/hoernli_mit_gehacktem.webp similarity index 100% rename from src/lib/assets/hoernli_mit_gehacktem.webp rename to static/images/hoernli_mit_gehacktem.webp diff --git a/src/lib/assets/hollondaise.webp b/static/images/hollondaise.webp similarity index 100% rename from src/lib/assets/hollondaise.webp rename to static/images/hollondaise.webp diff --git a/src/lib/assets/hollundersirup.webp b/static/images/hollundersirup.webp similarity index 100% rename from src/lib/assets/hollundersirup.webp rename to static/images/hollundersirup.webp diff --git a/src/lib/assets/huehnerbouillon.webp b/static/images/huehnerbouillon.webp similarity index 100% rename from src/lib/assets/huehnerbouillon.webp rename to static/images/huehnerbouillon.webp diff --git a/src/lib/assets/hummus.webp b/static/images/hummus.webp similarity index 100% rename from src/lib/assets/hummus.webp rename to static/images/hummus.webp diff --git a/src/lib/assets/kaesspaetzle.webp b/static/images/kaesspaetzle.webp similarity index 100% rename from src/lib/assets/kaesspaetzle.webp rename to static/images/kaesspaetzle.webp diff --git a/src/lib/assets/kaiserschmarrn.webp b/static/images/kaiserschmarrn.webp similarity index 100% rename from src/lib/assets/kaiserschmarrn.webp rename to static/images/kaiserschmarrn.webp diff --git a/src/lib/assets/karottensalat.webp b/static/images/karottensalat.webp similarity index 100% rename from src/lib/assets/karottensalat.webp rename to static/images/karottensalat.webp diff --git a/src/lib/assets/kartoffelsalat.webp b/static/images/kartoffelsalat.webp similarity index 100% rename from src/lib/assets/kartoffelsalat.webp rename to static/images/kartoffelsalat.webp diff --git a/src/lib/assets/kasnudeln.webp b/static/images/kasnudeln.webp similarity index 100% rename from src/lib/assets/kasnudeln.webp rename to static/images/kasnudeln.webp diff --git a/src/lib/assets/kirschwaehe.webp b/static/images/kirschwaehe.webp similarity index 100% rename from src/lib/assets/kirschwaehe.webp rename to static/images/kirschwaehe.webp diff --git a/src/lib/assets/kletzennudel.webp b/static/images/kletzennudel.webp similarity index 100% rename from src/lib/assets/kletzennudel.webp rename to static/images/kletzennudel.webp diff --git a/src/lib/assets/knoblauchbrot.webp b/static/images/knoblauchbrot.webp similarity index 100% rename from src/lib/assets/knoblauchbrot.webp rename to static/images/knoblauchbrot.webp diff --git a/src/lib/assets/knochensuppe.webp b/static/images/knochensuppe.webp similarity index 100% rename from src/lib/assets/knochensuppe.webp rename to static/images/knochensuppe.webp diff --git a/src/lib/assets/kokosbusserl.webp b/static/images/kokosbusserl.webp similarity index 100% rename from src/lib/assets/kokosbusserl.webp rename to static/images/kokosbusserl.webp diff --git a/src/lib/assets/kottbullar.webp b/static/images/kottbullar.webp similarity index 100% rename from src/lib/assets/kottbullar.webp rename to static/images/kottbullar.webp diff --git a/src/lib/assets/kraftbruehe.webp b/static/images/kraftbruehe.webp similarity index 100% rename from src/lib/assets/kraftbruehe.webp rename to static/images/kraftbruehe.webp diff --git a/src/lib/assets/kuerbiscremesuppe.webp b/static/images/kuerbiscremesuppe.webp similarity index 100% rename from src/lib/assets/kuerbiscremesuppe.webp rename to static/images/kuerbiscremesuppe.webp diff --git a/src/lib/assets/kuerbisnudeln.webp b/static/images/kuerbisnudeln.webp similarity index 100% rename from src/lib/assets/kuerbisnudeln.webp rename to static/images/kuerbisnudeln.webp diff --git a/src/lib/assets/lauch_dinette.webp b/static/images/lauch_dinette.webp similarity index 100% rename from src/lib/assets/lauch_dinette.webp rename to static/images/lauch_dinette.webp diff --git a/src/lib/assets/lauchquiche.webp b/static/images/lauchquiche.webp similarity index 100% rename from src/lib/assets/lauchquiche.webp rename to static/images/lauchquiche.webp diff --git a/src/lib/assets/linsen_curry.webp b/static/images/linsen_curry.webp similarity index 100% rename from src/lib/assets/linsen_curry.webp rename to static/images/linsen_curry.webp diff --git a/src/lib/assets/marillenknoedel.webp b/static/images/marillenknoedel.webp similarity index 100% rename from src/lib/assets/marillenknoedel.webp rename to static/images/marillenknoedel.webp diff --git a/src/lib/assets/maronisuppe.webp b/static/images/maronisuppe.webp similarity index 100% rename from src/lib/assets/maronisuppe.webp rename to static/images/maronisuppe.webp diff --git a/src/lib/assets/masalachai.webp b/static/images/masalachai.webp similarity index 100% rename from src/lib/assets/masalachai.webp rename to static/images/masalachai.webp diff --git a/src/lib/assets/mayonnaise.webp b/static/images/mayonnaise.webp similarity index 100% rename from src/lib/assets/mayonnaise.webp rename to static/images/mayonnaise.webp diff --git a/src/lib/assets/miso_steak_aubergine.webp b/static/images/miso_steak_aubergine.webp similarity index 100% rename from src/lib/assets/miso_steak_aubergine.webp rename to static/images/miso_steak_aubergine.webp diff --git a/src/lib/assets/mousse_au_chocolat.webp b/static/images/mousse_au_chocolat.webp similarity index 100% rename from src/lib/assets/mousse_au_chocolat.webp rename to static/images/mousse_au_chocolat.webp diff --git a/src/lib/assets/ofen_pommes_frites.webp b/static/images/ofen_pommes_frites.webp similarity index 100% rename from src/lib/assets/ofen_pommes_frites.webp rename to static/images/ofen_pommes_frites.webp diff --git a/src/lib/assets/orecchiette.webp b/static/images/orecchiette.webp similarity index 100% rename from src/lib/assets/orecchiette.webp rename to static/images/orecchiette.webp diff --git a/src/lib/assets/orecchiette_al_pomodoro.webp b/static/images/orecchiette_al_pomodoro.webp similarity index 100% rename from src/lib/assets/orecchiette_al_pomodoro.webp rename to static/images/orecchiette_al_pomodoro.webp diff --git a/src/lib/assets/osterkuchen.webp b/static/images/osterkuchen.webp similarity index 100% rename from src/lib/assets/osterkuchen.webp rename to static/images/osterkuchen.webp diff --git a/src/lib/assets/osterkuchen_osterlamm_schablone.svg b/static/images/osterkuchen_osterlamm_schablone.svg similarity index 100% rename from src/lib/assets/osterkuchen_osterlamm_schablone.svg rename to static/images/osterkuchen_osterlamm_schablone.svg diff --git a/src/lib/assets/osterlamm.webp b/static/images/osterlamm.webp similarity index 100% rename from src/lib/assets/osterlamm.webp rename to static/images/osterlamm.webp diff --git a/src/lib/assets/palatschinken.webp b/static/images/palatschinken.webp similarity index 100% rename from src/lib/assets/palatschinken.webp rename to static/images/palatschinken.webp diff --git a/src/lib/assets/petersilkartoffeln.webp b/static/images/petersilkartoffeln.webp similarity index 100% rename from src/lib/assets/petersilkartoffeln.webp rename to static/images/petersilkartoffeln.webp diff --git a/src/lib/assets/pfeffermaenner.webp b/static/images/pfeffermaenner.webp similarity index 100% rename from src/lib/assets/pfeffermaenner.webp rename to static/images/pfeffermaenner.webp diff --git a/src/lib/assets/pilze.webp b/static/images/pilze.webp similarity index 100% rename from src/lib/assets/pilze.webp rename to static/images/pilze.webp diff --git a/src/lib/assets/pilzrahmsauce.webp b/static/images/pilzrahmsauce.webp similarity index 100% rename from src/lib/assets/pilzrahmsauce.webp rename to static/images/pilzrahmsauce.webp diff --git a/src/lib/assets/pizokel.webp b/static/images/pizokel.webp similarity index 100% rename from src/lib/assets/pizokel.webp rename to static/images/pizokel.webp diff --git a/src/lib/assets/pizza_chorizo.webp b/static/images/pizza_chorizo.webp similarity index 100% rename from src/lib/assets/pizza_chorizo.webp rename to static/images/pizza_chorizo.webp diff --git a/src/lib/assets/pizza_veggie.webp b/static/images/pizza_veggie.webp similarity index 100% rename from src/lib/assets/pizza_veggie.webp rename to static/images/pizza_veggie.webp diff --git a/src/lib/assets/plunderteig.webp b/static/images/plunderteig.webp similarity index 100% rename from src/lib/assets/plunderteig.webp rename to static/images/plunderteig.webp diff --git a/src/lib/assets/poulet_katsu.webp b/static/images/poulet_katsu.webp similarity index 100% rename from src/lib/assets/poulet_katsu.webp rename to static/images/poulet_katsu.webp diff --git a/src/lib/assets/pressgurken.webp b/static/images/pressgurken.webp similarity index 100% rename from src/lib/assets/pressgurken.webp rename to static/images/pressgurken.webp diff --git a/src/lib/assets/quiche_lorraine.webp b/static/images/quiche_lorraine.webp similarity index 100% rename from src/lib/assets/quiche_lorraine.webp rename to static/images/quiche_lorraine.webp diff --git a/src/lib/assets/randen_avocado_roesti.webp b/static/images/randen_avocado_roesti.webp similarity index 100% rename from src/lib/assets/randen_avocado_roesti.webp rename to static/images/randen_avocado_roesti.webp diff --git a/src/lib/assets/randensalat.webp b/static/images/randensalat.webp similarity index 100% rename from src/lib/assets/randensalat.webp rename to static/images/randensalat.webp diff --git a/src/lib/assets/ratatouille.webp b/static/images/ratatouille.webp similarity index 100% rename from src/lib/assets/ratatouille.webp rename to static/images/ratatouille.webp diff --git a/src/lib/assets/reindling.webp b/static/images/reindling.webp similarity index 100% rename from src/lib/assets/reindling.webp rename to static/images/reindling.webp diff --git a/lib/img/rhabarberkonfi.webp b/static/images/rhabarberkonfi.webp similarity index 100% rename from lib/img/rhabarberkonfi.webp rename to static/images/rhabarberkonfi.webp diff --git a/src/lib/assets/rhabarberkonfi.webp b/static/images/rharbarberkonfi.webp similarity index 100% rename from src/lib/assets/rhabarberkonfi.webp rename to static/images/rharbarberkonfi.webp diff --git a/src/lib/assets/rindsgoulasch.webp b/static/images/rindsgoulasch.webp similarity index 100% rename from src/lib/assets/rindsgoulasch.webp rename to static/images/rindsgoulasch.webp diff --git a/src/lib/assets/roesti.webp b/static/images/roesti.webp similarity index 100% rename from src/lib/assets/roesti.webp rename to static/images/roesti.webp diff --git a/src/lib/assets/rote_linsen_hummus.webp b/static/images/rote_linsen_hummus.webp similarity index 100% rename from src/lib/assets/rote_linsen_hummus.webp rename to static/images/rote_linsen_hummus.webp diff --git a/src/lib/assets/rotkraut.webp b/static/images/rotkraut.webp similarity index 100% rename from src/lib/assets/rotkraut.webp rename to static/images/rotkraut.webp diff --git a/src/lib/assets/ruchbrot.webp b/static/images/ruchbrot.webp similarity index 100% rename from src/lib/assets/ruchbrot.webp rename to static/images/ruchbrot.webp diff --git a/src/lib/assets/rustikal.webp b/static/images/rustikal.webp similarity index 100% rename from src/lib/assets/rustikal.webp rename to static/images/rustikal.webp diff --git a/src/lib/assets/sachertorte.webp b/static/images/sachertorte.webp similarity index 100% rename from src/lib/assets/sachertorte.webp rename to static/images/sachertorte.webp diff --git a/src/lib/assets/salbei_spaghetti.webp b/static/images/salbei_spaghetti.webp similarity index 100% rename from src/lib/assets/salbei_spaghetti.webp rename to static/images/salbei_spaghetti.webp diff --git a/src/lib/assets/sauerkrautauflauf.webp b/static/images/sauerkrautauflauf.webp similarity index 100% rename from src/lib/assets/sauerkrautauflauf.webp rename to static/images/sauerkrautauflauf.webp diff --git a/src/lib/assets/sauerteigbrot.webp b/static/images/sauerteigbrot.webp similarity index 100% rename from src/lib/assets/sauerteigbrot.webp rename to static/images/sauerteigbrot.webp diff --git a/src/lib/assets/schoggi.webp b/static/images/schoggi.webp similarity index 100% rename from src/lib/assets/schoggi.webp rename to static/images/schoggi.webp diff --git a/src/lib/assets/schupfnudeln.webp b/static/images/schupfnudeln.webp similarity index 100% rename from src/lib/assets/schupfnudeln.webp rename to static/images/schupfnudeln.webp diff --git a/src/lib/assets/schupfnudeln_mit_kraut_und_speck.webp b/static/images/schupfnudeln_mit_kraut_und_speck.webp similarity index 100% rename from src/lib/assets/schupfnudeln_mit_kraut_und_speck.webp rename to static/images/schupfnudeln_mit_kraut_und_speck.webp diff --git a/src/lib/assets/semmelknoedel.webp b/static/images/semmelknoedel.webp similarity index 100% rename from src/lib/assets/semmelknoedel.webp rename to static/images/semmelknoedel.webp diff --git a/src/lib/assets/semmeln.webp b/static/images/semmeln.webp similarity index 100% rename from src/lib/assets/semmeln.webp rename to static/images/semmeln.webp diff --git a/src/lib/assets/shokupan.webp b/static/images/shokupan.webp similarity index 100% rename from src/lib/assets/shokupan.webp rename to static/images/shokupan.webp diff --git a/src/lib/assets/siebbrot.webp b/static/images/siebbrot.webp similarity index 100% rename from src/lib/assets/siebbrot.webp rename to static/images/siebbrot.webp diff --git a/src/lib/assets/spinat_spaghetti.webp b/static/images/spinat_spaghetti.webp similarity index 100% rename from src/lib/assets/spinat_spaghetti.webp rename to static/images/spinat_spaghetti.webp diff --git a/src/lib/assets/spitzbuben.webp b/static/images/spitzbuben.webp similarity index 100% rename from src/lib/assets/spitzbuben.webp rename to static/images/spitzbuben.webp diff --git a/src/lib/assets/strudelteig.webp b/static/images/strudelteig.webp similarity index 100% rename from src/lib/assets/strudelteig.webp rename to static/images/strudelteig.webp diff --git a/src/lib/assets/tiramisu.webp b/static/images/tiramisu.webp similarity index 100% rename from src/lib/assets/tiramisu.webp rename to static/images/tiramisu.webp diff --git a/src/lib/assets/tirggel.webp b/static/images/tirggel.webp similarity index 100% rename from src/lib/assets/tirggel.webp rename to static/images/tirggel.webp diff --git a/src/lib/assets/tomatensuppe.webp b/static/images/tomatensuppe.webp similarity index 100% rename from src/lib/assets/tomatensuppe.webp rename to static/images/tomatensuppe.webp diff --git a/src/lib/assets/uromas_vanillekipferl.webp b/static/images/uromas_vanillekipferl.webp similarity index 100% rename from src/lib/assets/uromas_vanillekipferl.webp rename to static/images/uromas_vanillekipferl.webp diff --git a/src/lib/assets/weihnachtsgans.webp b/static/images/weihnachtsgans.webp similarity index 100% rename from src/lib/assets/weihnachtsgans.webp rename to static/images/weihnachtsgans.webp diff --git a/src/lib/assets/wienerschnitzel.webp b/static/images/wienerschnitzel.webp similarity index 100% rename from src/lib/assets/wienerschnitzel.webp rename to static/images/wienerschnitzel.webp diff --git a/src/lib/assets/wintergemuesestrudel.webp b/static/images/wintergemuesestrudel.webp similarity index 100% rename from src/lib/assets/wintergemuesestrudel.webp rename to static/images/wintergemuesestrudel.webp diff --git a/src/lib/assets/zimtsterne.webp b/static/images/zimtsterne.webp similarity index 100% rename from src/lib/assets/zimtsterne.webp rename to static/images/zimtsterne.webp diff --git a/src/lib/assets/zitrone_kaeseravioli.webp b/static/images/zitrone_kaeseravioli.webp similarity index 100% rename from src/lib/assets/zitrone_kaeseravioli.webp rename to static/images/zitrone_kaeseravioli.webp diff --git a/src/lib/assets/zopf.webp b/static/images/zopf.webp similarity index 100% rename from src/lib/assets/zopf.webp rename to static/images/zopf.webp diff --git a/src/lib/assets/zopf2.webp b/static/images/zopf2.webp similarity index 100% rename from src/lib/assets/zopf2.webp rename to static/images/zopf2.webp diff --git a/src/lib/assets/zucchinicremesuppe.webp b/static/images/zucchinicremesuppe.webp similarity index 100% rename from src/lib/assets/zucchinicremesuppe.webp rename to static/images/zucchinicremesuppe.webp diff --git a/src/lib/assets/zwiebelsuppe.webp b/static/images/zwiebelsuppe.webp similarity index 100% rename from src/lib/assets/zwiebelsuppe.webp rename to static/images/zwiebelsuppe.webp diff --git a/svelte.config.js b/svelte.config.js index 4eb66e5..4c6ea9c 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,13 +1,11 @@ import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/kit/vite'; -import { importAssets } from 'svelte-preprocess-import-assets' /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors - preprocess: [vitePreprocess(), importAssets()], - + preprocess: [vitePreprocess()], kit: { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported or you settled on a specific environment, switch out the adapter. diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..fce9e87 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], });