support nip94 and fix some bugs

This commit is contained in:
Ren Amamiya
2023-08-09 09:04:16 +07:00
parent e6c6793f6e
commit d1d0a462f4
11 changed files with 285 additions and 166 deletions

54
pnpm-lock.yaml generated
View File

@@ -1,6 +1,9 @@
lockfileVersion: '6.0'
dependencies:
'@ctrl/magnet-link':
specifier: ^3.1.2
version: 3.1.2
'@headlessui/react':
specifier: ^1.7.16
version: 1.7.16(react-dom@18.2.0)(react@18.2.0)
@@ -112,6 +115,9 @@ dependencies:
'@tiptap/suggestion':
specifier: ^2.0.4
version: 2.0.4(@tiptap/core@2.0.4)(@tiptap/pm@2.0.4)
'@void-cat/api':
specifier: ^1.0.7
version: 1.0.7
cheerio:
specifier: 1.0.0-rc.12
version: 1.0.0-rc.12
@@ -205,8 +211,8 @@ devDependencies:
specifier: ^9.0.1
version: 9.0.1
'@types/node':
specifier: ^18.17.3
version: 18.17.3
specifier: ^18.17.4
version: 18.17.4
'@types/react':
specifier: ^18.2.19
version: 18.2.19
@@ -284,7 +290,7 @@ devDependencies:
version: 4.9.5
vite:
specifier: ^4.4.9
version: 4.4.9(@types/node@18.17.3)
version: 4.4.9(@types/node@18.17.4)
vite-plugin-top-level-await:
specifier: ^1.3.1
version: 1.3.1(vite@4.4.9)
@@ -564,6 +570,18 @@ packages:
'@babel/helper-validator-identifier': 7.22.5
to-fast-properties: 2.0.0
/@ctrl/magnet-link@3.1.2:
resolution: {integrity: sha512-XtOAThYlGGp3atqy/pfXDXN9OawHWUFg+Dg8t8vD7ITAk76O3Ev/wJlA+jx33gaifLZEL78+saffHB+Qv9aWRw==}
engines: {node: '>=14.16'}
dependencies:
'@ctrl/ts-base32': 2.1.3
dev: false
/@ctrl/ts-base32@2.1.3:
resolution: {integrity: sha512-kL3E0PcmbD80JGHyQ7o6fN4mcdQWDM1HVuaKYmPYIlZmfuMEaXiQ6LdlEF7aq0iP+QkU0bayCVEbnIgrKtqbvQ==}
engines: {node: '>=14.16'}
dev: false
/@emotion/is-prop-valid@0.8.8:
resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}
requiresBuild: true
@@ -2451,8 +2469,8 @@ packages:
resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==}
dev: false
/@types/node@18.17.3:
resolution: {integrity: sha512-2x8HWtFk0S99zqVQABU9wTpr8wPoaDHZUcAkoTKH+nL7kPv3WUI9cRi/Kk5Mz4xdqXSqTkKP7IWNoQQYCnDsTA==}
/@types/node@18.17.4:
resolution: {integrity: sha512-ATL4WLgr7/W40+Sp1WnNTSKbgVn6Pvhc/2RHAdt8fl6NsQyp4oPCi2eKcGOvA494bwf1K/W6nGgZ9TwDqvpjdw==}
dev: true
/@types/normalize-package-data@2.4.1:
@@ -2628,11 +2646,17 @@ packages:
vite: ^4
dependencies:
'@swc/core': 1.3.75
vite: 4.4.9(@types/node@18.17.3)
vite: 4.4.9(@types/node@18.17.4)
transitivePeerDependencies:
- '@swc/helpers'
dev: true
/@void-cat/api@1.0.7:
resolution: {integrity: sha512-0K20PaLnRL0lYLOOn8Sk3J6THdU7ebIHWPR7S8Ytzdi5VGI8468ocackCs0b/gFZvvkwVp0X/Rygxe1/nhch+Q==}
dependencies:
sjcl: 1.0.8
dev: false
/abbrev@1.1.1:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
dev: false
@@ -2922,7 +2946,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001519
electron-to-chromium: 1.4.487
electron-to-chromium: 1.4.488
node-releases: 2.0.13
update-browserslist-db: 1.0.11(browserslist@4.21.10)
@@ -3394,8 +3418,8 @@ packages:
/eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
/electron-to-chromium@1.4.487:
resolution: {integrity: sha512-XbCRs/34l31np/p33m+5tdBrdXu9jJkZxSbNxj5I0H1KtV2ZMSB+i/HYqDiRzHaFx2T5EdytjoBRe8QRJE2vQg==}
/electron-to-chromium@1.4.488:
resolution: {integrity: sha512-Dv4sTjiW7t/UWGL+H8ZkgIjtUAVZDgb/PwGWvMsCT7jipzUV/u5skbLXPFKb6iV0tiddVi/bcS2/kUrczeWgIQ==}
/emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -6712,6 +6736,10 @@ packages:
engines: {node: '>=14'}
dev: false
/sjcl@1.0.8:
resolution: {integrity: sha512-LzIjEQ0S0DpIgnxMEayM1rq9aGwGRG4OnZhCdjx7glTaJtf4zRfpg87ImfjSJjoW9vKpagd82McDOwbRT5kQKQ==}
dev: false
/slash@3.0.0:
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
engines: {node: '>=8'}
@@ -7455,7 +7483,7 @@ packages:
'@rollup/plugin-virtual': 3.0.1
'@swc/core': 1.3.75
uuid: 9.0.0
vite: 4.4.9(@types/node@18.17.3)
vite: 4.4.9(@types/node@18.17.4)
transitivePeerDependencies:
- '@swc/helpers'
- rollup
@@ -7472,13 +7500,13 @@ packages:
debug: 4.3.4
globrex: 0.1.2
tsconfck: 2.1.2(typescript@4.9.5)
vite: 4.4.9(@types/node@18.17.3)
vite: 4.4.9(@types/node@18.17.4)
transitivePeerDependencies:
- supports-color
- typescript
dev: true
/vite@4.4.9(@types/node@18.17.3):
/vite@4.4.9(@types/node@18.17.4):
resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -7506,7 +7534,7 @@ packages:
terser:
optional: true
dependencies:
'@types/node': 18.17.3
'@types/node': 18.17.4
esbuild: 0.18.20
postcss: 8.4.27
rollup: 3.27.2