Skip to content

Commit ac9ed2a

Browse files
committed
Add github link and analytics
1 parent 82e36e8 commit ac9ed2a

4 files changed

Lines changed: 36 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"vitest": "^3.0.0"
4848
},
4949
"dependencies": {
50+
"@accuser/svelte-plausible-analytics": "^1.0.0",
5051
"svelte-radix": "^2.0.1"
5152
}
5253
}

pnpm-lock.yaml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/login.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,10 @@
8383
</Card.Root>
8484
</form>
8585
</div>
86+
<p class="mt-4 mx-auto px-8 max-w-sm">
87+
For information on how to use this tool checkout the <a
88+
class="underline"
89+
href="https://github.com/joelseq/sqliteadmin-go"
90+
target="_blank">README</a
91+
>.
92+
</p>

src/routes/+layout.svelte

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
import { app } from '$lib/stores/app.svelte'
66
import * as Tooltip from '$lib/components/ui/tooltip'
77
import Unplug from 'lucide-svelte/icons/unplug'
8+
import Github from 'lucide-svelte/icons/github'
89
import '../app.css'
10+
import { PlausibleAnalytics } from '@accuser/svelte-plausible-analytics'
911
let { children } = $props()
1012
</script>
1113

@@ -14,7 +16,14 @@
1416
<div class="h-full w-full bg-background flex flex-col">
1517
<div class="flex items-center justify-between border-b px-4">
1618
<h1 class="p-4 text-3xl font-bold text-primary">SQLiteAdmin</h1>
17-
<div class="items-center space-x-2">
19+
<div class="flex items-center space-x-4">
20+
<a
21+
class="block"
22+
href="https://github.com/joelseq/sqliteadmin-go"
23+
target="_blank"
24+
>
25+
<Github class="h-6 w-6" />
26+
</a>
1827
{#if app.credentials}
1928
<Tooltip.Root>
2029
<Tooltip.Trigger>
@@ -40,3 +49,7 @@
4049
</div>
4150
</div>
4251
</Tooltip.Provider>
52+
<PlausibleAnalytics
53+
domain="sqliteadmin.dev"
54+
apiHost="https://plausible.joelseq.app"
55+
/>

0 commit comments

Comments
 (0)