Skip to content

Commit

Permalink
Linting and fmting
Browse files Browse the repository at this point in the history
  • Loading branch information
franknoirot committed Oct 20, 2023
1 parent 6c8f1cf commit cec0193
Show file tree
Hide file tree
Showing 5 changed files with 7,816 additions and 15,766 deletions.
4 changes: 2 additions & 2 deletions src/components/ModelPreviewer.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import { T } from '@threlte/core'
import { GLTF, OrbitControls, interactivity, useGltf } from '@threlte/extras'
import { GLTF, OrbitControls, interactivity } from '@threlte/extras'
export let dataUrl: string
export let pausable = true
interactivity()
let shouldAutoRotate = true
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</script>

<nav class="nav">
<a href={Boolean(user) ? paths.DASHBOARD : paths.HOME}>
<a href={user ? paths.DASHBOARD : paths.HOME}>
<Logo className="h-6 md:h-12" />
</a>
{#if user}
Expand Down
10 changes: 5 additions & 5 deletions src/routes/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { redirect } from '@sveltejs/kit'

export const load = async ({ cookies }) => {
const token = cookies.get('__Secure-next-auth.session-token')
const token = cookies.get('__Secure-next-auth.session-token')

if (token) {
throw redirect(302, '/dashboard')
}
}
if (token) {
throw redirect(302, '/dashboard')
}
}
8 changes: 5 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
<div
class="w-full flex items-center justify-start col-span-2 text-4xl font-mono border py-4 px-6"
>
<div class="typing-animation block text-chalkboard-70 dark:text-chalkboard-40" style={`--steps: ${examples[0].prompt.length - 1}`}>
<div
class="typing-animation block text-chalkboard-70 dark:text-chalkboard-40"
style={`--steps: ${examples[0].prompt.length - 1}`}
>
<div class="block w-fit">{examples[0].prompt}</div>
</div>
</div>
Expand All @@ -52,8 +55,7 @@
border-right: var(--_cursor-width) solid theme('colors.energy.40'); /* The typwriter cursor */
white-space: nowrap; /* Keeps the content on a single line */
letter-spacing: var(--_cursor-width); /* Adjust as needed */
animation: typing calc(var(--step-timing, 0.1s) * var(--steps, 20))
steps(var(--steps, 20), end),
animation: typing calc(var(--step-timing, 0.1s) * var(--steps, 20)) steps(var(--steps, 20), end),
blink-caret 0.85s step-end infinite;
}
Expand Down
Loading

0 comments on commit cec0193

Please sign in to comment.