commit 8a37f14a489853fa6039b2e8d5d2a7496b98fdbc Author: Jakub Kropáček Date: Sat Dec 21 23:35:45 2024 +0100 sadly huge initial commit diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..578147e --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +node_modules + +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build + +# OS +.DS_Store +Thumbs.db + +# Env +.env +.env.* +!.env.example +!.env.test + +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* + +.idea/ diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..ab78a95 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +# Package Managers +package-lock.json +pnpm-lock.yaml +yarn.lock diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..3f7802c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,15 @@ +{ + "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 new file mode 100644 index 0000000..b5b2950 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# sv + +Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). + +## 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 +npx sv create + +# create a new project in my-app +npx sv create 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://svelte.dev/docs/kit/adapters) for your target environment. diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..8d21023 Binary files /dev/null and b/bun.lockb differ diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..aa5987f --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,34 @@ +import prettier from 'eslint-config-prettier'; +import js from '@eslint/js'; +import { includeIgnoreFile } from '@eslint/compat'; +import svelte from 'eslint-plugin-svelte'; +import globals from 'globals'; +import { fileURLToPath } from 'node:url'; +import ts from 'typescript-eslint'; +const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); + +export default ts.config( + includeIgnoreFile(gitignorePath), + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs['flat/recommended'], + prettier, + ...svelte.configs['flat/prettier'], + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.node + } + } + }, + { + files: ['**/*.svelte'], + + languageOptions: { + parserOptions: { + parser: ts.parser + } + } + } +); diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4dbff90 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1734435836, + "narHash": "sha256-kMBQ5PRiFLagltK0sH+08aiNt3zGERC2297iB6vrvlU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4989a246d7a390a859852baddb1013f825435cee", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..28cddab --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + outputs = {nixpkgs, ...}: { + devShells.x86_64-linux = + let + pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true;}; + in + { + default = pkgs.mkShell { + LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ]; + packages = with pkgs; [ + bun + svelte-language-server + nodejs_23 + ]; + }; + }; + }; +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..c418c92 --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "maty-vanoce", + "private": true, + "version": "0.0.1", + "type": "module", + "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", + "format": "prettier --write .", + "lint": "prettier --check . && eslint ." + }, + "devDependencies": { + "@eslint/compat": "^1.2.3", + "@sveltejs/adapter-static": "^3.0.6", + "@sveltejs/kit": "^2.0.0", + "@sveltejs/vite-plugin-svelte": "^4.0.0", + "eslint": "^9.7.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.36.0", + "globals": "^15.0.0", + "prettier": "^3.3.2", + "prettier-plugin-svelte": "^3.2.6", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", + "typescript": "^5.0.0", + "typescript-eslint": "^8.0.0", + "vite": "^5.4.11" + }, + "dependencies": { + "svelte-adapter-bun": "^0.5.2" + } +} diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..da08e6d --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,13 @@ +// See https://svelte.dev/docs/kit/types#app.d.ts +// 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 new file mode 100644 index 0000000..77a5ff5 --- /dev/null +++ b/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/src/lib/Modal.svelte b/src/lib/Modal.svelte new file mode 100644 index 0000000..8039472 --- /dev/null +++ b/src/lib/Modal.svelte @@ -0,0 +1,87 @@ + + + + + diff --git a/src/lib/index.ts b/src/lib/index.ts new file mode 100644 index 0000000..856f2b6 --- /dev/null +++ b/src/lib/index.ts @@ -0,0 +1 @@ +// 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 new file mode 100644 index 0000000..681263f --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,230 @@ + + +
+
+

You have received a gift

+
+ +
+

Investigation

+

Intelligence check

+
+ +
+

Difficulty Class

+

{difficultyClass}

+
+ + + {#if !pressedContinue} +
+ {#if !rollResult} + + {/if} + {#if rollResult && rollClickedExit} +

Roll Result

+

{rollResult}

+ {/if} +
+ + {#if rollModal && rollVideoUrl} + { + rollModal = false; + rollClickedExit = true; + }} videoUrl={rollVideoUrl} /> + {/if} +
+ {#if !guidanceResult} + + {/if} + {#if guidanceResult && guidanceClickedExit} +

Guidance Result

+

{guidanceResult}

+ {/if} +
+ + {#if guidanceModal && guidanceVideoUrl} + { + guidanceModal = false; + guidanceClickedExit = true; + }} videoUrl={guidanceVideoUrl} /> + {/if} + + {#if rollResult && guidanceResult} + + {/if} + {/if} + +
+ {#if rollResult && guidanceResult && pressedContinue} +

Final Result

+

{rollResult + guidanceResult}

+ {#if rollResult + guidanceResult >= difficultyClass} +

Success

+ Collect your gift! + {:else} +

Failure

+ + {/if} + {/if} +
+ +
+ + diff --git a/src/routes/present/+page.svelte b/src/routes/present/+page.svelte new file mode 100644 index 0000000..ba202fb --- /dev/null +++ b/src/routes/present/+page.svelte @@ -0,0 +1,8 @@ + + +

Congrats!

+

Here is your prize <3

+

{steamGiftKey}

diff --git a/src/routes/video/[skin]/[dtype]/[result]/+server.ts b/src/routes/video/[skin]/[dtype]/[result]/+server.ts new file mode 100644 index 0000000..6c84ab5 --- /dev/null +++ b/src/routes/video/[skin]/[dtype]/[result]/+server.ts @@ -0,0 +1,27 @@ +import { json } from '@sveltejs/kit'; + +/** @type {import('./$types').RequestHandler} */ +export function GET({ params }) { + const { skin, dtype, result } = params; + + const allVideoFiles = import.meta.glob('/static/videos/**/*'); + + // parse video files to get the video files for the skin, dtype, and result + let videoFiles = Object.keys(allVideoFiles).map((key) => { + const videoFile = key.replace('/static/videos/', ''); + const [videoSkin, videoDtype, videoResult] = videoFile.split('/'); + if (videoSkin !== skin || videoDtype !== dtype || videoResult !== result) { + return null; + } + return { videoFile, videoSkin, videoDtype, videoResult }; + }); + + // filter out null values + videoFiles = videoFiles.filter((videoFile) => videoFile !== null); + + // get a random one + const videoFile = videoFiles[Math.floor(Math.random() * videoFiles.length)]; + + // return the url pointing to the video file + return json(videoFile); +} diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..825b9e6 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/videos/winter/d20/1/26.mp4 b/static/videos/winter/d20/1/26.mp4 new file mode 100644 index 0000000..c5f4c6d Binary files /dev/null and b/static/videos/winter/d20/1/26.mp4 differ diff --git a/static/videos/winter/d20/1/33.mp4 b/static/videos/winter/d20/1/33.mp4 new file mode 100644 index 0000000..354f554 Binary files /dev/null and b/static/videos/winter/d20/1/33.mp4 differ diff --git a/static/videos/winter/d20/1/38.mp4 b/static/videos/winter/d20/1/38.mp4 new file mode 100644 index 0000000..0d4ca7f Binary files /dev/null and b/static/videos/winter/d20/1/38.mp4 differ diff --git a/static/videos/winter/d20/10/1.mp4 b/static/videos/winter/d20/10/1.mp4 new file mode 100644 index 0000000..07d0253 Binary files /dev/null and b/static/videos/winter/d20/10/1.mp4 differ diff --git a/static/videos/winter/d20/10/45.mp4 b/static/videos/winter/d20/10/45.mp4 new file mode 100644 index 0000000..f0d084b Binary files /dev/null and b/static/videos/winter/d20/10/45.mp4 differ diff --git a/static/videos/winter/d20/11/06.mp4 b/static/videos/winter/d20/11/06.mp4 new file mode 100644 index 0000000..8bb3db1 Binary files /dev/null and b/static/videos/winter/d20/11/06.mp4 differ diff --git a/static/videos/winter/d20/11/35.mp4 b/static/videos/winter/d20/11/35.mp4 new file mode 100644 index 0000000..1b52712 Binary files /dev/null and b/static/videos/winter/d20/11/35.mp4 differ diff --git a/static/videos/winter/d20/11/54.mp4 b/static/videos/winter/d20/11/54.mp4 new file mode 100644 index 0000000..73f1e80 Binary files /dev/null and b/static/videos/winter/d20/11/54.mp4 differ diff --git a/static/videos/winter/d20/11/70.mp4 b/static/videos/winter/d20/11/70.mp4 new file mode 100644 index 0000000..0aa14f9 Binary files /dev/null and b/static/videos/winter/d20/11/70.mp4 differ diff --git a/static/videos/winter/d20/12/02.mp4 b/static/videos/winter/d20/12/02.mp4 new file mode 100644 index 0000000..740b59a Binary files /dev/null and b/static/videos/winter/d20/12/02.mp4 differ diff --git a/static/videos/winter/d20/12/20.mp4 b/static/videos/winter/d20/12/20.mp4 new file mode 100644 index 0000000..ec69201 Binary files /dev/null and b/static/videos/winter/d20/12/20.mp4 differ diff --git a/static/videos/winter/d20/12/37.mp4 b/static/videos/winter/d20/12/37.mp4 new file mode 100644 index 0000000..17e66b8 Binary files /dev/null and b/static/videos/winter/d20/12/37.mp4 differ diff --git a/static/videos/winter/d20/12/64.mp4 b/static/videos/winter/d20/12/64.mp4 new file mode 100644 index 0000000..c15e5f0 Binary files /dev/null and b/static/videos/winter/d20/12/64.mp4 differ diff --git a/static/videos/winter/d20/13/13.mp4 b/static/videos/winter/d20/13/13.mp4 new file mode 100644 index 0000000..0964995 Binary files /dev/null and b/static/videos/winter/d20/13/13.mp4 differ diff --git a/static/videos/winter/d20/13/21.mp4 b/static/videos/winter/d20/13/21.mp4 new file mode 100644 index 0000000..957852d Binary files /dev/null and b/static/videos/winter/d20/13/21.mp4 differ diff --git a/static/videos/winter/d20/13/31.mp4 b/static/videos/winter/d20/13/31.mp4 new file mode 100644 index 0000000..4440449 Binary files /dev/null and b/static/videos/winter/d20/13/31.mp4 differ diff --git a/static/videos/winter/d20/13/44.mp4 b/static/videos/winter/d20/13/44.mp4 new file mode 100644 index 0000000..d17ba1d Binary files /dev/null and b/static/videos/winter/d20/13/44.mp4 differ diff --git a/static/videos/winter/d20/13/67.mp4 b/static/videos/winter/d20/13/67.mp4 new file mode 100644 index 0000000..0e8830d Binary files /dev/null and b/static/videos/winter/d20/13/67.mp4 differ diff --git a/static/videos/winter/d20/13/76.mp4 b/static/videos/winter/d20/13/76.mp4 new file mode 100644 index 0000000..9d8e6eb Binary files /dev/null and b/static/videos/winter/d20/13/76.mp4 differ diff --git a/static/videos/winter/d20/14/08.mp4 b/static/videos/winter/d20/14/08.mp4 new file mode 100644 index 0000000..1098fed Binary files /dev/null and b/static/videos/winter/d20/14/08.mp4 differ diff --git a/static/videos/winter/d20/14/41.mp4 b/static/videos/winter/d20/14/41.mp4 new file mode 100644 index 0000000..f186e4c Binary files /dev/null and b/static/videos/winter/d20/14/41.mp4 differ diff --git a/static/videos/winter/d20/15/19.mp4 b/static/videos/winter/d20/15/19.mp4 new file mode 100644 index 0000000..0564f20 Binary files /dev/null and b/static/videos/winter/d20/15/19.mp4 differ diff --git a/static/videos/winter/d20/15/59.mp4 b/static/videos/winter/d20/15/59.mp4 new file mode 100644 index 0000000..233b8a0 Binary files /dev/null and b/static/videos/winter/d20/15/59.mp4 differ diff --git a/static/videos/winter/d20/16/53.mp4 b/static/videos/winter/d20/16/53.mp4 new file mode 100644 index 0000000..9913a4d Binary files /dev/null and b/static/videos/winter/d20/16/53.mp4 differ diff --git a/static/videos/winter/d20/16/63.mp4 b/static/videos/winter/d20/16/63.mp4 new file mode 100644 index 0000000..40a6745 Binary files /dev/null and b/static/videos/winter/d20/16/63.mp4 differ diff --git a/static/videos/winter/d20/16/65.mp4 b/static/videos/winter/d20/16/65.mp4 new file mode 100644 index 0000000..66957d5 Binary files /dev/null and b/static/videos/winter/d20/16/65.mp4 differ diff --git a/static/videos/winter/d20/16/85.mp4 b/static/videos/winter/d20/16/85.mp4 new file mode 100644 index 0000000..a354ac4 Binary files /dev/null and b/static/videos/winter/d20/16/85.mp4 differ diff --git a/static/videos/winter/d20/17/1.mp4 b/static/videos/winter/d20/17/1.mp4 new file mode 100644 index 0000000..ae8a707 Binary files /dev/null and b/static/videos/winter/d20/17/1.mp4 differ diff --git a/static/videos/winter/d20/17/82.mp4 b/static/videos/winter/d20/17/82.mp4 new file mode 100644 index 0000000..12b0c6d Binary files /dev/null and b/static/videos/winter/d20/17/82.mp4 differ diff --git a/static/videos/winter/d20/18/77.mp4 b/static/videos/winter/d20/18/77.mp4 new file mode 100644 index 0000000..d293ead Binary files /dev/null and b/static/videos/winter/d20/18/77.mp4 differ diff --git a/static/videos/winter/d20/18/84.mp4 b/static/videos/winter/d20/18/84.mp4 new file mode 100644 index 0000000..800f3a9 Binary files /dev/null and b/static/videos/winter/d20/18/84.mp4 differ diff --git a/static/videos/winter/d20/19/07.mp4 b/static/videos/winter/d20/19/07.mp4 new file mode 100644 index 0000000..527d69d Binary files /dev/null and b/static/videos/winter/d20/19/07.mp4 differ diff --git a/static/videos/winter/d20/19/36.mp4 b/static/videos/winter/d20/19/36.mp4 new file mode 100644 index 0000000..72ec906 Binary files /dev/null and b/static/videos/winter/d20/19/36.mp4 differ diff --git a/static/videos/winter/d20/2/15.mp4 b/static/videos/winter/d20/2/15.mp4 new file mode 100644 index 0000000..6a81479 Binary files /dev/null and b/static/videos/winter/d20/2/15.mp4 differ diff --git a/static/videos/winter/d20/2/27.mp4 b/static/videos/winter/d20/2/27.mp4 new file mode 100644 index 0000000..253bafd Binary files /dev/null and b/static/videos/winter/d20/2/27.mp4 differ diff --git a/static/videos/winter/d20/2/39.mp4 b/static/videos/winter/d20/2/39.mp4 new file mode 100644 index 0000000..2cc179d Binary files /dev/null and b/static/videos/winter/d20/2/39.mp4 differ diff --git a/static/videos/winter/d20/2/78.mp4 b/static/videos/winter/d20/2/78.mp4 new file mode 100644 index 0000000..d33f2c4 Binary files /dev/null and b/static/videos/winter/d20/2/78.mp4 differ diff --git a/static/videos/winter/d20/20/10.mp4 b/static/videos/winter/d20/20/10.mp4 new file mode 100644 index 0000000..c01e8b7 Binary files /dev/null and b/static/videos/winter/d20/20/10.mp4 differ diff --git a/static/videos/winter/d20/20/46.mp4 b/static/videos/winter/d20/20/46.mp4 new file mode 100644 index 0000000..ce4d39e Binary files /dev/null and b/static/videos/winter/d20/20/46.mp4 differ diff --git a/static/videos/winter/d20/3/32.mp4 b/static/videos/winter/d20/3/32.mp4 new file mode 100644 index 0000000..8444bf3 Binary files /dev/null and b/static/videos/winter/d20/3/32.mp4 differ diff --git a/static/videos/winter/d20/3/48.mp4 b/static/videos/winter/d20/3/48.mp4 new file mode 100644 index 0000000..18d41bc Binary files /dev/null and b/static/videos/winter/d20/3/48.mp4 differ diff --git a/static/videos/winter/d20/3/71.mp4 b/static/videos/winter/d20/3/71.mp4 new file mode 100644 index 0000000..a904892 Binary files /dev/null and b/static/videos/winter/d20/3/71.mp4 differ diff --git a/static/videos/winter/d20/4/23.mp4 b/static/videos/winter/d20/4/23.mp4 new file mode 100644 index 0000000..6ea7375 Binary files /dev/null and b/static/videos/winter/d20/4/23.mp4 differ diff --git a/static/videos/winter/d20/4/40.mp4 b/static/videos/winter/d20/4/40.mp4 new file mode 100644 index 0000000..b92e8c7 Binary files /dev/null and b/static/videos/winter/d20/4/40.mp4 differ diff --git a/static/videos/winter/d20/4/69.mp4 b/static/videos/winter/d20/4/69.mp4 new file mode 100644 index 0000000..c15eb54 Binary files /dev/null and b/static/videos/winter/d20/4/69.mp4 differ diff --git a/static/videos/winter/d20/5/01.mp4 b/static/videos/winter/d20/5/01.mp4 new file mode 100644 index 0000000..b244ff5 Binary files /dev/null and b/static/videos/winter/d20/5/01.mp4 differ diff --git a/static/videos/winter/d20/5/12.mp4 b/static/videos/winter/d20/5/12.mp4 new file mode 100644 index 0000000..914c8ce Binary files /dev/null and b/static/videos/winter/d20/5/12.mp4 differ diff --git a/static/videos/winter/d20/5/72.mp4 b/static/videos/winter/d20/5/72.mp4 new file mode 100644 index 0000000..a908b69 Binary files /dev/null and b/static/videos/winter/d20/5/72.mp4 differ diff --git a/static/videos/winter/d20/6/05.mp4 b/static/videos/winter/d20/6/05.mp4 new file mode 100644 index 0000000..233b52f Binary files /dev/null and b/static/videos/winter/d20/6/05.mp4 differ diff --git a/static/videos/winter/d20/6/11.mp4 b/static/videos/winter/d20/6/11.mp4 new file mode 100644 index 0000000..8421bdb Binary files /dev/null and b/static/videos/winter/d20/6/11.mp4 differ diff --git a/static/videos/winter/d20/6/25.mp4 b/static/videos/winter/d20/6/25.mp4 new file mode 100644 index 0000000..11e6b59 Binary files /dev/null and b/static/videos/winter/d20/6/25.mp4 differ diff --git a/static/videos/winter/d20/6/47.mp4 b/static/videos/winter/d20/6/47.mp4 new file mode 100644 index 0000000..8443a8a Binary files /dev/null and b/static/videos/winter/d20/6/47.mp4 differ diff --git a/static/videos/winter/d20/6/60.mp4 b/static/videos/winter/d20/6/60.mp4 new file mode 100644 index 0000000..48bb961 Binary files /dev/null and b/static/videos/winter/d20/6/60.mp4 differ diff --git a/static/videos/winter/d20/6/61.mp4 b/static/videos/winter/d20/6/61.mp4 new file mode 100644 index 0000000..d111528 Binary files /dev/null and b/static/videos/winter/d20/6/61.mp4 differ diff --git a/static/videos/winter/d20/6/66.mp4 b/static/videos/winter/d20/6/66.mp4 new file mode 100644 index 0000000..66eafea Binary files /dev/null and b/static/videos/winter/d20/6/66.mp4 differ diff --git a/static/videos/winter/d20/7/81.mp4 b/static/videos/winter/d20/7/81.mp4 new file mode 100644 index 0000000..f7dab7f Binary files /dev/null and b/static/videos/winter/d20/7/81.mp4 differ diff --git a/static/videos/winter/d20/7/89.mp4 b/static/videos/winter/d20/7/89.mp4 new file mode 100644 index 0000000..16da0ed Binary files /dev/null and b/static/videos/winter/d20/7/89.mp4 differ diff --git a/static/videos/winter/d20/8/04.mp4 b/static/videos/winter/d20/8/04.mp4 new file mode 100644 index 0000000..5b52db4 Binary files /dev/null and b/static/videos/winter/d20/8/04.mp4 differ diff --git a/static/videos/winter/d20/8/29.mp4 b/static/videos/winter/d20/8/29.mp4 new file mode 100644 index 0000000..c595adf Binary files /dev/null and b/static/videos/winter/d20/8/29.mp4 differ diff --git a/static/videos/winter/d20/8/34.mp4 b/static/videos/winter/d20/8/34.mp4 new file mode 100644 index 0000000..7ff24f3 Binary files /dev/null and b/static/videos/winter/d20/8/34.mp4 differ diff --git a/static/videos/winter/d20/9/14.mp4 b/static/videos/winter/d20/9/14.mp4 new file mode 100644 index 0000000..b1de2b5 Binary files /dev/null and b/static/videos/winter/d20/9/14.mp4 differ diff --git a/static/videos/winter/d20/9/16.mp4 b/static/videos/winter/d20/9/16.mp4 new file mode 100644 index 0000000..0683a1d Binary files /dev/null and b/static/videos/winter/d20/9/16.mp4 differ diff --git a/static/videos/winter/d20/9/24.mp4 b/static/videos/winter/d20/9/24.mp4 new file mode 100644 index 0000000..e443d00 Binary files /dev/null and b/static/videos/winter/d20/9/24.mp4 differ diff --git a/static/videos/winter/d20/9/43.mp4 b/static/videos/winter/d20/9/43.mp4 new file mode 100644 index 0000000..a2e5beb Binary files /dev/null and b/static/videos/winter/d20/9/43.mp4 differ diff --git a/static/videos/winter/d4/1/01.mp4 b/static/videos/winter/d4/1/01.mp4 new file mode 100644 index 0000000..996aaea Binary files /dev/null and b/static/videos/winter/d4/1/01.mp4 differ diff --git a/static/videos/winter/d4/1/02.mp4 b/static/videos/winter/d4/1/02.mp4 new file mode 100644 index 0000000..b261c75 Binary files /dev/null and b/static/videos/winter/d4/1/02.mp4 differ diff --git a/static/videos/winter/d4/2/14.mp4 b/static/videos/winter/d4/2/14.mp4 new file mode 100644 index 0000000..87be0a5 Binary files /dev/null and b/static/videos/winter/d4/2/14.mp4 differ diff --git a/static/videos/winter/d4/3/03.mp4 b/static/videos/winter/d4/3/03.mp4 new file mode 100644 index 0000000..0fa3d5b Binary files /dev/null and b/static/videos/winter/d4/3/03.mp4 differ diff --git a/static/videos/winter/d4/3/06.mp4 b/static/videos/winter/d4/3/06.mp4 new file mode 100644 index 0000000..649f6c9 Binary files /dev/null and b/static/videos/winter/d4/3/06.mp4 differ diff --git a/static/videos/winter/d4/4/10.mp4 b/static/videos/winter/d4/4/10.mp4 new file mode 100644 index 0000000..ed3efb2 Binary files /dev/null and b/static/videos/winter/d4/4/10.mp4 differ diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..43fb196 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,18 @@ +import adapter from 'svelte-adapter-bun' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + // Consult https://svelte.dev/docs/kit/integrations + // for more information about preprocessors + preprocess: vitePreprocess(), + + kit: { + // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://svelte.dev/docs/kit/adapters for more information about adapters. + adapter: adapter() + } +}; + +export default config; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..0b2d886 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "moduleResolution": "bundler" + } + // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias + // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files + // + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes + // from the referenced tsconfig.json - TypeScript does not merge them in +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..bbf8c7d --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,6 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; + +export default defineConfig({ + plugins: [sveltekit()] +});