diff options
| author | 2023-04-28 01:47:57 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:47:57 +0800 | |
| commit | 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch) | |
| tree | 29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/with-svelte/apps/docs/src | |
| parent | fc8c5fdce62fb229202659408798a7b6c98f6e8b (diff) | |
| download | HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip | |
Diffstat (limited to 'examples/with-svelte/apps/docs/src')
| -rw-r--r-- | examples/with-svelte/apps/docs/src/app.d.ts | 11 | ||||
| -rw-r--r-- | examples/with-svelte/apps/docs/src/app.html | 12 | ||||
| -rw-r--r-- | examples/with-svelte/apps/docs/src/routes/+page.svelte | 8 |
3 files changed, 31 insertions, 0 deletions
diff --git a/examples/with-svelte/apps/docs/src/app.d.ts b/examples/with-svelte/apps/docs/src/app.d.ts new file mode 100644 index 0000000..f201c93 --- /dev/null +++ b/examples/with-svelte/apps/docs/src/app.d.ts @@ -0,0 +1,11 @@ +/// <reference types="@sveltejs/kit" /> + +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +// and what to do when importing types +declare namespace App { + // interface Locals {} + // interface Platform {} + // interface Session {} + // interface Stuff {} +} diff --git a/examples/with-svelte/apps/docs/src/app.html b/examples/with-svelte/apps/docs/src/app.html new file mode 100644 index 0000000..5c77cd7 --- /dev/null +++ b/examples/with-svelte/apps/docs/src/app.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <link rel="icon" href="%sveltekit.assets%/favicon.png" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + %sveltekit.head% + </head> + <body> + <div>%sveltekit.body%</div> + </body> +</html> diff --git a/examples/with-svelte/apps/docs/src/routes/+page.svelte b/examples/with-svelte/apps/docs/src/routes/+page.svelte new file mode 100644 index 0000000..078e979 --- /dev/null +++ b/examples/with-svelte/apps/docs/src/routes/+page.svelte @@ -0,0 +1,8 @@ +<script lang="ts"> + import { MyCounterButton } from 'ui'; +</script> + +<h1>Docs</h1> +<MyCounterButton /> + +<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p> |
