-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ryu-man/0.4.0
0.4.0
- Loading branch information
Showing
484 changed files
with
58,152 additions
and
65,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
plugins: ['svelte3', '@typescript-eslint'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], | ||
settings: { | ||
'svelte3/typescript': () => require('typescript') | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020 | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
/dist/ | ||
/example/ | ||
/semantic/ | ||
/package | ||
/src/lib/semantic | ||
.todo | ||
.DS_Store | ||
.todo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script context="module"> | ||
/** @type {import('@sveltejs/kit').ErrorLoad} */ | ||
export function load({ error, status }) { | ||
return { | ||
props: { error, status } | ||
}; | ||
} | ||
</script> | ||
|
||
<script> | ||
/** @type {number} */ | ||
export let status; | ||
/** @type {Error & {frame?: string} & {loc?: object}} */ | ||
export let error; | ||
</script> | ||
|
||
<h1>{status}</h1> | ||
|
||
<pre>{error.message}</pre> | ||
|
||
<!-- TODO figure out what to do with frames/stacktraces in prod --> | ||
<!-- frame is populated by Svelte in its CompileError and is a Rollup/Vite convention --> | ||
{#if error.frame} | ||
<pre>{error.frame}</pre> | ||
{/if} | ||
{#if error.stack} | ||
<pre>{error.stack}</pre> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<slot></slot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const c = [ | ||
() => import("..\\components\\layout.svelte"), | ||
() => import("..\\components\\error.svelte"), | ||
() => import("..\\..\\..\\src\\routes\\index.svelte") | ||
]; | ||
|
||
const d = decodeURIComponent; | ||
|
||
export const routes = [ | ||
// src/routes/index.svelte | ||
[/^\/$/, [c[0], c[2]], [c[1]]] | ||
]; | ||
|
||
// we import the root layout/error components eagerly, so that | ||
// connectivity errors after initialisation don't nuke the app | ||
export const fallback = [c[0](), c[1]()]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!-- This file is generated by @sveltejs/kit — do not edit it! --> | ||
<script> | ||
import { setContext, afterUpdate, onMount } from 'svelte'; | ||
// stores | ||
export let stores; | ||
export let page; | ||
export let components; | ||
export let props_0 = null; | ||
export let props_1 = null; | ||
export let props_2 = null; | ||
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; | ||
title = document.title || 'untitled page'; | ||
} | ||
}); | ||
mounted = true; | ||
return unsubscribe; | ||
}); | ||
</script> | ||
|
||
{#if components[1]} | ||
<svelte:component this={components[0]} {...(props_0 || {})}> | ||
{#if components[2]} | ||
<svelte:component this={components[1]} {...(props_1 || {})}> | ||
<svelte:component this={components[2]} {...(props_2 || {})}/> | ||
</svelte:component> | ||
{:else} | ||
<svelte:component this={components[1]} {...(props_1 || {})} /> | ||
{/if} | ||
</svelte:component> | ||
{:else} | ||
<svelte:component this={components[0]} {...(props_0 || {})} /> | ||
{/if} | ||
|
||
{#if mounted} | ||
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true"> | ||
{#if navigated} | ||
{title} | ||
{/if} | ||
</div> | ||
{/if} | ||
|
||
<style> | ||
#svelte-announcer { | ||
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; | ||
} | ||
</style> |
Oops, something went wrong.