This commit is contained in:
Ren Amamiya
2023-08-06 15:11:58 +07:00
parent 71338b3b07
commit 02ff9e3b68
34 changed files with 321 additions and 320 deletions

View File

@@ -21,15 +21,15 @@
"@noble/ciphers": "^0.2.0", "@noble/ciphers": "^0.2.0",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",
"@nostr-dev-kit/ndk": "^0.8.1", "@nostr-dev-kit/ndk": "^0.8.3",
"@nostr-fetch/adapter-ndk": "^0.11.0", "@nostr-fetch/adapter-ndk": "^0.11.0",
"@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-popover": "^1.0.6", "@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-tooltip": "^1.0.6", "@radix-ui/react-tooltip": "^1.0.6",
"@scure/base": "^1.1.1", "@scure/base": "^1.1.1",
"@tanstack/react-query": "^4.32.1", "@tanstack/react-query": "^4.32.6",
"@tanstack/react-query-devtools": "^4.32.1", "@tanstack/react-query-devtools": "^4.32.6",
"@tanstack/react-virtual": "3.0.0-beta.54", "@tanstack/react-virtual": "3.0.0-beta.54",
"@tauri-apps/api": "2.0.0-alpha.5", "@tauri-apps/api": "2.0.0-alpha.5",
"@tauri-apps/plugin-app": "github:tauri-apps/tauri-plugin-app#v2", "@tauri-apps/plugin-app": "github:tauri-apps/tauri-plugin-app#v2",
@@ -69,7 +69,7 @@
"qrcode.react": "^3.1.0", "qrcode.react": "^3.1.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-hook-form": "^7.45.2", "react-hook-form": "^7.45.4",
"react-hotkeys-hook": "^4.4.1", "react-hotkeys-hook": "^4.4.1",
"react-markdown": "^8.0.7", "react-markdown": "^8.0.7",
"react-player": "^2.12.0", "react-player": "^2.12.0",
@@ -86,7 +86,7 @@
"@tauri-apps/cli": "2.0.0-alpha.10", "@tauri-apps/cli": "2.0.0-alpha.10",
"@trivago/prettier-plugin-sort-imports": "^4.2.0", "@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/html-to-text": "^9.0.1", "@types/html-to-text": "^9.0.1",
"@types/node": "^18.17.2", "@types/node": "^18.17.3",
"@types/react": "^18.2.18", "@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7", "@types/react-dom": "^18.2.7",
"@types/youtube-player": "^5.5.7", "@types/youtube-player": "^5.5.7",

279
pnpm-lock.yaml generated
View File

@@ -14,11 +14,11 @@ dependencies:
specifier: ^1.3.1 specifier: ^1.3.1
version: 1.3.1 version: 1.3.1
'@nostr-dev-kit/ndk': '@nostr-dev-kit/ndk':
specifier: ^0.8.1 specifier: ^0.8.3
version: 0.8.1(typescript@4.9.5) version: 0.8.3(typescript@4.9.5)
'@nostr-fetch/adapter-ndk': '@nostr-fetch/adapter-ndk':
specifier: ^0.11.0 specifier: ^0.11.0
version: 0.11.0(@nostr-dev-kit/ndk@0.8.1)(nostr-fetch@0.12.2) version: 0.11.0(@nostr-dev-kit/ndk@0.8.3)(nostr-fetch@0.12.2)
'@radix-ui/react-collapsible': '@radix-ui/react-collapsible':
specifier: ^1.0.3 specifier: ^1.0.3
version: 1.0.3(@types/react-dom@18.2.7)(@types/react@18.2.18)(react-dom@18.2.0)(react@18.2.0) version: 1.0.3(@types/react-dom@18.2.7)(@types/react@18.2.18)(react-dom@18.2.0)(react@18.2.0)
@@ -35,11 +35,11 @@ dependencies:
specifier: ^1.1.1 specifier: ^1.1.1
version: 1.1.1 version: 1.1.1
'@tanstack/react-query': '@tanstack/react-query':
specifier: ^4.32.1 specifier: ^4.32.6
version: 4.32.1(react-dom@18.2.0)(react@18.2.0) version: 4.32.6(react-dom@18.2.0)(react@18.2.0)
'@tanstack/react-query-devtools': '@tanstack/react-query-devtools':
specifier: ^4.32.1 specifier: ^4.32.6
version: 4.32.1(@tanstack/react-query@4.32.1)(react-dom@18.2.0)(react@18.2.0) version: 4.32.6(@tanstack/react-query@4.32.6)(react-dom@18.2.0)(react@18.2.0)
'@tanstack/react-virtual': '@tanstack/react-virtual':
specifier: 3.0.0-beta.54 specifier: 3.0.0-beta.54
version: 3.0.0-beta.54(react@18.2.0) version: 3.0.0-beta.54(react@18.2.0)
@@ -158,8 +158,8 @@ dependencies:
specifier: ^18.2.0 specifier: ^18.2.0
version: 18.2.0(react@18.2.0) version: 18.2.0(react@18.2.0)
react-hook-form: react-hook-form:
specifier: ^7.45.2 specifier: ^7.45.4
version: 7.45.2(react@18.2.0) version: 7.45.4(react@18.2.0)
react-hotkeys-hook: react-hotkeys-hook:
specifier: ^4.4.1 specifier: ^4.4.1
version: 4.4.1(react-dom@18.2.0)(react@18.2.0) version: 4.4.1(react-dom@18.2.0)(react@18.2.0)
@@ -205,8 +205,8 @@ devDependencies:
specifier: ^9.0.1 specifier: ^9.0.1
version: 9.0.1 version: 9.0.1
'@types/node': '@types/node':
specifier: ^18.17.2 specifier: ^18.17.3
version: 18.17.2 version: 18.17.3
'@types/react': '@types/react':
specifier: ^18.2.18 specifier: ^18.2.18
version: 18.2.18 version: 18.2.18
@@ -284,7 +284,7 @@ devDependencies:
version: 4.9.5 version: 4.9.5
vite: vite:
specifier: ^4.4.8 specifier: ^4.4.8
version: 4.4.8(@types/node@18.17.2) version: 4.4.8(@types/node@18.17.3)
vite-plugin-top-level-await: vite-plugin-top-level-await:
specifier: ^1.3.1 specifier: ^1.3.1
version: 1.3.1(vite@4.4.8) version: 1.3.1(vite@4.4.8)
@@ -588,8 +588,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/android-arm64@0.18.17: /@esbuild/android-arm64@0.18.18:
resolution: {integrity: sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg==} resolution: {integrity: sha512-dkAPYzRHq3dNXIzOyAknYOzsx8o3KWaNiuu56B2rP9IFPmFWMS58WQcTlUQi6iloku8ZyHHMluCe5sTWhKq/Yw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm64] cpu: [arm64]
os: [android] os: [android]
@@ -606,8 +606,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/android-arm@0.18.17: /@esbuild/android-arm@0.18.18:
resolution: {integrity: sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg==} resolution: {integrity: sha512-oBymf7ZwplAawSxmiSlBCf+FMcY0f4bs5QP2jn43JKUf0M9DnrUTjqa5RvFPl1elw+sMfcpfBRPK+rb+E1q7zg==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm] cpu: [arm]
os: [android] os: [android]
@@ -624,8 +624,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/android-x64@0.18.17: /@esbuild/android-x64@0.18.18:
resolution: {integrity: sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw==} resolution: {integrity: sha512-r7/pVcrUQMYkjvtE/1/n6BxhWM+/9tvLxDG1ev1ce4z3YsqoxMK9bbOM6bFcj0BowMeGQvOZWcBV182lFFKmrw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [android] os: [android]
@@ -642,8 +642,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/darwin-arm64@0.18.17: /@esbuild/darwin-arm64@0.18.18:
resolution: {integrity: sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g==} resolution: {integrity: sha512-MSe2iV9MAH3wfP0g+vzN9bp36rtPPuCSk+bT5E2vv/d8krvW5uB/Pi/Q5+txUZuxsG3GcO8dhygjnFq0wJU9hQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
@@ -660,8 +660,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/darwin-x64@0.18.17: /@esbuild/darwin-x64@0.18.18:
resolution: {integrity: sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g==} resolution: {integrity: sha512-ARFYISOWkaifjcr48YtO70gcDNeOf1H2RnmOj6ip3xHIj66f3dAbhcd5Nph5np6oHI7DhHIcr9MWO18RvUL1bw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
@@ -678,8 +678,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/freebsd-arm64@0.18.17: /@esbuild/freebsd-arm64@0.18.18:
resolution: {integrity: sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ==} resolution: {integrity: sha512-BHnXmexzEWRU2ZySJosU0Ts0NRnJnNrMB6t4EiIaOSel73I8iLsNiTPLH0rJulAh19cYZutsB5XHK6N8fi5eMg==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm64] cpu: [arm64]
os: [freebsd] os: [freebsd]
@@ -696,8 +696,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/freebsd-x64@0.18.17: /@esbuild/freebsd-x64@0.18.18:
resolution: {integrity: sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA==} resolution: {integrity: sha512-n823w35wm0ZOobbuE//0sJjuz1Qj619+AwjgOcAJMN2pomZhH9BONCtn+KlfrmM/NWZ+27yB/eGVFzUIWLeh3w==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [freebsd] os: [freebsd]
@@ -714,8 +714,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-arm64@0.18.17: /@esbuild/linux-arm64@0.18.18:
resolution: {integrity: sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ==} resolution: {integrity: sha512-zANxnwF0sCinDcAqoMohGoWBK9QaFJ65Vgh0ZE+RXtURaMwx+RfmfLElqtnn7X8OYNckMoIXSg7u+tZ3tqTlrA==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
@@ -732,8 +732,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-arm@0.18.17: /@esbuild/linux-arm@0.18.18:
resolution: {integrity: sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg==} resolution: {integrity: sha512-Kck3jxPLQU4VeAGwe8Q4NU+IWIx+suULYOFUI9T0C2J1+UQlOHJ08ITN+MaJJ+2youzJOmKmcphH/t3SJxQ1Tw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
@@ -750,8 +750,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-ia32@0.18.17: /@esbuild/linux-ia32@0.18.18:
resolution: {integrity: sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg==} resolution: {integrity: sha512-+VHz2sIRlY5u8IlaLJpdf5TL2kM76yx186pW7bpTB+vLWpzcFQVP04L842ZB2Ty13A1VXUvy3DbU1jV65P2skg==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [ia32] cpu: [ia32]
os: [linux] os: [linux]
@@ -768,8 +768,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-loong64@0.18.17: /@esbuild/linux-loong64@0.18.18:
resolution: {integrity: sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg==} resolution: {integrity: sha512-fXPEPdeGBvguo/1+Na8OIWz3667BN1cwbGtTEZWTd0qdyTsk5gGf9jVX8MblElbDb/Cpw6y5JiaQuL96YmvBwQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [loong64] cpu: [loong64]
os: [linux] os: [linux]
@@ -786,8 +786,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-mips64el@0.18.17: /@esbuild/linux-mips64el@0.18.18:
resolution: {integrity: sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ==} resolution: {integrity: sha512-dLvRB87pIBIRnEIC32LIcgwK1JzlIuADIRjLKdUIpxauKwMuS/xMpN+cFl+0nN4RHNYOZ57DmXFFmQAcdlFOmw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [mips64el] cpu: [mips64el]
os: [linux] os: [linux]
@@ -804,8 +804,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-ppc64@0.18.17: /@esbuild/linux-ppc64@0.18.18:
resolution: {integrity: sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ==} resolution: {integrity: sha512-fRChqIJZ7hLkXSKfBLYgsX9Ssb5OGCjk3dzCETF5QSS1qjTgayLv0ALUdJDB9QOh/nbWwp+qfLZU6md4XcjL7w==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [ppc64] cpu: [ppc64]
os: [linux] os: [linux]
@@ -822,8 +822,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-riscv64@0.18.17: /@esbuild/linux-riscv64@0.18.18:
resolution: {integrity: sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g==} resolution: {integrity: sha512-ALK/BT3u7Hoa/vHjow6W6+MKF0ohYcVcVA1EpskI4bkBPVuDLrUDqt2YFifg5UcZc8qup0CwQqWmFUd6VMNgaA==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
@@ -840,8 +840,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-s390x@0.18.17: /@esbuild/linux-s390x@0.18.18:
resolution: {integrity: sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg==} resolution: {integrity: sha512-crT7jtOXd9iirY65B+mJQ6W0HWdNy8dtkZqKGWNcBnunpLcTCfne5y5bKic9bhyYzKpQEsO+C/VBPD8iF0RhRw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [s390x] cpu: [s390x]
os: [linux] os: [linux]
@@ -858,8 +858,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/linux-x64@0.18.17: /@esbuild/linux-x64@0.18.18:
resolution: {integrity: sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ==} resolution: {integrity: sha512-/NSgghjBOW9ELqjXDYxOCCIsvQUZpvua1/6NdnA9Vnrp9UzEydyDdFXljUjMMS9p5KxMzbMO9frjHYGVHBfCHg==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
@@ -876,8 +876,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/netbsd-x64@0.18.17: /@esbuild/netbsd-x64@0.18.18:
resolution: {integrity: sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ==} resolution: {integrity: sha512-8Otf05Vx5sZjLLDulgr5QS5lsWXMplKZEyHMArH9/S4olLlhzmdhQBPhzhJTNwaL2FJNdWcUPNGAcoD5zDTfUA==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [netbsd] os: [netbsd]
@@ -894,8 +894,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/openbsd-x64@0.18.17: /@esbuild/openbsd-x64@0.18.18:
resolution: {integrity: sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA==} resolution: {integrity: sha512-tFiFF4kT5L5qhVrWJUNxEXWvvX8nK/UX9ZrB7apuTwY3f6+Xy4aFMBPwAVrBYtBd5MOUuyOVHK6HBZCAHkwUlw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [openbsd] os: [openbsd]
@@ -912,8 +912,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/sunos-x64@0.18.17: /@esbuild/sunos-x64@0.18.18:
resolution: {integrity: sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g==} resolution: {integrity: sha512-MPogVV8Bzh8os4OM+YDGGsSzCzmNRiyKGtHoJyZLtI4BMmd6EcxmGlcEGK1uM46h1BiOyi7Z7teUtzzQhvkC+w==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [sunos] os: [sunos]
@@ -930,8 +930,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/win32-arm64@0.18.17: /@esbuild/win32-arm64@0.18.18:
resolution: {integrity: sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw==} resolution: {integrity: sha512-YKD6LF/XXY9REu+ZL5RAsusiG48n602qxsMVh/E8FFD9hp4OyTQaL9fpE1ovxwQXqFio+tT0ITUGjDSSSPN13w==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
@@ -948,8 +948,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/win32-ia32@0.18.17: /@esbuild/win32-ia32@0.18.18:
resolution: {integrity: sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg==} resolution: {integrity: sha512-NjSBmBsyZBTsZB6ga6rA6PfG/RHnwruUz/9YEVXcm4STGauFWvhYhOMhEyw1yU5NVgYYm8CH5AltCm77TS21/Q==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [ia32] cpu: [ia32]
os: [win32] os: [win32]
@@ -966,8 +966,8 @@ packages:
dev: false dev: false
optional: true optional: true
/@esbuild/win32-x64@0.18.17: /@esbuild/win32-x64@0.18.18:
resolution: {integrity: sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA==} resolution: {integrity: sha512-eTSg/gC3p3tdjj4roDhe5xu94l1s2jMazP8u2FsYO8SEKvSpPOO71EucprDn/IuErDPvTFUhV9lTw5z5WJCRKQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
@@ -1153,8 +1153,8 @@ packages:
'@nodelib/fs.scandir': 2.1.5 '@nodelib/fs.scandir': 2.1.5
fastq: 1.15.0 fastq: 1.15.0
/@nostr-dev-kit/ndk@0.8.1(typescript@4.9.5): /@nostr-dev-kit/ndk@0.8.3(typescript@4.9.5):
resolution: {integrity: sha512-uI41sCs+7CxtKGIKXQGZjdwvksfeCwd83bB2yrJCePx4oIkEMMH1gVRYsNfQIMFBPejnU2bfBqcO2zEP9RzIFg==} resolution: {integrity: sha512-njdcTN0+/TW0xOqd+eQco1HN735f2uxv1wXbFUxKlkxd9ApnAlondqMZB69byHMVJuwA/iNbMZKdiPrAEGGJ3w==}
dependencies: dependencies:
'@noble/hashes': 1.3.1 '@noble/hashes': 1.3.1
'@noble/secp256k1': 2.0.0 '@noble/secp256k1': 2.0.0
@@ -1182,13 +1182,13 @@ packages:
- typescript - typescript
dev: false dev: false
/@nostr-fetch/adapter-ndk@0.11.0(@nostr-dev-kit/ndk@0.8.1)(nostr-fetch@0.12.2): /@nostr-fetch/adapter-ndk@0.11.0(@nostr-dev-kit/ndk@0.8.3)(nostr-fetch@0.12.2):
resolution: {integrity: sha512-Otl7SEzm9ecqyHB10bpYXBu1qpqJEnipp7dZ4qcA9LeJAtM38fnYKUD34HX0JXA9EDjtc6VS5UNZe544xC9GCg==} resolution: {integrity: sha512-Otl7SEzm9ecqyHB10bpYXBu1qpqJEnipp7dZ4qcA9LeJAtM38fnYKUD34HX0JXA9EDjtc6VS5UNZe544xC9GCg==}
peerDependencies: peerDependencies:
'@nostr-dev-kit/ndk': ^0.5.0 '@nostr-dev-kit/ndk': ^0.5.0
nostr-fetch: ^0.11.0 nostr-fetch: ^0.11.0
dependencies: dependencies:
'@nostr-dev-kit/ndk': 0.8.1(typescript@4.9.5) '@nostr-dev-kit/ndk': 0.8.3(typescript@4.9.5)
'@nostr-fetch/kernel': 0.11.0 '@nostr-fetch/kernel': 0.11.0
nostr-fetch: 0.12.2 nostr-fetch: 0.12.2
dev: false dev: false
@@ -1914,27 +1914,27 @@ packages:
remove-accents: 0.4.2 remove-accents: 0.4.2
dev: false dev: false
/@tanstack/query-core@4.32.1: /@tanstack/query-core@4.32.6:
resolution: {integrity: sha512-VEAGHboOFWN/bvf/7cCoeLQfld0AA8n0V/kfc77W+FvxnnSwJufEh6gfjqpX5bRE/DEYfYDYdNtuL3KM+lIs8Q==} resolution: {integrity: sha512-YVB+mVWENQwPyv+40qO7flMgKZ0uI41Ph7qXC2Zf1ft5AIGfnXnMZyifB2ghhZ27u+5wm5mlzO4Y6lwwadzxCA==}
dev: false dev: false
/@tanstack/react-query-devtools@4.32.1(@tanstack/react-query@4.32.1)(react-dom@18.2.0)(react@18.2.0): /@tanstack/react-query-devtools@4.32.6(@tanstack/react-query@4.32.6)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-/ZgxCfGXLIXUvaIRzrNCP+C4iv1bIleNzXCjGKFZ4qKEifnv5A/SpWE2dG4SBjqXVlIkMAP82lesfoHcsOm+zg==} resolution: {integrity: sha512-Gd9pBkm2sbeze9P5Yp8R7y0rZVUdoIOhduomDjz138WdJuVbRS4Y8p6gX2uMJFsUFVe7jA6fX/D6NfQ9o5OS/A==}
peerDependencies: peerDependencies:
'@tanstack/react-query': 4.32.1 '@tanstack/react-query': ^4.32.6
react: ^16.8.0 || ^17.0.0 || ^18.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
dependencies: dependencies:
'@tanstack/match-sorter-utils': 8.8.4 '@tanstack/match-sorter-utils': 8.8.4
'@tanstack/react-query': 4.32.1(react-dom@18.2.0)(react@18.2.0) '@tanstack/react-query': 4.32.6(react-dom@18.2.0)(react@18.2.0)
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0(react@18.2.0) react-dom: 18.2.0(react@18.2.0)
superjson: 1.13.1 superjson: 1.13.1
use-sync-external-store: 1.2.0(react@18.2.0) use-sync-external-store: 1.2.0(react@18.2.0)
dev: false dev: false
/@tanstack/react-query@4.32.1(react-dom@18.2.0)(react@18.2.0): /@tanstack/react-query@4.32.6(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-lPTfOq6bR6DorPaS018gTMd3zs8r06tlERiVY6BRP9SnDkkl4ckqeANava/jPLWrSZP+EA15loQUTmvZs6k2GA==} resolution: {integrity: sha512-AITu/IKJJJXsHHeXNBy5bclu12t08usMCY0vFC2dh9SP/w6JAk5U9GwfjOIPj3p+ATADZvxQPe8UiCtMLNeQbg==}
peerDependencies: peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
@@ -1945,7 +1945,7 @@ packages:
react-native: react-native:
optional: true optional: true
dependencies: dependencies:
'@tanstack/query-core': 4.32.1 '@tanstack/query-core': 4.32.6
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0(react@18.2.0) react-dom: 18.2.0(react@18.2.0)
use-sync-external-store: 1.2.0(react@18.2.0) use-sync-external-store: 1.2.0(react@18.2.0)
@@ -2315,7 +2315,7 @@ packages:
prosemirror-history: 1.3.2 prosemirror-history: 1.3.2
prosemirror-inputrules: 1.2.1 prosemirror-inputrules: 1.2.1
prosemirror-keymap: 1.2.2 prosemirror-keymap: 1.2.2
prosemirror-markdown: 1.11.1 prosemirror-markdown: 1.11.2
prosemirror-menu: 1.2.2 prosemirror-menu: 1.2.2
prosemirror-model: 1.19.3 prosemirror-model: 1.19.3
prosemirror-schema-basic: 1.2.2 prosemirror-schema-basic: 1.2.2
@@ -2456,8 +2456,8 @@ packages:
resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==}
dev: false dev: false
/@types/node@18.17.2: /@types/node@18.17.3:
resolution: {integrity: sha512-wBo3KqP/PBqje5TI9UTiuL3yWfP6sdPtjtygSOqcYZWT232dfDeDOnkDps5wqZBP9NgGgYrNejinl0faAuE+HQ==} resolution: {integrity: sha512-2x8HWtFk0S99zqVQABU9wTpr8wPoaDHZUcAkoTKH+nL7kPv3WUI9cRi/Kk5Mz4xdqXSqTkKP7IWNoQQYCnDsTA==}
dev: true dev: true
/@types/normalize-package-data@2.4.1: /@types/normalize-package-data@2.4.1:
@@ -2633,7 +2633,7 @@ packages:
vite: ^4 vite: ^4
dependencies: dependencies:
'@swc/core': 1.3.74 '@swc/core': 1.3.74
vite: 4.4.8(@types/node@18.17.2) vite: 4.4.8(@types/node@18.17.3)
transitivePeerDependencies: transitivePeerDependencies:
- '@swc/helpers' - '@swc/helpers'
dev: true dev: true
@@ -2663,8 +2663,8 @@ packages:
- supports-color - supports-color
dev: false dev: false
/agentkeepalive@4.3.0: /agentkeepalive@4.4.0:
resolution: {integrity: sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==} resolution: {integrity: sha512-MysLRwkhsJTZKs+fsZIsTgBlr3IjQroonVJWMSqC9k3LS6f6ZifePl9fCqOtvc8p0CeYDSZVFvytdkwhOGaSZA==}
engines: {node: '>= 8.0.0'} engines: {node: '>= 8.0.0'}
dependencies: dependencies:
debug: 4.3.4 debug: 4.3.4
@@ -2931,7 +2931,7 @@ packages:
hasBin: true hasBin: true
dependencies: dependencies:
caniuse-lite: 1.0.30001519 caniuse-lite: 1.0.30001519
electron-to-chromium: 1.4.484 electron-to-chromium: 1.4.485
node-releases: 2.0.13 node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.10) update-browserslist-db: 1.0.11(browserslist@4.21.10)
@@ -3408,8 +3408,8 @@ packages:
/eastasianwidth@0.2.0: /eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
/electron-to-chromium@1.4.484: /electron-to-chromium@1.4.485:
resolution: {integrity: sha512-nO3ZEomTK2PO/3TUXgEx0A97xZTpKVf4p427lABHuCpT1IQ2N+njVh29DkQkCk6Q4m2wjU+faK4xAcfFndwjvw==} resolution: {integrity: sha512-1ndQ5IBNEnFirPwvyud69GHL+31FkE09gH/CJ6m3KCbkx3i0EVOrjwz4UNxRmN9H8OVHbC6vMRZGN1yCvjSs9w==}
/emoji-regex@8.0.0: /emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -3571,34 +3571,34 @@ packages:
'@esbuild/win32-x64': 0.17.19 '@esbuild/win32-x64': 0.17.19
dev: false dev: false
/esbuild@0.18.17: /esbuild@0.18.18:
resolution: {integrity: sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg==} resolution: {integrity: sha512-UckDPWvdVJLNT0npk5AMTpVwGRQhS76rWFLmHwEtgNvWlR9sgVV1eyc/oeBtM86q9s8ABBLMmm0CwNxhVemOiw==}
engines: {node: '>=12'} engines: {node: '>=12'}
hasBin: true hasBin: true
requiresBuild: true requiresBuild: true
optionalDependencies: optionalDependencies:
'@esbuild/android-arm': 0.18.17 '@esbuild/android-arm': 0.18.18
'@esbuild/android-arm64': 0.18.17 '@esbuild/android-arm64': 0.18.18
'@esbuild/android-x64': 0.18.17 '@esbuild/android-x64': 0.18.18
'@esbuild/darwin-arm64': 0.18.17 '@esbuild/darwin-arm64': 0.18.18
'@esbuild/darwin-x64': 0.18.17 '@esbuild/darwin-x64': 0.18.18
'@esbuild/freebsd-arm64': 0.18.17 '@esbuild/freebsd-arm64': 0.18.18
'@esbuild/freebsd-x64': 0.18.17 '@esbuild/freebsd-x64': 0.18.18
'@esbuild/linux-arm': 0.18.17 '@esbuild/linux-arm': 0.18.18
'@esbuild/linux-arm64': 0.18.17 '@esbuild/linux-arm64': 0.18.18
'@esbuild/linux-ia32': 0.18.17 '@esbuild/linux-ia32': 0.18.18
'@esbuild/linux-loong64': 0.18.17 '@esbuild/linux-loong64': 0.18.18
'@esbuild/linux-mips64el': 0.18.17 '@esbuild/linux-mips64el': 0.18.18
'@esbuild/linux-ppc64': 0.18.17 '@esbuild/linux-ppc64': 0.18.18
'@esbuild/linux-riscv64': 0.18.17 '@esbuild/linux-riscv64': 0.18.18
'@esbuild/linux-s390x': 0.18.17 '@esbuild/linux-s390x': 0.18.18
'@esbuild/linux-x64': 0.18.17 '@esbuild/linux-x64': 0.18.18
'@esbuild/netbsd-x64': 0.18.17 '@esbuild/netbsd-x64': 0.18.18
'@esbuild/openbsd-x64': 0.18.17 '@esbuild/openbsd-x64': 0.18.18
'@esbuild/sunos-x64': 0.18.17 '@esbuild/sunos-x64': 0.18.18
'@esbuild/win32-arm64': 0.18.17 '@esbuild/win32-arm64': 0.18.18
'@esbuild/win32-ia32': 0.18.17 '@esbuild/win32-ia32': 0.18.18
'@esbuild/win32-x64': 0.18.17 '@esbuild/win32-x64': 0.18.18
dev: true dev: true
/escalade@3.1.1: /escalade@3.1.1:
@@ -3640,17 +3640,17 @@ packages:
supports-hyperlinks: 2.3.0 supports-hyperlinks: 2.3.0
dev: false dev: false
/eslint-import-resolver-node@0.3.7: /eslint-import-resolver-node@0.3.8:
resolution: {integrity: sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==} resolution: {integrity: sha512-tEe+Pok22qIGaK3KoMP+N96GVDS66B/zreoVVmiavLvRUEmGRtvb4B8wO9jwnb8d2lvHtrkhZ7UD73dWBVnf/Q==}
dependencies: dependencies:
debug: 3.2.7 debug: 3.2.7
is-core-module: 2.12.1 is-core-module: 2.13.0
resolve: 1.22.3 resolve: 1.22.4
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: false dev: false
/eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.7)(eslint@8.46.0): /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.8)(eslint@8.46.0):
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
engines: {node: '>=4'} engines: {node: '>=4'}
peerDependencies: peerDependencies:
@@ -3674,7 +3674,7 @@ packages:
'@typescript-eslint/parser': 5.62.0(eslint@8.46.0)(typescript@4.9.5) '@typescript-eslint/parser': 5.62.0(eslint@8.46.0)(typescript@4.9.5)
debug: 3.2.7 debug: 3.2.7
eslint: 8.46.0 eslint: 8.46.0
eslint-import-resolver-node: 0.3.7 eslint-import-resolver-node: 0.3.8
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: false dev: false
@@ -3697,16 +3697,16 @@ packages:
debug: 3.2.7 debug: 3.2.7
doctrine: 2.1.0 doctrine: 2.1.0
eslint: 8.46.0 eslint: 8.46.0
eslint-import-resolver-node: 0.3.7 eslint-import-resolver-node: 0.3.8
eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.7)(eslint@8.46.0) eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.8)(eslint@8.46.0)
has: 1.0.3 has: 1.0.3
is-core-module: 2.12.1 is-core-module: 2.13.0
is-glob: 4.0.3 is-glob: 4.0.3
minimatch: 3.1.2 minimatch: 3.1.2
object.fromentries: 2.0.6 object.fromentries: 2.0.6
object.groupby: 1.0.0 object.groupby: 1.0.0
object.values: 1.1.6 object.values: 1.1.6
resolve: 1.22.3 resolve: 1.22.4
semver: 6.3.1 semver: 6.3.1
tsconfig-paths: 3.14.2 tsconfig-paths: 3.14.2
transitivePeerDependencies: transitivePeerDependencies:
@@ -4441,8 +4441,8 @@ packages:
resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
/is-core-module@2.12.1: /is-core-module@2.13.0:
resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==} resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==}
dependencies: dependencies:
has: 1.0.3 has: 1.0.3
@@ -4859,7 +4859,7 @@ packages:
resolution: {integrity: sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==} resolution: {integrity: sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
dependencies: dependencies:
agentkeepalive: 4.3.0 agentkeepalive: 4.4.0
cacache: 17.1.3 cacache: 17.1.3
http-cache-semantics: 4.1.1 http-cache-semantics: 4.1.1
http-proxy-agent: 5.0.0 http-proxy-agent: 5.0.0
@@ -5554,7 +5554,7 @@ packages:
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
dependencies: dependencies:
hosted-git-info: 2.8.9 hosted-git-info: 2.8.9
resolve: 1.22.2 resolve: 1.22.4
semver: 5.7.2 semver: 5.7.2
validate-npm-package-license: 3.0.4 validate-npm-package-license: 3.0.4
dev: false dev: false
@@ -5564,7 +5564,7 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dependencies: dependencies:
hosted-git-info: 4.1.0 hosted-git-info: 4.1.0
is-core-module: 2.12.1 is-core-module: 2.13.0
semver: 7.5.4 semver: 7.5.4
validate-npm-package-license: 3.0.4 validate-npm-package-license: 3.0.4
dev: false dev: false
@@ -5931,7 +5931,7 @@ packages:
postcss: 8.4.27 postcss: 8.4.27
postcss-value-parser: 4.2.0 postcss-value-parser: 4.2.0
read-cache: 1.0.0 read-cache: 1.0.0
resolve: 1.22.2 resolve: 1.22.4
dev: true dev: true
/postcss-js@4.0.1(postcss@8.4.27): /postcss-js@4.0.1(postcss@8.4.27):
@@ -6154,8 +6154,8 @@ packages:
w3c-keyname: 2.2.8 w3c-keyname: 2.2.8
dev: false dev: false
/prosemirror-markdown@1.11.1: /prosemirror-markdown@1.11.2:
resolution: {integrity: sha512-CLOieKoaSSEusKyYcXIj8v2qHGLW+tnuffci+8678Sen48NEFQE7M3o0Nx0gj9v63iVDj+yLibj2gCe8eb3jIw==} resolution: {integrity: sha512-Eu5g4WPiCdqDTGhdSsG9N6ZjACQRYrsAkrF9KYfdMaCmjIApH75aVncsWYOJvEk2i1B3i8jZppv3J/tnuHGiUQ==}
dependencies: dependencies:
markdown-it: 13.0.1 markdown-it: 13.0.1
prosemirror-model: 1.19.3 prosemirror-model: 1.19.3
@@ -6282,8 +6282,8 @@ packages:
resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==}
dev: false dev: false
/react-hook-form@7.45.2(react@18.2.0): /react-hook-form@7.45.4(react@18.2.0):
resolution: {integrity: sha512-9s45OdTaKN+4NSTbXVqeDITd/nwIg++nxJGL8+OD5uf1DxvhsXQ641kaYHk5K28cpIOTYm71O/fYk7rFaygb3A==} resolution: {integrity: sha512-HGDV1JOOBPZj10LB3+OZgfDBTn+IeEsNOKiq/cxbQAIbKaiJUe/KV8DBUzsx0Gx/7IG/orWqRRm736JwOfUSWQ==}
engines: {node: '>=12.22.0'} engines: {node: '>=12.22.0'}
peerDependencies: peerDependencies:
react: ^16.8.0 || ^17 || ^18 react: ^16.8.0 || ^17 || ^18
@@ -6552,28 +6552,19 @@ packages:
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'} engines: {node: '>=4'}
/resolve@1.22.2: /resolve@1.22.4:
resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} resolution: {integrity: sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==}
hasBin: true hasBin: true
dependencies: dependencies:
is-core-module: 2.12.1 is-core-module: 2.13.0
path-parse: 1.0.7 path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0 supports-preserve-symlinks-flag: 1.0.0
/resolve@1.22.3:
resolution: {integrity: sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw==}
hasBin: true
dependencies:
is-core-module: 2.12.1
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
dev: false
/resolve@2.0.0-next.4: /resolve@2.0.0-next.4:
resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==}
hasBin: true hasBin: true
dependencies: dependencies:
is-core-module: 2.12.1 is-core-module: 2.13.0
path-parse: 1.0.7 path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0 supports-preserve-symlinks-flag: 1.0.0
dev: true dev: true
@@ -6605,8 +6596,8 @@ packages:
dependencies: dependencies:
glob: 7.2.3 glob: 7.2.3
/rollup@3.27.1: /rollup@3.27.2:
resolution: {integrity: sha512-tXNDFwOkN6C2w5Blj1g6ForKeFw6c1mDu5jxoeDO3/pmYjgt+8yvIFjKzH5FQUq70OKZBkOt0zzv0THXL7vwzQ==} resolution: {integrity: sha512-YGwmHf7h2oUHkVBT248x0yt6vZkYQ3/rvE5iQuVBh3WO8GcJ6BNeOkpoX1yMHIiBm18EMLjBPIoUDkhgnyxGOQ==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'} engines: {node: '>=14.18.0', npm: '>=8.0.0'}
hasBin: true hasBin: true
optionalDependencies: optionalDependencies:
@@ -7011,7 +7002,7 @@ packages:
postcss-load-config: 4.0.1(postcss@8.4.27) postcss-load-config: 4.0.1(postcss@8.4.27)
postcss-nested: 6.0.1(postcss@8.4.27) postcss-nested: 6.0.1(postcss@8.4.27)
postcss-selector-parser: 6.0.13 postcss-selector-parser: 6.0.13
resolve: 1.22.2 resolve: 1.22.4
sucrase: 3.34.0 sucrase: 3.34.0
transitivePeerDependencies: transitivePeerDependencies:
- ts-node - ts-node
@@ -7474,7 +7465,7 @@ packages:
'@rollup/plugin-virtual': 3.0.1 '@rollup/plugin-virtual': 3.0.1
'@swc/core': 1.3.74 '@swc/core': 1.3.74
uuid: 9.0.0 uuid: 9.0.0
vite: 4.4.8(@types/node@18.17.2) vite: 4.4.8(@types/node@18.17.3)
transitivePeerDependencies: transitivePeerDependencies:
- '@swc/helpers' - '@swc/helpers'
- rollup - rollup
@@ -7491,13 +7482,13 @@ packages:
debug: 4.3.4 debug: 4.3.4
globrex: 0.1.2 globrex: 0.1.2
tsconfck: 2.1.2(typescript@4.9.5) tsconfck: 2.1.2(typescript@4.9.5)
vite: 4.4.8(@types/node@18.17.2) vite: 4.4.8(@types/node@18.17.3)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
- typescript - typescript
dev: true dev: true
/vite@4.4.8(@types/node@18.17.2): /vite@4.4.8(@types/node@18.17.3):
resolution: {integrity: sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==} resolution: {integrity: sha512-LONawOUUjxQridNWGQlNizfKH89qPigK36XhMI7COMGztz8KNY0JHim7/xDd71CZwGT4HtSRgI7Hy+RlhG0Gvg==}
engines: {node: ^14.18.0 || >=16.0.0} engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true hasBin: true
@@ -7525,10 +7516,10 @@ packages:
terser: terser:
optional: true optional: true
dependencies: dependencies:
'@types/node': 18.17.2 '@types/node': 18.17.3
esbuild: 0.18.17 esbuild: 0.18.18
postcss: 8.4.27 postcss: 8.4.27
rollup: 3.27.1 rollup: 3.27.2
optionalDependencies: optionalDependencies:
fsevents: 2.3.2 fsevents: 2.3.2
dev: true dev: true

52
src-tauri/Cargo.lock generated
View File

@@ -1437,7 +1437,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef033ed5e9bad94e55838ca0ca906db0e043f517adda0c8b79c7a8c66c93c1b5" checksum = "ef033ed5e9bad94e55838ca0ca906db0e043f517adda0c8b79c7a8c66c93c1b5"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"rustix 0.38.6", "rustix 0.38.7",
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
@@ -1462,13 +1462,13 @@ dependencies = [
[[package]] [[package]]
name = "filetime" name = "filetime"
version = "0.2.21" version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cbc844cecaee9d4443931972e1289c8ff485cb4cc2767cb03ca139ed6885153" checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"libc", "libc",
"redox_syscall 0.2.16", "redox_syscall 0.3.5",
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
@@ -1942,9 +1942,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]] [[package]]
name = "globset" name = "globset"
version = "0.4.12" version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aca8bbd8e0707c1887a8bbb7e6b40e228f251ff5d62c8220a4a7a53c73aff006" checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"bstr", "bstr",
@@ -2292,6 +2292,7 @@ checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
dependencies = [ dependencies = [
"equivalent", "equivalent",
"hashbrown 0.14.0", "hashbrown 0.14.0",
"serde",
] ]
[[package]] [[package]]
@@ -2398,7 +2399,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
dependencies = [ dependencies = [
"hermit-abi", "hermit-abi",
"rustix 0.38.6", "rustix 0.38.7",
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
@@ -3707,13 +3708,13 @@ dependencies = [
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.9.1" version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2eae68fc220f7cf2532e4494aded17545fce192d59cd996e0fe7887f4ceb575" checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"memchr", "memchr",
"regex-automata 0.3.4", "regex-automata 0.3.6",
"regex-syntax 0.7.4", "regex-syntax 0.7.4",
] ]
@@ -3728,9 +3729,9 @@ dependencies = [
[[package]] [[package]]
name = "regex-automata" name = "regex-automata"
version = "0.3.4" version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7b6d6190b7594385f61bd3911cd1be99dfddcfc365a4160cc2ab5bff4aed294" checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick",
"memchr", "memchr",
@@ -3903,9 +3904,9 @@ dependencies = [
[[package]] [[package]]
name = "rustix" name = "rustix"
version = "0.38.6" version = "0.38.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ee020b1716f0a80e2ace9b03441a749e402e86712f15f16fe8a8f75afac732f" checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399"
dependencies = [ dependencies = [
"bitflags 2.3.3", "bitflags 2.3.3",
"errno", "errno",
@@ -4048,18 +4049,18 @@ dependencies = [
[[package]] [[package]]
name = "serde" name = "serde"
version = "1.0.180" version = "1.0.181"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ea67f183f058fe88a4e3ec6e2788e003840893b91bac4559cabedd00863b3ed" checksum = "6d3e73c93c3240c0bda063c239298e633114c69a888c3e37ca8bb33f343e9890"
dependencies = [ dependencies = [
"serde_derive", "serde_derive",
] ]
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.180" version = "1.0.181"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24e744d7782b686ab3b73267ef05697159cc0e5abbed3f47f9933165e5219036" checksum = "be02f6cb0cd3a5ec20bbcfbcbd749f57daddb1a0882dc2e46a6c236c90b977ed"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@@ -4111,14 +4112,15 @@ dependencies = [
[[package]] [[package]]
name = "serde_with" name = "serde_with"
version = "3.1.0" version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21e47d95bc83ed33b2ecf84f4187ad1ab9685d18ff28db000c99deac8ce180e3" checksum = "1402f54f9a3b9e2efe71c1cea24e648acce55887983553eeb858cf3115acfd49"
dependencies = [ dependencies = [
"base64 0.21.2", "base64 0.21.2",
"chrono", "chrono",
"hex", "hex",
"indexmap 1.9.3", "indexmap 1.9.3",
"indexmap 2.0.0",
"serde", "serde",
"serde_json", "serde_json",
"serde_with_macros", "serde_with_macros",
@@ -4127,9 +4129,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_with_macros" name = "serde_with_macros"
version = "3.1.0" version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea3cee93715c2e266b9338b7544da68a9f24e227722ba482bd1c024367c77c65" checksum = "9197f1ad0e3c173a0222d3c4404fb04c3afe87e962bcb327af73e8301fa203c7"
dependencies = [ dependencies = [
"darling", "darling",
"proc-macro2", "proc-macro2",
@@ -5308,7 +5310,7 @@ dependencies = [
"cfg-if", "cfg-if",
"fastrand 2.0.0", "fastrand 2.0.0",
"redox_syscall 0.3.5", "redox_syscall 0.3.5",
"rustix 0.38.6", "rustix 0.38.7",
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
@@ -6308,9 +6310,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
[[package]] [[package]]
name = "winnow" name = "winnow"
version = "0.5.3" version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f46aab759304e4d7b2075a9aecba26228bb073ee8c50db796b2c72c676b5d807" checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64"
dependencies = [ dependencies = [
"memchr", "memchr",
] ]

View File

@@ -37,7 +37,8 @@ import './index.css';
const appLoader = async () => { const appLoader = async () => {
const account = await getActiveAccount(); const account = await getActiveAccount();
const privkey = sessionStorage.getItem('stronghold'); const stronghold = sessionStorage.getItem('stronghold');
const privkey = JSON.parse(stronghold).state.privkey || null;
if (!account) { if (!account) {
return redirect('/auth/welcome'); return redirect('/auth/welcome');

View File

@@ -1,3 +1,4 @@
import { useQueryClient } from '@tanstack/react-query';
import { useState } from 'react'; import { useState } from 'react';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';
@@ -13,6 +14,7 @@ import { useNostr } from '@utils/hooks/useNostr';
export function ImportStep3Screen() { export function ImportStep3Screen() {
const navigate = useNavigate(); const navigate = useNavigate();
const queryClient = useQueryClient();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
@@ -29,6 +31,8 @@ export function ImportStep3Screen() {
await fetchChats(); await fetchChats();
await updateLastLogin(now); await updateLastLogin(now);
queryClient.invalidateQueries(['currentAccount']);
navigate('/', { replace: true }); navigate('/', { replace: true });
} catch (e) { } catch (e) {
console.log('error: ', e); console.log('error: ', e);

View File

@@ -23,7 +23,7 @@ export function ChatsList() {
const renderItem = useCallback( const renderItem = useCallback(
(item: Chats) => { (item: Chats) => {
if (account.pubkey !== item.sender_pubkey) { if (account?.pubkey !== item.sender_pubkey) {
return <ChatsListItem key={item.sender_pubkey} data={item} />; return <ChatsListItem key={item.sender_pubkey} data={item} />;
} }
}, },

View File

@@ -34,6 +34,7 @@ export function FeedBlock({ params }: { params: Block }) {
}); });
const itemsVirtualizer = rowVirtualizer.getVirtualItems(); const itemsVirtualizer = rowVirtualizer.getVirtualItems();
const totalSize = rowVirtualizer.getTotalSize();
useEffect(() => { useEffect(() => {
const [lastItem] = [...rowVirtualizer.getVirtualItems()].reverse(); const [lastItem] = [...rowVirtualizer.getVirtualItems()].reverse();
@@ -113,12 +114,9 @@ export function FeedBlock({ params }: { params: Block }) {
); );
return ( return (
<div <div className="relative w-[400px] shrink-0 bg-white/10">
ref={parentRef}
className="scrollbar-hide relative h-full w-[400px] shrink-0 overflow-y-auto bg-white/10 pb-20"
>
<TitleBar id={params.id} title={params.title} /> <TitleBar id={params.id} title={params.title} />
<div className="h-full"> <div ref={parentRef} className="scrollbar-hide h-full overflow-y-auto pb-20">
{status === 'loading' ? ( {status === 'loading' ? (
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="rounded-xl bg-white/10 px-3 py-3"> <div className="rounded-xl bg-white/10 px-3 py-3">
@@ -139,7 +137,7 @@ export function FeedBlock({ params }: { params: Block }) {
<div <div
className="relative w-full" className="relative w-full"
style={{ style={{
height: `${rowVirtualizer.getTotalSize()}px`, height: `${totalSize}px`,
}} }}
> >
<div <div

View File

@@ -16,7 +16,7 @@ export function HashtagBlock({ params }: { params: Block }) {
const events = (await fetcher.fetchAllEvents( const events = (await fetcher.fetchAllEvents(
relayUrls, relayUrls,
{ kinds: [1], '#t': [params.content] }, { kinds: [1], '#t': [params.content] },
{ since: nHoursAgo(48) } { since: nHoursAgo(24) }
)) as unknown as LumeEvent[]; )) as unknown as LumeEvent[];
return events; return events;
}); });
@@ -29,17 +29,15 @@ export function HashtagBlock({ params }: { params: Block }) {
}); });
const itemsVirtualizer = rowVirtualizer.getVirtualItems(); const itemsVirtualizer = rowVirtualizer.getVirtualItems();
const totalSize = rowVirtualizer.getTotalSize();
return ( return (
<div <div className="relative w-[400px] shrink-0 bg-white/10">
ref={parentRef} <TitleBar id={params.id} title={params.title + ' in 24 hours ago'} />
className="scrollbar-hide relative h-full w-[400px] shrink-0 overflow-y-auto bg-white/10 pb-20" <div ref={parentRef} className="scrollbar-hide h-full overflow-y-auto pb-20">
>
<TitleBar id={params.id} title={params.title + ' in 48 hours ago'} />
<div className="h-full">
{status === 'loading' ? ( {status === 'loading' ? (
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="rounded-xl bg-white/10 px-3 pt-3"> <div className="rounded-xl bg-white/10 px-3 py-3">
<NoteSkeleton /> <NoteSkeleton />
</div> </div>
</div> </div>
@@ -47,8 +45,8 @@ export function HashtagBlock({ params }: { params: Block }) {
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="rounded-xl bg-white/10 px-3 py-6"> <div className="rounded-xl bg-white/10 px-3 py-6">
<div className="flex flex-col items-center gap-4"> <div className="flex flex-col items-center gap-4">
<p className="text-center text-sm text-white"> <p className="text-center text-sm font-medium text-white">
No new posts about this hashtag in 48 hours ago No new posts about this hashtag in 24 hours ago
</p> </p>
</div> </div>
</div> </div>
@@ -57,7 +55,7 @@ export function HashtagBlock({ params }: { params: Block }) {
<div <div
className="relative w-full" className="relative w-full"
style={{ style={{
height: `${rowVirtualizer.getTotalSize()}px`, height: `${totalSize}px`,
}} }}
> >
<div <div

View File

@@ -1,13 +1,13 @@
import { CancelIcon } from '@shared/icons'; import { CancelIcon } from '@shared/icons';
import { Image } from '@shared/image'; import { Image } from '@shared/image';
import { useBlocks } from '@stores/blocks';
import { DEFAULT_AVATAR } from '@stores/constants'; import { DEFAULT_AVATAR } from '@stores/constants';
import { useBlock } from '@utils/hooks/useBlock';
import { Block } from '@utils/types'; import { Block } from '@utils/types';
export function ImageBlock({ params }: { params: Block }) { export function ImageBlock({ params }: { params: Block }) {
const { remove } = useBlock(); const removeBlock = useBlocks((state) => state.removeBlock);
return ( return (
<div className="flex h-full w-[400px] shrink-0 flex-col justify-between"> <div className="flex h-full w-[400px] shrink-0 flex-col justify-between">
@@ -17,7 +17,7 @@ export function ImageBlock({ params }: { params: Block }) {
<h3 className="font-medium text-white drop-shadow-lg">{params.title}</h3> <h3 className="font-medium text-white drop-shadow-lg">{params.title}</h3>
<button <button
type="button" type="button"
onClick={() => remove.mutate(params.id)} onClick={() => removeBlock(params.id)}
className="inline-flex h-7 w-7 items-center justify-center rounded-md bg-white/30 backdrop-blur-lg" className="inline-flex h-7 w-7 items-center justify-center rounded-md bg-white/30 backdrop-blur-lg"
> >
<CancelIcon width={16} height={16} className="text-white" /> <CancelIcon width={16} height={16} className="text-white" />

View File

@@ -126,12 +126,9 @@ export function NetworkBlock() {
); );
return ( return (
<div <div className="relative w-[400px] shrink-0 bg-white/10">
ref={parentRef}
className="scrollbar-hide relative h-full w-[400px] shrink-0 overflow-y-auto bg-white/10 pb-20"
>
<TitleBar title="Network" /> <TitleBar title="Network" />
<div className="h-full"> <div ref={parentRef} className="scrollbar-hide h-full overflow-y-auto pb-20">
{status === 'loading' ? ( {status === 'loading' ? (
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="rounded-xl bg-white/10 px-3 py-3"> <div className="rounded-xl bg-white/10 px-3 py-3">

View File

@@ -46,7 +46,7 @@ export function ThreadBlock({ params }: { params: Block }) {
</div> </div>
)} )}
<div className="px-3"> <div className="px-3">
<NoteReplyForm id={params.content} pubkey={account.pubkey} /> {account && <NoteReplyForm id={params.content} pubkey={account.pubkey} />}
<RepliesList id={params.content} /> <RepliesList id={params.content} />
</div> </div>
</div> </div>

View File

@@ -35,12 +35,9 @@ export function UserBlock({ params }: { params: Block }) {
const itemsVirtualizer = rowVirtualizer.getVirtualItems(); const itemsVirtualizer = rowVirtualizer.getVirtualItems();
return ( return (
<div <div className="relative w-[400px] shrink-0 bg-white/10">
ref={parentRef}
className="scrollbar-hide h-full w-[400px] shrink-0 overflow-y-auto bg-white/10 pb-20"
>
<TitleBar id={params.id} title={params.title} /> <TitleBar id={params.id} title={params.title} />
<div className="h-full"> <div ref={parentRef} className="scrollbar-hide h-full overflow-y-auto pb-20">
<div className="px-3 pt-1.5"> <div className="px-3 pt-1.5">
<UserProfile pubkey={params.content} /> <UserProfile pubkey={params.content} />
</div> </div>

View File

@@ -1,5 +1,4 @@
import { useQuery } from '@tanstack/react-query'; import { useCallback, useEffect } from 'react';
import { useCallback } from 'react';
import { FeedBlock } from '@app/space/components/blocks/feed'; import { FeedBlock } from '@app/space/components/blocks/feed';
import { HashtagBlock } from '@app/space/components/blocks/hashtag'; import { HashtagBlock } from '@app/space/components/blocks/hashtag';
@@ -11,25 +10,14 @@ import { FeedModal } from '@app/space/components/modals/feed';
import { HashtagModal } from '@app/space/components/modals/hashtag'; import { HashtagModal } from '@app/space/components/modals/hashtag';
import { ImageModal } from '@app/space/components/modals/image'; import { ImageModal } from '@app/space/components/modals/image';
import { getBlocks } from '@libs/storage';
import { LoaderIcon } from '@shared/icons'; import { LoaderIcon } from '@shared/icons';
import { useBlocks } from '@stores/blocks';
import { Block } from '@utils/types'; import { Block } from '@utils/types';
export function SpaceScreen() { export function SpaceScreen() {
const { status, data: blocks } = useQuery( const [blocks, fetchBlocks] = useBlocks((state) => [state.blocks, state.fetchBlocks]);
['blocks'],
async () => {
return await getBlocks();
},
{
staleTime: Infinity,
refetchOnMount: false,
refetchOnReconnect: false,
refetchOnWindowFocus: false,
}
);
const renderBlock = useCallback( const renderBlock = useCallback(
(block: Block) => { (block: Block) => {
@@ -51,10 +39,14 @@ export function SpaceScreen() {
[blocks] [blocks]
); );
useEffect(() => {
fetchBlocks();
}, [fetchBlocks]);
return ( return (
<div className="scrollbar-hide flex h-full w-full flex-nowrap divide-x divide-white/5 overflow-x-auto overflow-y-hidden"> <div className="scrollbar-hide flex h-full w-full flex-nowrap divide-x divide-white/5 overflow-x-auto overflow-y-hidden">
<NetworkBlock /> <NetworkBlock />
{status === 'loading' ? ( {!blocks ? (
<div className="flex w-[350px] shrink-0 flex-col"> <div className="flex w-[350px] shrink-0 flex-col">
<div className="flex w-full flex-1 items-center justify-center p-3"> <div className="flex w-full flex-1 items-center justify-center p-3">
<LoaderIcon className="h-5 w-5 animate-spin text-white/10" /> <LoaderIcon className="h-5 w-5 animate-spin text-white/10" />

View File

@@ -52,7 +52,7 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
return ( return (
<> <>
<div className="h-56 w-full bg-zinc-100"> <div className="h-56 w-full bg-white">
<Image <Image
src={user?.banner} src={user?.banner}
fallback="https://void.cat/d/QY1myro5tkHVs2nY7dy74b.jpg" fallback="https://void.cat/d/QY1myro5tkHVs2nY7dy74b.jpg"
@@ -65,7 +65,7 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
src={user?.picture || user?.image} src={user?.picture || user?.image}
fallback={DEFAULT_AVATAR} fallback={DEFAULT_AVATAR}
alt={pubkey} alt={pubkey}
className="h-14 w-14 rounded-md ring-2 ring-black" className="h-14 w-14 rounded-md ring-2 ring-white/50"
/> />
<div className="mt-2 flex flex-1 flex-col gap-4"> <div className="mt-2 flex flex-1 flex-col gap-4">
<div className="flex items-center gap-16"> <div className="flex items-center gap-16">
@@ -81,7 +81,7 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
{status === 'loading' ? ( {status === 'loading' ? (
<button <button
type="button" type="button"
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500" className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-white/10 text-sm font-medium hover:bg-fuchsia-500"
> >
Loading... Loading...
</button> </button>
@@ -89,7 +89,7 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
<button <button
type="button" type="button"
onClick={() => unfollowUser(pubkey)} onClick={() => unfollowUser(pubkey)}
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500" className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-white/10 text-sm font-medium hover:bg-fuchsia-500"
> >
Unfollow Unfollow
</button> </button>
@@ -97,18 +97,18 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
<button <button
type="button" type="button"
onClick={() => followUser(pubkey)} onClick={() => followUser(pubkey)}
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500" className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-white/10 text-sm font-medium hover:bg-fuchsia-500"
> >
Follow Follow
</button> </button>
)} )}
<Link <Link
to={`/chats/${pubkey}`} to={`/chats/${pubkey}`}
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500" className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-white/10 text-sm font-medium hover:bg-fuchsia-500"
> >
Message Message
</Link> </Link>
<span className="mx-2 inline-flex h-4 w-px bg-zinc-900" /> <span className="mx-2 inline-flex h-4 w-px bg-white/10" />
{account && account.pubkey === pubkey && <EditProfileModal />} {account && account.pubkey === pubkey && <EditProfileModal />}
</div> </div>
</div> </div>

View File

@@ -36,30 +36,30 @@ export function UserScreen() {
const itemsVirtualizer = rowVirtualizer.getVirtualItems(); const itemsVirtualizer = rowVirtualizer.getVirtualItems();
return ( return (
<div ref={parentRef} className="scrollbar-hide h-full w-full overflow-y-auto"> <div
<div ref={parentRef}
data-tauri-drag-region className="scrollbar-hide relative h-full w-full overflow-y-auto bg-white/10"
className="flex h-11 w-full items-center border-b border-zinc-900 px-3" >
/> <div data-tauri-drag-region className="absolute left-0 top-0 h-11 w-full" />
<UserProfile pubkey={pubkey} /> <UserProfile pubkey={pubkey} />
<div className="mt-8 h-full w-full border-t border-zinc-900"> <div className="mt-8 h-full w-full border-t border-white/5 px-1.5">
<div className="flex flex-col justify-start gap-1 px-3 pt-4 text-start"> <div className="flex flex-col justify-start gap-1 px-3 pt-4 text-start">
<p className="text-lg font-semibold leading-none text-zinc-200">Latest posts</p> <p className="text-lg font-semibold leading-none text-white">Latest posts</p>
<span className="text-sm leading-none text-white/50">48 hours ago</span> <span className="text-sm leading-none text-white/50">48 hours ago</span>
</div> </div>
<div className="flex h-full max-w-[400px] flex-col justify-between gap-1.5 pb-4 pt-1.5"> <div className="flex h-full max-w-[400px] flex-col justify-between gap-1.5 pb-4 pt-1.5">
{status === 'loading' ? ( {status === 'loading' ? (
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="shadow-input rounded-md bg-zinc-900 px-3 py-3 shadow-black/20"> <div className="shadow-input rounded-xl bg-white/10">
<NoteSkeleton /> <NoteSkeleton />
</div> </div>
</div> </div>
) : itemsVirtualizer.length === 0 ? ( ) : itemsVirtualizer.length === 0 ? (
<div className="px-3 py-1.5"> <div className="px-3 py-1.5">
<div className="rounded-xl border-t border-zinc-800/50 bg-zinc-900 px-3 py-6"> <div className="rounded-xl bg-white/10 px-3 py-6">
<div className="flex flex-col items-center gap-4"> <div className="flex flex-col items-center gap-4">
<p className="text-center text-sm text-zinc-300"> <p className="text-center text-sm font-medium text-zinc-300">
No new posts about this hashtag in 48 hours ago No new posts in 48 hours ago
</p> </p>
</div> </div>
</div> </div>

View File

@@ -47,8 +47,11 @@ export default class TauriAdapter implements NDKCacheAdapter {
Promise.all([ Promise.all([
this.store.set(event.id, JSON.stringify(nostrEvent)), this.store.set(event.id, JSON.stringify(nostrEvent)),
this.store.set(key, event.id), this.store.set(key, event.id),
this.store.save(),
]).then(() => resolve()); ]).then(() => resolve());
}); });
} }
public save() {
return this.store.save();
}
} }

View File

@@ -1,5 +1,5 @@
// source: https://github.com/nostr-dev-kit/ndk-react/ // source: https://github.com/nostr-dev-kit/ndk-react/
import NDK from '@nostr-dev-kit/ndk'; import NDK, { NDKCacheAdapter } from '@nostr-dev-kit/ndk';
import { ndkAdapter } from '@nostr-fetch/adapter-ndk'; import { ndkAdapter } from '@nostr-fetch/adapter-ndk';
import { NostrFetcher, normalizeRelayUrlSet } from 'nostr-fetch'; import { NostrFetcher, normalizeRelayUrlSet } from 'nostr-fetch';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
@@ -16,11 +16,15 @@ export const NDKInstance = () => {
const [fetcher, setFetcher] = useState<NostrFetcher>(undefined); const [fetcher, setFetcher] = useState<NostrFetcher>(undefined);
useEffect(() => { useEffect(() => {
loadNdk(relays);
}, []);
async function loadNdk(explicitRelayUrls: string[]) {
const cacheAdapter = new TauriAdapter(); const cacheAdapter = new TauriAdapter();
loadNdk(relays, cacheAdapter);
return () => {
cacheAdapter.save();
};
}, [relays]);
async function loadNdk(explicitRelayUrls: string[], cacheAdapter: NDKCacheAdapter) {
const ndkInstance = new NDK({ explicitRelayUrls, cacheAdapter }); const ndkInstance = new NDK({ explicitRelayUrls, cacheAdapter });
try { try {

View File

@@ -24,8 +24,12 @@ export async function getActiveAccount() {
'SELECT * FROM accounts WHERE is_active = 1;' 'SELECT * FROM accounts WHERE is_active = 1;'
); );
if (result.length > 0) { if (result.length > 0) {
result[0].follows = destr(result[0].follows); result[0]['follows'] = result[0].follows
result[0].network = destr(result[0].network); ? JSON.parse(result[0].follows as unknown as string)
: [];
result[0]['network'] = result[0].network
? JSON.parse(result[0].network as unknown as string)
: [];
return result[0]; return result[0];
} else { } else {
return null; return null;
@@ -423,10 +427,19 @@ export async function createBlock(
) { ) {
const db = await connect(); const db = await connect();
const activeAccount = await getActiveAccount(); const activeAccount = await getActiveAccount();
return await db.execute( const insert = await db.execute(
'INSERT OR IGNORE INTO blocks (account_id, kind, title, content) VALUES (?, ?, ?, ?);', 'INSERT OR IGNORE INTO blocks (account_id, kind, title, content) VALUES (?, ?, ?, ?);',
[activeAccount.id, kind, title, content] [activeAccount.id, kind, title, content]
); );
if (insert) {
const record: Block = await db.select(
'SELECT * FROM blocks ORDER BY id DESC LIMIT 1;'
);
return record[0];
} else {
return null;
}
} }
// remove block // remove block

View File

@@ -146,7 +146,7 @@ export function EditProfileModal() {
<button <button
type="button" type="button"
onClick={() => openModal()} onClick={() => openModal()}
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500" className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-white/10 text-sm font-medium hover:bg-fuchsia-500"
> >
Edit profile Edit profile
</button> </button>

View File

@@ -7,10 +7,10 @@ import { NoteReply } from '@shared/notes/actions/reply';
import { NoteRepost } from '@shared/notes/actions/repost'; import { NoteRepost } from '@shared/notes/actions/repost';
import { NoteZap } from '@shared/notes/actions/zap'; import { NoteZap } from '@shared/notes/actions/zap';
import { useBlocks } from '@stores/blocks';
import { BLOCK_KINDS } from '@stores/constants'; import { BLOCK_KINDS } from '@stores/constants';
import { useAccount } from '@utils/hooks/useAccount'; import { useAccount } from '@utils/hooks/useAccount';
import { useBlock } from '@utils/hooks/useBlock';
export function NoteActions({ export function NoteActions({
id, id,
@@ -23,8 +23,8 @@ export function NoteActions({
noOpenThread?: boolean; noOpenThread?: boolean;
root?: string; root?: string;
}) { }) {
const { add } = useBlock();
const { account } = useAccount(); const { account } = useAccount();
const setBlock = useBlocks((state) => state.setBlock);
return ( return (
<Tooltip.Provider> <Tooltip.Provider>
@@ -43,7 +43,7 @@ export function NoteActions({
<button <button
type="button" type="button"
onClick={() => onClick={() =>
add.mutate({ setBlock({
kind: BLOCK_KINDS.thread, kind: BLOCK_KINDS.thread,
title: 'Thread', title: 'Thread',
content: id, content: id,

View File

@@ -1,15 +1,14 @@
import { useBlocks } from '@stores/blocks';
import { BLOCK_KINDS } from '@stores/constants'; import { BLOCK_KINDS } from '@stores/constants';
import { useBlock } from '@utils/hooks/useBlock';
export function Hashtag({ tag }: { tag: string }) { export function Hashtag({ tag }: { tag: string }) {
const { add } = useBlock(); const setBlock = useBlocks((state) => state.setBlock);
return ( return (
<button <button
type="button" type="button"
onClick={() => onClick={() =>
add.mutate({ setBlock({
kind: BLOCK_KINDS.hashtag, kind: BLOCK_KINDS.hashtag,
title: tag, title: tag,
content: tag.replace('#', ''), content: tag.replace('#', ''),

View File

@@ -13,7 +13,7 @@ import { LumeEvent } from '@utils/types';
export function Repost({ event }: { event: LumeEvent }) { export function Repost({ event }: { event: LumeEvent }) {
const repostID = getRepostID(event.tags); const repostID = getRepostID(event.tags);
const { status, data } = useEvent(repostID, event.content); const { status, data } = useEvent(repostID, event.content as unknown as string);
if (status === 'loading') { if (status === 'loading') {
return ( return (
@@ -34,7 +34,7 @@ export function Repost({ event }: { event: LumeEvent }) {
return ( return (
<div className="h-min w-full px-3 py-1.5"> <div className="h-min w-full px-3 py-1.5">
<div className="relative overflow-hidden rounded-xl bg-white/10 px-3 pt-3"> <div className="relative overflow-hidden rounded-xl bg-white/10 px-3 pt-3">
<div className="flex flex-col"> <div className="relative flex flex-col">
<div className="isolate flex flex-col -space-y-4 overflow-hidden"> <div className="isolate flex flex-col -space-y-4 overflow-hidden">
<RepostUser pubkey={event.pubkey} /> <RepostUser pubkey={event.pubkey} />
<User pubkey={data.pubkey} time={data.created_at} isRepost={true} /> <User pubkey={data.pubkey} time={data.created_at} isRepost={true} />

View File

@@ -8,7 +8,7 @@ export function SubNote({ id, root }: { id: string; root?: string }) {
if (status === 'loading') { if (status === 'loading') {
return ( return (
<div className="relative mb-5 overflow-hidden rounded-xl bg-white/10 py-3"> <div className="relative mb-5 overflow-hidden rounded-xl bg-white/10 px-3 py-3">
<NoteSkeleton /> <NoteSkeleton />
</div> </div>
); );

View File

@@ -5,19 +5,19 @@ import remarkGfm from 'remark-gfm';
import { MentionUser, NoteSkeleton } from '@shared/notes'; import { MentionUser, NoteSkeleton } from '@shared/notes';
import { User } from '@shared/user'; import { User } from '@shared/user';
import { useBlocks } from '@stores/blocks';
import { BLOCK_KINDS } from '@stores/constants'; import { BLOCK_KINDS } from '@stores/constants';
import { useBlock } from '@utils/hooks/useBlock';
import { useEvent } from '@utils/hooks/useEvent'; import { useEvent } from '@utils/hooks/useEvent';
export const MentionNote = memo(function MentionNote({ id }: { id: string }) { export const MentionNote = memo(function MentionNote({ id }: { id: string }) {
const { add } = useBlock();
const { status, data } = useEvent(id); const { status, data } = useEvent(id);
const setBlock = useBlocks((state) => state.setBlock);
const openThread = (event, thread: string) => { const openThread = (event, thread: string) => {
const selection = window.getSelection(); const selection = window.getSelection();
if (selection.toString().length === 0) { if (selection.toString().length === 0) {
add.mutate({ kind: BLOCK_KINDS.thread, title: 'Thread', content: thread }); setBlock({ kind: BLOCK_KINDS.thread, title: 'Thread', content: thread });
} else { } else {
event.stopPropagation(); event.stopPropagation();
} }

View File

@@ -1,18 +1,18 @@
import { useBlocks } from '@stores/blocks';
import { BLOCK_KINDS } from '@stores/constants'; import { BLOCK_KINDS } from '@stores/constants';
import { useBlock } from '@utils/hooks/useBlock';
import { useProfile } from '@utils/hooks/useProfile'; import { useProfile } from '@utils/hooks/useProfile';
import { displayNpub } from '@utils/shortenKey'; import { displayNpub } from '@utils/shortenKey';
export function MentionUser({ pubkey }: { pubkey: string }) { export function MentionUser({ pubkey }: { pubkey: string }) {
const { add } = useBlock();
const { user } = useProfile(pubkey); const { user } = useProfile(pubkey);
const setBlock = useBlocks((state) => state.setBlock);
return ( return (
<button <button
type="button" type="button"
onClick={() => onClick={() =>
add.mutate({ setBlock({
kind: BLOCK_KINDS.user, kind: BLOCK_KINDS.user,
title: user?.nip05 || user?.name || user?.displayNam, title: user?.nip05 || user?.name || user?.displayNam,
content: pubkey, content: pubkey,

View File

@@ -8,13 +8,14 @@ import { createReplyNote } from '@libs/storage';
import { LoaderIcon } from '@shared/icons'; import { LoaderIcon } from '@shared/icons';
import { MiniUser } from '@shared/notes/users/mini'; import { MiniUser } from '@shared/notes/users/mini';
import { useBlocks } from '@stores/blocks';
import { BLOCK_KINDS } from '@stores/constants'; import { BLOCK_KINDS } from '@stores/constants';
import { useBlock } from '@utils/hooks/useBlock';
import { compactNumber } from '@utils/number'; import { compactNumber } from '@utils/number';
export function NoteMetadata({ id }: { id: string }) { export function NoteMetadata({ id }: { id: string }) {
const { add } = useBlock(); const setBlock = useBlocks((state) => state.setBlock);
const { ndk } = useNDK(); const { ndk } = useNDK();
const { status, data } = useQuery( const { status, data } = useQuery(
['note-metadata', id], ['note-metadata', id],
@@ -95,7 +96,7 @@ export function NoteMetadata({ id }: { id: string }) {
<button <button
type="button" type="button"
onClick={() => onClick={() =>
add.mutate({ kind: BLOCK_KINDS.thread, title: 'Thread', content: id }) setBlock({ kind: BLOCK_KINDS.thread, title: 'Thread', content: id })
} }
className="text-white/50" className="text-white/50"
> >

View File

@@ -1,9 +1,9 @@
import { CancelIcon } from '@shared/icons'; import { CancelIcon } from '@shared/icons';
import { useBlock } from '@utils/hooks/useBlock'; import { useBlocks } from '@stores/blocks';
export function TitleBar({ id, title }: { id?: string; title: string }) { export function TitleBar({ id, title }: { id?: string; title: string }) {
const { remove } = useBlock(); const removeBlock = useBlocks((state) => state.removeBlock);
return ( return (
<div <div
@@ -15,7 +15,7 @@ export function TitleBar({ id, title }: { id?: string; title: string }) {
{id ? ( {id ? (
<button <button
type="button" type="button"
onClick={() => remove.mutate(id)} onClick={() => removeBlock(id)}
className="inline-flex h-6 w-6 shrink translate-y-8 transform items-center justify-center rounded transition-transform duration-150 ease-in-out hover:bg-white/10 group-hover:translate-y-0" className="inline-flex h-6 w-6 shrink translate-y-8 transform items-center justify-center rounded transition-transform duration-150 ease-in-out hover:bg-white/10 group-hover:translate-y-0"
> >
<CancelIcon className="h-3 w-3 text-white" /> <CancelIcon className="h-3 w-3 text-white" />

View File

@@ -52,7 +52,7 @@ export function User({
<Popover.Root> <Popover.Root>
<div <div
className={twMerge( className={twMerge(
'relative flex', 'relative z-10 flex',
size === 'small' ? 'items-center gap-2' : 'items-start gap-3' size === 'small' ? 'items-center gap-2' : 'items-start gap-3'
)} )}
> >

37
src/stores/blocks.tsx Normal file
View File

@@ -0,0 +1,37 @@
import { create } from 'zustand';
import { createJSONStorage, persist } from 'zustand/middleware';
import { createBlock, getBlocks, removeBlock } from '@libs/storage';
import { Block } from '@utils/types';
interface BlockState {
blocks: null | Array<Block>;
fetchBlocks: () => void;
setBlock: ({ kind, title, content }: Block) => void;
removeBlock: (id: string) => void;
}
export const useBlocks = create<BlockState>()(
persist(
(set) => ({
blocks: null,
fetchBlocks: async () => {
const blocks = await getBlocks();
set({ blocks: blocks });
},
setBlock: async ({ kind, title, content }: Block) => {
const block: Block = await createBlock(kind, title, content);
set((state) => ({ blocks: [...state.blocks, block] }));
},
removeBlock: async (id: string) => {
await removeBlock(id);
set((state) => ({ blocks: state.blocks.filter((block) => block.id !== id) }));
},
}),
{
name: 'blocks',
storage: createJSONStorage(() => localStorage),
}
)
);

View File

@@ -20,7 +20,7 @@ export function useAccount() {
staleTime: Infinity, staleTime: Infinity,
refetchOnMount: false, refetchOnMount: false,
refetchOnWindowFocus: false, refetchOnWindowFocus: false,
refetchOnReconnect: true, refetchOnReconnect: false,
} }
); );

View File

@@ -1,33 +0,0 @@
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { createBlock, removeBlock } from '@libs/storage';
interface BlockData {
kind: number;
title: string;
content: string;
}
export function useBlock() {
const queryClient = useQueryClient();
const add = useMutation({
mutationFn: (data: BlockData) => {
return createBlock(data.kind, data.title, data.content);
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['blocks'] });
},
});
const remove = useMutation({
mutationFn: (id: string) => {
return removeBlock(id);
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['blocks'] });
},
});
return { add, remove };
}

View File

@@ -17,6 +17,7 @@ export function useEvent(id: string, fallback?: string) {
} else { } else {
if (fallback) { if (fallback) {
const embed: LumeEvent = JSON.parse(fallback); const embed: LumeEvent = JSON.parse(fallback);
if (embed.kind === 1) embed['content'] = parser(embed);
embed['event_id'] = embed.id; embed['event_id'] = embed.id;
await createNote( await createNote(
embed.id, embed.id,
@@ -28,22 +29,18 @@ export function useEvent(id: string, fallback?: string) {
); );
return embed; return embed;
} else { } else {
const event = await ndk.fetchEvent(id); const event = (await ndk.fetchEvent(id)) as unknown as LumeEvent;
if (event) { if (event) {
await createNote( await createNote(
event.id, event.id,
event.pubkey, event.pubkey,
event.kind, event.kind,
event.tags, event.tags,
event.content, event.content as unknown as string,
event.created_at event.created_at
); );
event['event_id'] = event.id; event['event_id'] = event.id;
if (event.kind === 1) { if (event.kind === 1) event['content'] = parser(event);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
event['content'] = parser(event);
}
return event as unknown as LumeEvent; return event as unknown as LumeEvent;
} else { } else {
throw new Error('Event not found'); throw new Error('Event not found');

View File

@@ -47,7 +47,7 @@ export function useNostr() {
}); });
}); });
network = [...network.values()] as string[]; network = [...lruNetwork.values()] as string[];
} else { } else {
network = account.network; network = account.network;
} }
@@ -69,7 +69,7 @@ export function useNostr() {
if (network.length > 0) { if (network.length > 0) {
let since: number; let since: number;
if (totalNotes === 0 || lastLogin === 0) { if (totalNotes === 0 || lastLogin === 0) {
since = nHoursAgo(6); since = nHoursAgo(24);
} else { } else {
since = lastLogin; since = lastLogin;
} }

View File

@@ -32,8 +32,8 @@ export interface Profile extends NDKUserProfile {
} }
export interface Block { export interface Block {
id: string; id?: string;
account_id: number; account_id?: number;
kind: number; kind: number;
title: string; title: string;
content: string; content: string;