消息页完工&私信列表完工&私信显示完工

This commit is contained in:
Searchstars
2024-08-24 15:24:48 +08:00
parent 920a862cf0
commit 28fe23d8b1
19 changed files with 592 additions and 573 deletions
+60 -562
View File
@@ -12,7 +12,7 @@
"@aiot-toolkit/velasim": "^0.1.26-beta.3",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"aiot-toolkit": "1.1.2",
"aiot-toolkit": "1.1.3",
"babel-eslint": "^10.0.1",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
@@ -40,12 +40,12 @@
}
},
"node_modules/@aiot-toolkit/compiler": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/compiler/-/compiler-1.1.2.tgz",
"integrity": "sha512-tnJ9zA+ZqCZQfoQ43DRyxXmoqmJq/85sii/hjF/1+TGLyAngkeTMYFvrs38DlHKTEcBABh3l6x2/VF+quIhDSQ==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/compiler/-/compiler-1.1.3.tgz",
"integrity": "sha512-SVqaGNfZmjnB19+ms5KVcFLyI4wqoskohFcEavp3h0hKBWekRmzdO8rfrzVThQ1TDzBpKKih6vplipJWrtaF5A==",
"dev": true,
"dependencies": {
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/shared-utils": "^1.1.3",
"css": "^2.2.4",
"css-select": "^5.1.0",
"css-what": "^3.0.0",
@@ -57,12 +57,12 @@
}
},
"node_modules/@aiot-toolkit/debugger": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/debugger/-/debugger-1.1.2.tgz",
"integrity": "sha512-Ge4jd9YvJ0jEMBBk81TNH4nsEE0stpbOabOizBE16sCXSeW5PqGUgHBK/uyUjDV4Z7gGzsequjC5Qs0Jx+Fk+A==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/debugger/-/debugger-1.1.3.tgz",
"integrity": "sha512-QB1l1R0GqtJwRrvQk5+Ijfdt4/R4m1UNy/v0V/tPaO9o6aJfqN4qtqc+21BAokor5+ezHcJm8FGTlV4rV2HyCA==",
"dev": true,
"dependencies": {
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/shared-utils": "^1.1.3",
"@hap-toolkit/chrome-devtools-frontend": "^1.1.2",
"@sentry/node": "^5.26.0",
"adb-commander": "^0.1.9",
@@ -81,14 +81,14 @@
}
},
"node_modules/@aiot-toolkit/dsl-vue": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/dsl-vue/-/dsl-vue-1.1.2.tgz",
"integrity": "sha512-kROVcAaOy9Yllda7WCziKLdWlQCGjqKRcrpM7PUb4YZpQh0bYgbbt12ot19+UfSLBgz6Saf1dHEjpbTQ8wl9AA==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/dsl-vue/-/dsl-vue-1.1.3.tgz",
"integrity": "sha512-LXGvEdQ0mBFNinxpdsxOoIiV37VeSfr+QFmoCHJ3ZdUZMPFugAz2fjr66cPgvZWcE8w6YyU9I5jvRBhbjgP8Dw==",
"dev": true,
"dependencies": {
"@aiot-toolkit/compiler": "1.1.2",
"@aiot-toolkit/packager": "1.1.2",
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/compiler": "^1.1.3",
"@aiot-toolkit/packager": "^1.1.3",
"@aiot-toolkit/shared-utils": "^1.1.3",
"css-loader": "^5.0.1",
"md5": "^2.2.1",
"mini-css-extract-plugin": "^1.3.0",
@@ -225,14 +225,14 @@
}
},
"node_modules/@aiot-toolkit/dsl-xvm": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/dsl-xvm/-/dsl-xvm-1.1.2.tgz",
"integrity": "sha512-xmnRt++wy8XWXTkfto5j/S9d6cbd0VvMfQdsYYogTaZ8rAA2Q43Elrh2cK7iRTR9XWaQcpB987ZUYoWS+R/NgA==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/dsl-xvm/-/dsl-xvm-1.1.3.tgz",
"integrity": "sha512-X02VbnIA0WHOvaFGNQgM1VB+sbOK//DlHdsvYcVdjSlVgKbCaNNRVshc1iPaPPp8qoYDdXjSxUcSWZ2mCXsdtg==",
"dev": true,
"dependencies": {
"@aiot-toolkit/compiler": "1.1.2",
"@aiot-toolkit/packager": "1.1.2",
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/compiler": "^1.1.3",
"@aiot-toolkit/packager": "^1.1.3",
"@aiot-toolkit/shared-utils": "^1.1.3",
"babel-loader": "^8.3.0",
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
"css-loader": "^5.0.1",
@@ -385,13 +385,13 @@
}
},
"node_modules/@aiot-toolkit/packager": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/packager/-/packager-1.1.2.tgz",
"integrity": "sha512-SwLsvJkbXHdxViJMj2mYsVxHTSv0tJhe04L+lkfMe0xmEjZCrEQ+1rnKtMYhR3Do64BzWfeDtSJuXOZcN5uNag==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/packager/-/packager-1.1.3.tgz",
"integrity": "sha512-63jpYSVTqiBHFjaol8T18oLrwQvowCEBRMLCmsN/je8FHXfrb9oPne64QBoKUYvUlrB6VbRuI00L+blW0Dbbuw==",
"dev": true,
"dependencies": {
"@aiot-toolkit/compiler": "1.1.2",
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/compiler": "^1.1.3",
"@aiot-toolkit/shared-utils": "^1.1.3",
"@babel/core": "^7.9.6",
"@babel/generator": "^7.9.6",
"@babel/parser": "^7.9.6",
@@ -414,7 +414,6 @@
"loader-utils": "^1.4.0",
"moment": "^2.25.3",
"qr-image": "^3.2.0",
"sharp": "^0.32.0",
"shelljs": "^0.8.4",
"vela-chai": "^1.0.1",
"vela-quickapp-test": "^1.0.9",
@@ -582,14 +581,14 @@
}
},
"node_modules/@aiot-toolkit/server": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/server/-/server-1.1.2.tgz",
"integrity": "sha512-XeHV+eDJ4GyfM6PmZ8fJvBpikMyzEYTN0wDc3x1qliLY5Bh5C7RATnOELxl9z3ZSV2BADzDanhSt78nHZrj8eg==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/server/-/server-1.1.3.tgz",
"integrity": "sha512-/TPW0fr6XjPdbsnjojwNqmWLC9F3MmXpyrUR6p4Sn3w5hyAiiGdy3+SbTOePPD/dw5SSnf0mUgO0ZtVirzgEmg==",
"dev": true,
"dependencies": {
"@aiot-toolkit/debugger": "1.1.2",
"@aiot-toolkit/packager": "1.1.2",
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/debugger": "^1.1.3",
"@aiot-toolkit/packager": "^1.1.3",
"@aiot-toolkit/shared-utils": "^1.1.3",
"@babel/runtime": "^7.9.6",
"jszip": "^3.4.0",
"koa": "^2.11.0",
@@ -607,9 +606,9 @@
}
},
"node_modules/@aiot-toolkit/shared-utils": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/shared-utils/-/shared-utils-1.1.2.tgz",
"integrity": "sha512-BLCyRKzo6S2XVHyI4BW8R0Ol0pl705NYg1U3XssZaS4iEvk0HpyhCnCJ1PKCuWMBByoMwSThJCHKjz5EvXxiDQ==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@aiot-toolkit/shared-utils/-/shared-utils-1.1.3.tgz",
"integrity": "sha512-fl92ZZZYkK60js75pRJcPbSxoyo3DAcmnc5zU/cXqPjj5HrWrlJ1/6Gg89LhLg5eKgE2CPKLD5AwByODXtfXpQ==",
"dev": true,
"dependencies": {
"chalk": "^2.4.2",
@@ -3477,18 +3476,18 @@
}
},
"node_modules/aiot-toolkit": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/aiot-toolkit/-/aiot-toolkit-1.1.2.tgz",
"integrity": "sha512-sH0lOfHy+nSY/OnBC7S+/hhkqFoatMuDTCuEvLp7QduWUIhNXKgv6jtsbjXHBvD4BJdxX0egyHcabZ3K5PZ+Kw==",
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/aiot-toolkit/-/aiot-toolkit-1.1.3.tgz",
"integrity": "sha512-/b2AYWG2cidXZHDX+gx+Q7/i7txX/tSbMT4B2lssQG3K3f76RHicpWgNiqVjD1LLHWHPKnq6FS12BFiGQYEWwQ==",
"dev": true,
"dependencies": {
"@aiot-toolkit/compiler": "1.1.2",
"@aiot-toolkit/debugger": "1.1.2",
"@aiot-toolkit/dsl-vue": "1.1.2",
"@aiot-toolkit/dsl-xvm": "1.1.2",
"@aiot-toolkit/packager": "1.1.2",
"@aiot-toolkit/server": "1.1.2",
"@aiot-toolkit/shared-utils": "1.1.2",
"@aiot-toolkit/compiler": "^1.1.3",
"@aiot-toolkit/debugger": "^1.1.3",
"@aiot-toolkit/dsl-vue": "^1.1.3",
"@aiot-toolkit/dsl-xvm": "^1.1.3",
"@aiot-toolkit/packager": "^1.1.3",
"@aiot-toolkit/server": "^1.1.3",
"@aiot-toolkit/shared-utils": "^1.1.3",
"@babel/core": "^7.9.6",
"@babel/plugin-syntax-jsx": "^7.8.3",
"@babel/preset-env": "^7.9.6",
@@ -4146,12 +4145,6 @@
"integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==",
"dev": true
},
"node_modules/b4a": {
"version": "1.6.6",
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz",
"integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==",
"dev": true
},
"node_modules/babel-eslint": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
@@ -4401,52 +4394,6 @@
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true
},
"node_modules/bare-events": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.4.2.tgz",
"integrity": "sha512-qMKFd2qG/36aA4GwvKq8MxnPgCQAmBWmSyLWsJcbn8v03wvIPQ/hG1Ms8bPzndZxMDoHpxez5VOS+gC9Yi24/Q==",
"dev": true,
"optional": true
},
"node_modules/bare-fs": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-2.3.1.tgz",
"integrity": "sha512-W/Hfxc/6VehXlsgFtbB5B4xFcsCl+pAh30cYhoFyXErf6oGrwjh8SwiPAdHgpmWonKuYpZgGywN0SXt7dgsADA==",
"dev": true,
"optional": true,
"dependencies": {
"bare-events": "^2.0.0",
"bare-path": "^2.0.0",
"bare-stream": "^2.0.0"
}
},
"node_modules/bare-os": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-2.4.0.tgz",
"integrity": "sha512-v8DTT08AS/G0F9xrhyLtepoo9EJBJ85FRSMbu1pQUlAf6A8T0tEEQGMVObWeqpjhSPXsE0VGlluFBJu2fdoTNg==",
"dev": true,
"optional": true
},
"node_modules/bare-path": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/bare-path/-/bare-path-2.1.3.tgz",
"integrity": "sha512-lh/eITfU8hrj9Ru5quUp0Io1kJWIk1bTjzo7JH1P5dWmQ2EL4hFUlfI8FonAhSlgIfhn63p84CDY/x+PisgcXA==",
"dev": true,
"optional": true,
"dependencies": {
"bare-os": "^2.1.0"
}
},
"node_modules/bare-stream": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.1.3.tgz",
"integrity": "sha512-tiDAH9H/kP+tvNO5sczyn9ZAA7utrSMobyDchsnyyXBuUe2FSQWbxhtuHB8jwpHYYevVo2UJpcmvvjrbHboUUQ==",
"dev": true,
"optional": true,
"dependencies": {
"streamx": "^2.18.0"
}
},
"node_modules/base": {
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz",
@@ -4486,26 +4433,6 @@
"node": ">= 0.6.0"
}
},
"node_modules/base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/base64id": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz",
@@ -4560,31 +4487,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
"dev": true,
"dependencies": {
"buffer": "^5.5.0",
"inherits": "^2.0.4",
"readable-stream": "^3.4.0"
}
},
"node_modules/bl/node_modules/readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
"dev": true,
"dependencies": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/blob": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz",
@@ -4766,30 +4668,6 @@
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
}
},
"node_modules/buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -5075,12 +4953,6 @@
"node": ">=8.0"
}
},
"node_modules/chownr": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
"dev": true
},
"node_modules/chrome-paths": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/chrome-paths/-/chrome-paths-1.0.1.tgz",
@@ -5368,19 +5240,6 @@
"node": ">=0.10.0"
}
},
"node_modules/color": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
"integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
"dev": true,
"dependencies": {
"color-convert": "^2.0.1",
"color-string": "^1.9.0"
},
"engines": {
"node": ">=12.5.0"
}
},
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -5399,16 +5258,6 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"node_modules/color-string": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
"integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
"dev": true,
"dependencies": {
"color-name": "^1.0.0",
"simple-swizzle": "^0.2.2"
}
},
"node_modules/colord": {
"version": "2.9.3",
"resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz",
@@ -6046,21 +5895,6 @@
"node": ">=0.10"
}
},
"node_modules/decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
"integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
"dev": true,
"dependencies": {
"mimic-response": "^3.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/dedent": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz",
@@ -6094,15 +5928,6 @@
"integrity": "sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==",
"dev": true
},
"node_modules/deep-extend": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
"dev": true,
"engines": {
"node": ">=4.0.0"
}
},
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -6208,15 +6033,6 @@
"npm": "1.2.8000 || >= 1.4.16"
}
},
"node_modules/detect-libc": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",
"integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
"dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
@@ -7579,15 +7395,6 @@
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"dev": true
},
"node_modules/expand-template": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
"integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
"dev": true,
"engines": {
"node": ">=6"
}
},
"node_modules/express": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
@@ -7806,12 +7613,6 @@
"integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",
"dev": true
},
"node_modules/fast-fifo": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
"integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==",
"dev": true
},
"node_modules/fast-glob": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
@@ -7899,9 +7700,9 @@
"dev": true
},
"node_modules/fast-xml-parser": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.0.tgz",
"integrity": "sha512-kLY3jFlwIYwBNDojclKsNAC12sfD6NwW74QB2CoNGPvtVxjliYehVunB3HYyNi+n4Tt1dAcgwYvmKF/Z18flqg==",
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz",
"integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==",
"dev": true,
"funding": [
{
@@ -8305,12 +8106,6 @@
"node": ">=0.10.0"
}
},
"node_modules/fs-constants": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
"dev": true
},
"node_modules/fs-extra": {
"version": "11.2.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",
@@ -8528,12 +8323,6 @@
"node": ">=10"
}
},
"node_modules/github-from-package": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
"integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
"dev": true
},
"node_modules/glob": {
"version": "7.2.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
@@ -9144,26 +8933,6 @@
"postcss": "^8.1.0"
}
},
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
@@ -9249,9 +9018,9 @@
}
},
"node_modules/imagemin/node_modules/ignore": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
"integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
"dev": true,
"engines": {
"node": ">= 4"
@@ -11577,18 +11346,6 @@
"node": ">=6"
}
},
"node_modules/mimic-response": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
"integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
"dev": true,
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/min-indent": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
@@ -11752,12 +11509,6 @@
"mkdirp": "bin/cmd.js"
}
},
"node_modules/mkdirp-classic": {
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
"dev": true
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
@@ -11819,12 +11570,6 @@
"node": ">=0.10.0"
}
},
"node_modules/napi-build-utils": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
"integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",
"dev": true
},
"node_modules/native-request": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/native-request/-/native-request-1.1.0.tgz",
@@ -11859,24 +11604,6 @@
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
"dev": true
},
"node_modules/node-abi": {
"version": "3.65.0",
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.65.0.tgz",
"integrity": "sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==",
"dev": true,
"dependencies": {
"semver": "^7.3.5"
},
"engines": {
"node": ">=10"
}
},
"node_modules/node-addon-api": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz",
"integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==",
"dev": true
},
"node_modules/node-releases": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
@@ -12829,74 +12556,6 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true
},
"node_modules/prebuild-install": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz",
"integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==",
"dev": true,
"dependencies": {
"detect-libc": "^2.0.0",
"expand-template": "^2.0.3",
"github-from-package": "0.0.0",
"minimist": "^1.2.3",
"mkdirp-classic": "^0.5.3",
"napi-build-utils": "^1.0.1",
"node-abi": "^3.3.0",
"pump": "^3.0.0",
"rc": "^1.2.7",
"simple-get": "^4.0.0",
"tar-fs": "^2.0.0",
"tunnel-agent": "^0.6.0"
},
"bin": {
"prebuild-install": "bin.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/prebuild-install/node_modules/readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
"dev": true,
"dependencies": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/prebuild-install/node_modules/tar-fs": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
"integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
"dev": true,
"dependencies": {
"chownr": "^1.1.1",
"mkdirp-classic": "^0.5.2",
"pump": "^3.0.0",
"tar-stream": "^2.1.4"
}
},
"node_modules/prebuild-install/node_modules/tar-stream": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
"integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
"dev": true,
"dependencies": {
"bl": "^4.0.3",
"end-of-stream": "^1.4.1",
"fs-constants": "^1.0.0",
"inherits": "^2.0.3",
"readable-stream": "^3.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/prelude-ls": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
@@ -13021,9 +12680,9 @@
}
},
"node_modules/qs": {
"version": "6.12.3",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.12.3.tgz",
"integrity": "sha512-AWJm14H1vVaO/iNZ4/hO+HyaTehuy9nRqVdkTqlJt0HWvBiBIEXFmb4C0DGeYo3Xes9rrEW+TxHsaigCbN5ICQ==",
"version": "6.13.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
"dev": true,
"dependencies": {
"side-channel": "^1.0.6"
@@ -13055,12 +12714,6 @@
}
]
},
"node_modules/queue-tick": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
"integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==",
"dev": true
},
"node_modules/quick-lru": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz",
@@ -13128,30 +12781,6 @@
"node": ">= 0.8"
}
},
"node_modules/rc": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"dev": true,
"dependencies": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
"minimist": "^1.2.0",
"strip-json-comments": "~2.0.1"
},
"bin": {
"rc": "cli.js"
}
},
"node_modules/rc/node_modules/strip-json-comments": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
"integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/read-pkg": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz",
@@ -14115,29 +13744,6 @@
"node": ">=8"
}
},
"node_modules/sharp": {
"version": "0.32.6",
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz",
"integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"color": "^4.2.3",
"detect-libc": "^2.0.2",
"node-addon-api": "^6.1.0",
"prebuild-install": "^7.1.1",
"semver": "^7.5.4",
"simple-get": "^4.0.1",
"tar-fs": "^3.0.4",
"tunnel-agent": "^0.6.0"
},
"engines": {
"node": ">=14.15.0"
},
"funding": {
"url": "https://opencollective.com/libvips"
}
},
"node_modules/shebang-command": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
@@ -14200,51 +13806,6 @@
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
"dev": true
},
"node_modules/simple-concat": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/simple-get": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"decompress-response": "^6.0.0",
"once": "^1.3.1",
"simple-concat": "^1.0.0"
}
},
"node_modules/simple-git": {
"version": "1.132.0",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-1.132.0.tgz",
@@ -14254,21 +13815,6 @@
"debug": "^4.0.1"
}
},
"node_modules/simple-swizzle": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
"integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
"dev": true,
"dependencies": {
"is-arrayish": "^0.3.1"
}
},
"node_modules/simple-swizzle/node_modules/is-arrayish": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
"dev": true
},
"node_modules/slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -14487,9 +14033,9 @@
"dev": true
},
"node_modules/socket.io-client/node_modules/socket.io-parser": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.3.tgz",
"integrity": "sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==",
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.4.tgz",
"integrity": "sha512-z/pFQB3x+EZldRRzORYW1vwVO8m/3ILkswtnpoeU6Ve3cbMWkmHEWDAVJn4QJtchiiFTo5j7UG2QvwxvaA9vow==",
"dev": true,
"dependencies": {
"component-emitter": "~1.3.0",
@@ -14759,20 +14305,6 @@
"node": ">= 0.6"
}
},
"node_modules/streamx": {
"version": "2.18.0",
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.18.0.tgz",
"integrity": "sha512-LLUC1TWdjVdn1weXGcSxyTR3T4+acB6tVGXT95y0nGbca4t4o/ng1wKAGTljm9VicuCVLvRlqFYXYy5GwgM7sQ==",
"dev": true,
"dependencies": {
"fast-fifo": "^1.3.2",
"queue-tick": "^1.0.1",
"text-decoder": "^1.1.0"
},
"optionalDependencies": {
"bare-events": "^2.2.0"
}
},
"node_modules/string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
@@ -15698,31 +15230,6 @@
"node": ">=6"
}
},
"node_modules/tar-fs": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.6.tgz",
"integrity": "sha512-iokBDQQkUyeXhgPYaZxmczGPhnhXZ0CmrqI+MOb/WFGS9DW5wnfrLgtjUJBvz50vQ3qfRwJ62QVoCFu8mPVu5w==",
"dev": true,
"dependencies": {
"pump": "^3.0.0",
"tar-stream": "^3.1.5"
},
"optionalDependencies": {
"bare-fs": "^2.1.1",
"bare-path": "^2.1.0"
}
},
"node_modules/tar-stream": {
"version": "3.1.7",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz",
"integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==",
"dev": true,
"dependencies": {
"b4a": "^1.6.4",
"fast-fifo": "^1.2.0",
"streamx": "^2.15.0"
}
},
"node_modules/terser": {
"version": "5.31.0",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.31.0.tgz",
@@ -15842,15 +15349,6 @@
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true
},
"node_modules/text-decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.1.1.tgz",
"integrity": "sha512-8zll7REEv4GDD3x4/0pW+ppIxSNs7H1J10IKFZsuOMscumCdM2a+toDGLPA3T+1+fLBql4zbt5z83GEQGGV5VA==",
"dev": true,
"dependencies": {
"b4a": "^1.6.4"
}
},
"node_modules/text-extensions": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz",
@@ -16229,9 +15727,9 @@
}
},
"node_modules/type-detect": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",
"integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",
"dev": true,
"engines": {
"node": ">=4"
+1 -1
View File
@@ -29,7 +29,7 @@
"@aiot-toolkit/velasim": "^0.1.26-beta.3",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"aiot-toolkit": "1.1.2",
"aiot-toolkit": "1.1.3",
"babel-eslint": "^10.0.1",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
+57 -2
View File
@@ -135,7 +135,7 @@ class BilibiliClient {
}
// 获取二维码信息
async login_qr(): Promise<{ url: string, qrcode_key: string }> {
async loginQR(): Promise<{ url: string, qrcode_key: string }> {
console.log("请求登录二维码");
const response = await this.getRequest('https://passport.bilibili.com/x/passport-login/web/qrcode/generate');
if (response && response.data) {
@@ -369,7 +369,7 @@ class BilibiliClient {
return response.data;
}
// 全站搜索
// 全站搜索(首页入口)(视频、用户)
async searchContents(keyword: string, vidcount: number = 20): Promise<any> {
const url = "https://api.bilibili.com/x/web-interface/wbi/search/all/v2";
const response = await this.getRequestWbi(url, { keyword });
@@ -397,6 +397,61 @@ class BilibiliClient {
return result;
}
// 获取通知信息数量 (例如回复我的、at我的、点赞数量)
async getMessageNotifyFeed(){
const url = "https://api.vc.bilibili.com/x/im/web/msgfeed/unread";
const response = await this.getRequest(url);
return response.data.data;
}
// 获取私信Session列表
// 一次性最多拉取20个,可加end_ts做IFS(但没必要)
async getDMSessions(session_type: number, sort_rule: number){
const url = "https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions"
const response = await this.getRequestWbi(url, {
session_type,
sort_rule,
group_fold: 0,
unfollow_fold: 0,
mobi_app: "web"
})
return response.data.data
}
// 获取私信Session聊天记录
// 若要做IFS,则end_seqno应该为最顶上那条信息的序列号
// 接口有漏洞,自带防撤回
async getDMSessionMessage(session_type: number, talker_id: string, size: number = 10, end_seqno: string){
const url = "https://api.vc.bilibili.com/svr_sync/v1/svr_sync/fetch_session_msgs"
var params = {
session_type,
talker_id,
size
};
if(end_seqno){
params["end_seqno"] = end_seqno;
}
const response = await this.getRequestWbi(url, params);
return response.data.data
}
// 根据UID批量获取用户信息
async getMultiUserInfoByUID(uids: Array<String>){
const url = "https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards";
let param = "";
uids.forEach(uid => {
param += uid
if(uids.indexOf(uid) != uids.length -1){
param += ","
}
});
const response = await this.getRequest(`${url}?uids=${param}`)
return response.data.data
}
// 退出登录(删除本地存储的账号数据)
logOut() {
storage.delete({ key: "bilibili_account" });
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,38 @@
<template>
<div class="sendbox">
<div class="textbox">
<text class="textbox_text">点此输入文字</text>
</div>
<image src="/common/dmpage_sendbtn.png" style="margin-left: 6px"></image>
</div>
</template>
<script>
export default {}
</script>
<style>
.sendbox {
width: 284px;
height: 73px;
border-radius: 48px;
background-color: #262626ef;
padding: 12px 20px;
position: absolute;
bottom: 55px
}
.textbox {
width: 189px;
height: 48px;
border-radius: 48px;
background-color: #3D3D3D;
align-items: center;
padding: 15px;
}
.textbox_text {
font-size: 20px;
font-weight: 600;
}
</style>
+1
View File
@@ -75,6 +75,7 @@ export default {
font-size: 20px;
font-weight: 600;
max-width: 160px;
max-height: 25px;
text-overflow: ellipsis;
}
+13 -6
View File
@@ -6,22 +6,29 @@ const tips = [
"澎湃哔哩不够澎湃怎么办?",
"富哥V一点好不好,球球了",
"有没有遇见将军大人Rechrd",
"检测到原批...是你吗?",
"检测到农批...是你吗?",
"检测到舟批...是你吗?",
"检测到星批...是你吗?",
"关注永雏塔菲谢谢喵~",
"关注孙笑川258谢谢喵~",
"关注七海nanami谢谢喵~",
"关注芽衣子OvO谢谢喵~",
"关注嘉然今天吃什么谢谢喵~",
"我觉得这是一种自信",
"让我们保持忠!诚!",
"雷军!金凡!",
"Powered By Re:Bydour"
"Powered By Re:Bydour",
"\"游戏不开挂不好玩。\"",
"快去盯着易奥林做zeppbili。",
"致敬一切奇迹的起点 @RX79XT_",
"早上好中国,现在我有冰淇淋",
"你这辈子就是被黑神话悟空害了。",
"你他妈可别上课摸鱼。",
"我是雷军,你们都给我去玩MIUI全防"
]
const AprilFoolsDayTips = [
"您的设备已被Darock永久封禁",
"澎湃哔哩即日起将停止开发与更新",
"您的手表已被锁定,请支付BTC解锁"
"您的手表已被锁定,请支付BTC解锁",
"Hacked By Dimples#1337"
]
export function getTips(): string{
+9
View File
@@ -76,6 +76,15 @@
},
"pages/searchresult": {
"component": "searchresult"
},
"pages/messages": {
"component": "messages"
},
"pages/dmlist": {
"component": "dmlist"
},
"pages/dmpage": {
"component": "dmpage"
}
}
}
+1
View File
@@ -30,6 +30,7 @@
<text class="btntext">设置</text>
</div>
</div>
<text style="font-size: 24px; font-weight: 600; margin-top: 50px">上滑进入搜索页</text>
<text style="margin-top: 450px;"></text>
</scroll>
<image if="{{showChangePageFX}}" style="position: absolute; bottom: {{anims.ChangePageFXBTM.value}}px"
+132
View File
@@ -0,0 +1,132 @@
<import name="title-bar" src="../../components/TitleBar/TitleBar.ux"></import>
<template>
<div class="page">
<title-bar title="私信"></title-bar>
<image style="position: absolute; margin-top: 245px" if="{{show_loading}}" src="{{anims.loading_src.value}}"></image>
<div class="dmlist" for="{{sessions}}" style="margin-top: 18px">
<div class="user" onclick="GoDMPage({{$item.talker_id}})">
<image class="userface" src="{{session_cards[$item.talker_id].face}}@75w_75h" alt="/common/fullgray.png"></image>
<div class="infoarea">
<text class="username">{{session_cards[$item.talker_id].name}}</text>
<text class="lastmsg">{{JSON.parse($item.last_msg.content).content || JSON.parse($item.last_msg.content).reply_content || JSON.parse($item.last_msg.content).text || "暂无消息"}}</text>
</div>
</div>
</div>
<text style="font-size: 18px; margin-top: 15px; font-weight: 600" show="{{Show20UserLimit}}">暂时最多只支持显示20个用户哦~</text>
<text style="margin-top: 25px"></text>
</div>
</template>
<script>
import router from "@system.router"
export default {
private: {
sessions: [],
session_cards: {},
show_loading: false,
Show20UserLimit: false,
anims: {
loading: null,
loading_src: {value: "/common/seqanims/loadingWhite/icons8-loading_颜色反转-1.png"}
}
},
async InitSessions(){
this.anims.loading.start()
this.show_loading = true
this.sessions = (await this.$app.$def.biliclient.getDMSessions(1, 2)).session_list
var session_uids = []
this.sessions.forEach((session) => {
session_uids.push(session.talker_id)
})
this.session_cards = await this.$app.$def.biliclient.getMultiUserInfoByUID(session_uids)
this.anims.loading.stop()
this.show_loading = false
this.Show20UserLimit = true
},
GoDMPage(targetId){
router.push({
uri: "pages/dmpage",
params: {
myId: this.$app.$def.biliclient.accountInfo.mid,
targetId: targetId,
myPic: this.$app.$def.biliclient.accountInfo.face,
targetPic: this.session_cards[`${targetId}`].face
}
})
},
onInit(){
this.anims.loading = new this.$app.$def.animengine.SequenceAnim(
"replysPage",
this.anims.loading_src,
28,
"/common/seqanims/loadingWhite/icons8-loading_颜色反转-*.png",
1000,
true
)
this.InitSessions()
}
}
</script>
<style>
.page {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
position: absolute;
width: 100%;
}
.dmlist {
width: 313px;
}
.user {
height: 119px;
border-radius: 33px;
background-color: #222222;
flex-direction: row;
width: 313px;
align-items: center;
}
.userface {
min-width: 75px;
min-height: 75px;
max-width: 75px;
max-height: 75px;
object-fit: scale-down;
margin-left: 26px;
border-radius: 50%;
}
.infoarea {
flex-direction: column;
justify-content: center;
width: 195px;
}
.username {
font-size: 28px;
font-weight: 600;
margin-left: 11px;
max-height: 40px;
text-overflow: ellipsis;
}
.lastmsg {
font-size: 20px;
font-weight: 600;
margin-left: 11px;
max-height: 55px;
text-overflow: ellipsis;
color: #585858
}
</style>
+145
View File
@@ -0,0 +1,145 @@
<import name="sendbox" src="../../components/FloatingSendBox/FloatingSendBox.ux"></import>
<template>
<div class="page">
<scroll class="scroll" scroll-y="true" id="mainscroll">
<div for="{{messages}}">
<div class="targetmsg-container" if="{{$item.receiver_id == myId}}">
<div class="targetmsg"
style="margin-top: {{MsgBoxStyleCalcMarginTop($item.msg_seqno)}}; margin-bottom: {{MsgBoxStyleCalcMarginBottom($item.msg_seqno)}}">
<image class="msgprofpic" src="{{targetPic}}@75w_75h" alt="/common/fullgray.png"></image>
<div class="msgbox" style="margin-left: 5px">
<text class="msgtext">
{{ JSON.parse($item.content).content || "该消息暂不支持显示" }}
</text>
</div>
</div>
</div>
<div class="mymsg-container" if="{{$item.receiver_id == targetId}}">
<div class="mymsg"
style="margin-top: {{MsgBoxStyleCalcMarginTop($item.msg_seqno)}}; margin-bottom: {{MsgBoxStyleCalcMarginBottom($item.msg_seqno)}}">
<div style="background-color: #ff7da8" class="msgbox">
<text class="msgtext">
{{ JSON.parse($item.content).content || "该消息暂不支持显示" }}
</text>
</div>
<image style="margin-left: 5px" class="msgprofpic" src="{{myPic}}@75w_75h" alt="/common/fullgray.png"></image>
</div>
</div>
</div>
</scroll>
<sendbox style="position: absolute"></sendbox>
</div>
</template>
<script>
export default {
public: {
myId: 0,
targetId: 1,
myPic: "",
targetPic: ""
},
private: {
messages: []
},
MsgBoxStyleCalcMarginTop(msg_seqno) {
if (msg_seqno == this.messages[0].msg_seqno) {
return "85px"
}
return "15px"
},
MsgBoxStyleCalcMarginBottom(msg_seqno) {
if (msg_seqno == this.messages[this.messages.length - 1].msg_seqno) {
return "160px"
}
return "0px"
},
async UpdateMessages(){
var messages = (await this.$app.$def.biliclient.getDMSessionMessage(1, this.targetId, 30)).messages.reverse()
if(messages != this.messages){
this.messages = messages
setTimeout(() => {
this.ScrollToEnd()
}, 200)
}
},
ScrollToEnd(){
this.$element('mainscroll').getScrollRect({
success: (rect) => {
this.$element('mainscroll').scrollTo({
top: rect.height
})
}
})
},
onShow(){
this.UpdateMessages()
},
onInit(){
}
}
</script>
<style>
.page {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
position: absolute;
width: 100%;
}
.scroll {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
.targetmsg-container {
display: flex;
justify-content: flex-start; /* 消息框向左对齐 */
width: 100%;
}
.mymsg-container {
display: flex;
justify-content: flex-end; /* 消息框向右对齐 */
width: 100%;
}
.targetmsg {
flex-direction: row;
margin-left: 55px;
}
.mymsg {
flex-direction: row;
margin-right: 55px;
}
.msgbox {
max-width: 171px;
max-height: 140px;
border-radius: 19px;
padding: 15px;
background-color: #242424;
}
.msgprofpic {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: scale-down;
}
.msgtext {
font-size: 20px;
font-weight: 600;
color: #ffffff;
text-overflow: ellipsis;
}
</style>
+1 -1
View File
@@ -47,7 +47,7 @@ export default {
},
async GetQR() {
try {
const get_result = await this.$app.$def.biliclient.login_qr()
const get_result = await this.$app.$def.biliclient.loginQR()
this.qr_value = get_result.url
console.log(get_result)
this.show_qr = true
+128
View File
@@ -0,0 +1,128 @@
<import name="title-bar" src="../../components/TitleBar/TitleBar.ux"></import>
<template>
<div class="page">
<title-bar title="我的消息"></title-bar>
<div class="featurebox" style="margin-top: 25px" @click="ShowOnPhoneTips()">
<div class="boxline" style="margin-top: 20px">
<div class="feature" style="margin-left: 17px">
<image class="featureimg" src="/common/messages_replyme.png"></image>
<text class="featuretext">回复我的</text>
<div class="bubble" if="{{data.recv_reply}}">
<text class="bubble_text">{{data.recv_reply}}</text>
</div>
</div>
<div class="feature" style="margin-left: 73px">
<image class="featureimg" src="/common/messages_like.png"></image>
<text class="featuretext">收到的赞</text>
<div class="bubble" if="{{data.recv_like}}">
<text class="bubble_text">{{data.recv_like}}</text>
</div>
</div>
</div>
<div class="boxline" style="margin-top: 15px">
<div class="feature" style="margin-left: 30px">
<image class="featureimg" src="/common/messages_atme.png"></image>
<text class="featuretext">@我的</text>
<div class="bubble" if="{{data.at}}">
<text class="bubble_text">{{data.at}}</text>
</div>
</div>
<div class="feature" style="margin-left: 88px">
<image class="featureimg" src="/common/messages_sound.png"></image>
<text class="featuretext">系统通知</text>
<div class="bubble" if="{{data.sys_msg}}">
<text class="bubble_text">{{data.sys_msg}}</text>
</div>
</div>
</div>
</div>
<image src="/common/dm_icon.png" style="margin-top: 8px" @click="GoDM()"></image>
</div>
</template>
<script>
import prompt from "@system.prompt"
import router from "@system.router"
export default {
private: {
data: {}
},
async LoadNotify(){
this.data = await this.$app.$def.biliclient.getMessageNotifyFeed()
},
ShowOnPhoneTips(){
prompt.showToast({
message: "请在手机上查看"
})
},
GoDM(){
router.push({
uri: "pages/dmlist"
})
},
onInit(){
this.LoadNotify()
}
}
</script>
<style>
.page {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
position: absolute;
width: 100%;
}
.featurebox {
width: 321px;
height: 222px;
border-radius: 33px;
background-color: #222222;
flex-direction: column;
}
.boxline {
flex-direction: row;
align-items: center;
width: 100%;
}
.feature {
flex-direction: column;
justify-content: center;
align-items: center;
}
.featuretext {
font-size: 25px;
font-weight: 600;
margin-top: 5px;
}
.featureimg {
width: 50px;
height: 50px;
object-fit: scale-down;
}
.bubble {
position: absolute;
right: 0px;
top: 0px;
width: 38px;
height: 32px;
border-radius: 100px;
background-color: #ff4141;
align-items: center;
justify-content: center;
}
.bubble_text {
font-size: 14px;
font-weight: 600;
}
</style>
+6 -1
View File
@@ -30,7 +30,7 @@
<text class="btntext">稍后再看</text>
<image src="/common/arrow_right.png"></image>
</div>
<div class="btnbase" style="margin-top: 10px" @click="WIPTips()">
<div class="btnbase" style="margin-top: 10px" @click="GoMessages()">
<image class="btnimg" src="/common/mypage_messager.png"></image>
<text class="btntext">我的消息</text>
<image src="/common/arrow_right.png"></image>
@@ -62,6 +62,11 @@ export default {
}
})
},
GoMessages(){
router.push({
uri: "pages/messages"
})
},
WIPTips() {
prompt.showToast({
message: "该功能还在开发中"