diff --git a/package.json b/package.json index 00997e7a..0698e69f 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "reactflow": "^11.10.1", "sonner": "^1.2.0", "tailwind-scrollbar": "^3.0.5", - "tauri-controls": "^0.2.0", + "tauri-controls": "github:reyamir/tauri-controls", "tippy.js": "^6.3.7", "tiptap-markdown": "^0.8.4", "virtua": "^0.16.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ec56e9a..ad849d0a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,8 +192,8 @@ dependencies: specifier: ^3.0.5 version: 3.0.5(tailwindcss@3.3.5) tauri-controls: - specifier: ^0.2.0 - version: 0.2.0(@tauri-apps/plugin-os@2.0.0-alpha.4)(@tauri-apps/plugin-window@2.0.0-alpha.1)(clsx@2.0.0)(react-dom@18.2.0)(react@18.2.0)(tailwind-merge@1.14.0) + specifier: github:reyamir/tauri-controls + version: github.com/reyamir/tauri-controls/15e98afd9abd588144d2ac36db6833f2ca6e1405 tippy.js: specifier: ^6.3.7 version: 6.3.7 @@ -1994,16 +1994,6 @@ packages: engines: {node: '>= 18', npm: '>= 6.6.0', yarn: '>= 1.19.1'} dev: false - /@tauri-apps/api@2.0.0-alpha.6: - resolution: {integrity: sha512-ZMOc3eu9amwvkC6M69h3hWt4/EsFaAXmtkiw4xd2LN59/lTb4ZQiVfq2QKlRcu1rj3n/Tcr7U30ZopvHwXBGIg==} - engines: {node: '>= 14.6.0', npm: '>= 6.6.0', yarn: '>= 1.19.1'} - dev: false - - /@tauri-apps/api@2.0.0-alpha.8: - resolution: {integrity: sha512-3hZ+7EzUA11KN+O/Y4KgmjR+ldhXLdNllkw//hv/AaNsktEopCRBuKfVRLzVK3yov+Z+GzgxqFlwgJ1v6g1iKw==} - engines: {node: '>= 14.6.0', npm: '>= 6.6.0', yarn: '>= 1.19.1'} - dev: false - /@tauri-apps/cli-darwin-arm64@2.0.0-alpha.17: resolution: {integrity: sha512-WDqekRiVwMu/hKsf/xBHcfi/YZ7X9o6Piy4Qolt+YYyfi4wh5ZYZnom+7kIZBlSCc32gtXGViBXEivhcKzFQ3w==} engines: {node: '>= 10'} @@ -2177,12 +2167,6 @@ packages: '@tauri-apps/api': 2.0.0-alpha.11 dev: false - /@tauri-apps/plugin-window@2.0.0-alpha.1: - resolution: {integrity: sha512-dFOAgal/3Txz3SQ+LNQq0AK1EPC+acdaFlwPVB/6KXUZYmaFleIlzgxDVoJCQ+/xOhxvYrdQaFLefh0I/Kldbg==} - dependencies: - '@tauri-apps/api': 2.0.0-alpha.6 - dev: false - /@tiptap/core@2.1.12(@tiptap/pm@2.1.12): resolution: {integrity: sha512-ZGc3xrBJA9KY8kln5AYTj8y+GDrKxi7u95xIl2eccrqTY5CQeRu6HRNM1yT4mAjuSaG9jmazyjGRlQuhyxCKxQ==} peerDependencies: @@ -5810,25 +5794,6 @@ packages: transitivePeerDependencies: - ts-node - /tauri-controls@0.2.0(@tauri-apps/plugin-os@2.0.0-alpha.4)(@tauri-apps/plugin-window@2.0.0-alpha.1)(clsx@2.0.0)(react-dom@18.2.0)(react@18.2.0)(tailwind-merge@1.14.0): - resolution: {integrity: sha512-/IDXLhcqGRjNN7QKfzgyr2y4QfnWT9MSIdqxrjH2oElXyngSo/cQltTb8LT6h/sH/7gRiSQMvQBEmavfn9Hk0w==} - peerDependencies: - '@tauri-apps/plugin-os': 2.0.0-alpha.2 - '@tauri-apps/plugin-window': 2.0.0-alpha.1 - clsx: ^2.0.0 - react: ^18.2.0 - react-dom: ^18.2.0 - tailwind-merge: ^1.14.0 - dependencies: - '@tauri-apps/api': 2.0.0-alpha.8 - '@tauri-apps/plugin-os': 2.0.0-alpha.4 - '@tauri-apps/plugin-window': 2.0.0-alpha.1 - clsx: 2.0.0 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - tailwind-merge: 1.14.0 - dev: false - /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true @@ -6287,3 +6252,16 @@ packages: react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) dev: false + + github.com/reyamir/tauri-controls/15e98afd9abd588144d2ac36db6833f2ca6e1405: + resolution: {tarball: https://codeload.github.com/reyamir/tauri-controls/tar.gz/15e98afd9abd588144d2ac36db6833f2ca6e1405} + name: tauri-controls + version: 0.3.0 + dependencies: + '@tauri-apps/api': 2.0.0-alpha.11 + '@tauri-apps/plugin-os': 2.0.0-alpha.4 + clsx: 2.0.0 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + tailwind-merge: 1.14.0 + dev: false diff --git a/src/libs/ndk/instance.ts b/src/libs/ndk/instance.ts index d6ce4315..4d4315e4 100644 --- a/src/libs/ndk/instance.ts +++ b/src/libs/ndk/instance.ts @@ -40,6 +40,8 @@ export const NDKInstance = () => { toast.warning(`${relay} is not working, skipping...`); onlineRelays.delete(relay); } + + toast.success(`Connected to ${relay}`); } catch { toast.warning(`${relay} is not working, skipping...`); onlineRelays.delete(relay); diff --git a/src/main.jsx b/src/main.jsx index 6cd4518b..9db0c281 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -20,9 +20,9 @@ const root = createRoot(container); root.render( + -