From 7f47c8571cb293933b6b43153ab16e2143eaf7a6 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 10 Oct 2024 14:38:33 +0200 Subject: [PATCH] Nuked everything --- .gitignore | 21 ----------------- .npmrc | 1 - .prettierignore | 4 ---- .prettierrc | 8 ------- README.md | 38 ------------------------------ data/max/config.json | 9 +++++++ data/max/wishlist.csv | 2 ++ docker-compose.yml | 17 -------------- dockerfile | 51 ---------------------------------------- eslint.config.js | 32 ------------------------- package.json | 32 ------------------------- src/app.d.ts | 13 ---------- src/app.html | 12 ---------- src/lib/index.ts | 1 - src/routes/+page.svelte | 2 -- static/favicon.png | Bin 1571 -> 0 bytes svelte.config.js | 18 -------------- tsconfig.json | 19 --------------- vite.config.ts | 6 ----- 19 files changed, 11 insertions(+), 275 deletions(-) delete mode 100644 .gitignore delete mode 100644 .npmrc delete mode 100644 .prettierignore delete mode 100644 .prettierrc delete mode 100644 README.md create mode 100644 data/max/config.json create mode 100644 data/max/wishlist.csv delete mode 100644 docker-compose.yml delete mode 100644 dockerfile delete mode 100644 eslint.config.js delete mode 100644 package.json delete mode 100644 src/app.d.ts delete mode 100644 src/app.html delete mode 100644 src/lib/index.ts delete mode 100644 src/routes/+page.svelte delete mode 100644 static/favicon.png delete mode 100644 svelte.config.js delete mode 100644 tsconfig.json delete mode 100644 vite.config.ts diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 79518f7..0000000 --- a/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -node_modules - -# Output -.output -.vercel -/.svelte-kit -/build - -# OS -.DS_Store -Thumbs.db - -# Env -.env -.env.* -!.env.example -!.env.test - -# Vite -vite.config.js.timestamp-* -vite.config.ts.timestamp-* diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b6f27f1..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -engine-strict=true diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index ab78a95..0000000 --- a/.prettierignore +++ /dev/null @@ -1,4 +0,0 @@ -# Package Managers -package-lock.json -pnpm-lock.yaml -yarn.lock diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 9573023..0000000 --- a/.prettierrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "useTabs": true, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte"], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] -} diff --git a/README.md b/README.md deleted file mode 100644 index 5ce6766..0000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# create-svelte - -Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```bash -# create a new project in the current directory -npm create svelte@latest - -# create a new project in my-app -npm create svelte@latest my-app -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```bash -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```bash -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. diff --git a/data/max/config.json b/data/max/config.json new file mode 100644 index 0000000..1de7e9d --- /dev/null +++ b/data/max/config.json @@ -0,0 +1,9 @@ +{ + "id": "c90ebd2a-cb64-476f-838f-9b53f27e80b2", + "title": "Max' Wunschliste", + "deadlines": { + "Weihnachten": "2024-12-24", + "Geburtstag": "2025-01-14" + }, + "deadlineOffsetDays": 10 +} \ No newline at end of file diff --git a/data/max/wishlist.csv b/data/max/wishlist.csv new file mode 100644 index 0000000..4d353b2 --- /dev/null +++ b/data/max/wishlist.csv @@ -0,0 +1,2 @@ +"id","name","description","seller","image","price" +"d3e203ba-9aab-4283-8c46-f4a46a5d1f62","Dune: Part 2 - 4K HDR Blu-Ray","Der zweite Film der Dune Reihe in bester Qualität auf Blu-Ray. Die Qualität ist für den Film wichtig, weshalb auf 4K HDR geachtet werden sollte. Das ist in der Regel gut auf der Verpackung gekennzeichnet.",,,29.99 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index f966a42..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: '3' - -services: - zauberkiste: - build: - context: . - target: dev # Build the development target - ports: - - "5173:5173" - - "24678:24678" - volumes: - - .:/app - - /app/node_modules - - ./data:/app/data - container_name: svelte-app-dev - environment: - NODE_ENV: development diff --git a/dockerfile b/dockerfile deleted file mode 100644 index df6967e..0000000 --- a/dockerfile +++ /dev/null @@ -1,51 +0,0 @@ -# Stage 1: Base stage -FROM node:18 AS base - -# Set the working directory -WORKDIR /app - -# Copy package.json and package-lock.json -COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy the rest of the application files -COPY . . - -# Define build arguments -ARG NODE_ENV -ENV NODE_ENV=$NODE_ENV - -# Stage 2: Development stage -FROM base AS dev - -# Expose ports needed for the development server and hot module reloading -EXPOSE 5173 24678 - -# In development mode, run the dev server -CMD ["npm", "run", "dev", "--", "--host"] - -# Stage 3: Build for production -FROM base AS build - -# Build the Svelte app in production mode -RUN npm run build - -# Stage 4: Production stage -FROM node:18-alpine AS prod - -# Install a lightweight server to serve the production build -RUN npm install -g serve - -# Set the working directory -WORKDIR /app - -# Copy the built files from the build stage -COPY --from=build /app/build /app/build - -# Expose port 5000 for serving the production app -EXPOSE 5000 - -# Serve the production build -CMD ["serve", "-s", "build", "-l", "5000"] diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 39ea393..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,32 +0,0 @@ -import eslint from '@eslint/js'; -import prettier from 'eslint-config-prettier'; -import svelte from 'eslint-plugin-svelte'; -import globals from 'globals'; -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - eslint.configs.recommended, - ...tseslint.configs.recommended, - ...svelte.configs['flat/recommended'], - prettier, - ...svelte.configs['flat/prettier'], - { - languageOptions: { - globals: { - ...globals.browser, - ...globals.node - } - } - }, - { - files: ['**/*.svelte'], - languageOptions: { - parserOptions: { - parser: tseslint.parser - } - } - }, - { - ignores: ['build/', '.svelte-kit/', 'dist/'] - } -); diff --git a/package.json b/package.json deleted file mode 100644 index dff1c99..0000000 --- a/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "zauberkiste", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check . && eslint .", - "format": "prettier --write ." - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^3.0.0", - "@types/eslint": "^9.6.0", - "eslint": "^9.0.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-svelte": "^2.36.0", - "globals": "^15.0.0", - "prettier": "^3.1.1", - "prettier-plugin-svelte": "^3.1.2", - "svelte": "^4.2.7", - "svelte-check": "^4.0.0", - "typescript": "^5.0.0", - "typescript-eslint": "^8.0.0", - "vite": "^5.0.3" - }, - "type": "module" -} diff --git a/src/app.d.ts b/src/app.d.ts deleted file mode 100644 index 743f07b..0000000 --- a/src/app.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -// See https://kit.svelte.dev/docs/types#app -// for information about these interfaces -declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - } -} - -export {}; diff --git a/src/app.html b/src/app.html deleted file mode 100644 index 77a5ff5..0000000 --- a/src/app.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - %sveltekit.head% - - -
%sveltekit.body%
- - diff --git a/src/lib/index.ts b/src/lib/index.ts deleted file mode 100644 index 856f2b6..0000000 --- a/src/lib/index.ts +++ /dev/null @@ -1 +0,0 @@ -// place files you want to import through the `$lib` alias in this folder. diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte deleted file mode 100644 index 5982b0a..0000000 --- a/src/routes/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome to SvelteKit

-

Visit kit.svelte.dev to read the documentation

diff --git a/static/favicon.png b/static/favicon.png deleted file mode 100644 index 825b9e65af7c104cfb07089bb28659393b4f2097..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1571 zcmV+;2Hg3HP)Px)-AP12RCwC$UE6KzI1p6{F2N z1VK2vi|pOpn{~#djwYcWXTI_im_u^TJgMZ4JMOsSj!0ma>B?-(Hr@X&W@|R-$}W@Z zgj#$x=!~7LGqHW?IO8+*oE1MyDp!G=L0#^lUx?;!fXv@l^6SvTnf^ac{5OurzC#ZMYc20lI%HhX816AYVs1T3heS1*WaWH z%;x>)-J}YB5#CLzU@GBR6sXYrD>Vw(Fmt#|JP;+}<#6b63Ike{Fuo!?M{yEffez;| zp!PfsuaC)>h>-AdbnwN13g*1LowNjT5?+lFVd#9$!8Z9HA|$*6dQ8EHLu}U|obW6f z2%uGv?vr=KNq7YYa2Roj;|zooo<)lf=&2yxM@e`kM$CmCR#x>gI>I|*Ubr({5Y^rb zghxQU22N}F51}^yfDSt786oMTc!W&V;d?76)9KXX1 z+6Okem(d}YXmmOiZq$!IPk5t8nnS{%?+vDFz3BevmFNgpIod~R{>@#@5x9zJKEHLHv!gHeK~n)Ld!M8DB|Kfe%~123&Hz1Z(86nU7*G5chmyDe ziV7$pB7pJ=96hpxHv9rCR29%bLOXlKU<_13_M8x)6;P8E1Kz6G<&P?$P^%c!M5`2` zfY2zg;VK5~^>TJGQzc+33-n~gKt{{of8GzUkWmU110IgI0DLxRIM>0US|TsM=L|@F z0Bun8U!cRB7-2apz=y-7*UxOxz@Z0)@QM)9wSGki1AZ38ceG7Q72z5`i;i=J`ILzL z@iUO?SBBG-0cQuo+an4TsLy-g-x;8P4UVwk|D8{W@U1Zi z!M)+jqy@nQ$p?5tsHp-6J304Q={v-B>66$P0IDx&YT(`IcZ~bZfmn11#rXd7<5s}y zBi9eim&zQc0Dk|2>$bs0PnLmDfMP5lcXRY&cvJ=zKxI^f0%-d$tD!`LBf9^jMSYUA zI8U?CWdY@}cRq6{5~y+)#h1!*-HcGW@+gZ4B};0OnC~`xQOyH19z*TA!!BJ%9s0V3F?CAJ{hTd#*tf+ur-W9MOURF-@B77_-OshsY}6 zOXRY=5%C^*26z?l)1=$bz30!so5tfABdSYzO+H=CpV~aaUefmjvfZ3Ttu9W&W3Iu6 zROlh0MFA5h;my}8lB0tAV-Rvc2Zs_CCSJnx@d`**$idgy-iMob4dJWWw|21b4NB=LfsYp0Aeh{Ov)yztQi;eL4y5 zMi>8^SzKqk8~k?UiQK^^-5d8c%bV?$F8%X~czyiaKCI2=UH