Compare commits

..

No commits in common. "devel/inline-bundle" and "main" have entirely different histories.

11 changed files with 534 additions and 639 deletions

2
.gitignore vendored
View file

@ -11,8 +11,6 @@ node_modules
dist dist
dist-ssr dist-ssr
*.local *.local
build
.svelte-kit
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*

13
index.html Normal file
View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./src/app.css" />
<title>Homo Streams</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="./src/main.js"></script>
</body>
</html>

View file

@ -1,19 +1,33 @@
{ {
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"allowJs": true, "moduleResolution": "bundler",
"checkJs": true, "target": "ESNext",
"esModuleInterop": true, "module": "ESNext",
"forceConsistentCasingInFileNames": true, /**
* 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, "resolveJsonModule": true,
"skipLibCheck": true, /**
* To have warnings / errors of the Svelte compiler at the
* correct position, enable source maps by default.
*/
"sourceMap": true, "sourceMap": true,
"strict": true, "esModuleInterop": true,
"moduleResolution": "bundler" "skipLibCheck": true,
} /**
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias * Typecheck JS in `.svelte` and `.js` files by default.
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files * Disable this if you'd like to use dynamic types.
// */
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes "checkJs": true
// from the referenced tsconfig.json - TypeScript does not merge them in },
/**
* Use global.d.ts instead of compilerOptions.types
* to avoid limiting type declarations.
*/
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
} }

View file

@ -12,12 +12,9 @@
}, },
"devDependencies": { "devDependencies": {
"@cloudflare/kv-asset-handler": "^0.3.4", "@cloudflare/kv-asset-handler": "^0.3.4",
"@sveltejs/adapter-auto": "^3.3.1", "@sveltejs/vite-plugin-svelte": "4.0.0",
"@sveltejs/adapter-static": "^3.0.8", "svelte": "5.0.2",
"@sveltejs/kit": "^2.15.1", "vite": "^5.4.9",
"@sveltejs/vite-plugin-svelte": "5.0.3", "wrangler": "^3.81.0"
"svelte": "5.16.0",
"vite": "^6.0.6",
"wrangler": "^3.99.0"
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,9 @@
<script> <script>
import { onMount } from "svelte"; import { onMount } from "svelte";
import Header from "$lib/Header.svelte"; import Header from "./lib/Header.svelte";
import Stream from "$lib/Stream.svelte"; import Stream from "./lib/Stream.svelte";
import AddStreamDialog from "$lib/AddStreamDialog.svelte"; import AddStreamDialog from "./lib/AddStreamDialog.svelte";
import ManageStreamDialog from "$lib/ManageStreamDialog.svelte"; import ManageStreamDialog from "./lib/ManageStreamDialog.svelte";
let streams = $state([]); let streams = $state([]);
let fracsX = $state(0); let fracsX = $state(0);

13
src/app.d.ts vendored
View file

@ -1,13 +0,0 @@
// 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 {};

View file

@ -1,12 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

8
src/main.js Normal file
View file

@ -0,0 +1,8 @@
import { mount } from 'svelte';
import App from './App.svelte';
const app = mount(App, {
target: document.getElementById('app'),
});
export default app;

View file

@ -1,18 +1,7 @@
import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
/** @type {import('@sveltejs/kit').Config} */ export default {
const config = { // Consult https://svelte.dev/docs#compile-time-svelte-preprocess
kit: { // for more information about preprocessors
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. preprocess: vitePreprocess(),
// 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({
fallback: 'index.html' // may differ from host to host
}),
output: {
bundleStrategy: "inline"
}
}
};
export default config;

View file

@ -1,6 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({ export default defineConfig({
plugins: [sveltekit()] plugins: [
svelte({})
]
}); });