diff --git a/package.json b/package.json index 542127ab..b30a8d60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.2.3", + "version": "1.3.0", "private": true, "scripts": { "dev": "vite dev", @@ -14,7 +14,7 @@ "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-node": "^1.3.1", - "@sveltejs/kit": "^1.5.0", + "@sveltejs/kit": "^1.24.0", "@types/markdown-it": "^12.2.3", "@types/markdown-it-container": "^2.0.6", "@types/nprogress": "^0.2.0", @@ -26,7 +26,7 @@ "markdown-it-sup": "^1.0.0", "nprogress": "^0.2.0", "postcss": "^8.4.24", - "svelte": "^3.54.0", + "svelte": "^4.2.0", "svelte-check": "^3.0.1", "svelte-hero-icons": "^5.0.0", "tailwindcss": "^3.3.2", @@ -41,7 +41,8 @@ "@dicebear/core": "^6.0.4", "@dicebear/initials": "^6.0.4", "lemmy-js-client": "^0.18.0-rc.2", - "markdown-it": "^13.0.1" + "markdown-it": "^13.0.1", + "mono-svelte": "^0.2.19" }, "type": "module" } diff --git a/src/lib/PwaReload.svelte b/src/lib/PwaReload.svelte index 4a35ce98..ce16eb61 100644 --- a/src/lib/PwaReload.svelte +++ b/src/lib/PwaReload.svelte @@ -1,5 +1,5 @@ - -{#if href} - -
- {#if loading} - - {:else if $$slots.icon} - - {:else if icon} - - {/if} - -
-
-{:else} - -{/if} diff --git a/src/lib/components/input/Checkbox.svelte b/src/lib/components/input/Checkbox.svelte deleted file mode 100644 index 83b8b307..00000000 --- a/src/lib/components/input/Checkbox.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/src/lib/components/input/FileInput.svelte b/src/lib/components/input/FileInput.svelte deleted file mode 100644 index 3bc9fcdf..00000000 --- a/src/lib/components/input/FileInput.svelte +++ /dev/null @@ -1,53 +0,0 @@ - - -
- {#if label} - {label} - {/if} - -
diff --git a/src/lib/components/input/MultiSelect.svelte b/src/lib/components/input/MultiSelect.svelte index 8a61a682..8c93a7f2 100644 --- a/src/lib/components/input/MultiSelect.svelte +++ b/src/lib/components/input/MultiSelect.svelte @@ -1,7 +1,7 @@ - -
- { - extractSelected(null) - debounceFunc() - }} - {...$$restProps} - /> - - {#if query == '' && showWhenEmpty} - - {:else} - {#each options as option} - - extractSelected(option)}> - {extractName(option)} - - - {/each} - {/if} - -
diff --git a/src/lib/components/input/SelectMenu.svelte b/src/lib/components/input/SelectMenu.svelte deleted file mode 100644 index 3f37887c..00000000 --- a/src/lib/components/input/SelectMenu.svelte +++ /dev/null @@ -1,43 +0,0 @@ - - -{#if label} -
{label}
-{/if} - -
- -
- {#each options as option, index} - { - selected = option - dispatcher('select', option) - }} - > - {optionNames[index] || option} - - {/each} -
diff --git a/src/lib/components/input/Switch.svelte b/src/lib/components/input/Switch.svelte deleted file mode 100644 index 88e9f9dc..00000000 --- a/src/lib/components/input/Switch.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - -