From 7ad75a17af3927ebf809aec08827592335cd29a2 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Tue, 30 Apr 2024 09:16:57 -0500 Subject: [PATCH] use "server" tag instead of "r" --- package.json | 16 +- src/components/LoginPage.svelte | 6 +- src/components/Sidebar.svelte | 43 +- src/pages/Blobs.svelte | 3 +- src/pages/Drive/Drive.svelte | 3 +- src/pages/Drive/Readme.svelte | 1 + src/pages/Files.svelte | 3 +- src/pages/History.svelte | 2 +- src/pages/Home.svelte | 3 +- src/pages/Hosting.svelte | 3 +- src/pages/Servers.svelte | 10 +- src/services/ndk.ts | 4 +- src/services/search.ts | 3 +- src/services/servers.ts | 11 +- yarn.lock | 2412 ++++++++++++++++--------------- 15 files changed, 1278 insertions(+), 1245 deletions(-) diff --git a/package.json b/package.json index e4968c6..c33bf2b 100644 --- a/package.json +++ b/package.json @@ -18,20 +18,20 @@ "@codemirror/language": "^6.10.1", "@noble/ciphers": "^0.5.2", "@noble/hashes": "^1.4.0", - "@nostr-dev-kit/ndk": "2.7.1", - "@nostr-dev-kit/ndk-cache-dexie": "2.3.1", - "@nostr-dev-kit/ndk-svelte": "2.2.12", - "@nostr-dev-kit/ndk-svelte-components": "2.2.13", + "@nostr-dev-kit/ndk": "^2.8.1", + "@nostr-dev-kit/ndk-cache-dexie": "^2.4.1", + "@nostr-dev-kit/ndk-svelte": "^2.2.14", + "@nostr-dev-kit/ndk-svelte-components": "^2.2.15", "@scure/base": "^1.1.6", "@uiw/codemirror-theme-github": "^4.21.25", "blossom-client-sdk": "^0.4.0", - "blossom-drive-sdk": "^0.1.1", + "blossom-drive-sdk": "^0.2.0", "codemirror": "^6.0.1", "dayjs": "^1.11.10", "events": "^3.3.0", "file-saver": "^2.0.5", "flowbite": "^2.3.0", - "flowbite-svelte": "^0.45.0", + "flowbite-svelte": "^0.46.1", "flowbite-svelte-icons": "^1.5.0", "highlight.js": "^11.9.0", "idb": "^8.0.0", @@ -60,8 +60,8 @@ "svelte": "^4.2.14", "svelte-check": "^3.6.9", "tslib": "^2.6.2", - "typescript": "^5.4.5", + "typescript": "^5.2.2", "vite": "^5.2.9", - "vite-plugin-pwa": "^0.19.8" + "vite-plugin-pwa": "^0.20.0" } } diff --git a/src/components/LoginPage.svelte b/src/components/LoginPage.svelte index 400daa7..68e3c8b 100644 --- a/src/components/LoginPage.svelte +++ b/src/components/LoginPage.svelte @@ -51,9 +51,9 @@

Or

-
- -
+ + +
diff --git a/src/components/Sidebar.svelte b/src/components/Sidebar.svelte index f9f0110..a09c556 100644 --- a/src/components/Sidebar.svelte +++ b/src/components/Sidebar.svelte @@ -8,8 +8,6 @@ SidebarDropdownWrapper, Button, Search, - DropdownItem, - Dropdown, } from "flowbite-svelte"; import { HomeSolid, @@ -18,15 +16,15 @@ TagSolid, DatabaseOutline, InfoCircleOutline, - FileSolid + FileSolid, } from "flowbite-svelte-icons"; - import { type Drive } from "blossom-drive-sdk"; - import {onMount} from "svelte"; + import { EncryptedDrive, type Drive } from "blossom-drive-sdk"; + import { onMount } from "svelte"; import { drives } from "../services/drives"; import { servers } from "../services/servers"; import NewDriveModal from "./NewDriveModal.svelte"; import { activeUser } from "../services/ndk"; - import {doHideSidebar, doToggleSidebar} from "../helpers/sidebar"; + import { doHideSidebar, doToggleSidebar } from "../helpers/sidebar"; import { searchForFiles, type FileResult } from "../services/search"; let newDriveModal = false; @@ -41,7 +39,7 @@ function reset() { results = []; search = ""; - }; + } onMount(() => doToggleSidebar()); onMount(() => doHideSidebar()); @@ -51,21 +49,24 @@ }; - + {#if $activeUser} -