Skip to content

Commit

Permalink
Revert "ditch sveltekit"
Browse files Browse the repository at this point in the history
This reverts commit 2ec1684.
Because it makes life harder.
  • Loading branch information
wgenh committed Jun 3, 2024
1 parent 39a2395 commit c56635e
Show file tree
Hide file tree
Showing 41 changed files with 514 additions and 1,029 deletions.
Binary file modified bun.lockb
Binary file not shown.
31 changes: 1 addition & 30 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
{
"compilerOptions": {
"moduleResolution": "bundler",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
* `import type` instead of `import` for Types.
*/
"verbatimModuleSyntax": true,
"isolatedModules": true,
"resolveJsonModule": true,
/**
* To have warnings / errors of the Svelte compiler at the
* correct position, enable source maps by default.
*/
"sourceMap": true,
"esModuleInterop": true,
"skipLibCheck": true,
/**
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable this if you'd like to use dynamic types.
*/
"checkJs": true
},
/**
* Use global.d.ts instead of compilerOptions.types
* to avoid limiting type declarations.
*/
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
"extends": "./.svelte-kit/tsconfig.json"
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"node": ">=18.0.0"
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.0.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@tailwindcss/typography": "^0.5.13",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/svelte": "^5.1.0",
Expand All @@ -23,8 +26,7 @@
"jsdom": "^24.1.0",
"svelte": "^5.0.0-next.1",
"vite": "^5.0.3",
"vitest": "^1.2.0",
"@sveltejs/vite-plugin-svelte": "^3.1.1"
"vitest": "^1.2.0"
},
"type": "module",
"dependencies": {
Expand Down
13 changes: 13 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script defer data-domain="flash.comma.ai" src="https://plausible.io/js/script.js"></script>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
1 change: 0 additions & 1 deletion src/assets/bolt.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/cable.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/cloud.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/cloud_download.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/cloud_error.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/assets/comma.svg

This file was deleted.

46 changes: 0 additions & 46 deletions src/assets/device_exclamation_c3.svg

This file was deleted.

42 changes: 0 additions & 42 deletions src/assets/device_question_c3.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/done.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/exclamation.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/assets/fastboot-ports.svg

This file was deleted.

Binary file removed src/assets/favicon.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/assets/frame_alert.svg

This file was deleted.

Binary file removed src/assets/icon.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/assets/icon.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/system_update_c3.svg

This file was deleted.

Binary file removed src/assets/zadig_create_new_device.png
Binary file not shown.
Binary file removed src/assets/zadig_form.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/globals.css

This file was deleted.

1 change: 1 addition & 0 deletions src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
10 changes: 10 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
import "$lib/globals.css";
import '@fontsource-variable/inter'
import '@fontsource-variable/jetbrains-mono'
</script>
<svelte:head>
<title>flash.comma.ai</title>
<meta name="description" content="Update your comma device to the latest software">
</svelte:head>
<slot />
Loading

0 comments on commit c56635e

Please sign in to comment.