Functional Implementation

This commit is contained in:
Luke Hagar
2023-11-17 15:48:48 -06:00
parent 3492da0b46
commit 5d62c4ef66
55 changed files with 6551 additions and 4370 deletions

View File

@@ -1,9 +0,0 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

View File

@@ -1,4 +0,0 @@
node_modules
dist
out
.gitignore

View File

@@ -1,7 +0,0 @@
module.exports = {
extends: [
'eslint:recommended',
'@electron-toolkit/eslint-config-ts/recommended',
'@electron-toolkit/eslint-config-prettier'
]
}

View File

@@ -1,4 +1,92 @@
node_modules
dist
out
*.log*
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
.DS_Store
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# Webpack
.webpack/
# Vite
.vite/
# Electron-Forge
out/

View File

@@ -1 +0,0 @@
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/

View File

@@ -1,6 +0,0 @@
out
dist
pnpm-lock.yaml
LICENSE.md
tsconfig.json
tsconfig.*.json

View File

@@ -1,4 +0,0 @@
singleQuote: true
semi: false
printWidth: 100
trailingComma: none

View File

@@ -1,3 +0,0 @@
{
"recommendations": ["dbaeumer.vscode-eslint"]
}

View File

@@ -1,39 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": ["--sourcemap"],
"env": {
"REMOTE_DEBUGGING_PORT": "9222"
}
},
{
"name": "Debug Renderer Process",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}/src/renderer",
"timeout": 60000,
"presentation": {
"hidden": true
}
}
],
"compounds": [
{
"name": "Debug All",
"configurations": ["Debug Main Process", "Debug Renderer Process"],
"presentation": {
"order": 1
}
}
]
}

View File

@@ -1,11 +0,0 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

View File

@@ -1,34 +0,0 @@
# electron-app
A minimal Electron application with TypeScript
## Recommended IDE Setup
- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
## Project Setup
### Install
```bash
$ npm install
```
### Development
```bash
$ npm run dev
```
### Build
```bash
# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux
```

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -1,3 +0,0 @@
provider: generic
url: https://example.com/auto-updates
updaterCacheDirName: electron-app-updater

View File

@@ -1,43 +0,0 @@
appId: com.electron.app
productName: electron-app
directories:
buildResources: build
files:
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.js,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- resources/**
win:
executableName: electron-app
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://example.com/auto-updates

View File

@@ -1,11 +0,0 @@
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {}
})

View File

@@ -0,0 +1,31 @@
module.exports = {
packagerConfig: {
asar: true,
extraResource: ["../Svelte-Build"],
},
rebuildConfig: {},
makers: [
{
name: "@electron-forge/maker-squirrel",
config: {},
},
{
name: "@electron-forge/maker-zip",
platforms: ["darwin"],
},
{
name: "@electron-forge/maker-deb",
config: {},
},
{
name: "@electron-forge/maker-rpm",
config: {},
},
],
plugins: [
{
name: "@electron-forge/plugin-auto-unpack-natives",
config: {},
},
],
};

File diff suppressed because it is too large Load Diff

View File

@@ -1,41 +1,35 @@
{
"name": "electron-app",
"name": "my-new-app",
"productName": "my-new-app",
"version": "1.0.0",
"description": "A minimal Electron application with TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
"homepage": "https://www.electronjs.org",
"description": "My Electron application description",
"main": "src/index.js",
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "npm run typecheck:node && npm run typecheck:web",
"start": "electron-vite preview",
"dev": "electron-vite dev --watch",
"build": "npm run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps",
"build:win": "npm run build && electron-builder --win --config",
"build:mac": "npm run build && electron-builder --mac --config",
"build:linux": "npm run build && electron-builder --linux --config"
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "echo \"No linting configured\""
},
"keywords": [],
"author": {
"name": "Luke Hagar",
"email": "lukeslakemail@gmail.com"
},
"license": "MIT",
"dependencies": {
"@electron-toolkit/preload": "^2.0.0",
"@electron-toolkit/utils": "^2.0.1",
"electron-updater": "^6.1.4"
"electron-log": "^5.0.0",
"electron-squirrel-startup": "^1.0.0",
"express": "^4.18.2"
},
"devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^1.0.1",
"@electron-toolkit/eslint-config-ts": "^1.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@types/node": "^18.18.9",
"electron": "^25.9.5",
"electron-builder": "^24.6.4",
"electron-vite": "^1.0.29",
"eslint": "^8.53.0",
"express": "^4.18.2",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"vite": "^4.5.0"
"@electron-forge/cli": "^7.0.0",
"@electron-forge/maker-deb": "^7.0.0",
"@electron-forge/maker-rpm": "^7.0.0",
"@electron-forge/maker-squirrel": "^7.0.0",
"@electron-forge/maker-zip": "^7.0.0",
"@electron-forge/plugin-auto-unpack-natives": "^7.0.0",
"electron": "27.1.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

101
Electron-App/src/index.js Normal file
View File

@@ -0,0 +1,101 @@
const { app, BrowserWindow } = require("electron");
const path = require("path");
const { is } = require("@electron-toolkit/utils");
const handlerPkg = import(
is.dev
? "../../Svelte-Build/src/handler.js"
: `file://${path.join(
process.resourcesPath,
"Svelte-Build",
"src",
"handler.js"
)}`
);
const express = require("express");
const log = require("electron-log/main");
log.info(
"==================================Log Start=================================="
);
const port = 3000;
const origin = `http://localhost:${port}`;
log.info(`Starting server on ${origin}...`);
const server = express();
const createServer = async () => {
try {
log.info("Starting server...");
const { handler } = await handlerPkg;
// add a route that lives separately from the SvelteKit app
server.get("/healthcheck", (req, res) => {
log.info("Healthcheck route hit");
res.end("ok");
});
// let SvelteKit handle everything else, including serving prerendered pages and static assets
server.use(handler);
server.listen(3000, () => {
console.log(`Server listening on ${origin}`);
});
} catch (e) {
log.info(e);
}
};
createServer();
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require("electron-squirrel-startup")) {
app.quit();
}
const createWindow = () => {
log.info("Creating window...");
// Create the browser window.
try {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, "preload.js"),
},
});
log.info("Opening server in window...");
// and load the index.html of the app.
mainWindow.loadURL(origin);
// Open the DevTools.
mainWindow.webContents.openDevTools();
} catch (e) {
log.info("Error creating window");
log.info(e);
}
};
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on("ready", createWindow);
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", () => {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and import them here.

View File

@@ -1,91 +0,0 @@
import { app, shell, BrowserWindow } from 'electron'
import { join } from 'path'
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
import icon from '../../resources/icon.png?asset'
import { handler } from '../../../Svelte-Build/src/handler.js'
import express from 'express'
const port = 3000
const origin = `http://localhost:${port}`
const server = express()
const createServer = async () => {
// add a route that lives separately from the SvelteKit app
server.get('/healthcheck', (req, res) => {
res.end('ok')
})
// let SvelteKit handle everything else, including serving prerendered pages and static assets
server.use(handler)
server.listen(3000, () => {
console.log(`Server listening on ${origin}`)
})
}
createServer()
function createWindow(): void {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 900,
height: 670,
show: false,
autoHideMenuBar: true,
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false
}
})
mainWindow.on('ready-to-show', () => {
mainWindow.show()
})
mainWindow.webContents.setWindowOpenHandler((details) => {
shell.openExternal(details.url)
return { action: 'deny' }
})
// HMR for renderer base on electron-vite cli.
// Load the remote URL for development or the local html file for production.
mainWindow.loadURL(origin)
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.whenReady().then(() => {
// Set app user model id for windows
electronApp.setAppUserModelId('com.electron')
// Default open or close DevTools by F12 in development
// and ignore CommandOrControl + R in production.
// see https://github.com/alex8088/electron-toolkit/tree/master/packages/utils
app.on('browser-window-created', (_, window) => {
optimizer.watchWindowShortcuts(window)
})
createWindow()
app.on('activate', function () {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
// In this file you can include the rest of your app"s specific main process
// code. You can also put them in separate files and require them here.

View File

@@ -0,0 +1,2 @@
// See the Electron documentation for details on how to use preload scripts:
// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts

View File

@@ -1,8 +0,0 @@
import { ElectronAPI } from '@electron-toolkit/preload'
declare global {
interface Window {
electron: ElectronAPI
api: unknown
}
}

View File

@@ -1,22 +0,0 @@
import { contextBridge } from 'electron'
import { electronAPI } from '@electron-toolkit/preload'
// Custom APIs for renderer
const api = {}
// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
// just add to the DOM global.
if (process.contextIsolated) {
try {
contextBridge.exposeInMainWorld('electron', electronAPI)
contextBridge.exposeInMainWorld('api', api)
} catch (error) {
console.error(error)
}
} else {
// @ts-ignore (define in dts)
window.electron = electronAPI
// @ts-ignore (define in dts)
window.api = api
}

View File

@@ -1,4 +0,0 @@
{
"files": [],
"references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.web.json" }]
}

View File

@@ -1,8 +0,0 @@
{
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
"include": ["electron.vite.config.*", "src/main/*", "src/preload/*"],
"compilerOptions": {
"composite": true,
"types": ["electron-vite/node"]
}
}

View File

@@ -1,7 +0,0 @@
{
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
"include": ["src/renderer/**/*.ts", "src/preload/*.d.ts"],
"compilerOptions": {
"composite": true
}
}

3144
Electron-App/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
import{w as u}from"./index.14349a18.js";var p;const m=((p=globalThis.__sveltekit_16q4axl)==null?void 0:p.base)??"";var h;const w=((h=globalThis.__sveltekit_16q4axl)==null?void 0:h.assets)??m,E="1700239351764",x="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},g=location.origin;function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function O(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function U(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function L(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,l=!n||!!o||R(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),r=(n==null?void 0:n.origin)===g&&e.hasAttribute("download");return{url:n,external:l,target:o,download:r}}function N(e){let t=null,n=null,o=null,l=null,r=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),l===null&&(l=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),r===null&&(r=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(k){switch(k){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[l??"off"],keep_focus:i(t),noscroll:i(n),reload:i(r),replace_state:i(a)}}function _(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function l(a){n=!1,t.set(a)}function r(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:l,subscribe:r}}function A(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const l=await fetch(`${w}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!l.ok)return!1;const a=(await l.json()).version!==E;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function R(e,t){return e.origin!==g||!e.pathname.startsWith(t)}let v;function P(e){v=e.client}function V(e){return(...t)=>v[e](...t)}const Y={url:_({}),page:_({}),navigating:u(null),updated:A()};export{I,f as P,y as S,x as a,L as b,N as c,Y as d,m as e,U as f,S as g,P as h,R as i,V as j,v as k,g as o,O as s};
import{w as u}from"./index.14349a18.js";var p;const m=((p=globalThis.__sveltekit_14n7842)==null?void 0:p.base)??"";var h;const w=((h=globalThis.__sveltekit_14n7842)==null?void 0:h.assets)??m,E="1700254453473",y="sveltekit:snapshot",I="sveltekit:scroll",S="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},g=location.origin;function x(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function O(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function U(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function L(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||R(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===g&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function N(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(k){switch(k){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function _(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function A(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${w}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==E;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function R(e,t){return e.origin!==g||!e.pathname.startsWith(t)}let v;function P(e){v=e.client}function V(e){return(...t)=>v[e](...t)}const Y={url:_({}),page:_({}),navigating:u(null),updated:A()};export{S as I,f as P,I as S,y as a,L as b,N as c,Y as d,m as e,U as f,x as g,P as h,R as i,V as j,v as k,g as o,O as s};

View File

@@ -1 +1 @@
import{d as e}from"./singletons.13d7fb5f.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
import{d as e}from"./singletons.f925f003.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};

View File

@@ -1 +1 @@
import{s as Y,n as P,c as ae,d as le,u as re,g as ne,e as ue}from"../chunks/scheduler.cbf234a0.js";import{S as ee,i as te,g as v,s as x,x as D,h as p,j as _,y as k,c as H,z as R,f as d,k as e,a as se,A as a,r as ie,u as oe,v as ce,d as Q,t as X,w as ve}from"../chunks/index.200976ee.js";import{p as pe}from"../chunks/stores.c94eb2b9.js";const de=""+new URL("../assets/svelte-logo.87df40b8.svg",import.meta.url).href,he=""+new URL("../assets/github.1ea8d62e.svg",import.meta.url).href;function fe(h){let t,r,m=`<a href="https://kit.svelte.dev" class="svelte-1u9z1tp"><img src="${de}" alt="SvelteKit" class="svelte-1u9z1tp"/></a>`,i,n,u,$,g,o,l,s,c="Home",y,V,L,C,N="About",S,j,E,b,O="Sverdle",B,U,w,A,K,M,W=`<a href="https://github.com/sveltejs/kit" class="svelte-1u9z1tp"><img src="${he}" alt="GitHub" class="svelte-1u9z1tp"/></a>`;return{c(){t=v("header"),r=v("div"),r.innerHTML=m,i=x(),n=v("nav"),u=D("svg"),$=D("path"),g=x(),o=v("ul"),l=v("li"),s=v("a"),s.textContent=c,V=x(),L=v("li"),C=v("a"),C.textContent=N,j=x(),E=v("li"),b=v("a"),b.textContent=O,U=x(),w=D("svg"),A=D("path"),K=x(),M=v("div"),M.innerHTML=W,this.h()},l(z){t=p(z,"HEADER",{class:!0});var f=_(t);r=p(f,"DIV",{class:!0,"data-svelte-h":!0}),k(r)!=="svelte-1jb641n"&&(r.innerHTML=m),i=H(f),n=p(f,"NAV",{class:!0});var I=_(n);u=R(I,"svg",{viewBox:!0,"aria-hidden":!0,class:!0});var Z=_(u);$=R(Z,"path",{d:!0,class:!0}),_($).forEach(d),Z.forEach(d),g=H(I),o=p(I,"UL",{class:!0});var T=_(o);l=p(T,"LI",{"aria-current":!0,class:!0});var q=_(l);s=p(q,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(s)!=="svelte-5a0zws"&&(s.textContent=c),q.forEach(d),V=H(T),L=p(T,"LI",{"aria-current":!0,class:!0});var F=_(L);C=p(F,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(C)!=="svelte-iphxk9"&&(C.textContent=N),F.forEach(d),j=H(T),E=p(T,"LI",{"aria-current":!0,class:!0});var G=_(E);b=p(G,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(b)!=="svelte-1mtf8rh"&&(b.textContent=O),G.forEach(d),T.forEach(d),U=H(I),w=R(I,"svg",{viewBox:!0,"aria-hidden":!0,class:!0});var J=_(w);A=R(J,"path",{d:!0,class:!0}),_(A).forEach(d),J.forEach(d),I.forEach(d),K=H(f),M=p(f,"DIV",{class:!0,"data-svelte-h":!0}),k(M)!=="svelte-1gilmbv"&&(M.innerHTML=W),f.forEach(d),this.h()},h(){e(r,"class","corner svelte-1u9z1tp"),e($,"d","M0,0 L1,2 C1.5,3 1.5,3 2,3 L2,0 Z"),e($,"class","svelte-1u9z1tp"),e(u,"viewBox","0 0 2 3"),e(u,"aria-hidden","true"),e(u,"class","svelte-1u9z1tp"),e(s,"href","/"),e(s,"class","svelte-1u9z1tp"),e(l,"aria-current",y=h[0].url.pathname==="/"?"page":void 0),e(l,"class","svelte-1u9z1tp"),e(C,"href","/about"),e(C,"class","svelte-1u9z1tp"),e(L,"aria-current",S=h[0].url.pathname==="/about"?"page":void 0),e(L,"class","svelte-1u9z1tp"),e(b,"href","/sverdle"),e(b,"class","svelte-1u9z1tp"),e(E,"aria-current",B=h[0].url.pathname.startsWith("/sverdle")?"page":void 0),e(E,"class","svelte-1u9z1tp"),e(o,"class","svelte-1u9z1tp"),e(A,"d","M0,0 L0,3 C0.5,3 0.5,3 1,2 L2,0 Z"),e(A,"class","svelte-1u9z1tp"),e(w,"viewBox","0 0 2 3"),e(w,"aria-hidden","true"),e(w,"class","svelte-1u9z1tp"),e(n,"class","svelte-1u9z1tp"),e(M,"class","corner svelte-1u9z1tp"),e(t,"class","svelte-1u9z1tp")},m(z,f){se(z,t,f),a(t,r),a(t,i),a(t,n),a(n,u),a(u,$),a(n,g),a(n,o),a(o,l),a(l,s),a(o,V),a(o,L),a(L,C),a(o,j),a(o,E),a(E,b),a(n,U),a(n,w),a(w,A),a(t,K),a(t,M)},p(z,[f]){f&1&&y!==(y=z[0].url.pathname==="/"?"page":void 0)&&e(l,"aria-current",y),f&1&&S!==(S=z[0].url.pathname==="/about"?"page":void 0)&&e(L,"aria-current",S),f&1&&B!==(B=z[0].url.pathname.startsWith("/sverdle")?"page":void 0)&&e(E,"aria-current",B)},i:P,o:P,d(z){z&&d(t)}}}function _e(h,t,r){let m;return ae(h,pe,i=>r(0,m=i)),[m]}class me extends ee{constructor(t){super(),te(this,t,_e,fe,Y,{})}}function ge(h){let t,r,m,i,n,u,$='<p>visit <a href="https://kit.svelte.dev" class="svelte-8o1gnw">kit.svelte.dev</a> to learn SvelteKit</p>',g;r=new me({});const o=h[1].default,l=le(o,h,h[0],null);return{c(){t=v("div"),ie(r.$$.fragment),m=x(),i=v("main"),l&&l.c(),n=x(),u=v("footer"),u.innerHTML=$,this.h()},l(s){t=p(s,"DIV",{class:!0});var c=_(t);oe(r.$$.fragment,c),m=H(c),i=p(c,"MAIN",{class:!0});var y=_(i);l&&l.l(y),y.forEach(d),n=H(c),u=p(c,"FOOTER",{class:!0,"data-svelte-h":!0}),k(u)!=="svelte-1dlfr5"&&(u.innerHTML=$),c.forEach(d),this.h()},h(){e(i,"class","svelte-8o1gnw"),e(u,"class","svelte-8o1gnw"),e(t,"class","app svelte-8o1gnw")},m(s,c){se(s,t,c),ce(r,t,null),a(t,m),a(t,i),l&&l.m(i,null),a(t,n),a(t,u),g=!0},p(s,[c]){l&&l.p&&(!g||c&1)&&re(l,o,s,s[0],g?ue(o,s[0],c,null):ne(s[0]),null)},i(s){g||(Q(r.$$.fragment,s),Q(l,s),g=!0)},o(s){X(r.$$.fragment,s),X(l,s),g=!1},d(s){s&&d(t),ve(r),l&&l.d(s)}}}function $e(h,t,r){let{$$slots:m={},$$scope:i}=t;return h.$$set=n=>{"$$scope"in n&&r(0,i=n.$$scope)},[i,m]}class Ee extends ee{constructor(t){super(),te(this,t,$e,ge,Y,{})}}export{Ee as component};
import{s as Y,n as P,c as ae,d as le,u as re,g as ne,e as ue}from"../chunks/scheduler.cbf234a0.js";import{S as ee,i as te,g as v,s as x,x as D,h as p,j as _,y as k,c as H,z as R,f as d,k as e,a as se,A as a,r as ie,u as oe,v as ce,d as Q,t as X,w as ve}from"../chunks/index.200976ee.js";import{p as pe}from"../chunks/stores.1661ee4a.js";const de=""+new URL("../assets/svelte-logo.87df40b8.svg",import.meta.url).href,he=""+new URL("../assets/github.1ea8d62e.svg",import.meta.url).href;function fe(h){let t,r,m=`<a href="https://kit.svelte.dev" class="svelte-1u9z1tp"><img src="${de}" alt="SvelteKit" class="svelte-1u9z1tp"/></a>`,i,n,u,$,g,o,l,s,c="Home",y,V,L,C,N="About",S,j,E,b,O="Sverdle",B,U,w,A,K,M,W=`<a href="https://github.com/sveltejs/kit" class="svelte-1u9z1tp"><img src="${he}" alt="GitHub" class="svelte-1u9z1tp"/></a>`;return{c(){t=v("header"),r=v("div"),r.innerHTML=m,i=x(),n=v("nav"),u=D("svg"),$=D("path"),g=x(),o=v("ul"),l=v("li"),s=v("a"),s.textContent=c,V=x(),L=v("li"),C=v("a"),C.textContent=N,j=x(),E=v("li"),b=v("a"),b.textContent=O,U=x(),w=D("svg"),A=D("path"),K=x(),M=v("div"),M.innerHTML=W,this.h()},l(z){t=p(z,"HEADER",{class:!0});var f=_(t);r=p(f,"DIV",{class:!0,"data-svelte-h":!0}),k(r)!=="svelte-1jb641n"&&(r.innerHTML=m),i=H(f),n=p(f,"NAV",{class:!0});var I=_(n);u=R(I,"svg",{viewBox:!0,"aria-hidden":!0,class:!0});var Z=_(u);$=R(Z,"path",{d:!0,class:!0}),_($).forEach(d),Z.forEach(d),g=H(I),o=p(I,"UL",{class:!0});var T=_(o);l=p(T,"LI",{"aria-current":!0,class:!0});var q=_(l);s=p(q,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(s)!=="svelte-5a0zws"&&(s.textContent=c),q.forEach(d),V=H(T),L=p(T,"LI",{"aria-current":!0,class:!0});var F=_(L);C=p(F,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(C)!=="svelte-iphxk9"&&(C.textContent=N),F.forEach(d),j=H(T),E=p(T,"LI",{"aria-current":!0,class:!0});var G=_(E);b=p(G,"A",{href:!0,class:!0,"data-svelte-h":!0}),k(b)!=="svelte-1mtf8rh"&&(b.textContent=O),G.forEach(d),T.forEach(d),U=H(I),w=R(I,"svg",{viewBox:!0,"aria-hidden":!0,class:!0});var J=_(w);A=R(J,"path",{d:!0,class:!0}),_(A).forEach(d),J.forEach(d),I.forEach(d),K=H(f),M=p(f,"DIV",{class:!0,"data-svelte-h":!0}),k(M)!=="svelte-1gilmbv"&&(M.innerHTML=W),f.forEach(d),this.h()},h(){e(r,"class","corner svelte-1u9z1tp"),e($,"d","M0,0 L1,2 C1.5,3 1.5,3 2,3 L2,0 Z"),e($,"class","svelte-1u9z1tp"),e(u,"viewBox","0 0 2 3"),e(u,"aria-hidden","true"),e(u,"class","svelte-1u9z1tp"),e(s,"href","/"),e(s,"class","svelte-1u9z1tp"),e(l,"aria-current",y=h[0].url.pathname==="/"?"page":void 0),e(l,"class","svelte-1u9z1tp"),e(C,"href","/about"),e(C,"class","svelte-1u9z1tp"),e(L,"aria-current",S=h[0].url.pathname==="/about"?"page":void 0),e(L,"class","svelte-1u9z1tp"),e(b,"href","/sverdle"),e(b,"class","svelte-1u9z1tp"),e(E,"aria-current",B=h[0].url.pathname.startsWith("/sverdle")?"page":void 0),e(E,"class","svelte-1u9z1tp"),e(o,"class","svelte-1u9z1tp"),e(A,"d","M0,0 L0,3 C0.5,3 0.5,3 1,2 L2,0 Z"),e(A,"class","svelte-1u9z1tp"),e(w,"viewBox","0 0 2 3"),e(w,"aria-hidden","true"),e(w,"class","svelte-1u9z1tp"),e(n,"class","svelte-1u9z1tp"),e(M,"class","corner svelte-1u9z1tp"),e(t,"class","svelte-1u9z1tp")},m(z,f){se(z,t,f),a(t,r),a(t,i),a(t,n),a(n,u),a(u,$),a(n,g),a(n,o),a(o,l),a(l,s),a(o,V),a(o,L),a(L,C),a(o,j),a(o,E),a(E,b),a(n,U),a(n,w),a(w,A),a(t,K),a(t,M)},p(z,[f]){f&1&&y!==(y=z[0].url.pathname==="/"?"page":void 0)&&e(l,"aria-current",y),f&1&&S!==(S=z[0].url.pathname==="/about"?"page":void 0)&&e(L,"aria-current",S),f&1&&B!==(B=z[0].url.pathname.startsWith("/sverdle")?"page":void 0)&&e(E,"aria-current",B)},i:P,o:P,d(z){z&&d(t)}}}function _e(h,t,r){let m;return ae(h,pe,i=>r(0,m=i)),[m]}class me extends ee{constructor(t){super(),te(this,t,_e,fe,Y,{})}}function ge(h){let t,r,m,i,n,u,$='<p>visit <a href="https://kit.svelte.dev" class="svelte-8o1gnw">kit.svelte.dev</a> to learn SvelteKit</p>',g;r=new me({});const o=h[1].default,l=le(o,h,h[0],null);return{c(){t=v("div"),ie(r.$$.fragment),m=x(),i=v("main"),l&&l.c(),n=x(),u=v("footer"),u.innerHTML=$,this.h()},l(s){t=p(s,"DIV",{class:!0});var c=_(t);oe(r.$$.fragment,c),m=H(c),i=p(c,"MAIN",{class:!0});var y=_(i);l&&l.l(y),y.forEach(d),n=H(c),u=p(c,"FOOTER",{class:!0,"data-svelte-h":!0}),k(u)!=="svelte-1dlfr5"&&(u.innerHTML=$),c.forEach(d),this.h()},h(){e(i,"class","svelte-8o1gnw"),e(u,"class","svelte-8o1gnw"),e(t,"class","app svelte-8o1gnw")},m(s,c){se(s,t,c),ce(r,t,null),a(t,m),a(t,i),l&&l.m(i,null),a(t,n),a(t,u),g=!0},p(s,[c]){l&&l.p&&(!g||c&1)&&re(l,o,s,s[0],g?ue(o,s[0],c,null):ne(s[0]),null)},i(s){g||(Q(r.$$.fragment,s),Q(l,s),g=!0)},o(s){X(r.$$.fragment,s),X(l,s),g=!1},d(s){s&&d(t),ve(r),l&&l.d(s)}}}function $e(h,t,r){let{$$slots:m={},$$scope:i}=t;return h.$$set=n=>{"$$scope"in n&&r(0,i=n.$$scope)},[i,m]}class Ee extends ee{constructor(t){super(),te(this,t,$e,ge,Y,{})}}export{Ee as component};

View File

@@ -1 +1 @@
import{s as x,n as u,c as S}from"../chunks/scheduler.cbf234a0.js";import{S as j,i as q,g as h,m as d,s as y,h as v,j as g,n as E,f as m,c as A,a as _,A as $,o as b}from"../chunks/index.200976ee.js";import{p as C}from"../chunks/stores.c94eb2b9.js";function H(p){var f;let a,t=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",c;return{c(){a=h("h1"),r=d(t),o=y(),n=h("p"),c=d(i)},l(e){a=v(e,"H1",{});var s=g(a);r=E(s,t),s.forEach(m),o=A(e),n=v(e,"P",{});var l=g(n);c=E(l,i),l.forEach(m)},m(e,s){_(e,a,s),$(a,r),_(e,o,s),_(e,n,s),$(n,c)},p(e,[s]){var l;s&1&&t!==(t=e[0].status+"")&&b(r,t),s&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&b(c,i)},i:u,o:u,d(e){e&&(m(a),m(o),m(n))}}}function P(p,a,t){let r;return S(p,C,o=>t(0,r=o)),[r]}class B extends j{constructor(a){super(),q(this,a,P,H,x,{})}}export{B as component};
import{s as x,n as u,c as S}from"../chunks/scheduler.cbf234a0.js";import{S as j,i as q,g as h,m as d,s as y,h as v,j as g,n as E,f as m,c as A,a as _,A as $,o as b}from"../chunks/index.200976ee.js";import{p as C}from"../chunks/stores.1661ee4a.js";function H(p){var f;let a,t=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",c;return{c(){a=h("h1"),r=d(t),o=y(),n=h("p"),c=d(i)},l(e){a=v(e,"H1",{});var s=g(a);r=E(s,t),s.forEach(m),o=A(e),n=v(e,"P",{});var l=g(n);c=E(l,i),l.forEach(m)},m(e,s){_(e,a,s),$(a,r),_(e,o,s),_(e,n,s),$(n,c)},p(e,[s]){var l;s&1&&t!==(t=e[0].status+"")&&b(r,t),s&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&b(c,i)},i:u,o:u,d(e){e&&(m(a),m(o),m(n))}}}function P(p,a,t){let r;return S(p,C,o=>t(0,r=o)),[r]}class B extends j{constructor(a){super(),q(this,a,P,H,x,{})}}export{B as component};

View File

@@ -1 +1 @@
{"version":"1700239351764"}
{"version":"1700254453473"}

View File

@@ -7,15 +7,15 @@
<link href="./_app/immutable/assets/0.fa9427ff.css" rel="stylesheet">
<link href="./_app/immutable/assets/2.57239003.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/entry/start.972c3fc2.js">
<link rel="modulepreload" href="./_app/immutable/entry/start.3bfbfc51.js">
<link rel="modulepreload" href="./_app/immutable/chunks/scheduler.cbf234a0.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.13d7fb5f.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.f925f003.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.14349a18.js">
<link rel="modulepreload" href="./_app/immutable/chunks/parse.bee59afc.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.db385fd8.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.ce95d8b1.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.200976ee.js">
<link rel="modulepreload" href="./_app/immutable/nodes/0.7447a5e8.js">
<link rel="modulepreload" href="./_app/immutable/chunks/stores.c94eb2b9.js">
<link rel="modulepreload" href="./_app/immutable/nodes/0.0298edea.js">
<link rel="modulepreload" href="./_app/immutable/chunks/stores.1661ee4a.js">
<link rel="modulepreload" href="./_app/immutable/nodes/2.549c4b9e.js"><title>Home</title><!-- HEAD_svelte-t32ptj_START --><meta name="description" content="Svelte demo app"><!-- HEAD_svelte-t32ptj_END -->
</head>
<body data-sveltekit-preload-data="hover">
@@ -25,7 +25,7 @@
<script>
{
__sveltekit_16q4axl = {
__sveltekit_14n7842 = {
base: new URL(".", location).pathname.slice(0, -1),
env: {}
};
@@ -35,8 +35,8 @@
const data = [null,null];
Promise.all([
import("./_app/immutable/entry/start.972c3fc2.js"),
import("./_app/immutable/entry/app.db385fd8.js")
import("./_app/immutable/entry/start.3bfbfc51.js"),
import("./_app/immutable/entry/app.ce95d8b1.js")
]).then(([kit, app]) => {
kit.start(app, element, {
node_ids: [0, 2],

View File

@@ -1,9 +1,9 @@
const index = 0;
let component_cache;
const component = async () => component_cache ??= (await import('./_layout.svelte-f428a28b.js')).default;
const imports = ["_app/immutable/nodes/0.7447a5e8.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/stores.c94eb2b9.js","_app/immutable/chunks/singletons.13d7fb5f.js","_app/immutable/chunks/index.14349a18.js"];
const imports = ["_app/immutable/nodes/0.0298edea.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/stores.1661ee4a.js","_app/immutable/chunks/singletons.f925f003.js","_app/immutable/chunks/index.14349a18.js"];
const stylesheets = ["_app/immutable/assets/0.fa9427ff.css"];
const fonts = ["_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.3df7909e.woff2","_app/immutable/assets/fira-mono-all-400-normal.1e3b098c.woff","_app/immutable/assets/fira-mono-cyrillic-400-normal.c7d433fd.woff2","_app/immutable/assets/fira-mono-greek-ext-400-normal.9e2fe623.woff2","_app/immutable/assets/fira-mono-greek-400-normal.a8be01ce.woff2","_app/immutable/assets/fira-mono-latin-ext-400-normal.6bfabd30.woff2","_app/immutable/assets/fira-mono-latin-400-normal.e43b3538.woff2"];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=0-a54bfeef.js.map
//# sourceMappingURL=0-097e8153.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"0-a54bfeef.js","sources":["../../../../SvelteKit-App/.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.7447a5e8.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\",\"_app/immutable/chunks/stores.c94eb2b9.js\",\"_app/immutable/chunks/singletons.13d7fb5f.js\",\"_app/immutable/chunks/index.14349a18.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.fa9427ff.css\"];\nexport const fonts = [\"_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.3df7909e.woff2\",\"_app/immutable/assets/fira-mono-all-400-normal.1e3b098c.woff\",\"_app/immutable/assets/fira-mono-cyrillic-400-normal.c7d433fd.woff2\",\"_app/immutable/assets/fira-mono-greek-ext-400-normal.9e2fe623.woff2\",\"_app/immutable/assets/fira-mono-greek-400-normal.a8be01ce.woff2\",\"_app/immutable/assets/fira-mono-latin-ext-400-normal.6bfabd30.woff2\",\"_app/immutable/assets/fira-mono-latin-400-normal.e43b3538.woff2\"];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAC1G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG,CAAC,wEAAwE,CAAC,8DAA8D,CAAC,oEAAoE,CAAC,qEAAqE,CAAC,iEAAiE,CAAC,qEAAqE,CAAC,iEAAiE;;;;"}
{"version":3,"file":"0-097e8153.js","sources":["../../../../SvelteKit-App/.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.0298edea.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\",\"_app/immutable/chunks/stores.1661ee4a.js\",\"_app/immutable/chunks/singletons.f925f003.js\",\"_app/immutable/chunks/index.14349a18.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.fa9427ff.css\"];\nexport const fonts = [\"_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.3df7909e.woff2\",\"_app/immutable/assets/fira-mono-all-400-normal.1e3b098c.woff\",\"_app/immutable/assets/fira-mono-cyrillic-400-normal.c7d433fd.woff2\",\"_app/immutable/assets/fira-mono-greek-ext-400-normal.9e2fe623.woff2\",\"_app/immutable/assets/fira-mono-greek-400-normal.a8be01ce.woff2\",\"_app/immutable/assets/fira-mono-latin-ext-400-normal.6bfabd30.woff2\",\"_app/immutable/assets/fira-mono-latin-400-normal.e43b3538.woff2\"];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAC1G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG,CAAC,wEAAwE,CAAC,8DAA8D,CAAC,oEAAoE,CAAC,qEAAqE,CAAC,iEAAiE,CAAC,qEAAqE,CAAC,iEAAiE;;;;"}

View File

@@ -1,9 +1,9 @@
const index = 1;
let component_cache;
const component = async () => component_cache ??= (await import('./error.svelte-6fe9e439.js')).default;
const imports = ["_app/immutable/nodes/1.f6506935.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/stores.c94eb2b9.js","_app/immutable/chunks/singletons.13d7fb5f.js","_app/immutable/chunks/index.14349a18.js"];
const imports = ["_app/immutable/nodes/1.659d6036.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/stores.1661ee4a.js","_app/immutable/chunks/singletons.f925f003.js","_app/immutable/chunks/index.14349a18.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=1-5db98e8e.js.map
//# sourceMappingURL=1-c1c3e2de.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"1-5db98e8e.js","sources":["../../../../SvelteKit-App/.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.f6506935.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\",\"_app/immutable/chunks/stores.c94eb2b9.js\",\"_app/immutable/chunks/singletons.13d7fb5f.js\",\"_app/immutable/chunks/index.14349a18.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"1-c1c3e2de.js","sources":["../../../../SvelteKit-App/.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.659d6036.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\",\"_app/immutable/chunks/stores.1661ee4a.js\",\"_app/immutable/chunks/singletons.f925f003.js\",\"_app/immutable/chunks/index.14349a18.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}

View File

@@ -13094,9 +13094,9 @@ const index = 4;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-c6e4b665.js')).default;
const server_id = "src/routes/sverdle/+page.server.ts";
const imports = ["_app/immutable/nodes/4.125b71e3.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/parse.bee59afc.js","_app/immutable/chunks/singletons.13d7fb5f.js","_app/immutable/chunks/index.14349a18.js"];
const imports = ["_app/immutable/nodes/4.4bbd6bca.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js","_app/immutable/chunks/parse.bee59afc.js","_app/immutable/chunks/singletons.f925f003.js","_app/immutable/chunks/index.14349a18.js"];
const stylesheets = ["_app/immutable/assets/4.9d501049.css"];
const fonts = [];
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=4-45ccd4e8.js.map
//# sourceMappingURL=4-c2a82537.js.map

View File

@@ -95,7 +95,7 @@ const Root = create_ssr_component(($$result, $$props, $$bindings, slots) => {
const options = {
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,
csrf_check_origin: false,
track_server_fetches: false,
embedded: false,
env_public_prefix: "PUBLIC_",
@@ -178,7 +178,7 @@ const options = {
<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: "16q4axl"
version_hash: "14n7842"
};
function get_hooks() {
return {};

File diff suppressed because one or more lines are too long

View File

@@ -10,11 +10,11 @@ return {
assets: new Set(["favicon.png","robots.txt"]),
mimeTypes: {".png":"image/png",".txt":"text/plain"},
_: {
client: {"start":"_app/immutable/entry/start.972c3fc2.js","app":"_app/immutable/entry/app.db385fd8.js","imports":["_app/immutable/entry/start.972c3fc2.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/singletons.13d7fb5f.js","_app/immutable/chunks/index.14349a18.js","_app/immutable/chunks/parse.bee59afc.js","_app/immutable/entry/app.db385fd8.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js"],"stylesheets":[],"fonts":[]},
client: {"start":"_app/immutable/entry/start.3bfbfc51.js","app":"_app/immutable/entry/app.ce95d8b1.js","imports":["_app/immutable/entry/start.3bfbfc51.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/singletons.f925f003.js","_app/immutable/chunks/index.14349a18.js","_app/immutable/chunks/parse.bee59afc.js","_app/immutable/entry/app.ce95d8b1.js","_app/immutable/chunks/scheduler.cbf234a0.js","_app/immutable/chunks/index.200976ee.js"],"stylesheets":[],"fonts":[]},
nodes: [
__memo(() => import('./chunks/0-a54bfeef.js')),
__memo(() => import('./chunks/1-5db98e8e.js')),
__memo(() => import('./chunks/4-45ccd4e8.js'))
__memo(() => import('./chunks/0-097e8153.js')),
__memo(() => import('./chunks/1-c1c3e2de.js')),
__memo(() => import('./chunks/4-c2a82537.js'))
],
routes: [
{

View File

@@ -1 +1 @@
{"version":3,"file":"manifest.js","sources":["../../../SvelteKit-App/.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.972c3fc2.js\",\"app\":\"_app/immutable/entry/app.db385fd8.js\",\"imports\":[\"_app/immutable/entry/start.972c3fc2.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/singletons.13d7fb5f.js\",\"_app/immutable/chunks/index.14349a18.js\",\"_app/immutable/chunks/parse.bee59afc.js\",\"_app/immutable/entry/app.db385fd8.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\"],\"stylesheets\":[],\"fonts\":[]},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/4.js'))\n\t\t],\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/sverdle\",\n\t\t\t\tpattern: /^\\/sverdle\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t}\n\t}\n}\n})();\n\nexport const prerendered = new Set([\"/\",\"/about\",\"/sverdle/how-to-play\"]);\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK,CAAC;AACX,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC,CAAC;AACvC,CAAC;AACD;AACA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAC9C,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC,CAAC,wCAAwC,CAAC,6CAA6C,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,sCAAsC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1e,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,GAAG;AACH,IAAI,EAAE,EAAE,UAAU;AAClB,IAAI,OAAO,EAAE,gBAAgB;AAC7B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE,IAAI;AAClB,IAAI;AACJ,GAAG;AACH,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI,CAAC;AACf,GAAG;AACH,EAAE;AACF,CAAC;AACD,CAAC,IAAI;AACL;AACY,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,sBAAsB,CAAC;;;;"}
{"version":3,"file":"manifest.js","sources":["../../../SvelteKit-App/.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.3bfbfc51.js\",\"app\":\"_app/immutable/entry/app.ce95d8b1.js\",\"imports\":[\"_app/immutable/entry/start.3bfbfc51.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/singletons.f925f003.js\",\"_app/immutable/chunks/index.14349a18.js\",\"_app/immutable/chunks/parse.bee59afc.js\",\"_app/immutable/entry/app.ce95d8b1.js\",\"_app/immutable/chunks/scheduler.cbf234a0.js\",\"_app/immutable/chunks/index.200976ee.js\"],\"stylesheets\":[],\"fonts\":[]},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/4.js'))\n\t\t],\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/sverdle\",\n\t\t\t\tpattern: /^\\/sverdle\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t}\n\t}\n}\n})();\n\nexport const prerendered = new Set([\"/\",\"/about\",\"/sverdle/how-to-play\"]);\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK,CAAC;AACX,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC,CAAC;AACvC,CAAC;AACD;AACA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAC9C,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC,CAAC,wCAAwC,CAAC,6CAA6C,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,sCAAsC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1e,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,GAAG;AACH,IAAI,EAAE,EAAE,UAAU;AAClB,IAAI,OAAO,EAAE,gBAAgB;AAC7B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE,IAAI;AAClB,IAAI;AACJ,GAAG;AACH,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI,CAAC;AACf,GAAG;AACH,EAAE;AACF,CAAC;AACD,CAAC,IAAI;AACL;AACY,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,sBAAsB,CAAC;;;;"}

View File

@@ -17,6 +17,7 @@
"@types/cookie": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"cross-env": "^7.0.3",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.35.0",
@@ -1523,6 +1524,24 @@
"node": ">= 0.6"
}
},
"node_modules/cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"dependencies": {
"cross-spawn": "^7.0.1"
},
"bin": {
"cross-env": "src/bin/cross-env.js",
"cross-env-shell": "src/bin/cross-env-shell.js"
},
"engines": {
"node": ">=10.14",
"npm": ">=6",
"yarn": ">=1"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@@ -3,7 +3,7 @@
"version": "0.0.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"build": "cross-env ORIGIN=http://localhost:3000 vite build",
"preview": "vite preview",
"test": "npm run test:integration && npm run test:unit",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
@@ -23,6 +23,7 @@
"@types/cookie": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"cross-env": "^7.0.3",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.35.0",

View File

@@ -11,7 +11,10 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter({ out: '../Svelte-Build/src' })
adapter: adapter({ out: '../Svelte-Build/src' }),
csrf: {
checkOrigin: false
}
}
};

View File

@@ -7,6 +7,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,ts}']
},
server: {
port: 3000
port: 3000,
origin: 'http://localhost:3000'
}
});