mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
wip
This commit is contained in:
6
bin/web/src/routes/+layout.svelte
Normal file
6
bin/web/src/routes/+layout.svelte
Normal file
@@ -0,0 +1,6 @@
|
||||
<script lang="ts">
|
||||
import '../app.css';
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
@@ -1 +0,0 @@
|
||||
export const ssr = false;
|
||||
@@ -1,2 +1,2 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import { base } from '$app/paths';
|
||||
|
||||
export async function load({ fetch }) {
|
||||
|
||||
const url = base + "/hello?name=PageLoadFunction";
|
||||
const opts = {
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" }
|
||||
};
|
||||
const response = await fetch(url, opts);
|
||||
const hello = await response.text();
|
||||
console.log("Hello:", hello);
|
||||
|
||||
return {
|
||||
hello
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user