Reformatting all the files that prettier missed
This commit is contained in:
parent
460a772b3d
commit
639d2fb296
42
src/app.html
42
src/app.html
|
|
@ -4,23 +4,29 @@
|
||||||
<title>WebNative Template</title>
|
<title>WebNative Template</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="robots" content="index,follow">
|
<meta name="robots" content="index,follow" />
|
||||||
<meta name="googlebot" content="index,follow">
|
<meta name="googlebot" content="index,follow" />
|
||||||
<meta name="description" content="TODO">
|
<meta name="description" content="TODO" />
|
||||||
<meta property="og:title" content="WebNative Template">
|
<meta property="og:title" content="WebNative Template" />
|
||||||
<meta property="og:description" content="A template for WebNative applications">
|
<meta
|
||||||
<meta property="og:url" content="TODO">
|
property="og:description"
|
||||||
<meta property="og:type" content="website">
|
content="A template for WebNative applications"
|
||||||
<meta property="og:image" content="TODO">
|
/>
|
||||||
<meta property="og:image:alt" content="WebNative Template">
|
<meta property="og:url" content="TODO" />
|
||||||
<meta property="og:image:width" content="1200">
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:image:height" content="630">
|
<meta property="og:image" content="TODO" />
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta property="og:image:alt" content="WebNative Template" />
|
||||||
<meta name="twitter:title" content="WebNative Template">
|
<meta property="og:image:width" content="1200" />
|
||||||
<meta name="twitter:description" content="A template for WebNative applications">
|
<meta property="og:image:height" content="630" />
|
||||||
<meta name="twitter:image" content="TODO">
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:image:alt" content="WebNative Template">
|
<meta name="twitter:title" content="WebNative Template" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" sizes="any">
|
<meta
|
||||||
|
name="twitter:description"
|
||||||
|
content="A template for WebNative applications"
|
||||||
|
/>
|
||||||
|
<meta name="twitter:image" content="TODO" />
|
||||||
|
<meta name="twitter:image:alt" content="WebNative Template" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" sizes="any" />
|
||||||
|
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -28,4 +34,4 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="svelte">%sveltekit.body%</div>
|
<div id="svelte">%sveltekit.body%</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,22 @@
|
||||||
<header class="navbar bg-base-100">
|
<header class="navbar bg-base-100">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<button class="btn btn-sm btn-square btn-ghost">
|
<button class="btn btn-sm btn-square btn-ghost">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block w-5 h-5 stroke-current"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
class="inline-block w-5 h-5 stroke-current"
|
||||||
|
><path
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
d="M4 6h16M4 12h16M4 18h16"
|
||||||
|
/></svg
|
||||||
|
>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-none">
|
<div class="flex-none">
|
||||||
<a class="btn btn-sm btn-primary normal-case" href="/connect">Connect</a>
|
<a class="btn btn-sm btn-primary normal-case" href="/connect">Connect</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
|
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<div class="modal-box w-80 relative text-center">
|
<div class="modal-box w-80 relative text-center">
|
||||||
|
|
@ -8,8 +6,12 @@
|
||||||
<div>
|
<div>
|
||||||
<h3 class="mb-7 text-xl font-serif">Connect to AppName</h3>
|
<h3 class="mb-7 text-xl font-serif">Connect to AppName</h3>
|
||||||
<div>
|
<div>
|
||||||
<a class="btn btn-primary mb-5 w-11/12" href="/register">Create a new account</a>
|
<a class="btn btn-primary mb-5 w-11/12" href="/register"
|
||||||
<a class="btn btn-primary btn-outline w-11/12" href="/">I have an existing account</a>
|
>Create a new account</a
|
||||||
|
>
|
||||||
|
<a class="btn btn-primary btn-outline w-11/12" href="/"
|
||||||
|
>I have an existing account</a
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
export async function handle({ event, resolve }) {
|
export async function handle({ event, resolve }) {
|
||||||
const response = await resolve(event, {
|
const response = await resolve(event, {
|
||||||
ssr: false
|
ssr: false
|
||||||
});
|
})
|
||||||
|
|
||||||
return response;
|
return response
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import test from 'ava'
|
import test from 'ava'
|
||||||
|
|
||||||
test('my passing test', t => {
|
test('my passing test', t => {
|
||||||
t.pass()
|
t.pass()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@ const fissionInit = {
|
||||||
permissions: {
|
permissions: {
|
||||||
app: {
|
app: {
|
||||||
name: 'app-name',
|
name: 'app-name',
|
||||||
creator: 'creator-name',
|
creator: 'creator-name'
|
||||||
},
|
},
|
||||||
// Ask the user permission to additional filesystem paths
|
// Ask the user permission to additional filesystem paths
|
||||||
fs: {
|
fs: {
|
||||||
// private: [webnative.path.directory('Documents', 'Contacts')],
|
// private: [webnative.path.directory('Documents', 'Contacts')],
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add a flag or script to turn debugging on/off
|
// TODO: Add a flag or script to turn debugging on/off
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ export type Theme = 'light' | 'dark'
|
||||||
|
|
||||||
export const loadTheme = (): Theme => {
|
export const loadTheme = (): Theme => {
|
||||||
if (browser) {
|
if (browser) {
|
||||||
return localStorage.getItem('theme') as Theme ?? 'light'
|
return (localStorage.getItem('theme') as Theme) ?? 'light'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13,4 +13,3 @@ export const storeTheme = (theme: Theme): void => {
|
||||||
localStorage.setItem('theme', theme)
|
localStorage.setItem('theme', theme)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div data-theme={$theme}>
|
<div data-theme={$theme}>
|
||||||
<Header></Header>
|
<Header />
|
||||||
|
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
import Connect from '$components/auth/Connect.svelte'
|
import Connect from '$components/auth/Connect.svelte'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Connect></Connect>
|
<Connect />
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Register from '$components/auth/Register.svelte'
|
import Register from '$components/auth/Register.svelte'
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<Register></Register>
|
|
||||||
|
<Register />
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ import type { Writable } from 'svelte/store'
|
||||||
import { loadTheme } from '$lib/theme'
|
import { loadTheme } from '$lib/theme'
|
||||||
import type { Theme } from '$lib/theme'
|
import type { Theme } from '$lib/theme'
|
||||||
|
|
||||||
export const theme: Writable<Theme> = writable(loadTheme())
|
export const theme: Writable<Theme> = writable(loadTheme())
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"$components/*": ["src/components/*"],
|
"$components/*": ["src/components/*"],
|
||||||
"$lib/*": ["src/lib/*"],
|
"$lib/*": ["src/lib/*"],
|
||||||
"$static/*": ["static/*"],
|
"$static/*": ["static/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@ import { resolve } from 'path'
|
||||||
|
|
||||||
/** @type {import('vite').UserConfig} */
|
/** @type {import('vite').UserConfig} */
|
||||||
const config = {
|
const config = {
|
||||||
plugins: [sveltekit()],
|
plugins: [sveltekit()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
$components: resolve('./src/components'),
|
$components: resolve('./src/components'),
|
||||||
$static: resolve('./static')
|
$static: resolve('./static')
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default config
|
export default config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue