Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions test/resources/repos/svelte/test_repo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@fontsource/fira-mono": "^5.2.7",
"@neoconfetti/svelte": "^2.2.2",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/kit": "^2.57.0",
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^25.6.1",
"svelte": "^5.55.2",
"svelte-check": "^4.4.6",
"tailwindcss": "^4.2.2",
"typescript": "^6.0.2",
"vite": "^8.0.7"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<script lang="ts">
import { enhance } from '$app/forms';
import { resolve } from '$app/paths';
import { confetti } from '@neoconfetti/svelte';
import { MediaQuery } from 'svelte/reactivity';
import { words } from '$lib/components/Words.svelte';
import { GAME_VERSION } from '$lib/game';

let { data } = $props();

const reducedMotion = new MediaQuery('(prefers-reduced-motion: reduce)');

let shake = $state(false);

let won = $derived(data.answers.at(-1) === 'xxxxx');
Expand Down Expand Up @@ -166,19 +162,6 @@
</div>
</form>

{#if won}
<div
style="position: absolute; left: 50%; top: 30%"
use:confetti={{
particleCount: reducedMotion.current ? 0 : undefined,
force: 0.7,
stageWidth: window.innerWidth,
stageHeight: window.innerHeight,
colors: ['#ff3e00', '#40b3ff', '#676778']
}}
></div>
{/if}

<style>
form {
width: 100%;
Expand Down
3 changes: 0 additions & 3 deletions test/resources/repos/svelte/test_repo/src/routes/layout.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@import 'tailwindcss';
@import '@fontsource/fira-mono';

:root {
--font-body: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
Expand Down
3 changes: 1 addition & 2 deletions test/resources/repos/svelte/test_repo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({ plugins: [tailwindcss(), sveltekit()] });
export default defineConfig({ plugins: [sveltekit()] });
Loading