diff --git a/package.json b/package.json index 04db431..dec6f41 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "type": "module", "dependencies": { - "mongoose": "^7.3.0" + "mongoose": "^7.3.0", + "sass": "^1.63.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7cb22d..a6ca148 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ dependencies: mongoose: specifier: ^7.3.0 version: 7.3.0 + sass: + specifier: ^1.63.4 + version: 1.63.4 devDependencies: '@sveltejs/adapter-auto': @@ -21,7 +24,7 @@ devDependencies: version: 3.59.1 svelte-check: specifier: ^3.0.1 - version: 3.4.3(svelte@3.59.1) + version: 3.4.3(sass@1.63.4)(svelte@3.59.1) svelte-preprocess-import-assets: specifier: ^1.0.0 version: 1.0.0(svelte@3.59.1) @@ -33,7 +36,7 @@ devDependencies: version: 5.1.3 vite: specifier: ^4.3.0 - version: 4.3.9 + version: 4.3.9(sass@1.63.4) packages: @@ -312,7 +315,7 @@ packages: svelte: 3.59.1 tiny-glob: 0.2.9 undici: 5.22.1 - vite: 4.3.9 + vite: 4.3.9(sass@1.63.4) transitivePeerDependencies: - supports-color dev: true @@ -328,7 +331,7 @@ packages: '@sveltejs/vite-plugin-svelte': 2.4.1(svelte@3.59.1)(vite@4.3.9) debug: 4.3.4 svelte: 3.59.1 - vite: 4.3.9 + vite: 4.3.9(sass@1.63.4) transitivePeerDependencies: - supports-color dev: true @@ -347,7 +350,7 @@ packages: magic-string: 0.30.0 svelte: 3.59.1 svelte-hmr: 0.15.2(svelte@3.59.1) - vite: 4.3.9 + vite: 4.3.9(sass@1.63.4) vitefu: 0.2.4(vite@4.3.9) transitivePeerDependencies: - supports-color @@ -382,7 +385,6 @@ packages: dependencies: normalize-path: 3.0.0 picomatch: 2.3.1 - dev: true /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -391,7 +393,6 @@ packages: /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} - dev: true /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} @@ -405,7 +406,6 @@ packages: engines: {node: '>=8'} dependencies: fill-range: 7.0.1 - dev: true /bson@5.3.0: resolution: {integrity: sha512-ukmCZMneMlaC5ebPHXIkP8YJzNl5DC41N5MAIvKDqLggdao342t4McltoJBQfQya/nHBWAcSsYRqlXPoQkTJag==} @@ -441,7 +441,6 @@ packages: readdirp: 3.6.0 optionalDependencies: fsevents: 2.3.2 - dev: true /concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -537,7 +536,6 @@ packages: engines: {node: '>=8'} dependencies: to-regex-range: 5.0.1 - dev: true /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -548,7 +546,6 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true - dev: true optional: true /glob-parent@5.1.2: @@ -556,7 +553,6 @@ packages: engines: {node: '>= 6'} dependencies: is-glob: 4.0.3 - dev: true /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} @@ -581,6 +577,9 @@ packages: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} dev: true + /immutable@4.3.0: + resolution: {integrity: sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==} + /import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -613,24 +612,20 @@ packages: engines: {node: '>=8'} dependencies: binary-extensions: 2.2.0 - dev: true /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} - dev: true /is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} dependencies: is-extglob: 2.1.1 - dev: true /is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} - dev: true /kareem@2.5.1: resolution: {integrity: sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==} @@ -789,7 +784,6 @@ packages: /normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} - dev: true /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -816,7 +810,6 @@ packages: /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - dev: true /postcss@8.4.24: resolution: {integrity: sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==} @@ -841,7 +834,6 @@ packages: engines: {node: '>=8.10.0'} dependencies: picomatch: 2.3.1 - dev: true /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} @@ -899,6 +891,15 @@ packages: dev: false optional: true + /sass@1.63.4: + resolution: {integrity: sha512-Sx/+weUmK+oiIlI+9sdD0wZHsqpbgQg8wSwSnGBjwb5GwqFhYNwwnI+UWZtLjKvKyFlKkatRK235qQ3mokyPoQ==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + chokidar: 3.5.3 + immutable: 4.3.0 + source-map-js: 1.0.2 + /set-cookie-parser@2.6.0: resolution: {integrity: sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==} dev: true @@ -942,7 +943,6 @@ packages: /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} - dev: true /sparse-bitfield@3.0.3: resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==} @@ -963,7 +963,7 @@ packages: min-indent: 1.0.1 dev: true - /svelte-check@3.4.3(svelte@3.59.1): + /svelte-check@3.4.3(sass@1.63.4)(svelte@3.59.1): resolution: {integrity: sha512-O07soQFY3X0VDt+bcGc6D5naz0cLtjwnmNP9JsEBPVyMemFEqUhL2OdLqvkl5H/u8Jwm50EiAU4BPRn5iin/kg==} hasBin: true peerDependencies: @@ -976,7 +976,7 @@ packages: picocolors: 1.0.0 sade: 1.8.1 svelte: 3.59.1 - svelte-preprocess: 5.0.4(svelte@3.59.1)(typescript@5.1.3) + svelte-preprocess: 5.0.4(sass@1.63.4)(svelte@3.59.1)(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: - '@babel/core' @@ -1017,7 +1017,7 @@ packages: svelte-parse-markup: 0.1.1(svelte@3.59.1) dev: true - /svelte-preprocess@5.0.4(svelte@3.59.1)(typescript@5.1.3): + /svelte-preprocess@5.0.4(sass@1.63.4)(svelte@3.59.1)(typescript@5.1.3): resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==} engines: {node: '>= 14.10.0'} requiresBuild: true @@ -1058,6 +1058,7 @@ packages: '@types/pug': 2.0.6 detect-indent: 6.1.0 magic-string: 0.27.0 + sass: 1.63.4 sorcery: 0.11.0 strip-indent: 3.0.0 svelte: 3.59.1 @@ -1081,7 +1082,6 @@ packages: engines: {node: '>=8.0'} dependencies: is-number: 7.0.0 - dev: true /totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} @@ -1112,7 +1112,7 @@ packages: busboy: 1.6.0 dev: true - /vite@4.3.9: + /vite@4.3.9(sass@1.63.4): resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -1140,6 +1140,7 @@ packages: esbuild: 0.17.19 postcss: 8.4.24 rollup: 3.25.1 + sass: 1.63.4 optionalDependencies: fsevents: 2.3.2 dev: true @@ -1152,7 +1153,7 @@ packages: vite: optional: true dependencies: - vite: 4.3.9 + vite: 4.3.9(sass@1.63.4) dev: true /webidl-conversions@7.0.0: diff --git a/src/app.d.ts b/src/app.d.ts index f59b884..3ce0b7c 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,5 +1,9 @@ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces +declare module '@fortawesome/pro-solid-svg-icons/index.es' { + export * from '@fortawesome/pro-solid-svg-icons'; +} + declare global { namespace App { // interface Error {} diff --git a/src/lib/assets/img/aelplermagronen.webp b/src/lib/assets/img/aelplermagronen.webp deleted file mode 100644 index 85004bd..0000000 Binary files a/src/lib/assets/img/aelplermagronen.webp and /dev/null differ diff --git a/src/lib/assets/img/aglio_e_olio.webp b/src/lib/assets/img/aglio_e_olio.webp deleted file mode 100644 index 8487386..0000000 Binary files a/src/lib/assets/img/aglio_e_olio.webp and /dev/null differ diff --git a/src/lib/assets/img/ajitama.webp b/src/lib/assets/img/ajitama.webp deleted file mode 100644 index a6da6fd..0000000 Binary files a/src/lib/assets/img/ajitama.webp and /dev/null differ diff --git a/src/lib/assets/img/al_ragu.webp b/src/lib/assets/img/al_ragu.webp deleted file mode 100644 index b03118c..0000000 Binary files a/src/lib/assets/img/al_ragu.webp and /dev/null differ diff --git a/src/lib/assets/img/anisbrot.webp b/src/lib/assets/img/anisbrot.webp deleted file mode 100644 index c6c2f0f..0000000 Binary files a/src/lib/assets/img/anisbrot.webp and /dev/null differ diff --git a/src/lib/assets/img/annaomelette.webp b/src/lib/assets/img/annaomelette.webp deleted file mode 100644 index fa2cd04..0000000 Binary files a/src/lib/assets/img/annaomelette.webp and /dev/null differ diff --git a/src/lib/assets/img/apfelkompott.webp b/src/lib/assets/img/apfelkompott.webp deleted file mode 100644 index add02a7..0000000 Binary files a/src/lib/assets/img/apfelkompott.webp and /dev/null differ diff --git a/src/lib/assets/img/apfelstrudel.webp b/src/lib/assets/img/apfelstrudel.webp deleted file mode 100644 index 35687f2..0000000 Binary files a/src/lib/assets/img/apfelstrudel.webp and /dev/null differ diff --git a/src/lib/assets/img/apfelwaehe.webp b/src/lib/assets/img/apfelwaehe.webp deleted file mode 100644 index 018d4ed..0000000 Binary files a/src/lib/assets/img/apfelwaehe.webp and /dev/null differ diff --git a/src/lib/assets/img/aprikosenwaehe.webp b/src/lib/assets/img/aprikosenwaehe.webp deleted file mode 100644 index dcf860e..0000000 Binary files a/src/lib/assets/img/aprikosenwaehe.webp and /dev/null differ diff --git a/src/lib/assets/img/baerlauchravioli.webp b/src/lib/assets/img/baerlauchravioli.webp deleted file mode 100644 index 57edc56..0000000 Binary files a/src/lib/assets/img/baerlauchravioli.webp and /dev/null differ diff --git a/src/lib/assets/img/basler_brunsli.webp b/src/lib/assets/img/basler_brunsli.webp deleted file mode 100644 index b70e7fd..0000000 Binary files a/src/lib/assets/img/basler_brunsli.webp and /dev/null differ diff --git a/src/lib/assets/img/brezel.webp b/src/lib/assets/img/brezel.webp deleted file mode 100644 index d0bd18f..0000000 Binary files a/src/lib/assets/img/brezel.webp and /dev/null differ diff --git a/src/lib/assets/img/broeseltopfen.webp b/src/lib/assets/img/broeseltopfen.webp deleted file mode 100644 index 7ff725c..0000000 Binary files a/src/lib/assets/img/broeseltopfen.webp and /dev/null differ diff --git a/src/lib/assets/img/brokkolisuppe.webp b/src/lib/assets/img/brokkolisuppe.webp deleted file mode 100644 index 2c6e786..0000000 Binary files a/src/lib/assets/img/brokkolisuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/brotgewuerz.webp b/src/lib/assets/img/brotgewuerz.webp deleted file mode 100644 index 75d8497..0000000 Binary files a/src/lib/assets/img/brotgewuerz.webp and /dev/null differ diff --git a/src/lib/assets/img/buchtel_vanillesauce.webp b/src/lib/assets/img/buchtel_vanillesauce.webp deleted file mode 100644 index 6ef8475..0000000 Binary files a/src/lib/assets/img/buchtel_vanillesauce.webp and /dev/null differ diff --git a/src/lib/assets/img/buendner_nusstorte.webp b/src/lib/assets/img/buendner_nusstorte.webp deleted file mode 100644 index d4b6271..0000000 Binary files a/src/lib/assets/img/buendner_nusstorte.webp and /dev/null differ diff --git a/src/lib/assets/img/burger_buns.webp b/src/lib/assets/img/burger_buns.webp deleted file mode 100644 index d79194e..0000000 Binary files a/src/lib/assets/img/burger_buns.webp and /dev/null differ diff --git a/src/lib/assets/img/carbonara.webp b/src/lib/assets/img/carbonara.webp deleted file mode 100644 index 46c99b7..0000000 Binary files a/src/lib/assets/img/carbonara.webp and /dev/null differ diff --git a/src/lib/assets/img/chaeschueechli.webp b/src/lib/assets/img/chaeschueechli.webp deleted file mode 100644 index f0c3c85..0000000 Binary files a/src/lib/assets/img/chaeschueechli.webp and /dev/null differ diff --git a/src/lib/assets/img/checca.webp b/src/lib/assets/img/checca.webp deleted file mode 100644 index f9c1d14..0000000 Binary files a/src/lib/assets/img/checca.webp and /dev/null differ diff --git a/src/lib/assets/img/daenische_kardamomkekse.webp b/src/lib/assets/img/daenische_kardamomkekse.webp deleted file mode 100644 index deaf9be..0000000 Binary files a/src/lib/assets/img/daenische_kardamomkekse.webp and /dev/null differ diff --git a/src/lib/assets/img/dinette.webp b/src/lib/assets/img/dinette.webp deleted file mode 100644 index 1214a38..0000000 Binary files a/src/lib/assets/img/dinette.webp and /dev/null differ diff --git a/src/lib/assets/img/eierschwammerlgoulash.webp b/src/lib/assets/img/eierschwammerlgoulash.webp deleted file mode 100644 index abbe8d9..0000000 Binary files a/src/lib/assets/img/eierschwammerlgoulash.webp and /dev/null differ diff --git a/src/lib/assets/img/eingelegte_zwiebel.webp b/src/lib/assets/img/eingelegte_zwiebel.webp deleted file mode 100644 index d04a41c..0000000 Binary files a/src/lib/assets/img/eingelegte_zwiebel.webp and /dev/null differ diff --git a/src/lib/assets/img/erdaepfelgoulasch.webp b/src/lib/assets/img/erdaepfelgoulasch.webp deleted file mode 100644 index 9309f4d..0000000 Binary files a/src/lib/assets/img/erdaepfelgoulasch.webp and /dev/null differ diff --git a/src/lib/assets/img/fastenwaehe.webp b/src/lib/assets/img/fastenwaehe.webp deleted file mode 100644 index 2a62112..0000000 Binary files a/src/lib/assets/img/fastenwaehe.webp and /dev/null differ diff --git a/src/lib/assets/img/firecracker.webp b/src/lib/assets/img/firecracker.webp deleted file mode 100644 index 6da1123..0000000 Binary files a/src/lib/assets/img/firecracker.webp and /dev/null differ diff --git a/src/lib/assets/img/flammkuchen.webp b/src/lib/assets/img/flammkuchen.webp deleted file mode 100644 index 6501b82..0000000 Binary files a/src/lib/assets/img/flammkuchen.webp and /dev/null differ diff --git a/src/lib/assets/img/frittatensuppe.webp b/src/lib/assets/img/frittatensuppe.webp deleted file mode 100644 index 774c3ba..0000000 Binary files a/src/lib/assets/img/frittatensuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/germknoedel.webp b/src/lib/assets/img/germknoedel.webp deleted file mode 100644 index 4d314eb..0000000 Binary files a/src/lib/assets/img/germknoedel.webp and /dev/null differ diff --git a/src/lib/assets/img/gnocchi.webp b/src/lib/assets/img/gnocchi.webp deleted file mode 100644 index 49e41f2..0000000 Binary files a/src/lib/assets/img/gnocchi.webp and /dev/null differ diff --git a/src/lib/assets/img/gratin_dauphinois.webp b/src/lib/assets/img/gratin_dauphinois.webp deleted file mode 100644 index 38a77be..0000000 Binary files a/src/lib/assets/img/gratin_dauphinois.webp and /dev/null differ diff --git a/src/lib/assets/img/gurkensalat.webp b/src/lib/assets/img/gurkensalat.webp deleted file mode 100644 index 89bb042..0000000 Binary files a/src/lib/assets/img/gurkensalat.webp and /dev/null differ diff --git a/src/lib/assets/img/hashbrown.webp b/src/lib/assets/img/hashbrown.webp deleted file mode 100644 index 5ac761f..0000000 Binary files a/src/lib/assets/img/hashbrown.webp and /dev/null differ diff --git a/src/lib/assets/img/hoernli_mit_gehacktem.webp b/src/lib/assets/img/hoernli_mit_gehacktem.webp deleted file mode 100644 index 1d4ca1c..0000000 Binary files a/src/lib/assets/img/hoernli_mit_gehacktem.webp and /dev/null differ diff --git a/src/lib/assets/img/hollondaise.webp b/src/lib/assets/img/hollondaise.webp deleted file mode 100644 index 57320ed..0000000 Binary files a/src/lib/assets/img/hollondaise.webp and /dev/null differ diff --git a/src/lib/assets/img/hollundersirup.webp b/src/lib/assets/img/hollundersirup.webp deleted file mode 100644 index cb2ede2..0000000 Binary files a/src/lib/assets/img/hollundersirup.webp and /dev/null differ diff --git a/src/lib/assets/img/huehnerbouillon.webp b/src/lib/assets/img/huehnerbouillon.webp deleted file mode 100644 index 627bc19..0000000 Binary files a/src/lib/assets/img/huehnerbouillon.webp and /dev/null differ diff --git a/src/lib/assets/img/hummus.webp b/src/lib/assets/img/hummus.webp deleted file mode 100644 index cfef298..0000000 Binary files a/src/lib/assets/img/hummus.webp and /dev/null differ diff --git a/src/lib/assets/img/kaesspaetzle.webp b/src/lib/assets/img/kaesspaetzle.webp deleted file mode 100644 index d2822a3..0000000 Binary files a/src/lib/assets/img/kaesspaetzle.webp and /dev/null differ diff --git a/src/lib/assets/img/kaiserschmarrn.webp b/src/lib/assets/img/kaiserschmarrn.webp deleted file mode 100644 index 9c8b3ee..0000000 Binary files a/src/lib/assets/img/kaiserschmarrn.webp and /dev/null differ diff --git a/src/lib/assets/img/karottensalat.webp b/src/lib/assets/img/karottensalat.webp deleted file mode 100644 index b0b7613..0000000 Binary files a/src/lib/assets/img/karottensalat.webp and /dev/null differ diff --git a/src/lib/assets/img/kartoffelsalat.webp b/src/lib/assets/img/kartoffelsalat.webp deleted file mode 100644 index 71c6cb6..0000000 Binary files a/src/lib/assets/img/kartoffelsalat.webp and /dev/null differ diff --git a/src/lib/assets/img/kasnudeln.webp b/src/lib/assets/img/kasnudeln.webp deleted file mode 100644 index 8a9163a..0000000 Binary files a/src/lib/assets/img/kasnudeln.webp and /dev/null differ diff --git a/src/lib/assets/img/kirschwaehe.webp b/src/lib/assets/img/kirschwaehe.webp deleted file mode 100644 index 67dbd74..0000000 Binary files a/src/lib/assets/img/kirschwaehe.webp and /dev/null differ diff --git a/src/lib/assets/img/kletzennudel.webp b/src/lib/assets/img/kletzennudel.webp deleted file mode 100644 index 483f252..0000000 Binary files a/src/lib/assets/img/kletzennudel.webp and /dev/null differ diff --git a/src/lib/assets/img/knoblauchbrot.webp b/src/lib/assets/img/knoblauchbrot.webp deleted file mode 100644 index cc626d0..0000000 Binary files a/src/lib/assets/img/knoblauchbrot.webp and /dev/null differ diff --git a/src/lib/assets/img/knochensuppe.webp b/src/lib/assets/img/knochensuppe.webp deleted file mode 100644 index 325431d..0000000 Binary files a/src/lib/assets/img/knochensuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/kokosbusserl.webp b/src/lib/assets/img/kokosbusserl.webp deleted file mode 100644 index 6789166..0000000 Binary files a/src/lib/assets/img/kokosbusserl.webp and /dev/null differ diff --git a/src/lib/assets/img/kottbullar.webp b/src/lib/assets/img/kottbullar.webp deleted file mode 100644 index 40dfde5..0000000 Binary files a/src/lib/assets/img/kottbullar.webp and /dev/null differ diff --git a/src/lib/assets/img/kraftbruehe.webp b/src/lib/assets/img/kraftbruehe.webp deleted file mode 100644 index 4d6d138..0000000 Binary files a/src/lib/assets/img/kraftbruehe.webp and /dev/null differ diff --git a/src/lib/assets/img/kuerbiscremesuppe.webp b/src/lib/assets/img/kuerbiscremesuppe.webp deleted file mode 100644 index 131fd30..0000000 Binary files a/src/lib/assets/img/kuerbiscremesuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/kuerbisnudeln.webp b/src/lib/assets/img/kuerbisnudeln.webp deleted file mode 100644 index 8dd2db5..0000000 Binary files a/src/lib/assets/img/kuerbisnudeln.webp and /dev/null differ diff --git a/src/lib/assets/img/lauch_dinette.webp b/src/lib/assets/img/lauch_dinette.webp deleted file mode 100644 index 5fab550..0000000 Binary files a/src/lib/assets/img/lauch_dinette.webp and /dev/null differ diff --git a/src/lib/assets/img/lauchquiche.webp b/src/lib/assets/img/lauchquiche.webp deleted file mode 100644 index 316e567..0000000 Binary files a/src/lib/assets/img/lauchquiche.webp and /dev/null differ diff --git a/src/lib/assets/img/linsen_curry.webp b/src/lib/assets/img/linsen_curry.webp deleted file mode 100644 index 223e014..0000000 Binary files a/src/lib/assets/img/linsen_curry.webp and /dev/null differ diff --git a/src/lib/assets/img/load_html.js b/src/lib/assets/img/load_html.js deleted file mode 100644 index 85b148b..0000000 --- a/src/lib/assets/img/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/assets/img/marillenknoedel.webp b/src/lib/assets/img/marillenknoedel.webp deleted file mode 100644 index d507573..0000000 Binary files a/src/lib/assets/img/marillenknoedel.webp and /dev/null differ diff --git a/src/lib/assets/img/maronisuppe.webp b/src/lib/assets/img/maronisuppe.webp deleted file mode 100644 index b04d0be..0000000 Binary files a/src/lib/assets/img/maronisuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/masalachai.webp b/src/lib/assets/img/masalachai.webp deleted file mode 100644 index e152a58..0000000 Binary files a/src/lib/assets/img/masalachai.webp and /dev/null differ diff --git a/src/lib/assets/img/mayonnaise.webp b/src/lib/assets/img/mayonnaise.webp deleted file mode 100644 index f438be2..0000000 Binary files a/src/lib/assets/img/mayonnaise.webp and /dev/null differ diff --git a/src/lib/assets/img/miso_steak_aubergine.webp b/src/lib/assets/img/miso_steak_aubergine.webp deleted file mode 100644 index 4705db8..0000000 Binary files a/src/lib/assets/img/miso_steak_aubergine.webp and /dev/null differ diff --git a/src/lib/assets/img/mousse_au_chocolat.webp b/src/lib/assets/img/mousse_au_chocolat.webp deleted file mode 100644 index 4b1b242..0000000 Binary files a/src/lib/assets/img/mousse_au_chocolat.webp and /dev/null differ diff --git a/src/lib/assets/img/ofen_pommes_frites.webp b/src/lib/assets/img/ofen_pommes_frites.webp deleted file mode 100644 index 4321762..0000000 Binary files a/src/lib/assets/img/ofen_pommes_frites.webp and /dev/null differ diff --git a/src/lib/assets/img/orecchiette.webp b/src/lib/assets/img/orecchiette.webp deleted file mode 100644 index e03846f..0000000 Binary files a/src/lib/assets/img/orecchiette.webp and /dev/null differ diff --git a/src/lib/assets/img/orecchiette_al_pomodoro.webp b/src/lib/assets/img/orecchiette_al_pomodoro.webp deleted file mode 100644 index 6200651..0000000 Binary files a/src/lib/assets/img/orecchiette_al_pomodoro.webp and /dev/null differ diff --git a/src/lib/assets/img/osterkuchen.webp b/src/lib/assets/img/osterkuchen.webp deleted file mode 100644 index d9dc467..0000000 Binary files a/src/lib/assets/img/osterkuchen.webp and /dev/null differ diff --git a/src/lib/assets/img/osterkuchen_osterlamm_schablone.svg b/src/lib/assets/img/osterkuchen_osterlamm_schablone.svg deleted file mode 100644 index c6e604a..0000000 --- a/src/lib/assets/img/osterkuchen_osterlamm_schablone.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - diff --git a/src/lib/assets/img/osterlamm.webp b/src/lib/assets/img/osterlamm.webp deleted file mode 100644 index b916ad4..0000000 Binary files a/src/lib/assets/img/osterlamm.webp and /dev/null differ diff --git a/src/lib/assets/img/palatschinken.webp b/src/lib/assets/img/palatschinken.webp deleted file mode 100644 index 11c7675..0000000 Binary files a/src/lib/assets/img/palatschinken.webp and /dev/null differ diff --git a/src/lib/assets/img/petersilkartoffeln.webp b/src/lib/assets/img/petersilkartoffeln.webp deleted file mode 100644 index b92acfa..0000000 Binary files a/src/lib/assets/img/petersilkartoffeln.webp and /dev/null differ diff --git a/src/lib/assets/img/pfeffermaenner.webp b/src/lib/assets/img/pfeffermaenner.webp deleted file mode 100644 index f8ca93b..0000000 Binary files a/src/lib/assets/img/pfeffermaenner.webp and /dev/null differ diff --git a/src/lib/assets/img/pilze.webp b/src/lib/assets/img/pilze.webp deleted file mode 100644 index 72791be..0000000 Binary files a/src/lib/assets/img/pilze.webp and /dev/null differ diff --git a/src/lib/assets/img/pilzrahmsauce.webp b/src/lib/assets/img/pilzrahmsauce.webp deleted file mode 100644 index ba51693..0000000 Binary files a/src/lib/assets/img/pilzrahmsauce.webp and /dev/null differ diff --git a/src/lib/assets/img/pizokel.webp b/src/lib/assets/img/pizokel.webp deleted file mode 100644 index 4fe3c7a..0000000 Binary files a/src/lib/assets/img/pizokel.webp and /dev/null differ diff --git a/src/lib/assets/img/pizza_chorizo.webp b/src/lib/assets/img/pizza_chorizo.webp deleted file mode 100644 index 518c5de..0000000 Binary files a/src/lib/assets/img/pizza_chorizo.webp and /dev/null differ diff --git a/src/lib/assets/img/pizza_veggie.webp b/src/lib/assets/img/pizza_veggie.webp deleted file mode 100644 index 2da312d..0000000 Binary files a/src/lib/assets/img/pizza_veggie.webp and /dev/null differ diff --git a/src/lib/assets/img/plunderteig.webp b/src/lib/assets/img/plunderteig.webp deleted file mode 100644 index 509a9d8..0000000 Binary files a/src/lib/assets/img/plunderteig.webp and /dev/null differ diff --git a/src/lib/assets/img/poulet_katsu.webp b/src/lib/assets/img/poulet_katsu.webp deleted file mode 100644 index 250be56..0000000 Binary files a/src/lib/assets/img/poulet_katsu.webp and /dev/null differ diff --git a/src/lib/assets/img/pressgurken.webp b/src/lib/assets/img/pressgurken.webp deleted file mode 100644 index d0301b4..0000000 Binary files a/src/lib/assets/img/pressgurken.webp and /dev/null differ diff --git a/src/lib/assets/img/quiche_lorraine.webp b/src/lib/assets/img/quiche_lorraine.webp deleted file mode 100644 index 2a55fcd..0000000 Binary files a/src/lib/assets/img/quiche_lorraine.webp and /dev/null differ diff --git a/src/lib/assets/img/randen_avocado_roesti.webp b/src/lib/assets/img/randen_avocado_roesti.webp deleted file mode 100644 index 8ff1c22..0000000 Binary files a/src/lib/assets/img/randen_avocado_roesti.webp and /dev/null differ diff --git a/src/lib/assets/img/randensalat.webp b/src/lib/assets/img/randensalat.webp deleted file mode 100644 index c326660..0000000 Binary files a/src/lib/assets/img/randensalat.webp and /dev/null differ diff --git a/src/lib/assets/img/ratatouille.webp b/src/lib/assets/img/ratatouille.webp deleted file mode 100644 index bf4e4b8..0000000 Binary files a/src/lib/assets/img/ratatouille.webp and /dev/null differ diff --git a/src/lib/assets/img/reindling.webp b/src/lib/assets/img/reindling.webp deleted file mode 100644 index 682fed9..0000000 Binary files a/src/lib/assets/img/reindling.webp and /dev/null differ diff --git a/src/lib/assets/img/rhabarberkonfi.webp b/src/lib/assets/img/rhabarberkonfi.webp deleted file mode 100644 index d2ee840..0000000 Binary files a/src/lib/assets/img/rhabarberkonfi.webp and /dev/null differ diff --git a/src/lib/assets/img/rindsgoulasch.webp b/src/lib/assets/img/rindsgoulasch.webp deleted file mode 100644 index 4f5511e..0000000 Binary files a/src/lib/assets/img/rindsgoulasch.webp and /dev/null differ diff --git a/src/lib/assets/img/roesti.webp b/src/lib/assets/img/roesti.webp deleted file mode 100644 index c45ee28..0000000 Binary files a/src/lib/assets/img/roesti.webp and /dev/null differ diff --git a/src/lib/assets/img/rote_linsen_hummus.webp b/src/lib/assets/img/rote_linsen_hummus.webp deleted file mode 100644 index 4eb6fc9..0000000 Binary files a/src/lib/assets/img/rote_linsen_hummus.webp and /dev/null differ diff --git a/src/lib/assets/img/rotkraut.webp b/src/lib/assets/img/rotkraut.webp deleted file mode 100644 index b5122c3..0000000 Binary files a/src/lib/assets/img/rotkraut.webp and /dev/null differ diff --git a/src/lib/assets/img/ruchbrot.webp b/src/lib/assets/img/ruchbrot.webp deleted file mode 100644 index 930cb38..0000000 Binary files a/src/lib/assets/img/ruchbrot.webp and /dev/null differ diff --git a/src/lib/assets/img/rustikal.webp b/src/lib/assets/img/rustikal.webp deleted file mode 100644 index 991089c..0000000 Binary files a/src/lib/assets/img/rustikal.webp and /dev/null differ diff --git a/src/lib/assets/img/sachertorte.webp b/src/lib/assets/img/sachertorte.webp deleted file mode 100644 index 9e84554..0000000 Binary files a/src/lib/assets/img/sachertorte.webp and /dev/null differ diff --git a/src/lib/assets/img/salbei_spaghetti.webp b/src/lib/assets/img/salbei_spaghetti.webp deleted file mode 100644 index 2363982..0000000 Binary files a/src/lib/assets/img/salbei_spaghetti.webp and /dev/null differ diff --git a/src/lib/assets/img/sauerkrautauflauf.webp b/src/lib/assets/img/sauerkrautauflauf.webp deleted file mode 100644 index ebc0bc8..0000000 Binary files a/src/lib/assets/img/sauerkrautauflauf.webp and /dev/null differ diff --git a/src/lib/assets/img/sauerteigbrot.webp b/src/lib/assets/img/sauerteigbrot.webp deleted file mode 100644 index 28b10ec..0000000 Binary files a/src/lib/assets/img/sauerteigbrot.webp and /dev/null differ diff --git a/src/lib/assets/img/schoggi.webp b/src/lib/assets/img/schoggi.webp deleted file mode 100644 index deada2c..0000000 Binary files a/src/lib/assets/img/schoggi.webp and /dev/null differ diff --git a/src/lib/assets/img/schupfnudeln.webp b/src/lib/assets/img/schupfnudeln.webp deleted file mode 100644 index 961a82d..0000000 Binary files a/src/lib/assets/img/schupfnudeln.webp and /dev/null differ diff --git a/src/lib/assets/img/schupfnudeln_mit_kraut_und_speck.webp b/src/lib/assets/img/schupfnudeln_mit_kraut_und_speck.webp deleted file mode 100644 index b6d7b54..0000000 Binary files a/src/lib/assets/img/schupfnudeln_mit_kraut_und_speck.webp and /dev/null differ diff --git a/src/lib/assets/img/semmelknoedel.webp b/src/lib/assets/img/semmelknoedel.webp deleted file mode 100644 index c6635fd..0000000 Binary files a/src/lib/assets/img/semmelknoedel.webp and /dev/null differ diff --git a/src/lib/assets/img/semmeln.webp b/src/lib/assets/img/semmeln.webp deleted file mode 100644 index f274cdc..0000000 Binary files a/src/lib/assets/img/semmeln.webp and /dev/null differ diff --git a/src/lib/assets/img/shokupan.webp b/src/lib/assets/img/shokupan.webp deleted file mode 100644 index 895f441..0000000 Binary files a/src/lib/assets/img/shokupan.webp and /dev/null differ diff --git a/src/lib/assets/img/siebbrot.webp b/src/lib/assets/img/siebbrot.webp deleted file mode 100644 index fb37b37..0000000 Binary files a/src/lib/assets/img/siebbrot.webp and /dev/null differ diff --git a/src/lib/assets/img/spinat_spaghetti.webp b/src/lib/assets/img/spinat_spaghetti.webp deleted file mode 100644 index 3c1bf64..0000000 Binary files a/src/lib/assets/img/spinat_spaghetti.webp and /dev/null differ diff --git a/src/lib/assets/img/spitzbuben.webp b/src/lib/assets/img/spitzbuben.webp deleted file mode 100644 index 0d794a2..0000000 Binary files a/src/lib/assets/img/spitzbuben.webp and /dev/null differ diff --git a/src/lib/assets/img/strudelteig.webp b/src/lib/assets/img/strudelteig.webp deleted file mode 100644 index 38ea584..0000000 Binary files a/src/lib/assets/img/strudelteig.webp and /dev/null differ diff --git a/src/lib/assets/img/tiramisu.webp b/src/lib/assets/img/tiramisu.webp deleted file mode 100644 index 184abc2..0000000 Binary files a/src/lib/assets/img/tiramisu.webp and /dev/null differ diff --git a/src/lib/assets/img/tirggel.webp b/src/lib/assets/img/tirggel.webp deleted file mode 100644 index a2222dc..0000000 Binary files a/src/lib/assets/img/tirggel.webp and /dev/null differ diff --git a/src/lib/assets/img/tomatensuppe.webp b/src/lib/assets/img/tomatensuppe.webp deleted file mode 100644 index 0e2437e..0000000 Binary files a/src/lib/assets/img/tomatensuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/uromas_vanillekipferl.webp b/src/lib/assets/img/uromas_vanillekipferl.webp deleted file mode 100644 index 1e4cea9..0000000 Binary files a/src/lib/assets/img/uromas_vanillekipferl.webp and /dev/null differ diff --git a/src/lib/assets/img/weihnachtsgans.webp b/src/lib/assets/img/weihnachtsgans.webp deleted file mode 100644 index 511cdb4..0000000 Binary files a/src/lib/assets/img/weihnachtsgans.webp and /dev/null differ diff --git a/src/lib/assets/img/wienerschnitzel.webp b/src/lib/assets/img/wienerschnitzel.webp deleted file mode 100644 index 8db81d5..0000000 Binary files a/src/lib/assets/img/wienerschnitzel.webp and /dev/null differ diff --git a/src/lib/assets/img/wintergemuesestrudel.webp b/src/lib/assets/img/wintergemuesestrudel.webp deleted file mode 100644 index 0ebf4a5..0000000 Binary files a/src/lib/assets/img/wintergemuesestrudel.webp and /dev/null differ diff --git a/src/lib/assets/img/zimtsterne.webp b/src/lib/assets/img/zimtsterne.webp deleted file mode 100644 index 5cb4525..0000000 Binary files a/src/lib/assets/img/zimtsterne.webp and /dev/null differ diff --git a/src/lib/assets/img/zitrone_kaeseravioli.webp b/src/lib/assets/img/zitrone_kaeseravioli.webp deleted file mode 100644 index c81dac8..0000000 Binary files a/src/lib/assets/img/zitrone_kaeseravioli.webp and /dev/null differ diff --git a/src/lib/assets/img/zopf.webp b/src/lib/assets/img/zopf.webp deleted file mode 100644 index a276abe..0000000 Binary files a/src/lib/assets/img/zopf.webp and /dev/null differ diff --git a/src/lib/assets/img/zopf2.webp b/src/lib/assets/img/zopf2.webp deleted file mode 100644 index 18d75e2..0000000 Binary files a/src/lib/assets/img/zopf2.webp and /dev/null differ diff --git a/src/lib/assets/img/zucchinicremesuppe.webp b/src/lib/assets/img/zucchinicremesuppe.webp deleted file mode 100644 index 672b67b..0000000 Binary files a/src/lib/assets/img/zucchinicremesuppe.webp and /dev/null differ diff --git a/src/lib/assets/img/zwiebelsuppe.webp b/src/lib/assets/img/zwiebelsuppe.webp deleted file mode 100644 index 6b84d38..0000000 Binary files a/src/lib/assets/img/zwiebelsuppe.webp and /dev/null differ diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index 010e142..941d9c5 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -7,9 +7,6 @@ if(icon_override){ current_month = recipe.season[0] } -import src from '$lib/assets/img/al_ragu.webp' -import '$lib/components/card.css' -//import src from './aelplermagronen.js' // Winter: ❄️ // Weihnachten: 🎄 // Ostern: 🐇 @@ -17,14 +14,177 @@ import '$lib/components/card.css' // Herbst: 🍂 // Sommer: ☀️ + {#if icon_override || recipe.season.includes(current_month)} {recipe.icon} {/if} - {recipe.alt} + {recipe.alt}
{recipe.category} -
{recipe.name}
+
+
{recipe.name}
+
{recipe.description}
+
{#each recipe.tags as tag} {tag} diff --git a/src/lib/components/card.css b/src/lib/components/card.css deleted file mode 100644 index 3576630..0000000 --- a/src/lib/components/card.css +++ /dev/null @@ -1,136 +0,0 @@ -.card{ - text-decoration: none; - position: relative; - box-sizing: border-box; - font-family: sans-serif; - cursor: pointer; - width: 300px; - aspect-ratio: 4/7; - border-radius: 20px; - background-size: contain; - display: flex; - 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{ - transform: scale(1.02,1.02) -} - -.card img{ - height: 50%; - object-fit: cover; - border-top-left-radius: inherit; - border-top-right-radius: inherit; - /* background-color: #5E81AC; */ -} -.card .title { - position: relative; - box-sizing: border-box; - padding-top: 0.5em; - height: 50%; - width: 100% ; - /* padding-inline: 1em; */ - border-bottom-left-radius: inherit; - border-bottom-right-radius: inherit; - /* background-color: #5E81AC; */ - display: flex; - flex-direction: column; - justify-content: space-between; - transition: 100ms; -} -.card:hover{ - background-color:#BF616A; -} -.card .name{ - font-size: 2em; - color: white; - 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; -} -.card .tag{ - cursor: pointer; - text-decoration: unset; - background-color: #D8DEE9; - color: #2E3440; - border-radius: 100px; - padding-inline: 1em; - line-height: 1.5em; - margin-bottom: 0.5em; - transition: 100ms; -} -.card .tag:hover{ - transform: scale(1.04, 1.04); - background-color: #D08770; -} - -.card .icon{ - text-decoration: unset; - position: absolute; - font-size: 1.5rem; - top:-0.5em; - right:-0.5em; - padding: 0.25em; - background-color: #ECEFF4; - border-radius:1000px; - transition: 100ms; -} -.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 -} - - @keyframes shake{ - 0%{ - transform: rotate(0) - scale(1,1); - } - 25%{ - transform: rotate(30deg) - scale(1.2,1.2) - ; - } - 50%{ - transform: rotate(-30deg) - scale(1.2,1.2); - } - 74%{ - transform: rotate(30deg) - scale(1.2, 1.2); - } - 100%{ - transform: rotate(0) - scale(1,1); - } - } diff --git a/src/models/Recipe.ts b/src/models/Recipe.ts index 9f20b19..93eb1d6 100644 --- a/src/models/Recipe.ts +++ b/src/models/Recipe.ts @@ -16,9 +16,9 @@ const RecipeSchema = new mongoose.Schema( description: {type: String, required: true}, tags : [String], season : [Number], - baking: { temperature: {type: String, default: ""}, - length: {type: String, default: ""}, - mode: {type: String, default: ""}, + baking: { temperature: String, + length: String, + mode: String, }, preparation : String, fermentation: {bulk: String, @@ -29,12 +29,13 @@ const RecipeSchema = new mongoose.Schema( ingredients : [ { name: {type: String, default: ""}, list: [{name: {type: String, default: ""}, unit: String, - amount: Number, + amount: String, }] }], instructions : [{name: {type: String, default: ""}, steps: [String]}], - } + addendum : String, + }, ); export const Recipe = mongoose.model("Recipe", RecipeSchema); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5982b0a..43402af 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,2 +1,3 @@

Welcome to SvelteKit

Visit kit.svelte.dev to read the documentation

+ REZEPTE diff --git a/src/routes/api/items/[name]/+server.ts b/src/routes/api/items/[name]/+server.ts index 0a3daa0..12f2bba 100644 --- a/src/routes/api/items/[name]/+server.ts +++ b/src/routes/api/items/[name]/+server.ts @@ -2,6 +2,7 @@ import { json, type RequestHandler } from '@sveltejs/kit'; import { Recipe } from '../../../../models/Recipe'; import { dbConnect, dbDisconnect } from '../../../../utils/db'; import type {RecipeModelType} from '../../../../types/types'; +import { error } from '@sveltejs/kit'; export const GET: RequestHandler = async ({params}) => { await dbConnect(); @@ -9,5 +10,8 @@ export const GET: RequestHandler = async ({params}) => { await dbDisconnect(); recipe = JSON.parse(JSON.stringify(recipe)); + if(recipe == null){ + throw error(404, "Recipe not found") + } return json(recipe); }; diff --git a/src/routes/api/seed/+server.ts b/src/routes/api/seed/+server.ts index 1e62628..dda6d3e 100644 --- a/src/routes/api/seed/+server.ts +++ b/src/routes/api/seed/+server.ts @@ -2,7 +2,114 @@ import { json } from '@sveltejs/kit'; import { Recipe } from '../../../models/Recipe'; import { dbConnect, dbDisconnect } from '../../../utils/db'; -const test_json = [{ +const test_json = [ + { + short_name: "aelplermagronen", + name : "Älplermagronen", + category: "Hauptspeise", + icon: "🍂", + datecreated: 20230619, + datemodified: 20230619, + images: [{ + mediapath: "aelplermagronen.webp", + alt: "Älplermagronen serviert mit Apfelmuß", + caption: "", + }], + description: "Alles was das Bauernherz erfreuen lässt in einer Mahlzeit.", + tags: ["Schweiz", "Käse", "Speck", "Nudeln", "Apfelmuß", "Kartoffeln"], + season: [6,7,8,9,10,11,12,1], + portions: "4 Hauptspeisen", + total_time: "30 Minuten", + ingredients: [ { + name: "", + list: [ + { name: "Speckwürfel", + unit: "g", + amount: "150" + }, + { + name: "mittelgroße Zwiebeln", + unit: "", + amount: "3", + }, + { + name: "Kartoffeln, festkochend", + unit: "g", + amount: "400", + }, + { + name: "Milch", + unit: "L", + amount: "1-2", + }, + { + name: "Maccaroni", + unit: "g", + amount: "400", + }, + { + name: "Appenzeller", + unit: "g", + amount: "150", + }, + { + name: "Apfelmuß", + unit: "", + amount: "", + }, + + ]}, + ], + instructions: [ + {name: "", + steps: [ + "In einem großen Topf oder tiefer Pfanne Speckwürfel anbraten.", + "Zwiebel in Halbringe schneiden und im gleichen Topf schwitzen lassen.", + "Kartoffeln schälen und in ~1 cm3 schneiden.", + "Wenn Ziwebeln genügend gekocht sind die Kartoffeln hinzufügen und Milch hinzufügen, sodass alles bedeckt ist. Ca. 10 Minuten kochen lassen.", + "Ca. 1 L Milch hinzugeben. Für den nächsten Schritt wollen wir die Maccaroni hinzufügen. Damit diese nicht zu breiig werden geben wir erst die Milch zu und lassen sie aufkochen.", + "Wenn die der Topf wieder kocht jetzt die Maccaroni hinzugeben.", + "Den Käse zerreiben oder in kleine Würfel schneiden.", + "Ein bis zwei Minuten bevor die Nudeln durchgekocht sind den Käse hinzugeben und schmelzen lassen.", + "Mit Salz und Muskat würzen.", + "Den Topf ein bisschen zu früh vom Herd nehmen und ein bisschen auskühlen lassen.", + "Mit Apfelmuß oder Apfelkompott servieren." + ] + } + ], + addendum: "

Man kann das Gericht noch dekanter machen indem man zu Teilen Rahm an Stelle von Milch verwendet. Zudem kann man das ganze auch noch in eine Auflaufform geben und im Ofen eine Kruste anbacken

", +}, +{ + short_name: "baerlauchravioli", + name : "Bärlauchravioli", + category: "Pasta", + icon: "🌷", + datecreated: 20230619, + datemodified: 20230619, + images: [{ + mediapath: "baerlauchravioli.webp", + alt: "3 Ravioli mit durchscheinender grüner Bärlauchfüllung auf einem Teller.", + caption: "", + }], + description: "Unwiderstehliche Ravioli mit Bärlauchfüllung.", + tags: ["Bärlauch", "Wald", "Frühling", "Ravioli", "Italien", "Käse"], + season: [ 2,3,4], + 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: "anisbroetli", name : "Anisbrötli", category: "Guetzli", @@ -14,8 +121,8 @@ const test_json = [{ alt: "Ein ganzes Brot", caption: "", }], - description: "Einfach und sehr lecker", - tags: ["backen", "advent", "schweiz", "deutschland", "anis", "weihnachtenn", "kekse"], + description: "Allemannische Weihnachstkekese bekannt durch seine harte Kruste und weiches Inneres.", + tags: ["Backen", "Advent", "schweiz", "Deutschland", "Anis", "Weihnachten", "Kekse"], season: [ 12,1], baking: { temperature: "220", @@ -44,8 +151,8 @@ const test_json = [{ alt: "Ein ganzes Brot", caption: "", }], - description: "Einfach und sehr lecker", - tags: ["pasta", "fleisch", "rind", "italienisch", "bolognese"], + description: "Eine etwas gehobene Version der klassichen Bolognese.", + tags: ["Pasta", "Fleisch", "Rind", "Italien", "Bolognese", "Linguine"], season: [ 6,7,8,9], baking: { temperature: "220", @@ -108,7 +215,7 @@ const test_json = [{ caption: "", }], description: "Einfach und sehr lecker", - tags: ["brot", "backen", "sauerteig", "hefe"], + tags: ["Brot", "Backen", "Sauerteig"], season: [], baking: { temperature: "220", @@ -171,8 +278,8 @@ const test_json = [{ caption: "" } ], - description: "Saure Marmelade", - tags:["marmelade", "sauer", "sommer", "süß"], + description: "Die erste Marmelade des Jahres mit säuerlicher Note.", + tags:["Marmelade", "sauer", "Sommer", "süß"], season: [4,5,6], baking: { temperature: "160", @@ -236,8 +343,8 @@ const test_json = [{ caption: "" } ], - description: "Saure Marmelade", - tags:["schweiz", "ostern", "milchreis", "aprikosen", 'backen', 'süß', "marmelade"], + description: "Ein traditioneller Milchreiskuchen mit Aprikosenmarmelade und Rosinen.", + tags:["Schweiz", "Ostern", "Milchreis", "Aprikosen", 'Backen', 'süß', "Marmelade"], season: [3,4], baking: { temperature: "160", diff --git a/src/routes/rezepte/+layout.svelte b/src/routes/rezepte/+layout.svelte index a2975c5..c6883ab 100644 --- a/src/routes/rezepte/+layout.svelte +++ b/src/routes/rezepte/+layout.svelte @@ -2,9 +2,13 @@ import "$lib/components/nordtheme.css" -
+