Skip to content

Commit 4d6844f

Browse files
committed
final github pages fix
1 parent 1512f48 commit 4d6844f

12 files changed

Lines changed: 32 additions & 25 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
.netlify
77
.wrangler
88
/build
9+
.svelte-kit
910

1011
# OS
1112
.DS_Store

.nojekyll

Whitespace-only changes.

.svelte-kit/ambient.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare module '$env/static/private' {
4040
export const DokanLibrary1_LibraryPath_x86: string;
4141
export const DriverData: string;
4242
export const EDITOR: string;
43-
export const EFC_7256: string;
43+
export const EFC_10464: string;
4444
export const GIT_ASKPASS: string;
4545
export const HOME: string;
4646
export const HOMEDRIVE: string;
@@ -153,7 +153,7 @@ declare module '$env/dynamic/private' {
153153
DokanLibrary1_LibraryPath_x86: string;
154154
DriverData: string;
155155
EDITOR: string;
156-
EFC_7256: string;
156+
EFC_10464: string;
157157
GIT_ASKPASS: string;
158158
HOME: string;
159159
HOMEDRIVE: string;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { default as component } from "../../../../src/routes/+layout.svelte";
1+
import * as universal from "../../../../src/routes/+layout.js";
2+
export { universal };
3+
export { default as component } from "../../../../node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";

.svelte-kit/generated/server/internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const options = {
2121
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html data-theme=\"rocket\" data-mode=\"dark\" lang=\"en\">\n\t<title>Pool viewer</title>\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\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>" + body + "</div>\n\t</body>\n</html>",
2222
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"
2323
},
24-
version_hash: "gbv247"
24+
version_hash: "14pfi1m"
2525
};
2626

2727
export async function get_hooks() {

.svelte-kit/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"forceConsistentCasingInFileNames": true,
4-
"strict": true,
53
"paths": {
64
"$lib": [
75
"../src/lib"
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"/": [],
3-
"/payments": [],
4-
"/settings": []
2+
"/": [
3+
"src/routes/+layout.js",
4+
"src/routes/+layout.js"
5+
],
6+
"/payments": [
7+
"src/routes/+layout.js"
8+
],
9+
"/settings": [
10+
"src/routes/+layout.js"
11+
]
512
}

.svelte-kit/types/src/routes/$types.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export type PageServerData = null;
2020
export type PageData = Expand<PageParentData>;
2121
export type PageProps = { data: PageData }
2222
export type LayoutServerData = null;
23-
export type LayoutData = Expand<LayoutParentData>;
23+
export type LayoutLoad<OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>> = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData, LayoutRouteId>;
24+
export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
25+
export type LayoutData = Expand<Omit<LayoutParentData, keyof LayoutParentData & EnsureDefined<LayoutServerData>> & OptionalUnion<EnsureDefined<LayoutParentData & EnsureDefined<LayoutServerData>>>>;
2426
export type LayoutProps = { data: LayoutData; children: import("svelte").Snippet }

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite dev",
88
"build": "vite build",
99
"preview": "vite preview",
10+
"deploy": "gh-pages -d build -t",
1011
"prepare": "svelte-kit sync || echo ''",
1112
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1213
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
@@ -29,7 +30,8 @@
2930
"svelte-check": "^4.0.0",
3031
"tailwindcss": "^4.0.0",
3132
"typescript": "^5.0.0",
32-
"vite": "^6.2.5"
33+
"vite": "^6.2.5",
34+
"gh-pages": "^6.3.0"
3335
},
3436
"dependencies": {
3537
"@lucide/svelte": "^0.503.0"

src/routes/+layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const prerender = true;
2+
export const trailingSlash = "always";

0 commit comments

Comments
 (0)