feat: init frontend
1
frontend
@ -1 +0,0 @@
|
|||||||
Subproject commit 533bfb56272a1e734053a16ac2610b4c1e89bc16
|
|
27
frontend/.gitignore
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
vite.config.ts.timestamp*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
build/
|
259
frontend/.svelte-kit/ambient.d.ts
vendored
Normal file
@ -0,0 +1,259 @@
|
|||||||
|
|
||||||
|
// this file is generated — do not edit it
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference types="@sveltejs/kit" />
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
||||||
|
*
|
||||||
|
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { API_KEY } from '$env/static/private';
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||||
|
*
|
||||||
|
* ```
|
||||||
|
* MY_FEATURE_FLAG=""
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* You can override `.env` values from the command line like so:
|
||||||
|
*
|
||||||
|
* ```bash
|
||||||
|
* MY_FEATURE_FLAG="enabled" npm run dev
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare module '$env/static/private' {
|
||||||
|
export const TAURI_ENV_PLATFORM: string;
|
||||||
|
export const npm_package_dependencies__tauri_apps_plugin_shell: string;
|
||||||
|
export const USER: string;
|
||||||
|
export const npm_config_user_agent: string;
|
||||||
|
export const npm_package_dependencies__tauri_apps_api: string;
|
||||||
|
export const FZF_DEFAULT_OPTS: string;
|
||||||
|
export const npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||||
|
export const npm_package_devDependencies_vite: string;
|
||||||
|
export const npm_node_execpath: string;
|
||||||
|
export const SHLVL: string;
|
||||||
|
export const ASDF_DIR: string;
|
||||||
|
export const HOME: string;
|
||||||
|
export const LESS: string;
|
||||||
|
export const OLDPWD: string;
|
||||||
|
export const ASDF_DEFAULT_TOOL_VERSIONS_FILENAME: string;
|
||||||
|
export const TERM_PROGRAM_VERSION: string;
|
||||||
|
export const LSCOLORS: string;
|
||||||
|
export const npm_package_dependencies_three: string;
|
||||||
|
export const npm_package_devDependencies__sveltejs_adapter_static: string;
|
||||||
|
export const FPATH: string;
|
||||||
|
export const PAGER: string;
|
||||||
|
export const npm_package_devDependencies_svelte_check: string;
|
||||||
|
export const npm_package_scripts_check: string;
|
||||||
|
export const npm_package_scripts_tauri: string;
|
||||||
|
export const P9K_TTY: string;
|
||||||
|
export const TAURI_ENV_TARGET_TRIPLE: string;
|
||||||
|
export const COLORTERM: string;
|
||||||
|
export const WSL_DISTRO_NAME: string;
|
||||||
|
export const npm_package_dependencies__sveltejs_kit: string;
|
||||||
|
export const npm_package_devDependencies_typescript: string;
|
||||||
|
export const WAYLAND_DISPLAY: string;
|
||||||
|
export const npm_package_scripts_dev: string;
|
||||||
|
export const LOGNAME: string;
|
||||||
|
export const npm_package_type: string;
|
||||||
|
export const npm_package_devDependencies__tauri_apps_cli: string;
|
||||||
|
export const NAME: string;
|
||||||
|
export const PULSE_SERVER: string;
|
||||||
|
export const WSL_INTEROP: string;
|
||||||
|
export const _P9K_SSH_TTY: string;
|
||||||
|
export const npm_package_private: string;
|
||||||
|
export const npm_config_registry: string;
|
||||||
|
export const TERM: string;
|
||||||
|
export const ASDF_CONFIG_FILE: string;
|
||||||
|
export const TAURI_ENV_DEBUG: string;
|
||||||
|
export const WASMTIME_HOME: string;
|
||||||
|
export const npm_config_node_gyp: string;
|
||||||
|
export const PATH: string;
|
||||||
|
export const NODE: string;
|
||||||
|
export const TAURI_ENV_PLATFORM_VERSION: string;
|
||||||
|
export const npm_package_name: string;
|
||||||
|
export const XDG_RUNTIME_DIR: string;
|
||||||
|
export const npm_package_dependencies__types_three: string;
|
||||||
|
export const npm_config_frozen_lockfile: string;
|
||||||
|
export const DISPLAY: string;
|
||||||
|
export const LANG: string;
|
||||||
|
export const MACOSX_DEPLOYMENT_TARGET: string;
|
||||||
|
export const TAURI_ENV_ARCH: string;
|
||||||
|
export const LS_COLORS: string;
|
||||||
|
export const TERM_PROGRAM: string;
|
||||||
|
export const npm_lifecycle_script: string;
|
||||||
|
export const npm_package_devDependencies__tsconfig_svelte: string;
|
||||||
|
export const NODE_PATH: string;
|
||||||
|
export const SHELL: string;
|
||||||
|
export const npm_package_version: string;
|
||||||
|
export const npm_lifecycle_event: string;
|
||||||
|
export const npm_package_scripts_build: string;
|
||||||
|
export const npm_package_dependencies__threlte_core: string;
|
||||||
|
export const npm_package_devDependencies_svelte: string;
|
||||||
|
export const npm_package_devDependencies_tslib: string;
|
||||||
|
export const P9K_SSH: string;
|
||||||
|
export const ASDF_DATA_DIR: string;
|
||||||
|
export const TAURI_ENV_FAMILY: string;
|
||||||
|
export const npm_package_dependencies__threlte_extras: string;
|
||||||
|
export const FZF_DEFAULT_COMMAND: string;
|
||||||
|
export const PWD: string;
|
||||||
|
export const npm_execpath: string;
|
||||||
|
export const _P9K_TTY: string;
|
||||||
|
export const npm_package_dependencies__threlte_flex: string;
|
||||||
|
export const PNPM_SCRIPT_SRC_DIR: string;
|
||||||
|
export const npm_package_devDependencies_internal_ip: string;
|
||||||
|
export const npm_package_devDependencies_vite_plugin_glsl: string;
|
||||||
|
export const npm_command: string;
|
||||||
|
export const npm_package_scripts_preview: string;
|
||||||
|
export const HOSTTYPE: string;
|
||||||
|
export const WSL2_GUI_APPS_ENABLED: string;
|
||||||
|
export const EDITOR: string;
|
||||||
|
export const INIT_CWD: string;
|
||||||
|
export const WSLENV: string;
|
||||||
|
export const NODE_ENV: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||||
|
*
|
||||||
|
* Values are replaced statically at build time.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare module '$env/static/public' {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
||||||
|
*
|
||||||
|
* This module cannot be imported into client-side code.
|
||||||
|
*
|
||||||
|
* Dynamic environment variables cannot be used during prerendering.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { env } from '$env/dynamic/private';
|
||||||
|
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||||
|
*/
|
||||||
|
declare module '$env/dynamic/private' {
|
||||||
|
export const env: {
|
||||||
|
TAURI_ENV_PLATFORM: string;
|
||||||
|
npm_package_dependencies__tauri_apps_plugin_shell: string;
|
||||||
|
USER: string;
|
||||||
|
npm_config_user_agent: string;
|
||||||
|
npm_package_dependencies__tauri_apps_api: string;
|
||||||
|
FZF_DEFAULT_OPTS: string;
|
||||||
|
npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||||
|
npm_package_devDependencies_vite: string;
|
||||||
|
npm_node_execpath: string;
|
||||||
|
SHLVL: string;
|
||||||
|
ASDF_DIR: string;
|
||||||
|
HOME: string;
|
||||||
|
LESS: string;
|
||||||
|
OLDPWD: string;
|
||||||
|
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME: string;
|
||||||
|
TERM_PROGRAM_VERSION: string;
|
||||||
|
LSCOLORS: string;
|
||||||
|
npm_package_dependencies_three: string;
|
||||||
|
npm_package_devDependencies__sveltejs_adapter_static: string;
|
||||||
|
FPATH: string;
|
||||||
|
PAGER: string;
|
||||||
|
npm_package_devDependencies_svelte_check: string;
|
||||||
|
npm_package_scripts_check: string;
|
||||||
|
npm_package_scripts_tauri: string;
|
||||||
|
P9K_TTY: string;
|
||||||
|
TAURI_ENV_TARGET_TRIPLE: string;
|
||||||
|
COLORTERM: string;
|
||||||
|
WSL_DISTRO_NAME: string;
|
||||||
|
npm_package_dependencies__sveltejs_kit: string;
|
||||||
|
npm_package_devDependencies_typescript: string;
|
||||||
|
WAYLAND_DISPLAY: string;
|
||||||
|
npm_package_scripts_dev: string;
|
||||||
|
LOGNAME: string;
|
||||||
|
npm_package_type: string;
|
||||||
|
npm_package_devDependencies__tauri_apps_cli: string;
|
||||||
|
NAME: string;
|
||||||
|
PULSE_SERVER: string;
|
||||||
|
WSL_INTEROP: string;
|
||||||
|
_P9K_SSH_TTY: string;
|
||||||
|
npm_package_private: string;
|
||||||
|
npm_config_registry: string;
|
||||||
|
TERM: string;
|
||||||
|
ASDF_CONFIG_FILE: string;
|
||||||
|
TAURI_ENV_DEBUG: string;
|
||||||
|
WASMTIME_HOME: string;
|
||||||
|
npm_config_node_gyp: string;
|
||||||
|
PATH: string;
|
||||||
|
NODE: string;
|
||||||
|
TAURI_ENV_PLATFORM_VERSION: string;
|
||||||
|
npm_package_name: string;
|
||||||
|
XDG_RUNTIME_DIR: string;
|
||||||
|
npm_package_dependencies__types_three: string;
|
||||||
|
npm_config_frozen_lockfile: string;
|
||||||
|
DISPLAY: string;
|
||||||
|
LANG: string;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: string;
|
||||||
|
TAURI_ENV_ARCH: string;
|
||||||
|
LS_COLORS: string;
|
||||||
|
TERM_PROGRAM: string;
|
||||||
|
npm_lifecycle_script: string;
|
||||||
|
npm_package_devDependencies__tsconfig_svelte: string;
|
||||||
|
NODE_PATH: string;
|
||||||
|
SHELL: string;
|
||||||
|
npm_package_version: string;
|
||||||
|
npm_lifecycle_event: string;
|
||||||
|
npm_package_scripts_build: string;
|
||||||
|
npm_package_dependencies__threlte_core: string;
|
||||||
|
npm_package_devDependencies_svelte: string;
|
||||||
|
npm_package_devDependencies_tslib: string;
|
||||||
|
P9K_SSH: string;
|
||||||
|
ASDF_DATA_DIR: string;
|
||||||
|
TAURI_ENV_FAMILY: string;
|
||||||
|
npm_package_dependencies__threlte_extras: string;
|
||||||
|
FZF_DEFAULT_COMMAND: string;
|
||||||
|
PWD: string;
|
||||||
|
npm_execpath: string;
|
||||||
|
_P9K_TTY: string;
|
||||||
|
npm_package_dependencies__threlte_flex: string;
|
||||||
|
PNPM_SCRIPT_SRC_DIR: string;
|
||||||
|
npm_package_devDependencies_internal_ip: string;
|
||||||
|
npm_package_devDependencies_vite_plugin_glsl: string;
|
||||||
|
npm_command: string;
|
||||||
|
npm_package_scripts_preview: string;
|
||||||
|
HOSTTYPE: string;
|
||||||
|
WSL2_GUI_APPS_ENABLED: string;
|
||||||
|
EDITOR: string;
|
||||||
|
INIT_CWD: string;
|
||||||
|
WSLENV: string;
|
||||||
|
NODE_ENV: string;
|
||||||
|
[key: `PUBLIC_${string}`]: undefined;
|
||||||
|
[key: `${string}`]: string | undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||||
|
*
|
||||||
|
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
||||||
|
*
|
||||||
|
* Dynamic environment variables cannot be used during prerendering.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import { env } from '$env/dynamic/public';
|
||||||
|
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare module '$env/dynamic/public' {
|
||||||
|
export const env: {
|
||||||
|
[key: `PUBLIC_${string}`]: string | undefined;
|
||||||
|
}
|
||||||
|
}
|
21
frontend/.svelte-kit/generated/client-optimized/app.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
export { matchers } from './matchers.js';
|
||||||
|
|
||||||
|
export const nodes = [
|
||||||
|
() => import('./nodes/0'),
|
||||||
|
() => import('./nodes/1'),
|
||||||
|
() => import('./nodes/2')
|
||||||
|
];
|
||||||
|
|
||||||
|
export const server_loads = [];
|
||||||
|
|
||||||
|
export const dictionary = {
|
||||||
|
"/": [2]
|
||||||
|
};
|
||||||
|
|
||||||
|
export const hooks = {
|
||||||
|
handleError: (({ error }) => { console.error(error) }),
|
||||||
|
|
||||||
|
reroute: (() => {})
|
||||||
|
};
|
||||||
|
|
||||||
|
export { default as root } from '../root.svelte';
|
@ -0,0 +1 @@
|
|||||||
|
export const matchers = {};
|
@ -0,0 +1,3 @@
|
|||||||
|
import * as universal from "../../../../src/routes/+layout.ts";
|
||||||
|
export { universal };
|
||||||
|
export { default as component } from "../../../../../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte";
|
@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/error.svelte";
|
@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/+page.svelte";
|
21
frontend/.svelte-kit/generated/client/app.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
export { matchers } from './matchers.js';
|
||||||
|
|
||||||
|
export const nodes = [
|
||||||
|
() => import('./nodes/0'),
|
||||||
|
() => import('./nodes/1'),
|
||||||
|
() => import('./nodes/2')
|
||||||
|
];
|
||||||
|
|
||||||
|
export const server_loads = [];
|
||||||
|
|
||||||
|
export const dictionary = {
|
||||||
|
"/": [2]
|
||||||
|
};
|
||||||
|
|
||||||
|
export const hooks = {
|
||||||
|
handleError: (({ error }) => { console.error(error) }),
|
||||||
|
|
||||||
|
reroute: (() => {})
|
||||||
|
};
|
||||||
|
|
||||||
|
export { default as root } from '../root.svelte';
|
1
frontend/.svelte-kit/generated/client/matchers.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export const matchers = {};
|
3
frontend/.svelte-kit/generated/client/nodes/0.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import * as universal from "../../../../src/routes/+layout.ts";
|
||||||
|
export { universal };
|
||||||
|
export { default as component } from "../../../../src/routes/+layout.svelte";
|
1
frontend/.svelte-kit/generated/client/nodes/1.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/error.svelte";
|
1
frontend/.svelte-kit/generated/client/nodes/2.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { default as component } from "../../../../src/routes/+page.svelte";
|
57
frontend/.svelte-kit/generated/root.svelte
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { setContext, afterUpdate, onMount, tick } from 'svelte';
|
||||||
|
import { browser } from '$app/environment';
|
||||||
|
|
||||||
|
// stores
|
||||||
|
export let stores;
|
||||||
|
export let page;
|
||||||
|
|
||||||
|
export let constructors;
|
||||||
|
export let components = [];
|
||||||
|
export let form;
|
||||||
|
export let data_0 = null;
|
||||||
|
export let data_1 = null;
|
||||||
|
|
||||||
|
if (!browser) {
|
||||||
|
setContext('__svelte__', stores);
|
||||||
|
}
|
||||||
|
|
||||||
|
$: stores.page.set(page);
|
||||||
|
afterUpdate(stores.page.notify);
|
||||||
|
|
||||||
|
let mounted = false;
|
||||||
|
let navigated = false;
|
||||||
|
let title = null;
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
const unsubscribe = stores.page.subscribe(() => {
|
||||||
|
if (mounted) {
|
||||||
|
navigated = true;
|
||||||
|
tick().then(() => {
|
||||||
|
title = document.title || 'untitled page';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mounted = true;
|
||||||
|
return unsubscribe;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if constructors[1]}
|
||||||
|
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0}>
|
||||||
|
<svelte:component this={constructors[1]} bind:this={components[1]} data={data_1} {form} />
|
||||||
|
</svelte:component>
|
||||||
|
{:else}
|
||||||
|
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0} {form} />
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if mounted}
|
||||||
|
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
|
||||||
|
{#if navigated}
|
||||||
|
{title}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
34
frontend/.svelte-kit/generated/server/internal.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
import root from '../root.svelte';
|
||||||
|
import { set_building, set_prerendering } from '__sveltekit/environment';
|
||||||
|
import { set_assets } from '__sveltekit/paths';
|
||||||
|
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
||||||
|
import { set_private_env, set_public_env, set_safe_public_env } from '../../../../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
||||||
|
|
||||||
|
export const options = {
|
||||||
|
app_dir: "_app",
|
||||||
|
app_template_contains_nonce: false,
|
||||||
|
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
||||||
|
csrf_check_origin: true,
|
||||||
|
embedded: false,
|
||||||
|
env_public_prefix: 'PUBLIC_',
|
||||||
|
env_private_prefix: '',
|
||||||
|
hooks: null, // added lazily, via `get_hooks`
|
||||||
|
preload_strategy: "modulepreload",
|
||||||
|
root,
|
||||||
|
service_worker: false,
|
||||||
|
templates: {
|
||||||
|
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/svelte.svg\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
|
||||||
|
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
||||||
|
},
|
||||||
|
version_hash: "42dd04"
|
||||||
|
};
|
||||||
|
|
||||||
|
export async function get_hooks() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
|
25
frontend/.svelte-kit/non-ambient.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
// this file is generated — do not edit it
|
||||||
|
|
||||||
|
|
||||||
|
declare module "svelte/elements" {
|
||||||
|
export interface HTMLAttributes<T> {
|
||||||
|
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-preload-code'?:
|
||||||
|
| true
|
||||||
|
| ''
|
||||||
|
| 'eager'
|
||||||
|
| 'viewport'
|
||||||
|
| 'hover'
|
||||||
|
| 'tap'
|
||||||
|
| 'off'
|
||||||
|
| undefined
|
||||||
|
| null;
|
||||||
|
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
|
||||||
|
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
81
frontend/.svelte-kit/output/client/.vite/manifest.json
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/client/entry.js": {
|
||||||
|
"file": "_app/immutable/entry/start.92os7lz4.js",
|
||||||
|
"src": "../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/client/entry.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_entry.DSCOgCkx.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/app.js": {
|
||||||
|
"file": "_app/immutable/entry/app.1QiIHMmL.js",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/app.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js",
|
||||||
|
"_index.D-4GBzMI.js"
|
||||||
|
],
|
||||||
|
"dynamicImports": [
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/0.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/1.js",
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/2.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/0.js": {
|
||||||
|
"file": "_app/immutable/nodes/0.COd8Lg7a.js",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/0.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js",
|
||||||
|
"_index.D-4GBzMI.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/1.js": {
|
||||||
|
"file": "_app/immutable/nodes/1.CSd4wjwx.js",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/1.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js",
|
||||||
|
"_index.D-4GBzMI.js",
|
||||||
|
"_entry.DSCOgCkx.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/client-optimized/nodes/2.js": {
|
||||||
|
"file": "_app/immutable/nodes/2.Yb2uPOo9.js",
|
||||||
|
"src": ".svelte-kit/generated/client-optimized/nodes/2.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"isDynamicEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js",
|
||||||
|
"_index.D-4GBzMI.js",
|
||||||
|
"_index.CtlmB4aM.js"
|
||||||
|
],
|
||||||
|
"css": [
|
||||||
|
"_app/immutable/assets/2.CkmNU14M.css"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_entry.DSCOgCkx.js": {
|
||||||
|
"file": "_app/immutable/chunks/entry.DSCOgCkx.js",
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js",
|
||||||
|
"_index.CtlmB4aM.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_index.CtlmB4aM.js": {
|
||||||
|
"file": "_app/immutable/chunks/index.CtlmB4aM.js",
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_index.D-4GBzMI.js": {
|
||||||
|
"file": "_app/immutable/chunks/index.D-4GBzMI.js",
|
||||||
|
"imports": [
|
||||||
|
"_scheduler.DQZw9iDR.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_scheduler.DQZw9iDR.js": {
|
||||||
|
"file": "_app/immutable/chunks/scheduler.DQZw9iDR.js"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
canvas.svelte-o3oskp{display:block}body{overflow:hidden}.wrapper.svelte-1hhwi3t{position:absolute;z-index:100;width:0px;height:0px;transform:scale(calc(var(--cz) * .1))}.node.svelte-1hhwi3t:hover{background:red}.node.svelte-1hhwi3t{position:absolute;border-radius:2px;user-select:none!important;-webkit-user-select:none;cursor:pointer;width:50px;height:20px;background:green;transform:translate(var(--nx),var(--ny))}div.svelte-1mpqyj7{height:100vh}body{margin:0;position:relative;width:100vw;height:100vh;background:#0d1320;background:linear-gradient(180deg,#0d1320,#080c15)}
|
@ -0,0 +1 @@
|
|||||||
|
canvas.svelte-o3oskp{display:block}body{overflow:hidden}.wrapper.svelte-1hhwi3t{position:absolute;z-index:100;width:0px;height:0px;transform:scale(calc(var(--cz) * .1))}.node.svelte-1hhwi3t:hover{background:red}.node.svelte-1hhwi3t{position:absolute;border-radius:2px;user-select:none!important;-webkit-user-select:none;cursor:pointer;width:50px;height:20px;background:green;transform:translate(var(--nx),var(--ny))}div.svelte-1mpqyj7{height:100vh}body{margin:0;position:relative;width:100vw;height:100vh;background:#0d1320;background:linear-gradient(180deg,#0d1320,#080c15)}
|
@ -0,0 +1 @@
|
|||||||
|
import{n as f,s as w,a as m,r as q,i as x}from"./scheduler.DQZw9iDR.js";const a=[];function z(e,o){return{subscribe:A(e,o).subscribe}}function A(e,o=f){let n;const r=new Set;function u(t){if(w(e,t)&&(e=t,n)){const i=!a.length;for(const s of r)s[1](),a.push(s,e);if(i){for(let s=0;s<a.length;s+=2)a[s][0](a[s+1]);a.length=0}}}function l(t){u(t(e))}function b(t,i=f){const s=[t,i];return r.add(s),r.size===1&&(n=o(u,l)||f),t(e),()=>{r.delete(s),r.size===0&&n&&(n(),n=null)}}return{set:u,update:l,subscribe:b}}function E(e,o,n){const r=!Array.isArray(e),u=r?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=o.length<2;return z(n,(b,t)=>{let i=!1;const s=[];let d=0,p=f;const h=()=>{if(d)return;p();const c=o(r?s[0]:s,b,t);l?b(c):p=x(c)?c:f},y=u.map((c,g)=>m(c,_=>{s[g]=_,d&=~(1<<g),i&&h()},()=>{d|=1<<g}));return i=!0,h(),function(){q(y),p(),i=!1}})}export{E as d,z as r,A as w};
|
@ -0,0 +1 @@
|
|||||||
|
function y(){}function w(t,n){for(const e in n)t[e]=n[e];return t}function v(t){return t()}function D(){return Object.create(null)}function j(t){t.forEach(v)}function E(t){return typeof t=="function"}function F(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function M(t){return Object.keys(t).length===0}function m(t,...n){if(t==null){for(const o of n)o(void 0);return y}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function S(t){let n;return m(t,e=>n=e)(),n}function A(t,n,e){t.$$.on_destroy.push(m(n,e))}function B(t,n,e,o){if(t){const r=x(t,n,e,o);return t[0](r)}}function x(t,n,e,o){return t[1]&&o?w(e.ctx.slice(),t[1](o(n))):e.ctx}function G(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const l=[],_=Math.max(n.dirty.length,r.length);for(let u=0;u<_;u+=1)l[u]=n.dirty[u]|r[u];return l}return n.dirty|r}return n.dirty}function H(t,n,e,o,r,l){if(r){const _=x(n,e,o,l);t.p(_,r)}}function I(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}function P(t){const n={};for(const e in t)e[0]!=="$"&&(n[e]=t[e]);return n}function U(t,n){const e={};n=new Set(n);for(const o in t)!n.has(o)&&o[0]!=="$"&&(e[o]=t[o]);return e}function J(t,n,e){return t.set(e),n}function K(t){return t&&E(t.destroy)?t.destroy:y}let f;function d(t){f=t}function i(){if(!f)throw new Error("Function called outside component initialization");return f}function L(t){i().$$.on_mount.push(t)}function N(t){i().$$.after_update.push(t)}function Q(t){i().$$.on_destroy.push(t)}function R(t,n){return i().$$.context.set(t,n),n}function T(t){return i().$$.context.get(t)}const a=[],b=[];let c=[];const p=[],k=Promise.resolve();let g=!1;function C(){g||(g=!0,k.then(q))}function V(){return C(),k}function O(t){c.push(t)}function W(t){p.push(t)}const h=new Set;let s=0;function q(){if(s!==0)return;const t=f;do{try{for(;s<a.length;){const n=a[s];s++,d(n),z(n.$$)}}catch(n){throw a.length=0,s=0,n}for(d(null),a.length=0,s=0;b.length;)b.pop()();for(let n=0;n<c.length;n+=1){const e=c[n];h.has(e)||(h.add(e),e())}c.length=0}while(a.length);for(;p.length;)p.pop()();g=!1,h.clear(),d(t)}function z(t){if(t.fragment!==null){t.update(),j(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function X(t){const n=[],e=[];c.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),c=n}export{T as A,S as B,K as C,i as D,U as E,w as F,P as G,W as H,J as I,m as a,G as b,B as c,A as d,N as e,b as f,I as g,D as h,E as i,q as j,M as k,O as l,X as m,y as n,L as o,f as p,d as q,j as r,F as s,V as t,H as u,v,a as w,C as x,R as y,Q as z};
|
@ -0,0 +1 @@
|
|||||||
|
import{a as t}from"../chunks/entry.DSCOgCkx.js";export{t as start};
|
@ -0,0 +1 @@
|
|||||||
|
import{s as l,c as r,u as i,g as u,b as f}from"../chunks/scheduler.DQZw9iDR.js";import{S as _,i as c,t as p,a as m}from"../chunks/index.D-4GBzMI.js";const d=!0,$=!1,v=Object.freeze(Object.defineProperty({__proto__:null,prerender:d,ssr:$},Symbol.toStringTag,{value:"Module"}));function g(n){let s;const a=n[1].default,e=r(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&i(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function b(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class h extends _{constructor(s){super(),c(this,s,b,g,l,{})}}export{h as component,v as universal};
|
@ -0,0 +1 @@
|
|||||||
|
import{s as S,n as _,d as x}from"../chunks/scheduler.DQZw9iDR.js";import{S as j,i as k,e as d,b as f,s as q,c as g,d as h,f as v,g as l,h as y,j as m,k as $,l as E}from"../chunks/index.D-4GBzMI.js";import{s as C}from"../chunks/entry.DSCOgCkx.js";const H=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},P={subscribe(s){return H().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",u;return{c(){t=d("h1"),o=f(r),n=q(),i=d("p"),u=f(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(l),n=y(e),i=g(e,"P",{});var p=h(i);u=v(p,c),p.forEach(l)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,u)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(u,c)},i:_,o:_,d(e){e&&(l(t),l(n),l(i))}}}function z(s,t,r){let o;return x(s,P,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),k(this,t,z,w,S,{})}};export{F as component};
|
1
frontend/.svelte-kit/output/client/_app/version.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":"1708965170440"}
|
1
frontend/.svelte-kit/output/client/svelte.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>
|
After Width: | Height: | Size: 1.9 KiB |
6
frontend/.svelte-kit/output/client/tauri.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
|
||||||
|
<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
1
frontend/.svelte-kit/output/client/vite.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1 @@
|
|||||||
|
export const env={}
|
35
frontend/.svelte-kit/output/prerendered/pages/index.html
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="./svelte.svg" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/entry/start.92os7lz4.js">
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/chunks/entry.DSCOgCkx.js">
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/chunks/scheduler.DQZw9iDR.js">
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/chunks/index.CtlmB4aM.js">
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/entry/app.1QiIHMmL.js">
|
||||||
|
<link rel="modulepreload" href="./_app/immutable/chunks/index.D-4GBzMI.js">
|
||||||
|
</head>
|
||||||
|
<body data-sveltekit-preload-data="hover">
|
||||||
|
<div style="display: contents">
|
||||||
|
<script>
|
||||||
|
{
|
||||||
|
__sveltekit_tics2f = {
|
||||||
|
base: new URL(".", location).pathname.slice(0, -1)
|
||||||
|
};
|
||||||
|
|
||||||
|
const element = document.currentScript.parentElement;
|
||||||
|
|
||||||
|
Promise.all([
|
||||||
|
import("./_app/immutable/entry/start.92os7lz4.js"),
|
||||||
|
import("./_app/immutable/entry/app.1QiIHMmL.js")
|
||||||
|
]).then(([kit, app]) => {
|
||||||
|
kit.start(app, element);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
72
frontend/.svelte-kit/output/server/.vite/manifest.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
|
||||||
|
"file": "entries/fallbacks/error.svelte.js",
|
||||||
|
"src": "../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_ssr.js",
|
||||||
|
"_exports.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte": {
|
||||||
|
"file": "entries/fallbacks/layout.svelte.js",
|
||||||
|
"src": "../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/components/layout.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_ssr.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/server/index.js": {
|
||||||
|
"file": "index.js",
|
||||||
|
"src": "../node_modules/.pnpm/@sveltejs+kit@2.5.2_@sveltejs+vite-plugin-svelte@3.0.2_svelte@4.2.12_vite@5.1.4/node_modules/@sveltejs/kit/src/runtime/server/index.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_internal.js",
|
||||||
|
"_exports.js",
|
||||||
|
"_index.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
".svelte-kit/generated/server/internal.js": {
|
||||||
|
"file": "internal.js",
|
||||||
|
"src": ".svelte-kit/generated/server/internal.js",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_internal.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_exports.js": {
|
||||||
|
"file": "chunks/exports.js"
|
||||||
|
},
|
||||||
|
"_index.js": {
|
||||||
|
"file": "chunks/index.js",
|
||||||
|
"imports": [
|
||||||
|
"_ssr.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_internal.js": {
|
||||||
|
"file": "chunks/internal.js",
|
||||||
|
"imports": [
|
||||||
|
"_ssr.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_ssr.js": {
|
||||||
|
"file": "chunks/ssr.js"
|
||||||
|
},
|
||||||
|
"src/routes/+layout.ts": {
|
||||||
|
"file": "entries/pages/_layout.ts.js",
|
||||||
|
"src": "src/routes/+layout.ts",
|
||||||
|
"isEntry": true
|
||||||
|
},
|
||||||
|
"src/routes/+page.svelte": {
|
||||||
|
"file": "entries/pages/_page.svelte.js",
|
||||||
|
"src": "src/routes/+page.svelte",
|
||||||
|
"isEntry": true,
|
||||||
|
"imports": [
|
||||||
|
"_ssr.js",
|
||||||
|
"_index.js"
|
||||||
|
],
|
||||||
|
"css": [
|
||||||
|
"_app/immutable/assets/_page.CkmNU14M.css"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
canvas.svelte-o3oskp{display:block}body{overflow:hidden}.wrapper.svelte-1hhwi3t{position:absolute;z-index:100;width:0px;height:0px;transform:scale(calc(var(--cz) * .1))}.node.svelte-1hhwi3t:hover{background:red}.node.svelte-1hhwi3t{position:absolute;border-radius:2px;user-select:none!important;-webkit-user-select:none;cursor:pointer;width:50px;height:20px;background:green;transform:translate(var(--nx),var(--ny))}div.svelte-1mpqyj7{height:100vh}body{margin:0;position:relative;width:100vw;height:100vh;background:#0d1320;background:linear-gradient(180deg,#0d1320,#080c15)}
|
200
frontend/.svelte-kit/output/server/chunks/exports.js
Normal file
@ -0,0 +1,200 @@
|
|||||||
|
const internal = new URL("sveltekit-internal://");
|
||||||
|
function resolve(base, path) {
|
||||||
|
if (path[0] === "/" && path[1] === "/")
|
||||||
|
return path;
|
||||||
|
let url = new URL(base, internal);
|
||||||
|
url = new URL(path, url);
|
||||||
|
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
||||||
|
}
|
||||||
|
function normalize_path(path, trailing_slash) {
|
||||||
|
if (path === "/" || trailing_slash === "ignore")
|
||||||
|
return path;
|
||||||
|
if (trailing_slash === "never") {
|
||||||
|
return path.endsWith("/") ? path.slice(0, -1) : path;
|
||||||
|
} else if (trailing_slash === "always" && !path.endsWith("/")) {
|
||||||
|
return path + "/";
|
||||||
|
}
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
function decode_pathname(pathname) {
|
||||||
|
return pathname.split("%25").map(decodeURI).join("%25");
|
||||||
|
}
|
||||||
|
function decode_params(params) {
|
||||||
|
for (const key in params) {
|
||||||
|
params[key] = decodeURIComponent(params[key]);
|
||||||
|
}
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
const tracked_url_properties = (
|
||||||
|
/** @type {const} */
|
||||||
|
[
|
||||||
|
"href",
|
||||||
|
"pathname",
|
||||||
|
"search",
|
||||||
|
"toString",
|
||||||
|
"toJSON"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
function make_trackable(url, callback, search_params_callback) {
|
||||||
|
const tracked = new URL(url);
|
||||||
|
Object.defineProperty(tracked, "searchParams", {
|
||||||
|
value: new Proxy(tracked.searchParams, {
|
||||||
|
get(obj, key) {
|
||||||
|
if (key === "get" || key === "getAll" || key === "has") {
|
||||||
|
return (param) => {
|
||||||
|
search_params_callback(param);
|
||||||
|
return obj[key](param);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
callback();
|
||||||
|
const value = Reflect.get(obj, key);
|
||||||
|
return typeof value === "function" ? value.bind(obj) : value;
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
for (const property of tracked_url_properties) {
|
||||||
|
Object.defineProperty(tracked, property, {
|
||||||
|
get() {
|
||||||
|
callback();
|
||||||
|
return url[property];
|
||||||
|
},
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
{
|
||||||
|
tracked[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
||||||
|
return inspect(url, opts);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
disable_hash(tracked);
|
||||||
|
}
|
||||||
|
return tracked;
|
||||||
|
}
|
||||||
|
function disable_hash(url) {
|
||||||
|
allow_nodejs_console_log(url);
|
||||||
|
Object.defineProperty(url, "hash", {
|
||||||
|
get() {
|
||||||
|
throw new Error(
|
||||||
|
"Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function disable_search(url) {
|
||||||
|
allow_nodejs_console_log(url);
|
||||||
|
for (const property of ["search", "searchParams"]) {
|
||||||
|
Object.defineProperty(url, property, {
|
||||||
|
get() {
|
||||||
|
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function allow_nodejs_console_log(url) {
|
||||||
|
{
|
||||||
|
url[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
||||||
|
return inspect(new URL(url), opts);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const DATA_SUFFIX = "/__data.json";
|
||||||
|
const HTML_DATA_SUFFIX = ".html__data.json";
|
||||||
|
function has_data_suffix(pathname) {
|
||||||
|
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
||||||
|
}
|
||||||
|
function add_data_suffix(pathname) {
|
||||||
|
if (pathname.endsWith(".html"))
|
||||||
|
return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
||||||
|
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
||||||
|
}
|
||||||
|
function strip_data_suffix(pathname) {
|
||||||
|
if (pathname.endsWith(HTML_DATA_SUFFIX)) {
|
||||||
|
return pathname.slice(0, -HTML_DATA_SUFFIX.length) + ".html";
|
||||||
|
}
|
||||||
|
return pathname.slice(0, -DATA_SUFFIX.length);
|
||||||
|
}
|
||||||
|
function validator(expected) {
|
||||||
|
function validate(module, file) {
|
||||||
|
if (!module)
|
||||||
|
return;
|
||||||
|
for (const key in module) {
|
||||||
|
if (key[0] === "_" || expected.has(key))
|
||||||
|
continue;
|
||||||
|
const values = [...expected.values()];
|
||||||
|
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
||||||
|
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return validate;
|
||||||
|
}
|
||||||
|
function hint_for_supported_files(key, ext = ".js") {
|
||||||
|
const supported_files = [];
|
||||||
|
if (valid_layout_exports.has(key)) {
|
||||||
|
supported_files.push(`+layout${ext}`);
|
||||||
|
}
|
||||||
|
if (valid_page_exports.has(key)) {
|
||||||
|
supported_files.push(`+page${ext}`);
|
||||||
|
}
|
||||||
|
if (valid_layout_server_exports.has(key)) {
|
||||||
|
supported_files.push(`+layout.server${ext}`);
|
||||||
|
}
|
||||||
|
if (valid_page_server_exports.has(key)) {
|
||||||
|
supported_files.push(`+page.server${ext}`);
|
||||||
|
}
|
||||||
|
if (valid_server_exports.has(key)) {
|
||||||
|
supported_files.push(`+server${ext}`);
|
||||||
|
}
|
||||||
|
if (supported_files.length > 0) {
|
||||||
|
return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const valid_layout_exports = /* @__PURE__ */ new Set([
|
||||||
|
"load",
|
||||||
|
"prerender",
|
||||||
|
"csr",
|
||||||
|
"ssr",
|
||||||
|
"trailingSlash",
|
||||||
|
"config"
|
||||||
|
]);
|
||||||
|
const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
|
||||||
|
const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
|
||||||
|
const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
|
||||||
|
const valid_server_exports = /* @__PURE__ */ new Set([
|
||||||
|
"GET",
|
||||||
|
"POST",
|
||||||
|
"PATCH",
|
||||||
|
"PUT",
|
||||||
|
"DELETE",
|
||||||
|
"OPTIONS",
|
||||||
|
"HEAD",
|
||||||
|
"fallback",
|
||||||
|
"prerender",
|
||||||
|
"trailingSlash",
|
||||||
|
"config",
|
||||||
|
"entries"
|
||||||
|
]);
|
||||||
|
const validate_layout_exports = validator(valid_layout_exports);
|
||||||
|
const validate_page_exports = validator(valid_page_exports);
|
||||||
|
const validate_layout_server_exports = validator(valid_layout_server_exports);
|
||||||
|
const validate_page_server_exports = validator(valid_page_server_exports);
|
||||||
|
const validate_server_exports = validator(valid_server_exports);
|
||||||
|
export {
|
||||||
|
add_data_suffix as a,
|
||||||
|
decode_pathname as b,
|
||||||
|
decode_params as c,
|
||||||
|
disable_search as d,
|
||||||
|
validate_layout_exports as e,
|
||||||
|
validate_page_server_exports as f,
|
||||||
|
validate_page_exports as g,
|
||||||
|
has_data_suffix as h,
|
||||||
|
validate_server_exports as i,
|
||||||
|
make_trackable as m,
|
||||||
|
normalize_path as n,
|
||||||
|
resolve as r,
|
||||||
|
strip_data_suffix as s,
|
||||||
|
validate_layout_server_exports as v
|
||||||
|
};
|
101
frontend/.svelte-kit/output/server/chunks/index.js
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
import { n as noop, l as safe_not_equal, a as subscribe, r as run_all, p as is_function } from "./ssr.js";
|
||||||
|
const subscriber_queue = [];
|
||||||
|
function readable(value, start) {
|
||||||
|
return {
|
||||||
|
subscribe: writable(value, start).subscribe
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop;
|
||||||
|
const subscribers = /* @__PURE__ */ new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) {
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(value));
|
||||||
|
}
|
||||||
|
function subscribe2(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set, update) || noop;
|
||||||
|
}
|
||||||
|
run(value);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0 && stop) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe: subscribe2 };
|
||||||
|
}
|
||||||
|
function derived(stores, fn, initial_value) {
|
||||||
|
const single = !Array.isArray(stores);
|
||||||
|
const stores_array = single ? [stores] : stores;
|
||||||
|
if (!stores_array.every(Boolean)) {
|
||||||
|
throw new Error("derived() expects stores as input, got a falsy value");
|
||||||
|
}
|
||||||
|
const auto = fn.length < 2;
|
||||||
|
return readable(initial_value, (set, update) => {
|
||||||
|
let started = false;
|
||||||
|
const values = [];
|
||||||
|
let pending = 0;
|
||||||
|
let cleanup = noop;
|
||||||
|
const sync = () => {
|
||||||
|
if (pending) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
cleanup();
|
||||||
|
const result = fn(single ? values[0] : values, set, update);
|
||||||
|
if (auto) {
|
||||||
|
set(result);
|
||||||
|
} else {
|
||||||
|
cleanup = is_function(result) ? result : noop;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const unsubscribers = stores_array.map(
|
||||||
|
(store, i) => subscribe(
|
||||||
|
store,
|
||||||
|
(value) => {
|
||||||
|
values[i] = value;
|
||||||
|
pending &= ~(1 << i);
|
||||||
|
if (started) {
|
||||||
|
sync();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
pending |= 1 << i;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
started = true;
|
||||||
|
sync();
|
||||||
|
return function stop() {
|
||||||
|
run_all(unsubscribers);
|
||||||
|
cleanup();
|
||||||
|
started = false;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
derived as d,
|
||||||
|
readable as r,
|
||||||
|
writable as w
|
||||||
|
};
|
220
frontend/.svelte-kit/output/server/chunks/internal.js
Normal file
@ -0,0 +1,220 @@
|
|||||||
|
import { c as create_ssr_component, s as setContext, v as validate_component, m as missing_component } from "./ssr.js";
|
||||||
|
let base = "";
|
||||||
|
let assets = base;
|
||||||
|
const initial = { base, assets };
|
||||||
|
function override(paths) {
|
||||||
|
base = paths.base;
|
||||||
|
assets = paths.assets;
|
||||||
|
}
|
||||||
|
function reset() {
|
||||||
|
base = initial.base;
|
||||||
|
assets = initial.assets;
|
||||||
|
}
|
||||||
|
function set_assets(path) {
|
||||||
|
assets = initial.assets = path;
|
||||||
|
}
|
||||||
|
let public_env = {};
|
||||||
|
let safe_public_env = {};
|
||||||
|
function set_private_env(environment) {
|
||||||
|
}
|
||||||
|
function set_public_env(environment) {
|
||||||
|
public_env = environment;
|
||||||
|
}
|
||||||
|
function set_safe_public_env(environment) {
|
||||||
|
safe_public_env = environment;
|
||||||
|
}
|
||||||
|
function afterUpdate() {
|
||||||
|
}
|
||||||
|
let prerendering = false;
|
||||||
|
function set_building() {
|
||||||
|
}
|
||||||
|
function set_prerendering() {
|
||||||
|
prerendering = true;
|
||||||
|
}
|
||||||
|
const Root = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
||||||
|
let { stores } = $$props;
|
||||||
|
let { page } = $$props;
|
||||||
|
let { constructors } = $$props;
|
||||||
|
let { components = [] } = $$props;
|
||||||
|
let { form } = $$props;
|
||||||
|
let { data_0 = null } = $$props;
|
||||||
|
let { data_1 = null } = $$props;
|
||||||
|
{
|
||||||
|
setContext("__svelte__", stores);
|
||||||
|
}
|
||||||
|
afterUpdate(stores.page.notify);
|
||||||
|
if ($$props.stores === void 0 && $$bindings.stores && stores !== void 0)
|
||||||
|
$$bindings.stores(stores);
|
||||||
|
if ($$props.page === void 0 && $$bindings.page && page !== void 0)
|
||||||
|
$$bindings.page(page);
|
||||||
|
if ($$props.constructors === void 0 && $$bindings.constructors && constructors !== void 0)
|
||||||
|
$$bindings.constructors(constructors);
|
||||||
|
if ($$props.components === void 0 && $$bindings.components && components !== void 0)
|
||||||
|
$$bindings.components(components);
|
||||||
|
if ($$props.form === void 0 && $$bindings.form && form !== void 0)
|
||||||
|
$$bindings.form(form);
|
||||||
|
if ($$props.data_0 === void 0 && $$bindings.data_0 && data_0 !== void 0)
|
||||||
|
$$bindings.data_0(data_0);
|
||||||
|
if ($$props.data_1 === void 0 && $$bindings.data_1 && data_1 !== void 0)
|
||||||
|
$$bindings.data_1(data_1);
|
||||||
|
let $$settled;
|
||||||
|
let $$rendered;
|
||||||
|
let previous_head = $$result.head;
|
||||||
|
do {
|
||||||
|
$$settled = true;
|
||||||
|
$$result.head = previous_head;
|
||||||
|
{
|
||||||
|
stores.page.set(page);
|
||||||
|
}
|
||||||
|
$$rendered = ` ${constructors[1] ? `${validate_component(constructors[0] || missing_component, "svelte:component").$$render(
|
||||||
|
$$result,
|
||||||
|
{ data: data_0, this: components[0] },
|
||||||
|
{
|
||||||
|
this: ($$value) => {
|
||||||
|
components[0] = $$value;
|
||||||
|
$$settled = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
default: () => {
|
||||||
|
return `${validate_component(constructors[1] || missing_component, "svelte:component").$$render(
|
||||||
|
$$result,
|
||||||
|
{ data: data_1, form, this: components[1] },
|
||||||
|
{
|
||||||
|
this: ($$value) => {
|
||||||
|
components[1] = $$value;
|
||||||
|
$$settled = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{}
|
||||||
|
)}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)}` : `${validate_component(constructors[0] || missing_component, "svelte:component").$$render(
|
||||||
|
$$result,
|
||||||
|
{ data: data_0, form, this: components[0] },
|
||||||
|
{
|
||||||
|
this: ($$value) => {
|
||||||
|
components[0] = $$value;
|
||||||
|
$$settled = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{}
|
||||||
|
)}`} ${``}`;
|
||||||
|
} while (!$$settled);
|
||||||
|
return $$rendered;
|
||||||
|
});
|
||||||
|
function set_read_implementation(fn) {
|
||||||
|
}
|
||||||
|
function set_manifest(_) {
|
||||||
|
}
|
||||||
|
const options = {
|
||||||
|
app_dir: "_app",
|
||||||
|
app_template_contains_nonce: false,
|
||||||
|
csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
|
||||||
|
csrf_check_origin: true,
|
||||||
|
embedded: false,
|
||||||
|
env_public_prefix: "PUBLIC_",
|
||||||
|
env_private_prefix: "",
|
||||||
|
hooks: null,
|
||||||
|
// added lazily, via `get_hooks`
|
||||||
|
preload_strategy: "modulepreload",
|
||||||
|
root: Root,
|
||||||
|
service_worker: false,
|
||||||
|
templates: {
|
||||||
|
app: ({ head, body, assets: assets2, nonce, env }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets2 + '/svelte.svg" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
||||||
|
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
--bg: white;
|
||||||
|
--fg: #222;
|
||||||
|
--divider: #ccc;
|
||||||
|
background: var(--bg);
|
||||||
|
color: var(--fg);
|
||||||
|
font-family:
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
'Segoe UI',
|
||||||
|
Roboto,
|
||||||
|
Oxygen,
|
||||||
|
Ubuntu,
|
||||||
|
Cantarell,
|
||||||
|
'Open Sans',
|
||||||
|
'Helvetica Neue',
|
||||||
|
sans-serif;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 32rem;
|
||||||
|
margin: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status {
|
||||||
|
font-weight: 200;
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 1;
|
||||||
|
position: relative;
|
||||||
|
top: -0.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
border-left: 1px solid var(--divider);
|
||||||
|
padding: 0 0 0 1rem;
|
||||||
|
margin: 0 0 0 1rem;
|
||||||
|
min-height: 2.5rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message h1 {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1em;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
--bg: #222;
|
||||||
|
--fg: #ddd;
|
||||||
|
--divider: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="error">
|
||||||
|
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
||||||
|
},
|
||||||
|
version_hash: "tics2f"
|
||||||
|
};
|
||||||
|
async function get_hooks() {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
assets as a,
|
||||||
|
base as b,
|
||||||
|
options as c,
|
||||||
|
set_private_env as d,
|
||||||
|
prerendering as e,
|
||||||
|
set_public_env as f,
|
||||||
|
get_hooks as g,
|
||||||
|
set_safe_public_env as h,
|
||||||
|
set_assets as i,
|
||||||
|
set_building as j,
|
||||||
|
set_manifest as k,
|
||||||
|
set_prerendering as l,
|
||||||
|
set_read_implementation as m,
|
||||||
|
override as o,
|
||||||
|
public_env as p,
|
||||||
|
reset as r,
|
||||||
|
safe_public_env as s
|
||||||
|
};
|
163
frontend/.svelte-kit/output/server/chunks/ssr.js
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
function noop() {
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return /* @__PURE__ */ Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === "function";
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
for (const callback of callbacks) {
|
||||||
|
callback(void 0);
|
||||||
|
}
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function get_store_value(store) {
|
||||||
|
let value;
|
||||||
|
subscribe(store, (_) => value = _)();
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
function compute_rest_props(props, keys) {
|
||||||
|
const rest = {};
|
||||||
|
keys = new Set(keys);
|
||||||
|
for (const k in props)
|
||||||
|
if (!keys.has(k) && k[0] !== "$")
|
||||||
|
rest[k] = props[k];
|
||||||
|
return rest;
|
||||||
|
}
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error("Function called outside component initialization");
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
function onDestroy(fn) {
|
||||||
|
get_current_component().$$.on_destroy.push(fn);
|
||||||
|
}
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
function ensure_array_like(array_like_or_iterator) {
|
||||||
|
return array_like_or_iterator?.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
|
||||||
|
}
|
||||||
|
const ATTR_REGEX = /[&"]/g;
|
||||||
|
const CONTENT_REGEX = /[&<]/g;
|
||||||
|
function escape(value, is_attr = false) {
|
||||||
|
const str = String(value);
|
||||||
|
const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
|
||||||
|
pattern.lastIndex = 0;
|
||||||
|
let escaped = "";
|
||||||
|
let last = 0;
|
||||||
|
while (pattern.test(str)) {
|
||||||
|
const i = pattern.lastIndex - 1;
|
||||||
|
const ch = str[i];
|
||||||
|
escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<");
|
||||||
|
last = i + 1;
|
||||||
|
}
|
||||||
|
return escaped + str.substring(last);
|
||||||
|
}
|
||||||
|
function each(items, fn) {
|
||||||
|
items = ensure_array_like(items);
|
||||||
|
let str = "";
|
||||||
|
for (let i = 0; i < items.length; i += 1) {
|
||||||
|
str += fn(items[i], i);
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
const missing_component = {
|
||||||
|
$$render: () => ""
|
||||||
|
};
|
||||||
|
function validate_component(component, name) {
|
||||||
|
if (!component || !component.$$render) {
|
||||||
|
if (name === "svelte:component")
|
||||||
|
name += " this={...}";
|
||||||
|
throw new Error(
|
||||||
|
`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return component;
|
||||||
|
}
|
||||||
|
let on_destroy;
|
||||||
|
function create_ssr_component(fn) {
|
||||||
|
function $$render(result, props, bindings, slots, context) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
const $$ = {
|
||||||
|
on_destroy,
|
||||||
|
context: new Map(context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// these will be immediately discarded
|
||||||
|
on_mount: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
callbacks: blank_object()
|
||||||
|
};
|
||||||
|
set_current_component({ $$ });
|
||||||
|
const html = fn(result, props, bindings, slots);
|
||||||
|
set_current_component(parent_component);
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => {
|
||||||
|
on_destroy = [];
|
||||||
|
const result = { title: "", head: "", css: /* @__PURE__ */ new Set() };
|
||||||
|
const html = $$render(result, props, {}, $$slots, context);
|
||||||
|
run_all(on_destroy);
|
||||||
|
return {
|
||||||
|
html,
|
||||||
|
css: {
|
||||||
|
code: Array.from(result.css).map((css) => css.code).join("\n"),
|
||||||
|
map: null
|
||||||
|
// TODO
|
||||||
|
},
|
||||||
|
head: result.title + result.head
|
||||||
|
};
|
||||||
|
},
|
||||||
|
$$render
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function add_attribute(name, value, boolean) {
|
||||||
|
if (value == null || boolean && !value)
|
||||||
|
return "";
|
||||||
|
const assignment = boolean && value === true ? "" : `="${escape(value, true)}"`;
|
||||||
|
return ` ${name}${assignment}`;
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
subscribe as a,
|
||||||
|
set_current_component as b,
|
||||||
|
create_ssr_component as c,
|
||||||
|
current_component as d,
|
||||||
|
escape as e,
|
||||||
|
get_store_value as f,
|
||||||
|
getContext as g,
|
||||||
|
add_attribute as h,
|
||||||
|
get_current_component as i,
|
||||||
|
compute_rest_props as j,
|
||||||
|
each as k,
|
||||||
|
safe_not_equal as l,
|
||||||
|
missing_component as m,
|
||||||
|
noop as n,
|
||||||
|
onDestroy as o,
|
||||||
|
is_function as p,
|
||||||
|
run_all as r,
|
||||||
|
setContext as s,
|
||||||
|
validate_component as v
|
||||||
|
};
|
@ -0,0 +1,42 @@
|
|||||||
|
import { g as getContext, c as create_ssr_component, a as subscribe, e as escape } from "../../chunks/ssr.js";
|
||||||
|
import "../../chunks/exports.js";
|
||||||
|
function get(key, parse = JSON.parse) {
|
||||||
|
try {
|
||||||
|
return parse(sessionStorage[key]);
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const SNAPSHOT_KEY = "sveltekit:snapshot";
|
||||||
|
const SCROLL_KEY = "sveltekit:scroll";
|
||||||
|
get(SCROLL_KEY) ?? {};
|
||||||
|
get(SNAPSHOT_KEY) ?? {};
|
||||||
|
const getStores = () => {
|
||||||
|
const stores = getContext("__svelte__");
|
||||||
|
return {
|
||||||
|
/** @type {typeof page} */
|
||||||
|
page: {
|
||||||
|
subscribe: stores.page.subscribe
|
||||||
|
},
|
||||||
|
/** @type {typeof navigating} */
|
||||||
|
navigating: {
|
||||||
|
subscribe: stores.navigating.subscribe
|
||||||
|
},
|
||||||
|
/** @type {typeof updated} */
|
||||||
|
updated: stores.updated
|
||||||
|
};
|
||||||
|
};
|
||||||
|
const page = {
|
||||||
|
subscribe(fn) {
|
||||||
|
const store = getStores().page;
|
||||||
|
return store.subscribe(fn);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const Error$1 = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
||||||
|
let $page, $$unsubscribe_page;
|
||||||
|
$$unsubscribe_page = subscribe(page, (value) => $page = value);
|
||||||
|
$$unsubscribe_page();
|
||||||
|
return `<h1>${escape($page.status)}</h1> <p>${escape($page.error?.message)}</p>`;
|
||||||
|
});
|
||||||
|
export {
|
||||||
|
Error$1 as default
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
import { c as create_ssr_component } from "../../chunks/ssr.js";
|
||||||
|
const Layout = create_ssr_component(($$result, $$props, $$bindings, slots) => {
|
||||||
|
return `${slots.default ? slots.default({}) : ``}`;
|
||||||
|
});
|
||||||
|
export {
|
||||||
|
Layout as default
|
||||||
|
};
|
@ -0,0 +1,6 @@
|
|||||||
|
const prerender = true;
|
||||||
|
const ssr = false;
|
||||||
|
export {
|
||||||
|
prerender,
|
||||||
|
ssr
|
||||||
|
};
|
35280
frontend/.svelte-kit/output/server/entries/pages/_page.svelte.js
Normal file
3705
frontend/.svelte-kit/output/server/index.js
Normal file
13
frontend/.svelte-kit/output/server/internal.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { g, c, i, j, k, l, d, f, m, h } from "./chunks/internal.js";
|
||||||
|
export {
|
||||||
|
g as get_hooks,
|
||||||
|
c as options,
|
||||||
|
i as set_assets,
|
||||||
|
j as set_building,
|
||||||
|
k as set_manifest,
|
||||||
|
l as set_prerendering,
|
||||||
|
d as set_private_env,
|
||||||
|
f as set_public_env,
|
||||||
|
m as set_read_implementation,
|
||||||
|
h as set_safe_public_env
|
||||||
|
};
|
35
frontend/.svelte-kit/output/server/manifest-full.js
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export const manifest = (() => {
|
||||||
|
function __memo(fn) {
|
||||||
|
let value;
|
||||||
|
return () => value ??= (value = fn());
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
appDir: "_app",
|
||||||
|
appPath: "_app",
|
||||||
|
assets: new Set(["svelte.svg","tauri.svg","vite.svg"]),
|
||||||
|
mimeTypes: {".svg":"image/svg+xml"},
|
||||||
|
_: {
|
||||||
|
client: {"start":"_app/immutable/entry/start.92os7lz4.js","app":"_app/immutable/entry/app.1QiIHMmL.js","imports":["_app/immutable/entry/start.92os7lz4.js","_app/immutable/chunks/entry.DSCOgCkx.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.CtlmB4aM.js","_app/immutable/entry/app.1QiIHMmL.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.D-4GBzMI.js"],"stylesheets":[],"fonts":[],"uses_env_dynamic_public":false},
|
||||||
|
nodes: [
|
||||||
|
__memo(() => import('./nodes/0.js')),
|
||||||
|
__memo(() => import('./nodes/1.js')),
|
||||||
|
__memo(() => import('./nodes/2.js'))
|
||||||
|
],
|
||||||
|
routes: [
|
||||||
|
{
|
||||||
|
id: "/",
|
||||||
|
pattern: /^\/$/,
|
||||||
|
params: [],
|
||||||
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
||||||
|
endpoint: null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
matchers: async () => {
|
||||||
|
|
||||||
|
return { };
|
||||||
|
},
|
||||||
|
server_assets: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
28
frontend/.svelte-kit/output/server/manifest.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
export const manifest = (() => {
|
||||||
|
function __memo(fn) {
|
||||||
|
let value;
|
||||||
|
return () => value ??= (value = fn());
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
appDir: "_app",
|
||||||
|
appPath: "_app",
|
||||||
|
assets: new Set(["svelte.svg","tauri.svg","vite.svg"]),
|
||||||
|
mimeTypes: {".svg":"image/svg+xml"},
|
||||||
|
_: {
|
||||||
|
client: {"start":"_app/immutable/entry/start.92os7lz4.js","app":"_app/immutable/entry/app.1QiIHMmL.js","imports":["_app/immutable/entry/start.92os7lz4.js","_app/immutable/chunks/entry.DSCOgCkx.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.CtlmB4aM.js","_app/immutable/entry/app.1QiIHMmL.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.D-4GBzMI.js"],"stylesheets":[],"fonts":[],"uses_env_dynamic_public":false},
|
||||||
|
nodes: [
|
||||||
|
__memo(() => import('./nodes/0.js')),
|
||||||
|
__memo(() => import('./nodes/1.js'))
|
||||||
|
],
|
||||||
|
routes: [
|
||||||
|
|
||||||
|
],
|
||||||
|
matchers: async () => {
|
||||||
|
|
||||||
|
return { };
|
||||||
|
},
|
||||||
|
server_assets: {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
10
frontend/.svelte-kit/output/server/nodes/0.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import * as universal from '../entries/pages/_layout.ts.js';
|
||||||
|
|
||||||
|
export const index = 0;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/fallbacks/layout.svelte.js')).default;
|
||||||
|
export { universal };
|
||||||
|
export const universal_id = "src/routes/+layout.ts";
|
||||||
|
export const imports = ["_app/immutable/nodes/0.COd8Lg7a.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.D-4GBzMI.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
8
frontend/.svelte-kit/output/server/nodes/1.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
export const index = 1;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
||||||
|
export const imports = ["_app/immutable/nodes/1.CSd4wjwx.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.D-4GBzMI.js","_app/immutable/chunks/entry.DSCOgCkx.js","_app/immutable/chunks/index.CtlmB4aM.js"];
|
||||||
|
export const stylesheets = [];
|
||||||
|
export const fonts = [];
|
8
frontend/.svelte-kit/output/server/nodes/2.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
export const index = 2;
|
||||||
|
let component_cache;
|
||||||
|
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
||||||
|
export const imports = ["_app/immutable/nodes/2.Yb2uPOo9.js","_app/immutable/chunks/scheduler.DQZw9iDR.js","_app/immutable/chunks/index.D-4GBzMI.js","_app/immutable/chunks/index.CtlmB4aM.js"];
|
||||||
|
export const stylesheets = ["_app/immutable/assets/2.CkmNU14M.css"];
|
||||||
|
export const fonts = [];
|
44
frontend/.svelte-kit/tsconfig.json
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"paths": {
|
||||||
|
"$lib": [
|
||||||
|
"../src/lib"
|
||||||
|
],
|
||||||
|
"$lib/*": [
|
||||||
|
"../src/lib/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rootDirs": [
|
||||||
|
"..",
|
||||||
|
"./types"
|
||||||
|
],
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"module": "esnext",
|
||||||
|
"noEmit": true,
|
||||||
|
"target": "esnext"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"ambient.d.ts",
|
||||||
|
"non-ambient.d.ts",
|
||||||
|
"./types/**/$types.d.ts",
|
||||||
|
"../svelte.config.js",
|
||||||
|
"../vite.config.js",
|
||||||
|
"../vite.config.ts",
|
||||||
|
"../src/**/*.js",
|
||||||
|
"../src/**/*.ts",
|
||||||
|
"../src/**/*.svelte",
|
||||||
|
"../tests/**/*.js",
|
||||||
|
"../tests/**/*.ts",
|
||||||
|
"../tests/**/*.svelte"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"../node_modules/**"
|
||||||
|
]
|
||||||
|
}
|
6
frontend/.svelte-kit/types/route_meta_data.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"/": [
|
||||||
|
"src/routes/+layout.ts",
|
||||||
|
"src/routes/+layout.ts"
|
||||||
|
]
|
||||||
|
}
|
24
frontend/.svelte-kit/types/src/routes/$types.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import type * as Kit from '@sveltejs/kit';
|
||||||
|
|
||||||
|
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||||
|
// @ts-ignore
|
||||||
|
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
|
||||||
|
type RouteParams = { };
|
||||||
|
type RouteId = '/';
|
||||||
|
type MaybeWithVoid<T> = {} extends T ? T | void : T;
|
||||||
|
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
|
||||||
|
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
|
||||||
|
type EnsureDefined<T> = T extends null | undefined ? {} : T;
|
||||||
|
type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
|
||||||
|
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
||||||
|
type PageParentData = EnsureDefined<LayoutData>;
|
||||||
|
type LayoutRouteId = RouteId | "/" | null
|
||||||
|
type LayoutParams = RouteParams & { }
|
||||||
|
type LayoutParentData = EnsureDefined<{}>;
|
||||||
|
|
||||||
|
export type PageServerData = null;
|
||||||
|
export type PageData = Expand<PageParentData>;
|
||||||
|
export type LayoutServerData = null;
|
||||||
|
export type LayoutLoad<OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>> = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData, LayoutRouteId>;
|
||||||
|
export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
|
||||||
|
export type LayoutData = Expand<Omit<LayoutParentData, keyof LayoutParentData & EnsureDefined<LayoutServerData>> & OptionalUnion<EnsureDefined<LayoutParentData & EnsureDefined<LayoutServerData>>>>;
|
7
frontend/.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"svelte.svelte-vscode",
|
||||||
|
"tauri-apps.tauri-vscode",
|
||||||
|
"rust-lang.rust-analyzer"
|
||||||
|
]
|
||||||
|
}
|
7
frontend/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Tauri + Svelte + Typescript
|
||||||
|
|
||||||
|
This template should help get you started developing with Tauri, Svelte and TypeScript in Vite.
|
||||||
|
|
||||||
|
## Recommended IDE Setup
|
||||||
|
|
||||||
|
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer).
|
36
frontend/package.json
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"name": "frontend",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||||
|
"tauri": "tauri"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@sveltejs/kit": "^2.5.0",
|
||||||
|
"@tauri-apps/api": "2.0.0-beta.2",
|
||||||
|
"@tauri-apps/plugin-shell": "^2.0.0-beta.0",
|
||||||
|
"@threlte/core": "^7.1.0",
|
||||||
|
"@threlte/extras": "^8.7.5",
|
||||||
|
"@threlte/flex": "^1.0.1",
|
||||||
|
"@types/three": "^0.159.0",
|
||||||
|
"three": "^0.159.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@sveltejs/adapter-static": "^3.0.1",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||||
|
"@tauri-apps/cli": "2.0.0-beta.3",
|
||||||
|
"@tsconfig/svelte": "^5.0.2",
|
||||||
|
"internal-ip": "^7.0.0",
|
||||||
|
"svelte": "^4.2.8",
|
||||||
|
"svelte-check": "^3.4.6",
|
||||||
|
"tslib": "^2.6.0",
|
||||||
|
"typescript": "^5.0.2",
|
||||||
|
"vite": "^5.0.0",
|
||||||
|
"vite-plugin-glsl": "^1.2.1"
|
||||||
|
}
|
||||||
|
}
|
1576
frontend/pnpm-lock.yaml
Normal file
4
frontend/src-tauri/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Generated by Cargo
|
||||||
|
# will have compiled files and executables
|
||||||
|
/target/
|
||||||
|
|
5250
frontend/src-tauri/Cargo.lock
generated
Normal file
27
frontend/src-tauri/Cargo.toml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[package]
|
||||||
|
name = "tauri-app"
|
||||||
|
version = "0.0.0"
|
||||||
|
description = "A Tauri App"
|
||||||
|
authors = ["you"]
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "tauri_app_lib"
|
||||||
|
crate-type = ["lib", "cdylib"]
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
tauri-build = { version = "2.0.0-beta", features = [] }
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tauri = { version = "2.0.0-beta", features = [] }
|
||||||
|
runtime_executor_rust = { path = "../../packages/runtime_executor_rust" }
|
||||||
|
tauri-plugin-shell = "2.0.0-beta"
|
||||||
|
serde_json = "1.0"
|
||||||
|
wasmtime = "18.0.1"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
# this feature is used for production builds or when `devPath` points to the filesystem
|
||||||
|
# DO NOT REMOVE!!
|
||||||
|
custom-protocol = ["tauri/custom-protocol"]
|
3
frontend/src-tauri/build.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
tauri_build::build()
|
||||||
|
}
|
1
frontend/src-tauri/gen/schemas/capabilities.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
2206
frontend/src-tauri/gen/schemas/desktop-schema.json
Normal file
2206
frontend/src-tauri/gen/schemas/linux-schema.json
Normal file
1
frontend/src-tauri/gen/schemas/plugin-manifests.json
Normal file
BIN
frontend/src-tauri/icons/128x128.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
frontend/src-tauri/icons/128x128@2x.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
frontend/src-tauri/icons/32x32.png
Normal file
After Width: | Height: | Size: 974 B |
BIN
frontend/src-tauri/icons/Square107x107Logo.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
frontend/src-tauri/icons/Square142x142Logo.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
frontend/src-tauri/icons/Square150x150Logo.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
frontend/src-tauri/icons/Square284x284Logo.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
frontend/src-tauri/icons/Square30x30Logo.png
Normal file
After Width: | Height: | Size: 903 B |
BIN
frontend/src-tauri/icons/Square310x310Logo.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
frontend/src-tauri/icons/Square44x44Logo.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
frontend/src-tauri/icons/Square71x71Logo.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
frontend/src-tauri/icons/Square89x89Logo.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
frontend/src-tauri/icons/StoreLogo.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
frontend/src-tauri/icons/icon.icns
Normal file
BIN
frontend/src-tauri/icons/icon.ico
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
frontend/src-tauri/icons/icon.png
Normal file
After Width: | Height: | Size: 14 KiB |
5
frontend/src-tauri/src/hello.wat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
(module
|
||||||
|
(func (export "answer") (result i32)
|
||||||
|
i32.const 42
|
||||||
|
)
|
||||||
|
)
|
80
frontend/src-tauri/src/lib.rs
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
use std::env;
|
||||||
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
use wasmtime::*;
|
||||||
|
|
||||||
|
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
|
||||||
|
#[tauri::command]
|
||||||
|
fn greet(name: &str) -> String {
|
||||||
|
format!("Hello, {}! You've been greeted from Rust!", name)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
fn insult(name: &str) -> String {
|
||||||
|
format!("Hello, {}! Fuck you from Rust!", name)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn get_current_working_dir() -> std::io::Result<PathBuf> {
|
||||||
|
env::current_dir()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
fn run_nodes() -> Result<i32, String> {
|
||||||
|
// An engine stores and configures global compilation settings like
|
||||||
|
// optimization level, enabled wasm features, etc.
|
||||||
|
let engine = Engine::default();
|
||||||
|
|
||||||
|
let pwd = get_current_working_dir().expect("Cant get wkring dir");
|
||||||
|
println!(
|
||||||
|
"{}",
|
||||||
|
pwd.into_os_string().into_string().expect("cant unwrap")
|
||||||
|
);
|
||||||
|
|
||||||
|
// We start off by creating a `Module` which represents a compiled form
|
||||||
|
// of our input wasm module. In this case it'll be JIT-compiled after
|
||||||
|
// we parse the text format.
|
||||||
|
let module =
|
||||||
|
Module::from_file(&engine, "src/hello.wat").expect("Could not instatiate hello.wat");
|
||||||
|
|
||||||
|
// A `Store` is what will own instances, functions, globals, etc. All wasm
|
||||||
|
// items are stored within a `Store`, and it's what we'll always be using to
|
||||||
|
// interact with the wasm world. Custom data can be stored in stores but for
|
||||||
|
// now we just use `()`.
|
||||||
|
let mut store = Store::new(&engine, ());
|
||||||
|
|
||||||
|
// With a compiled `Module` we can then instantiate it, creating
|
||||||
|
// an `Instance` which we can actually poke at functions on.
|
||||||
|
let instance = Instance::new(&mut store, &module, &[]).expect("Could not instatiate module");
|
||||||
|
|
||||||
|
// The `Instance` gives us access to various exported functions and items,
|
||||||
|
// which we access here to pull out our `answer` exported function and
|
||||||
|
// run it.
|
||||||
|
let answer = instance
|
||||||
|
.get_func(&mut store, "answer")
|
||||||
|
.expect("`answer` was not an exported function");
|
||||||
|
|
||||||
|
// There's a few ways we can call the `answer` `Func` value. The easiest
|
||||||
|
// is to statically assert its signature with `typed` (in this case
|
||||||
|
// asserting it takes no arguments and returns one i32) and then call it.
|
||||||
|
let answer = answer
|
||||||
|
.typed::<(), i32>(&store)
|
||||||
|
.expect("Can't access answer function");
|
||||||
|
|
||||||
|
// And finally we can call our function! Note that the error propagation
|
||||||
|
// with `?` is done to handle the case where the wasm function traps.
|
||||||
|
let result = answer
|
||||||
|
.call(&mut store, ())
|
||||||
|
.expect("Could not call function");
|
||||||
|
println!("Answer: {:?}", result);
|
||||||
|
|
||||||
|
Ok(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||||
|
pub fn run() {
|
||||||
|
tauri::Builder::default()
|
||||||
|
.plugin(tauri_plugin_shell::init())
|
||||||
|
.invoke_handler(tauri::generate_handler![greet, run_nodes, insult])
|
||||||
|
.run(tauri::generate_context!())
|
||||||
|
.expect("error while running tauri application");
|
||||||
|
}
|
6
frontend/src-tauri/src/main.rs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||||
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
tauri_app_lib::run()
|
||||||
|
}
|
34
frontend/src-tauri/tauri.conf.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"productName": "tauri-app",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"identifier": "nodes.max.richter.dev",
|
||||||
|
"build": {
|
||||||
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
"devUrl": "http://localhost:5173",
|
||||||
|
"beforeBuildCommand": "pnpm build",
|
||||||
|
"frontendDist": "../build"
|
||||||
|
},
|
||||||
|
"app": {
|
||||||
|
"windows": [
|
||||||
|
{
|
||||||
|
"title": "tauri-app",
|
||||||
|
"width": 800,
|
||||||
|
"height": 600
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"security": {
|
||||||
|
"csp": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bundle": {
|
||||||
|
"active": true,
|
||||||
|
"targets": "all",
|
||||||
|
"icon": [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/128x128.png",
|
||||||
|
"icons/128x128@2x.png",
|
||||||
|
"icons/icon.icns",
|
||||||
|
"icons/icon.ico"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
13
frontend/src/app.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// 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 {};
|
12
frontend/src/app.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="%sveltekit.assets%/svelte.svg" />
|
||||||
|
<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>
|
36
frontend/src/lib/components/App.svelte
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { Canvas } from "@threlte/core";
|
||||||
|
import Scene from "./Scene.svelte";
|
||||||
|
import type { Graph } from "$lib/types";
|
||||||
|
|
||||||
|
const graph: Graph = {
|
||||||
|
edges: [],
|
||||||
|
nodes: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
for (let i = 0; i < 40; i++) {
|
||||||
|
const x = i % 20;
|
||||||
|
const y = Math.floor(i / 20);
|
||||||
|
|
||||||
|
graph.nodes.push({
|
||||||
|
id: `${i.toString()}`,
|
||||||
|
tmp: {
|
||||||
|
visible: false,
|
||||||
|
},
|
||||||
|
position: {
|
||||||
|
x: x * 7.5,
|
||||||
|
y: y * 5,
|
||||||
|
},
|
||||||
|
type: "test",
|
||||||
|
});
|
||||||
|
|
||||||
|
graph.edges.push({
|
||||||
|
from: i.toString(),
|
||||||
|
to: (i + 1).toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Canvas shadows={false}>
|
||||||
|
<Scene {graph} />
|
||||||
|
</Canvas>
|
61
frontend/src/lib/components/Background.frag
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
precision highp float;
|
||||||
|
|
||||||
|
varying vec2 vUv;
|
||||||
|
|
||||||
|
const float PI = 3.14159265359;
|
||||||
|
|
||||||
|
uniform float width;
|
||||||
|
uniform float height;
|
||||||
|
uniform float cx;
|
||||||
|
uniform float cy;
|
||||||
|
uniform float cz;
|
||||||
|
uniform float minZ;
|
||||||
|
uniform float maxZ;
|
||||||
|
|
||||||
|
float grid(float x, float y, float divisions, float thickness) {
|
||||||
|
x = fract(x * divisions);
|
||||||
|
x = min(x, 1.0 - x);
|
||||||
|
|
||||||
|
float xdelta = fwidth(x);
|
||||||
|
x = smoothstep(x - xdelta, x + xdelta, thickness);
|
||||||
|
|
||||||
|
y = fract(y * divisions);
|
||||||
|
y = min(y, 1.0 - y);
|
||||||
|
|
||||||
|
float ydelta = fwidth(y);
|
||||||
|
y = smoothstep(y - ydelta, y + ydelta, thickness);
|
||||||
|
|
||||||
|
return clamp(x + y, 0.0, 1.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
float circle_grid(float x, float y, float divisions, float circleRadius) {
|
||||||
|
|
||||||
|
float gridX = mod(x + divisions/2.0, divisions) - divisions / 2.0;
|
||||||
|
float gridY = mod(y + divisions/2.0, divisions) - divisions / 2.0;
|
||||||
|
|
||||||
|
// Calculate the distance from the center of the grid
|
||||||
|
float gridDistance = length(vec2(gridX, gridY));
|
||||||
|
|
||||||
|
// Use smoothstep to create a smooth transition at the edges of the circle
|
||||||
|
float circle = 1.0 - smoothstep(circleRadius - 0.5, circleRadius + 0.5, gridDistance);
|
||||||
|
|
||||||
|
return circle;
|
||||||
|
}
|
||||||
|
|
||||||
|
void main(void) {
|
||||||
|
float divisions = 0.1/cz;
|
||||||
|
float thickness = 0.05/cz;
|
||||||
|
float delta = 0.1 / 2.0;
|
||||||
|
|
||||||
|
float ux = (vUv.x-0.5) * width + cx*cz;
|
||||||
|
float uy = (vUv.y-0.5) * height - cy*cz;
|
||||||
|
|
||||||
|
float c1 = grid(ux, uy, divisions, thickness) * 0.1;
|
||||||
|
float c2 = grid(ux, uy, divisions*2.0, thickness) * 0.1;
|
||||||
|
float c = max(c1, c2);
|
||||||
|
|
||||||
|
float s1 = circle_grid(ux, uy, cz*10.0, 2.0) * 0.2;
|
||||||
|
c = max(c, s1);
|
||||||
|
|
||||||
|
gl_FragColor = vec4(c, c, c, 1.0);
|
||||||
|
}
|
15
frontend/src/lib/components/Background.vert
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
varying vec2 vUv;
|
||||||
|
varying vec3 vPosition;
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
|
||||||
|
vUv = uv;
|
||||||
|
|
||||||
|
vec4 modelPosition = modelMatrix * vec4(position, 1.0);
|
||||||
|
|
||||||
|
vec4 viewPosition = viewMatrix * modelPosition;
|
||||||
|
vec4 projectedPosition = projectionMatrix * viewPosition;
|
||||||
|
|
||||||
|
gl_Position = projectedPosition;
|
||||||
|
}
|
||||||
|
|
52
frontend/src/lib/components/Edge.svelte
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import type { Node } from "$lib/types";
|
||||||
|
import { T } from "@threlte/core";
|
||||||
|
import { MeshLineGeometry, MeshLineMaterial } from "@threlte/extras";
|
||||||
|
import { CubicBezierCurve, Vector2, Vector3 } from "three";
|
||||||
|
|
||||||
|
export let from: Node;
|
||||||
|
export let to: Node;
|
||||||
|
|
||||||
|
let samples = 20;
|
||||||
|
|
||||||
|
console.log("edge");
|
||||||
|
|
||||||
|
const curve = new CubicBezierCurve(
|
||||||
|
new Vector2(from.position.x + 20, from.position.y),
|
||||||
|
new Vector2(from.position.x + 2, from.position.y),
|
||||||
|
new Vector2(to.position.x - 2, to.position.y),
|
||||||
|
new Vector2(to.position.x, to.position.y),
|
||||||
|
);
|
||||||
|
|
||||||
|
let points: Vector3[] = [];
|
||||||
|
|
||||||
|
let last_from_x = 0;
|
||||||
|
let last_from_y = 0;
|
||||||
|
|
||||||
|
function update(force = false) {
|
||||||
|
if (!force) {
|
||||||
|
const new_x = from.position.x + to.position.x;
|
||||||
|
const new_y = from.position.y + to.position.y;
|
||||||
|
if (last_from_x === new_x && last_from_y === new_y) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
last_from_x = new_x;
|
||||||
|
last_from_y = new_y;
|
||||||
|
}
|
||||||
|
curve.v0.set(from.position.x + 5, from.position.y + 1.25);
|
||||||
|
curve.v1.set(from.position.x + 6, from.position.y + 1.25);
|
||||||
|
curve.v2.set(to.position.x - 1, to.position.y + 1.25);
|
||||||
|
curve.v3.set(to.position.x, to.position.y + 1.25);
|
||||||
|
points = curve.getPoints(samples).map((p) => new Vector3(p.x, 0, p.y));
|
||||||
|
}
|
||||||
|
|
||||||
|
update();
|
||||||
|
$: if (from.position || to.position) {
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<T.Mesh>
|
||||||
|
<MeshLineGeometry {points} />
|
||||||
|
<MeshLineMaterial width={1} attenuate={false} color={0xffffff} />
|
||||||
|
</T.Mesh>
|
255
frontend/src/lib/components/Scene.svelte
Normal file
@ -0,0 +1,255 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import type { Graph, Node } from "$lib/types";
|
||||||
|
import Edge from "./Edge.svelte";
|
||||||
|
import { T, useTask } from "@threlte/core";
|
||||||
|
import { settings } from "$lib/stores/settings";
|
||||||
|
import type { OrthographicCamera } from "three";
|
||||||
|
import { HTML, OrbitControls } from "@threlte/extras";
|
||||||
|
import { onMount } from "svelte";
|
||||||
|
import BackgroundVert from "./Background.vert";
|
||||||
|
import BackgroundFrag from "./Background.frag";
|
||||||
|
import { max } from "three/examples/jsm/nodes/Nodes.js";
|
||||||
|
|
||||||
|
export let camera: OrthographicCamera;
|
||||||
|
|
||||||
|
export let graph: Graph;
|
||||||
|
|
||||||
|
let cx = 0;
|
||||||
|
let cy = 0;
|
||||||
|
let cz = 30;
|
||||||
|
let bw = 2;
|
||||||
|
let bh = 2;
|
||||||
|
|
||||||
|
const minZoom = 4;
|
||||||
|
const maxZoom = 150;
|
||||||
|
|
||||||
|
let width = globalThis?.innerWidth || 100;
|
||||||
|
let height = globalThis?.innerHeight || 100;
|
||||||
|
|
||||||
|
let mouseX = 0;
|
||||||
|
let mouseY = 0;
|
||||||
|
|
||||||
|
let mouseDown = false;
|
||||||
|
let mouseDownX = 0;
|
||||||
|
let mouseDownY = 0;
|
||||||
|
|
||||||
|
let activeNodeId: string;
|
||||||
|
|
||||||
|
function handleKeyDown(event: KeyboardEvent) {
|
||||||
|
if (event.key === "a") {
|
||||||
|
$settings.useHtml = !$settings.useHtml;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function snapToGrid(value: number) {
|
||||||
|
return Math.round(value / 2.5) * 2.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleMouseMove(event: MouseEvent) {
|
||||||
|
cx = camera.position.x || 0;
|
||||||
|
cy = camera.position.z || 0;
|
||||||
|
cz = camera.zoom || 30;
|
||||||
|
mouseX = cx + (event.clientX - width / 2) / cz;
|
||||||
|
mouseY = cy + (event.clientY - height / 2) / cz;
|
||||||
|
|
||||||
|
if (activeNodeId && mouseDown) {
|
||||||
|
graph.nodes = graph.nodes.map((node) => {
|
||||||
|
if (node.id === activeNodeId) {
|
||||||
|
node.position.x =
|
||||||
|
(node?.tmp?.downX || 0) + (event.clientX - mouseDownX) / cz;
|
||||||
|
node.position.y =
|
||||||
|
(node?.tmp?.downY || 0) + (event.clientY - mouseDownY) / cz;
|
||||||
|
|
||||||
|
if (event.ctrlKey) {
|
||||||
|
node.position.x = snapToGrid(node.position.x);
|
||||||
|
node.position.y = snapToGrid(node.position.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
edges = [...edges];
|
||||||
|
}
|
||||||
|
return node;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let edges: [Node, Node][] = [];
|
||||||
|
function calculateEdges() {
|
||||||
|
edges = graph.edges
|
||||||
|
.map((edge) => {
|
||||||
|
const from = graph.nodes.find((node) => node.id === edge.from);
|
||||||
|
const to = graph.nodes.find((node) => node.id === edge.to);
|
||||||
|
if (!from || !to) return;
|
||||||
|
return [from, to] as const;
|
||||||
|
})
|
||||||
|
.filter(Boolean) as unknown as [Node, Node][];
|
||||||
|
}
|
||||||
|
|
||||||
|
calculateEdges();
|
||||||
|
|
||||||
|
function handleMouseDown(ev: MouseEvent) {
|
||||||
|
activeNodeId = ev?.target?.dataset?.nodeId;
|
||||||
|
mouseDown = true;
|
||||||
|
mouseDownX = ev.clientX;
|
||||||
|
mouseDownY = ev.clientY;
|
||||||
|
const node = graph.nodes.find((node) => node.id === activeNodeId);
|
||||||
|
if (!node) return;
|
||||||
|
node.tmp = node.tmp || {};
|
||||||
|
node.tmp.downX = node.position.x;
|
||||||
|
node.tmp.downY = node.position.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleMouseUp() {
|
||||||
|
mouseDown = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateCameraProps() {
|
||||||
|
cx = camera.position.x || 0;
|
||||||
|
cy = camera.position.z || 0;
|
||||||
|
cz = camera.zoom || 30;
|
||||||
|
width = window.innerWidth;
|
||||||
|
height = window.innerHeight;
|
||||||
|
bw = width / cz;
|
||||||
|
bh = height / cz;
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
updateCameraProps();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:window
|
||||||
|
on:keydown={handleKeyDown}
|
||||||
|
on:mousemove={handleMouseMove}
|
||||||
|
on:mouseup={handleMouseUp}
|
||||||
|
on:wheel={updateCameraProps}
|
||||||
|
on:resize={updateCameraProps}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{#if true}
|
||||||
|
<T.Group position.x={mouseX} position.z={mouseY}>
|
||||||
|
<T.Mesh rotation.x={-Math.PI / 2} position.y={0.2}>
|
||||||
|
<T.CircleGeometry args={[0.5, 16]} />
|
||||||
|
<T.MeshBasicMaterial color="green" />
|
||||||
|
</T.Mesh>
|
||||||
|
</T.Group>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<T.Group position.x={cx} position.z={cy} position.y={-1.0}>
|
||||||
|
<T.Mesh rotation.x={-Math.PI / 2} position.y={0.2} scale.x={bw} scale.y={bh}>
|
||||||
|
<T.PlaneGeometry args={[1, 1]} />
|
||||||
|
<T.ShaderMaterial
|
||||||
|
transparent
|
||||||
|
vertexShader={BackgroundVert}
|
||||||
|
fragmentShader={BackgroundFrag}
|
||||||
|
uniforms={{
|
||||||
|
cx: {
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
cy: {
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
cz: {
|
||||||
|
value: 30,
|
||||||
|
},
|
||||||
|
minz: {
|
||||||
|
value: minZoom,
|
||||||
|
},
|
||||||
|
maxz: {
|
||||||
|
value: maxZoom,
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
value: 100,
|
||||||
|
},
|
||||||
|
width: {
|
||||||
|
value: 100,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
uniforms.cx.value={cx}
|
||||||
|
uniforms.cy.value={cy}
|
||||||
|
uniforms.cz.value={cz}
|
||||||
|
uniforms.width.value={width}
|
||||||
|
uniforms.height.value={height}
|
||||||
|
/>
|
||||||
|
</T.Mesh>
|
||||||
|
</T.Group>
|
||||||
|
|
||||||
|
<T.OrthographicCamera
|
||||||
|
bind:ref={camera}
|
||||||
|
makeDefault
|
||||||
|
position={[0, 1, 0]}
|
||||||
|
zoom={30}
|
||||||
|
>
|
||||||
|
<OrbitControls
|
||||||
|
enableZoom={true}
|
||||||
|
target.y={0}
|
||||||
|
rotateSpeed={0}
|
||||||
|
minPolarAngle={0}
|
||||||
|
maxPolarAngle={0}
|
||||||
|
enablePan={true}
|
||||||
|
zoomToCursor
|
||||||
|
{maxZoom}
|
||||||
|
{minZoom}
|
||||||
|
/>
|
||||||
|
</T.OrthographicCamera>
|
||||||
|
|
||||||
|
{#each edges as edge}
|
||||||
|
<Edge from={edge[0]} to={edge[1]} />
|
||||||
|
{/each}
|
||||||
|
|
||||||
|
<HTML transform={false}>
|
||||||
|
<div class="wrapper" style={`--cz: ${cz}`} on:mousedown={handleMouseDown}>
|
||||||
|
{#each graph.nodes as node}
|
||||||
|
<div
|
||||||
|
class="node"
|
||||||
|
data-node-id={node.id}
|
||||||
|
style={`--nx:${node.position.x * 10}px;
|
||||||
|
--ny: ${node.position.y * 10}px`}
|
||||||
|
>
|
||||||
|
{node.id}
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</HTML>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:global(body) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 100;
|
||||||
|
width: 0px;
|
||||||
|
height: 0px;
|
||||||
|
transform: scale(calc(var(--cz) * 0.1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.node {
|
||||||
|
position: absolute;
|
||||||
|
border-radius: 1px;
|
||||||
|
user-select: none !important;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 50px;
|
||||||
|
height: 25px;
|
||||||
|
background: linear-gradient(-11.1grad, #000 0%, #0b0b0b 100%);
|
||||||
|
color: white;
|
||||||
|
transform: translate(var(--nx), var(--ny));
|
||||||
|
z-index: 1;
|
||||||
|
box-shadow: 0px 0px 0px calc(15px / var(--cz)) rgba(255, 255, 255, 0.3);
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node::after {
|
||||||
|
/* content: ""; */
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: white;
|
||||||
|
border-radius: 2px;
|
||||||
|
transform: scale(1.01);
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
</style>
|
11
frontend/src/lib/components/nodes/Output.svelte
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<script context="module" lang="ts">
|
||||||
|
export type Props = {
|
||||||
|
value: number;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export let props = { value: 0 };
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>output</p>
|
11
frontend/src/lib/components/nodes/Test.svelte
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<script context="module" lang="ts">
|
||||||
|
export type Props = {
|
||||||
|
value: number;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export let props = { value: 0 };
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input type="number" bind:value={props.value} />
|
6
frontend/src/lib/components/nodes/index.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import Test from './Test.svelte';
|
||||||
|
import Output from './Output.svelte';
|
||||||
|
export const nodes = {
|
||||||
|
test: Test,
|
||||||
|
output: Output,
|
||||||
|
} as const;
|
1
frontend/src/lib/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
// place files you want to import through the `$lib` alias in this folder.
|
5
frontend/src/lib/stores/settings.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { writable } from "svelte/store";
|
||||||
|
|
||||||
|
export const settings = writable({
|
||||||
|
useHtml: false
|
||||||
|
});
|
34
frontend/src/lib/types.ts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import { nodes } from "$lib/components/nodes"
|
||||||
|
|
||||||
|
export type Node = {
|
||||||
|
id: string;
|
||||||
|
type: keyof typeof nodes;
|
||||||
|
props?: Record<string, any>,
|
||||||
|
tmp?: {
|
||||||
|
downX?: number;
|
||||||
|
downY?: number;
|
||||||
|
visible?: boolean;
|
||||||
|
},
|
||||||
|
meta?: {
|
||||||
|
title?: string;
|
||||||
|
lastModified?: string;
|
||||||
|
},
|
||||||
|
position: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Edge = {
|
||||||
|
from: string;
|
||||||
|
to: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Graph = {
|
||||||
|
meta?: {
|
||||||
|
title?: string;
|
||||||
|
lastModified?: string;
|
||||||
|
},
|
||||||
|
nodes: Node[];
|
||||||
|
edges: Edge[];
|
||||||
|
}
|
5
frontend/src/routes/+layout.svelte
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import "./app.css";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<slot />
|