chore: update dependencies
This commit is contained in:
@@ -12,12 +12,12 @@
|
|||||||
"@columns/thread": "workspace:^",
|
"@columns/thread": "workspace:^",
|
||||||
"@columns/timeline": "workspace:^",
|
"@columns/timeline": "workspace:^",
|
||||||
"@columns/user": "workspace:^",
|
"@columns/user": "workspace:^",
|
||||||
"@getalby/sdk": "^3.2.1",
|
"@getalby/sdk": "^3.2.3",
|
||||||
"@lume/ark": "workspace:^",
|
"@lume/ark": "workspace:^",
|
||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/ui": "workspace:^",
|
"@lume/ui": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@nostr-fetch/adapter-ndk": "^0.14.1",
|
"@nostr-fetch/adapter-ndk": "^0.14.1",
|
||||||
"@radix-ui/react-accordion": "^1.1.2",
|
"@radix-ui/react-accordion": "^1.1.2",
|
||||||
"@radix-ui/react-alert-dialog": "^1.0.5",
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
||||||
@@ -30,20 +30,20 @@
|
|||||||
"@radix-ui/react-switch": "^1.0.3",
|
"@radix-ui/react-switch": "^1.0.3",
|
||||||
"@radix-ui/react-toolbar": "^1.0.4",
|
"@radix-ui/react-toolbar": "^1.0.4",
|
||||||
"@radix-ui/react-tooltip": "^1.0.7",
|
"@radix-ui/react-tooltip": "^1.0.7",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"@tauri-apps/api": "2.0.0-alpha.11",
|
"@tauri-apps/api": "2.0.0-alpha.13",
|
||||||
"@tauri-apps/plugin-autostart": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-autostart": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-dialog": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-dialog": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-fs": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-fs": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-http": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-http": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-notification": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-notification": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-os": "2.0.0-alpha.4",
|
"@tauri-apps/plugin-os": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-process": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-process": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-shell": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-shell": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-sql": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-sql": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-updater": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-updater": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-upload": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-upload": "2.0.0-alpha.5",
|
||||||
"@tiptap/extension-character-count": "^2.1.13",
|
"@tiptap/extension-character-count": "^2.1.13",
|
||||||
"@tiptap/extension-document": "^2.1.13",
|
"@tiptap/extension-document": "^2.1.13",
|
||||||
"@tiptap/extension-image": "^2.1.13",
|
"@tiptap/extension-image": "^2.1.13",
|
||||||
@@ -69,14 +69,14 @@
|
|||||||
"nostr-tools": "^1.17.0",
|
"nostr-tools": "^1.17.0",
|
||||||
"qrcode.react": "^3.1.0",
|
"qrcode.react": "^3.1.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-currency-input-field": "^3.6.12",
|
"react-currency-input-field": "^3.6.13",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-hook-form": "^7.49.2",
|
"react-hook-form": "^7.49.2",
|
||||||
"react-hotkeys-hook": "^4.4.1",
|
"react-hotkeys-hook": "^4.4.1",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"react-string-replace": "^1.1.1",
|
"react-string-replace": "^1.1.1",
|
||||||
"smol-toml": "^1.1.3",
|
"smol-toml": "^1.1.3",
|
||||||
"sonner": "^1.2.4",
|
"sonner": "^1.3.1",
|
||||||
"tippy.js": "^6.3.7",
|
"tippy.js": "^6.3.7",
|
||||||
"tiptap-markdown": "^0.8.8",
|
"tiptap-markdown": "^0.8.8",
|
||||||
"virtua": "^0.18.0",
|
"virtua": "^0.18.0",
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/html-to-text": "^9.0.4",
|
"@types/html-to-text": "^9.0.4",
|
||||||
"@types/node": "^20.10.5",
|
"@types/node": "^20.10.5",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"@types/react-dom": "^18.2.18",
|
"@types/react-dom": "^18.2.18",
|
||||||
"@vitejs/plugin-react-swc": "^3.5.0",
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.16",
|
||||||
@@ -98,6 +98,6 @@
|
|||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^4.5.1",
|
"vite": "^4.5.1",
|
||||||
"vite-tsconfig-paths": "^4.2.2"
|
"vite-tsconfig-paths": "^4.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import { useArk, useStorage } from "@lume/ark";
|
|||||||
import { ChevronDownIcon, DepotIcon, GossipIcon } from "@lume/icons";
|
import { ChevronDownIcon, DepotIcon, GossipIcon } from "@lume/icons";
|
||||||
import { NDKKind } from "@nostr-dev-kit/ndk";
|
import { NDKKind } from "@nostr-dev-kit/ndk";
|
||||||
import * as Collapsible from "@radix-ui/react-collapsible";
|
import * as Collapsible from "@radix-ui/react-collapsible";
|
||||||
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { appConfigDir } from "@tauri-apps/api/path";
|
import { appConfigDir } from "@tauri-apps/api/path";
|
||||||
import { invoke } from "@tauri-apps/api/primitives";
|
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { DepotContactCard } from "./components/contact";
|
import { DepotContactCard } from "./components/contact";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ImageIcon, LoaderIcon } from "@lume/icons";
|
import { ImageIcon, LoaderIcon } from "@lume/icons";
|
||||||
import { message, open } from "@tauri-apps/plugin-dialog";
|
import { message, open } from "@tauri-apps/plugin-dialog";
|
||||||
import { readBinaryFile } from "@tauri-apps/plugin-fs";
|
import { readFile } from "@tauri-apps/plugin-fs";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
export function ArticleCoverUploader({ setCover }) {
|
export function ArticleCoverUploader({ setCover }) {
|
||||||
@@ -37,7 +37,7 @@ export function ArticleCoverUploader({ setCover }) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const file = await readBinaryFile(selected.path);
|
const file = await readFile(selected.path);
|
||||||
const blob = new Blob([file]);
|
const blob = new Blob([file]);
|
||||||
|
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useArk } from "@lume/ark";
|
import { useArk } from "@lume/ark";
|
||||||
import { LoaderIcon } from "@lume/icons";
|
import { LoaderIcon } from "@lume/icons";
|
||||||
import { message, open } from "@tauri-apps/plugin-dialog";
|
import { message, open } from "@tauri-apps/plugin-dialog";
|
||||||
import { readBinaryFile } from "@tauri-apps/plugin-fs";
|
import { readFile } from "@tauri-apps/plugin-fs";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
@@ -45,7 +45,7 @@ export function NewFileScreen() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const file = await readBinaryFile(selected.path);
|
const file = await readFile(selected.path);
|
||||||
const blob = new Blob([file]);
|
const blob = new Blob([file]);
|
||||||
|
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useStorage } from "@lume/ark";
|
import { useStorage } from "@lume/ark";
|
||||||
import { DarkIcon, LightIcon, SystemModeIcon } from "@lume/icons";
|
import { DarkIcon, LightIcon, SystemModeIcon } from "@lume/icons";
|
||||||
import * as Switch from "@radix-ui/react-switch";
|
import * as Switch from "@radix-ui/react-switch";
|
||||||
import { invoke } from "@tauri-apps/api/primitives";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { getCurrent } from "@tauri-apps/api/window";
|
import { getCurrent } from "@tauri-apps/api/window";
|
||||||
import { disable, enable, isEnabled } from "@tauri-apps/plugin-autostart";
|
import { disable, enable, isEnabled } from "@tauri-apps/plugin-autostart";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -7,15 +7,15 @@
|
|||||||
"@lume/ark": "workspace:^",
|
"@lume/ark": "workspace:^",
|
||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"virtua": "^0.18.0"
|
"virtua": "^0.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind": "^4.0.0",
|
"tailwind": "^4.0.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,18 +8,18 @@
|
|||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/ui": "workspace:^",
|
"@lume/ui": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"sonner": "^1.2.4",
|
"sonner": "^1.3.1",
|
||||||
"virtua": "^0.18.0"
|
"virtua": "^0.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind": "^4.0.0",
|
"tailwind": "^4.0.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,17 +8,17 @@
|
|||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/ui": "workspace:^",
|
"@lume/ui": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"sonner": "^1.2.4",
|
"sonner": "^1.3.1",
|
||||||
"virtua": "^0.18.0"
|
"virtua": "^0.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind": "^4.0.0",
|
"tailwind": "^4.0.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,18 +8,18 @@
|
|||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/ui": "workspace:^",
|
"@lume/ui": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"sonner": "^1.2.4",
|
"sonner": "^1.3.1",
|
||||||
"virtua": "^0.18.0"
|
"virtua": "^0.18.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind": "^4.0.0",
|
"tailwind": "^4.0.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@getalby/sdk": "^3.2.1",
|
"@getalby/sdk": "^3.2.3",
|
||||||
"@lume/icons": "workspace:^",
|
"@lume/icons": "workspace:^",
|
||||||
"@lume/ndk-cache-tauri": "workspace:^",
|
"@lume/ndk-cache-tauri": "workspace:^",
|
||||||
"@lume/storage": "workspace:^",
|
"@lume/storage": "workspace:^",
|
||||||
"@lume/utils": "workspace:^",
|
"@lume/utils": "workspace:^",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"@nostr-fetch/adapter-ndk": "^0.14.1",
|
"@nostr-fetch/adapter-ndk": "^0.14.1",
|
||||||
"@radix-ui/react-avatar": "^1.0.4",
|
"@radix-ui/react-avatar": "^1.0.4",
|
||||||
"@radix-ui/react-collapsible": "^1.0.3",
|
"@radix-ui/react-collapsible": "^1.0.3",
|
||||||
@@ -18,17 +18,17 @@
|
|||||||
"@radix-ui/react-hover-card": "^1.0.7",
|
"@radix-ui/react-hover-card": "^1.0.7",
|
||||||
"@radix-ui/react-popover": "^1.0.7",
|
"@radix-ui/react-popover": "^1.0.7",
|
||||||
"@radix-ui/react-tooltip": "^1.0.7",
|
"@radix-ui/react-tooltip": "^1.0.7",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"@tauri-apps/api": "2.0.0-alpha.11",
|
"@tauri-apps/api": "2.0.0-alpha.13",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-dialog": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-dialog": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-fs": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-fs": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-http": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-http": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-os": "2.0.0-alpha.4",
|
"@tauri-apps/plugin-os": "2.0.0-alpha.6",
|
||||||
"@tauri-apps/plugin-process": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-process": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-sql": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-sql": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-updater": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-updater": "2.0.0-alpha.5",
|
||||||
"@tauri-apps/plugin-upload": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-upload": "2.0.0-alpha.5",
|
||||||
"@tiptap/extension-mention": "^2.1.13",
|
"@tiptap/extension-mention": "^2.1.13",
|
||||||
"@tiptap/react": "^2.1.13",
|
"@tiptap/react": "^2.1.13",
|
||||||
"@vidstack/react": "^1.9.8",
|
"@vidstack/react": "^1.9.8",
|
||||||
@@ -41,10 +41,10 @@
|
|||||||
"qrcode.react": "^3.1.0",
|
"qrcode.react": "^3.1.0",
|
||||||
"re-resizable": "^6.9.11",
|
"re-resizable": "^6.9.11",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-currency-input-field": "^3.6.12",
|
"react-currency-input-field": "^3.6.13",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"react-string-replace": "^1.1.1",
|
"react-string-replace": "^1.1.1",
|
||||||
"sonner": "^1.2.4",
|
"sonner": "^1.3.1",
|
||||||
"tippy.js": "^6.3.7",
|
"tippy.js": "^6.3.7",
|
||||||
"use-context-selector": "^1.4.1"
|
"use-context-selector": "^1.4.1"
|
||||||
},
|
},
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import NDK, {
|
|||||||
NostrEvent,
|
NostrEvent,
|
||||||
} from "@nostr-dev-kit/ndk";
|
} from "@nostr-dev-kit/ndk";
|
||||||
import { open } from "@tauri-apps/plugin-dialog";
|
import { open } from "@tauri-apps/plugin-dialog";
|
||||||
import { readBinaryFile } from "@tauri-apps/plugin-fs";
|
import { readFile } from "@tauri-apps/plugin-fs";
|
||||||
import { fetch } from "@tauri-apps/plugin-http";
|
import { fetch } from "@tauri-apps/plugin-http";
|
||||||
import { NostrFetcher, normalizeRelayUrl } from "nostr-fetch";
|
import { NostrFetcher, normalizeRelayUrl } from "nostr-fetch";
|
||||||
import { nip19 } from "nostr-tools";
|
import { nip19 } from "nostr-tools";
|
||||||
@@ -466,7 +466,7 @@ export class Ark {
|
|||||||
|
|
||||||
if (!selected) return null;
|
if (!selected) return null;
|
||||||
|
|
||||||
const file = await readBinaryFile(selected.path);
|
const file = await readFile(selected.path);
|
||||||
const blob = new Blob([file]);
|
const blob = new Blob([file]);
|
||||||
|
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
|
|||||||
@@ -43,27 +43,34 @@ export function RepostNote({
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return <div className="w-full px-3 pb-3" />;
|
return <div className="w-full px-3 pb-3">Loading...</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isError) {
|
if (isError || !repostEvent) {
|
||||||
return (
|
return (
|
||||||
<div className="my-3 h-min w-full px-3">
|
<Note.Root className={className}>
|
||||||
<div className="relative flex flex-col gap-2 overflow-hidden rounded-xl bg-neutral-50 pt-3 dark:bg-neutral-950">
|
<Note.Provider event={event}>
|
||||||
<div className="relative flex flex-col gap-2">
|
<Note.User variant="repost" className="h-14" />
|
||||||
<div className="px-3">
|
</Note.Provider>
|
||||||
<p>Failed to load event</p>
|
<div className="select-text px-3 mb-3">
|
||||||
</div>
|
<div className="bg-red-100 dark:bg-red-900 flex-col py-3 rounded-lg flex items-start justify-start px-3">
|
||||||
|
<p className="text-red-500">Failed to get event</p>
|
||||||
|
<p className="text-sm">
|
||||||
|
You can consider enable Outbox in Settings for better event
|
||||||
|
discovery.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Note.Root>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Note.Provider event={repostEvent}>
|
<Note.Root className={className}>
|
||||||
<Note.Root className={className}>
|
<Note.Provider event={event}>
|
||||||
<Note.User variant="repost" className="h-14" />
|
<Note.User variant="repost" className="h-14" />
|
||||||
|
</Note.Provider>
|
||||||
|
<Note.Provider event={repostEvent}>
|
||||||
<div className="relative flex flex-col gap-2 px-3">
|
<div className="relative flex flex-col gap-2 px-3">
|
||||||
<Note.User />
|
<Note.User />
|
||||||
{renderContentByKind()}
|
{renderContentByKind()}
|
||||||
@@ -77,7 +84,7 @@ export function RepostNote({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Note.Root>
|
</Note.Provider>
|
||||||
</Note.Provider>
|
</Note.Root>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,8 @@ import {
|
|||||||
displayNpub,
|
displayNpub,
|
||||||
sendNativeNotification,
|
sendNativeNotification,
|
||||||
} from "@lume/utils";
|
} from "@lume/utils";
|
||||||
import { NDKEvent } from "@nostr-dev-kit/ndk";
|
|
||||||
import * as Dialog from "@radix-ui/react-dialog";
|
import * as Dialog from "@radix-ui/react-dialog";
|
||||||
import { invoke } from "@tauri-apps/api/primitives";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { message } from "@tauri-apps/plugin-dialog";
|
import { message } from "@tauri-apps/plugin-dialog";
|
||||||
import { QRCodeSVG } from "qrcode.react";
|
import { QRCodeSVG } from "qrcode.react";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export function NoteReplyList({
|
|||||||
<LoaderIcon className="h-5 w-5 animate-spin" />
|
<LoaderIcon className="h-5 w-5 animate-spin" />
|
||||||
</div>
|
</div>
|
||||||
) : data.length === 0 ? (
|
) : data.length === 0 ? (
|
||||||
<div className="flex w-full items-center justify-center">
|
<div className="flex w-full items-center justify-center bg-neutral-50 dark:bg-neutral-950 rounded-lg">
|
||||||
<div className="flex flex-col items-center justify-center gap-2 py-6">
|
<div className="flex flex-col items-center justify-center gap-2 py-6">
|
||||||
<h3 className="text-3xl">👋</h3>
|
<h3 className="text-3xl">👋</h3>
|
||||||
<p className="leading-none text-neutral-600 dark:text-neutral-400">
|
<p className="leading-none text-neutral-600 dark:text-neutral-400">
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import {
|
|||||||
normalizeRelayUrlSet,
|
normalizeRelayUrlSet,
|
||||||
} from "nostr-fetch";
|
} from "nostr-fetch";
|
||||||
import { PropsWithChildren, useEffect, useState } from "react";
|
import { PropsWithChildren, useEffect, useState } from "react";
|
||||||
|
import { toast } from "sonner";
|
||||||
import { createContext, useContextSelector } from "use-context-selector";
|
import { createContext, useContextSelector } from "use-context-selector";
|
||||||
import { Ark } from "./ark";
|
import { Ark } from "./ark";
|
||||||
|
|
||||||
@@ -156,9 +157,13 @@ const LumeProvider = ({ children }: PropsWithChildren<object>) => {
|
|||||||
await ndk.connect(3000);
|
await ndk.connect(3000);
|
||||||
|
|
||||||
// auth
|
// auth
|
||||||
ndk.relayAuthDefaultPolicy = (relay: NDKRelay, challenge: string) => {
|
ndk.relayAuthDefaultPolicy = async (relay: NDKRelay, challenge: string) => {
|
||||||
const signIn = NDKRelayAuthPolicies.signIn({ ndk, signer });
|
const signIn = NDKRelayAuthPolicies.signIn({ ndk, signer });
|
||||||
return signIn(relay, challenge);
|
const event = await signIn(relay, challenge);
|
||||||
|
if (event) {
|
||||||
|
toast.success(`You've sign in sucessfully to relay: ${relay.url}`);
|
||||||
|
return event;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// update account's metadata
|
// update account's metadata
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tsconfig": "workspace:*",
|
"@lume/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lume/storage": "workspace:*",
|
"@lume/storage": "workspace:*",
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1",
|
"@nostr-dev-kit/ndk": "^2.3.2",
|
||||||
"lru-cache": "^10.1.0",
|
"lru-cache": "^10.1.0",
|
||||||
"nostr-fetch": "^0.14.1",
|
"nostr-fetch": "^0.14.1",
|
||||||
"nostr-tools": "1.17.0",
|
"nostr-tools": "1.17.0",
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tsconfig": "workspace:*",
|
"@lume/tsconfig": "workspace:*",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tsconfig": "workspace:*",
|
"@lume/tsconfig": "workspace:*",
|
||||||
"@lume/types": "workspace:*",
|
"@lume/types": "workspace:*",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,6 +11,6 @@
|
|||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nostr-dev-kit/ndk": "^2.3.1"
|
"@nostr-dev-kit/ndk": "^2.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,20 +11,20 @@
|
|||||||
"@radix-ui/react-avatar": "^1.0.4",
|
"@radix-ui/react-avatar": "^1.0.4",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
||||||
"@radix-ui/react-hover-card": "^1.0.7",
|
"@radix-ui/react-hover-card": "^1.0.7",
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"@tauri-apps/api": "2.0.0-alpha.11",
|
"@tauri-apps/api": "2.0.0-alpha.11",
|
||||||
"@tauri-apps/plugin-http": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-http": "2.0.0-alpha.3",
|
||||||
"@tauri-apps/plugin-os": "2.0.0-alpha.4",
|
"@tauri-apps/plugin-os": "2.0.0-alpha.4",
|
||||||
"minidenticons": "^4.2.0",
|
"minidenticons": "^4.2.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-router-dom": "^6.21.0",
|
"react-router-dom": "^6.21.1",
|
||||||
"sonner": "^1.2.4"
|
"sonner": "^1.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tailwindcss": "workspace:^",
|
"@lume/tailwindcss": "workspace:^",
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tanstack/react-query": "^5.14.2",
|
"@tanstack/react-query": "^5.15.0",
|
||||||
"@tauri-apps/api": "2.0.0-alpha.11",
|
"@tauri-apps/api": "2.0.0-alpha.11",
|
||||||
"@tauri-apps/plugin-notification": "2.0.0-alpha.3",
|
"@tauri-apps/plugin-notification": "2.0.0-alpha.3",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tsconfig": "workspace:^",
|
"@lume/tsconfig": "workspace:^",
|
||||||
"@lume/types": "workspace:^",
|
"@lume/types": "workspace:^",
|
||||||
"@types/react": "^18.2.45",
|
"@types/react": "^18.2.46",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1195
pnpm-lock.yaml
generated
1195
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
457
src-tauri/Cargo.lock
generated
457
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user