Skip to content

Commit

Permalink
Merge pull request #9 from ryu-man/0.4.0
Browse files Browse the repository at this point in the history
0.4.0
  • Loading branch information
ryu-man committed Feb 6, 2022
2 parents 78a792d + 421435b commit 744cae3
Show file tree
Hide file tree
Showing 484 changed files with 58,152 additions and 65,357 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.cjs
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
}
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/dist/
/example/
/semantic/
/package
/src/lib/semantic
.todo
.DS_Store
.todo
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
6 changes: 6 additions & 0 deletions .prettierrc
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.
29 changes: 29 additions & 0 deletions .svelte-kit/dev/components/error.svelte
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}
1 change: 1 addition & 0 deletions .svelte-kit/dev/components/layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<slot></slot>
16 changes: 16 additions & 0 deletions .svelte-kit/dev/generated/manifest.js
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]()];
70 changes: 70 additions & 0 deletions .svelte-kit/dev/generated/root.svelte
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>
Loading

0 comments on commit 744cae3

Please sign in to comment.