Reformatting all the files that prettier missed

This commit is contained in:
Jess Martin 2022-07-20 16:47:18 -04:00
parent 460a772b3d
commit 639d2fb296
13 changed files with 60 additions and 42 deletions

View File

@ -4,23 +4,29 @@
<title>WebNative Template</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="description" content="TODO">
<meta property="og:title" content="WebNative Template">
<meta property="og:description" content="A template for WebNative applications">
<meta property="og:url" content="TODO">
<meta property="og:type" content="website">
<meta property="og:image" content="TODO">
<meta property="og:image:alt" content="WebNative Template">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="WebNative Template">
<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">
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta name="description" content="TODO" />
<meta property="og:title" content="WebNative Template" />
<meta
property="og:description"
content="A template for WebNative applications"
/>
<meta property="og:url" content="TODO" />
<meta property="og:type" content="website" />
<meta property="og:image" content="TODO" />
<meta property="og:image:alt" content="WebNative Template" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="WebNative Template" />
<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%
</head>
@ -28,4 +34,4 @@
<body>
<div id="svelte">%sveltekit.body%</div>
</body>
</html>
</html>

View File

@ -1,11 +1,22 @@
<header class="navbar bg-base-100">
<div class="flex-1">
<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>
</div>
<div class="flex-none">
<a class="btn btn-sm btn-primary normal-case" href="/connect">Connect</a>
</div>
</header>
</header>

View File

@ -1,5 +1,3 @@
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
<div class="modal">
<div class="modal-box w-80 relative text-center">
@ -8,8 +6,12 @@
<div>
<h3 class="mb-7 text-xl font-serif">Connect to AppName</h3>
<div>
<a class="btn btn-primary mb-5 w-11/12" href="/register">Create a new account</a>
<a class="btn btn-primary btn-outline w-11/12" href="/">I have an existing account</a>
<a class="btn btn-primary mb-5 w-11/12" href="/register"
>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>

View File

@ -2,7 +2,7 @@
export async function handle({ event, resolve }) {
const response = await resolve(event, {
ssr: false
});
})
return response;
}
return response
}

View File

@ -1,5 +1,5 @@
import test from 'ava'
test('my passing test', t => {
t.pass()
})
t.pass()
})

View File

@ -14,13 +14,13 @@ const fissionInit = {
permissions: {
app: {
name: 'app-name',
creator: 'creator-name',
creator: 'creator-name'
},
// Ask the user permission to additional filesystem paths
fs: {
// private: [webnative.path.directory('Documents', 'Contacts')],
},
},
}
}
}
// TODO: Add a flag or script to turn debugging on/off

View File

@ -4,7 +4,7 @@ export type Theme = 'light' | 'dark'
export const loadTheme = (): Theme => {
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)
}
}

View File

@ -10,7 +10,7 @@
</script>
<div data-theme={$theme}>
<Header></Header>
<Header />
<slot />
</div>

View File

@ -2,4 +2,4 @@
import Connect from '$components/auth/Connect.svelte'
</script>
<Connect></Connect>
<Connect />

View File

@ -1,5 +1,5 @@
<script lang="ts">
import Register from '$components/auth/Register.svelte'
</script>
<Register></Register>
<Register />

View File

@ -3,4 +3,4 @@ import type { Writable } from 'svelte/store'
import { loadTheme } from '$lib/theme'
import type { Theme } from '$lib/theme'
export const theme: Writable<Theme> = writable(loadTheme())
export const theme: Writable<Theme> = writable(loadTheme())

View File

@ -25,7 +25,7 @@
"paths": {
"$components/*": ["src/components/*"],
"$lib/*": ["src/lib/*"],
"$static/*": ["static/*"],
"$static/*": ["static/*"]
}
},
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]

View File

@ -3,13 +3,13 @@ import { resolve } from 'path'
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
plugins: [sveltekit()],
resolve: {
alias: {
$components: resolve('./src/components'),
$static: resolve('./static')
}
},
}
}
export default config