diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-05-17 09:55:24 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-05-17 09:55:24 -0500 |
commit | bb5a22961c4be61704a86430106389d17ad76f45 (patch) | |
tree | d63f02db2d3d2ba259f03a953e2018fbc4be32ba /app | |
parent | Use newer icon lib (diff) | |
download | trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar.gz trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar.bz2 trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar.lz trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar.xz trinkets-bb5a22961c4be61704a86430106389d17ad76f45.tar.zst trinkets-bb5a22961c4be61704a86430106389d17ad76f45.zip |
Fix builds + update deps
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'app')
-rw-r--r-- | app/package.json | 10 | ||||
-rw-r--r-- | app/src/routes/+layout.svelte | 5 | ||||
-rw-r--r-- | app/src/routes/truncate/+page.svelte | 13 |
3 files changed, 16 insertions, 12 deletions
diff --git a/app/package.json b/app/package.json index 833f8f7..6ef5ab8 100644 --- a/app/package.json +++ b/app/package.json @@ -11,15 +11,15 @@ "@skeletonlabs/tw-plugin": "0.4.0", "@sveltejs/adapter-auto": "3.2.0", "@sveltejs/adapter-static": "3.0.1", - "@sveltejs/kit": "2.5.7", + "@sveltejs/kit": "2.5.8", "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tailwindcss/forms": "0.5.7", "@tailwindcss/typography": "0.5.13", "@types/html-minifier-terser": "7.0.2", - "@types/node": "20.12.11", + "@types/node": "20.12.12", "@types/wicg-file-system-access": "2023.10.5", - "@typescript-eslint/eslint-plugin": "7.8.0", - "@typescript-eslint/parser": "7.8.0", + "@typescript-eslint/eslint-plugin": "7.9.0", + "@typescript-eslint/parser": "7.9.0", "@vite-pwa/sveltekit": "0.5.0", "autoprefixer": "10.4.19", "crc": "4.3.2", @@ -31,7 +31,7 @@ "postcss": "8.4.38", "prettier": "3.2.5", "prettier-plugin-svelte": "3.2.3", - "svelte": "4.2.16", + "svelte": "4.2.17", "svelte-check": "3.7.1", "tailwindcss": "3.4.3", "tslib": "2.6.2", diff --git a/app/src/routes/+layout.svelte b/app/src/routes/+layout.svelte index 37c7f5f..8f0a99f 100644 --- a/app/src/routes/+layout.svelte +++ b/app/src/routes/+layout.svelte @@ -1,7 +1,6 @@ <script lang="ts"> import Navigation from '$lib/components/Navigation.svelte' - import Icon from '@iconify/svelte' - import menuIcon from '@iconify/icons-carbon/menu' + import "iconify-icon" import { AppBar, AppShell, @@ -51,7 +50,7 @@ <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"> - <Icon icon={menuIcon} width="25" /> + <iconify-icon icon="carbon:menu" width="25" /> </button> <strong class="text-xl uppercase">Nothing</strong> </div> diff --git a/app/src/routes/truncate/+page.svelte b/app/src/routes/truncate/+page.svelte index d296a3b..a0f1452 100644 --- a/app/src/routes/truncate/+page.svelte +++ b/app/src/routes/truncate/+page.svelte @@ -1,8 +1,7 @@ <script lang="ts"> import saveFile from '$lib/ts/download' import type { TruncateRequest, TruncateResponse } from '$lib/types/truncate-worker' - import Icon from '@iconify/svelte' - import fileStorage from '@iconify/icons-carbon/file-storage' + import 'iconify-icon' import { FileDropzone, ProgressBar } from '@skeletonlabs/skeleton' import { onDestroy, onMount } from 'svelte' @@ -43,7 +42,13 @@ <div class="container h-full mx-auto flex justify-center items-center"> <div class="space-y-10 text-center flex flex-col items-center"> - <form bind:this={form} on:submit|preventDefault={onUpload} method="POST" action="?/TODO" enctype="multipart/form-data"> + <form + bind:this={form} + on:submit|preventDefault={onUpload} + method="POST" + action="?/TODO" + enctype="multipart/form-data" + > <noscript> <h3 class="h3">You need JavaScript to use this page, for now ;)</h3> <br /> @@ -60,7 +65,7 @@ > <svelte:fragment slot="lead"> <div class="flex justify-center items-center"> - <Icon icon={fileStorage} width="50" /> + <iconify-icon icon="carbon:file-storage" width="50" /> </div> </svelte:fragment> <svelte:fragment slot="meta">Drop a file here to truncate it.</svelte:fragment> |