diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-01 10:38:53 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-01 10:38:53 -0500 |
commit | 5de800410c0aaca983a82b9600994b5354b5a1bd (patch) | |
tree | fb13d253c82c9b9101a274ac13070500b43c66f8 | |
parent | Bump the node-deps group with 2 updates (diff) | |
download | trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar.gz trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar.bz2 trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar.lz trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar.xz trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.tar.zst trinkets-5de800410c0aaca983a82b9600994b5354b5a1bd.zip |
add locusts
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r-- | app/package.json | 3 | ||||
-rw-r--r-- | app/src/lib/components/Navigation.svelte | 14 | ||||
-rw-r--r-- | app/src/routes/+layout.svelte | 14 | ||||
-rw-r--r-- | app/src/routes/truncate/+page.svelte | 2 | ||||
-rw-r--r-- | app/svelte.config.js | 4 | ||||
-rw-r--r-- | app/vite.config.ts | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 12 |
7 files changed, 36 insertions, 15 deletions
diff --git a/app/package.json b/app/package.json index 663192c..4664cd1 100644 --- a/app/package.json +++ b/app/package.json @@ -7,6 +7,7 @@ "@floating-ui/dom": "1.6.12" }, "devDependencies": { + "@locusts/svelte": "^0.0.1", "@skeletonlabs/skeleton": "2.10.3", "@skeletonlabs/tw-plugin": "0.4.0", "@sveltejs/adapter-auto": "3.3.1", @@ -51,4 +52,4 @@ "preview": "vite preview" }, "type": "module" -}
\ No newline at end of file +} diff --git a/app/src/lib/components/Navigation.svelte b/app/src/lib/components/Navigation.svelte index b058c1d..469f73f 100644 --- a/app/src/lib/components/Navigation.svelte +++ b/app/src/lib/components/Navigation.svelte @@ -1,8 +1,8 @@ <script lang="ts"> import { page } from '$app/stores' - import { base } from "$app/paths"; + import { base } from '$app/paths' - import "iconify-icon"; + import 'iconify-icon' import { AppRail, AppRailAnchor, getDrawerStore } from '@skeletonlabs/skeleton' @@ -23,20 +23,20 @@ {#if menu} <AppRailAnchor on:click={drawerClose} title="Close Menu" value={0} href="javascript:;"> <svelte:fragment slot="lead"> - <iconify-icon icon="carbon:menu" width="25" /> + <iconify-icon icon="carbon:menu" width="25"></iconify-icon> </svelte:fragment> Close Menu </AppRailAnchor> {/if} </svelte:fragment> <AppRailAnchor - href="{base}" + href={base} selected={$page.url.pathname === base} on:click={drawerClose} title="Homepage" > <svelte:fragment slot="lead"> - <iconify-icon icon="carbon:home" width="35" /> + <iconify-icon icon="carbon:home" width="35"></iconify-icon> </svelte:fragment> Home! </AppRailAnchor> @@ -47,7 +47,7 @@ title="Truncate Files" > <svelte:fragment slot="lead"> - <iconify-icon icon="carbon:page-break" width="35" /> + <iconify-icon icon="carbon:page-break" width="35"></iconify-icon> </svelte:fragment> Truncate! </AppRailAnchor> @@ -59,7 +59,7 @@ title="Source Code" > <svelte:fragment slot="lead"> - <iconify-icon icon="carbon:logo-github" width="35" /> + <iconify-icon icon="carbon:logo-github" width="35"></iconify-icon> </svelte:fragment> Source! </AppRailAnchor> diff --git a/app/src/routes/+layout.svelte b/app/src/routes/+layout.svelte index 8f0a99f..22e7fae 100644 --- a/app/src/routes/+layout.svelte +++ b/app/src/routes/+layout.svelte @@ -1,6 +1,7 @@ <script lang="ts"> import Navigation from '$lib/components/Navigation.svelte' - import "iconify-icon" + import { Locusts } from '@locusts/svelte' + import 'iconify-icon' import { AppBar, AppShell, @@ -49,9 +50,16 @@ <AppBar> <svelte:fragment slot="lead"> <div class="flex items-center"> - <button class="md:hidden btn btn-sm mr-4" on:click={drawerOpen} title="Menu" type="button"> - <iconify-icon icon="carbon:menu" width="25" /> + <button + class="md:hidden btn btn-sm mr-4" + on:click={drawerOpen} + title="Menu" + type="button" + aria-label="Menu" + > + <iconify-icon icon="carbon:menu" width="25"></iconify-icon> </button> + <Locusts /> <strong class="text-xl uppercase">Nothing</strong> </div> </svelte:fragment> diff --git a/app/src/routes/truncate/+page.svelte b/app/src/routes/truncate/+page.svelte index a0f1452..6315cb6 100644 --- a/app/src/routes/truncate/+page.svelte +++ b/app/src/routes/truncate/+page.svelte @@ -65,7 +65,7 @@ > <svelte:fragment slot="lead"> <div class="flex justify-center items-center"> - <iconify-icon icon="carbon:file-storage" width="50" /> + <iconify-icon icon="carbon:file-storage" width="50"></iconify-icon> </div> </svelte:fragment> <svelte:fragment slot="meta">Drop a file here to truncate it.</svelte:fragment> diff --git a/app/svelte.config.js b/app/svelte.config.js index bdf69e1..00e320d 100644 --- a/app/svelte.config.js +++ b/app/svelte.config.js @@ -11,8 +11,8 @@ const config = { kit: { adapter: adapter(), paths: { - base: process.env.NODE_ENV === "production" ? "/trinkets" : "", - } + base: process.env.NODE_ENV === 'production' ? '/trinkets' : '', + }, }, } export default config diff --git a/app/vite.config.ts b/app/vite.config.ts index 2f648d9..a79d272 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ manifest: { name: "RossTheRoss' Personal Tools", short_name: 'Random Dumping Ground', - description: 'A collection of tools I\'ve made', + description: "A collection of tools I've made", display: 'fullscreen', display_override: ['window-controls-overlay', 'standalone', 'minimal-ui'], icons: [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57b58ef..2398c9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: specifier: 1.6.12 version: 1.6.12 devDependencies: + '@locusts/svelte': + specifier: ^0.0.1 + version: 0.0.1(svelte@5.1.7) '@skeletonlabs/skeleton': specifier: 2.10.3 version: 2.10.3(svelte@5.1.7) @@ -869,6 +872,11 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + '@locusts/svelte@0.0.1': + resolution: {integrity: sha512-xdUR49bIVcAGovy5BX8Qq5Yd5Au7I36J/YXWFzwRR5ICnl/xOFXOXERCS4PvjTdZ2PWat5+S9YYNSOv+7lF74Q==} + peerDependencies: + svelte: ^5.0.0 + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -3921,6 +3929,10 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 + '@locusts/svelte@0.0.1(svelte@5.1.7)': + dependencies: + svelte: 5.1.7 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 |