Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-pics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-pics
Commits
fba3555b
Commit
fba3555b
authored
Dec 30, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pics component support
parent
01899cb8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
169 additions
and
152 deletions
+169
-152
dev/extras.ts
dev/extras.ts
+3
-1
package-lock.json
package-lock.json
+144
-144
package.json
package.json
+4
-4
src/index.ts
src/index.ts
+18
-3
No files found.
dev/extras.ts
View file @
fba3555b
import
{
Awaitable
,
Context
,
Schema
}
from
'
koishi
'
;
import
{
Awaitable
,
Context
,
Schema
,
segment
}
from
'
koishi
'
;
import
{
import
{
DefinePlugin
,
DefinePlugin
,
MultiInstancePlugin
,
MultiInstancePlugin
,
...
@@ -65,6 +65,8 @@ export default class ExtrasInDev {
...
@@ -65,6 +65,8 @@ export default class ExtrasInDev {
isDefault
:
true
,
isDefault
:
true
,
// endpoint: 'https://cdn02.moecube.com:444',
// endpoint: 'https://cdn02.moecube.com:444',
});
});
ctx
.
command
(
'
pic2
'
).
action
(()
=>
segment
(
'
pics
'
));
}
}
static
using
=
[
'
pics
'
]
as
const
;
static
using
=
[
'
pics
'
]
as
const
;
...
...
package-lock.json
View file @
fba3555b
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"dependencies"
:
{
"@koishijs/assets"
:
"^1.0.1"
,
"@koishijs/assets"
:
"^1.0.1"
,
"koishi-thirdeye"
:
"^11.1.1
4
"
,
"koishi-thirdeye"
:
"^11.1.1
7
"
,
"lodash"
:
"^4.17.21"
"lodash"
:
"^4.17.21"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@koishijs/plugin-console"
:
"^
4.7.1
"
,
"@koishijs/plugin-console"
:
"^
5.0.0
"
,
"@koishijs/plugin-database-memory"
:
"^2.0.1"
,
"@koishijs/plugin-database-memory"
:
"^2.0.1"
,
"@koishijs/plugin-sandbox"
:
"^2.
4
.0"
,
"@koishijs/plugin-sandbox"
:
"^2.
5
.0"
,
"@types/jest"
:
"^29.2.0"
,
"@types/jest"
:
"^29.2.0"
,
"@types/lodash"
:
"^4.14.176"
,
"@types/lodash"
:
"^4.14.176"
,
"@types/node"
:
"^16.11.4"
,
"@types/node"
:
"^16.11.4"
,
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"ws"
:
"^8.3.0"
"ws"
:
"^8.3.0"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"koishi"
:
"^4.10.
4
"
"koishi"
:
"^4.10.
10
"
}
}
},
},
"node_modules/@ampproject/remapping"
:
{
"node_modules/@ampproject/remapping"
:
{
...
@@ -1398,23 +1398,23 @@
...
@@ -1398,23 +1398,23 @@
}
}
},
},
"node_modules/@koishijs/core"
:
{
"node_modules/@koishijs/core"
:
{
"version"
:
"4.10.
4
"
,
"version"
:
"4.10.
10
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.10.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.10.
10
.tgz"
,
"integrity"
:
"sha512-
uhR2RoslHs3ynhElWP+jIwzqn8PprlPGF10qWQvTpW1l5XmPr+PiWgf5HmAGt1XucWcuij9n1Z179yqZs6xLNg
=="
,
"integrity"
:
"sha512-
LooBZCQSm91TL7aBBECjaFaROn+udCAavOwi+AWzbFPBfcuF4ZHFGpQ112yWK70xbQ7YhHUueueqJpkAGOy4RA
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@koishijs/utils"
:
"^6.
2.6
"
,
"@koishijs/utils"
:
"^6.
3.4
"
,
"@minatojs/core"
:
"^2.0.
1
"
,
"@minatojs/core"
:
"^2.0.
3
"
,
"@satorijs/core"
:
"^1.4.
3
"
,
"@satorijs/core"
:
"^1.4.
11
"
,
"cordis"
:
"^2.6.0"
,
"cordis"
:
"^2.6.0"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"fastest-levenshtein"
:
"^1.0.16"
"fastest-levenshtein"
:
"^1.0.16"
}
}
},
},
"node_modules/@koishijs/plugin-console"
:
{
"node_modules/@koishijs/plugin-console"
:
{
"version"
:
"
4.7.1
"
,
"version"
:
"
5.0.0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-console/-/plugin-console-
4.7.1
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-console/-/plugin-console-
5.0.0
.tgz"
,
"integrity"
:
"sha512-
pkoWnR1j/XQkZ3veUypmtaeyH21Fo3BIPRGN5Ct1TVFzMrj/d553hc4EmHXO2Qi2HEQnYYMaVSY3ApWWHLUVzA
=="
,
"integrity"
:
"sha512-
6jLYse2EYgoNcOvOfKWWBnMXEfY8E9NCKpLrr8ts7PmY+8ot9ZsO4SbEEDYB1VgKMfkKm1zY12Jsa+ziNIiG1Q
=="
,
"dev"
:
true
,
"dev"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"open"
:
"^8.4.0"
,
"open"
:
"^8.4.0"
,
...
@@ -1422,7 +1422,7 @@
...
@@ -1422,7 +1422,7 @@
"ws"
:
"^8.11.0"
"ws"
:
"^8.11.0"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"koishi"
:
"^4.10.
4
"
"koishi"
:
"^4.10.
6
"
}
}
},
},
"node_modules/@koishijs/plugin-database-memory"
:
{
"node_modules/@koishijs/plugin-database-memory"
:
{
...
@@ -1438,31 +1438,31 @@
...
@@ -1438,31 +1438,31 @@
}
}
},
},
"node_modules/@koishijs/plugin-sandbox"
:
{
"node_modules/@koishijs/plugin-sandbox"
:
{
"version"
:
"2.
4
.0"
,
"version"
:
"2.
5
.0"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-sandbox/-/plugin-sandbox-2.
4
.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-sandbox/-/plugin-sandbox-2.
5
.0.tgz"
,
"integrity"
:
"sha512-
HUsxONww1CUwA18b1cGsGRFA0p1e9B1nYMek5iUQc7eCxkTjRmnmwjcskOmvOPlLqlziE59NV82jD7M/aUd9R
g=="
,
"integrity"
:
"sha512-
9sRLvSmHP8s6mkegGOedQocSDwhtULeoWEUH+CMoLPltIPCy2zam7ZA/+1Te2hNcRqN2NbhS/rOWAO6XeQ1PT
g=="
,
"dev"
:
true
,
"dev"
:
true
,
"peerDependencies"
:
{
"peerDependencies"
:
{
"@koishijs/plugin-console"
:
"^
4.6.12
"
,
"@koishijs/plugin-console"
:
"^
5.0.0
"
,
"koishi"
:
"^4.10.
2
"
"koishi"
:
"^4.10.
6
"
}
}
},
},
"node_modules/@koishijs/utils"
:
{
"node_modules/@koishijs/utils"
:
{
"version"
:
"6.
2.6
"
,
"version"
:
"6.
3.4
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/utils/-/utils-6.
2.6
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/utils/-/utils-6.
3.4
.tgz"
,
"integrity"
:
"sha512-
JAqzAmTLwLwd4LHRoLjMvCojHeyDiGaKqgpd7p3/PMeXL7aHtN+owPv0xtn9jB375llGHYQT51PMkiLMbAIpYw
=="
,
"integrity"
:
"sha512-
P8hQOTVYsk5rCkBcYbIKKKBm58etGlY/Q3xOuMEyz6BlTe0V8A6lFv56nInuPIaTOf4XprTceZBE6Oe3lC8RuQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"inaba"
:
"^1.1.1"
,
"inaba"
:
"^1.1.1"
,
"reggol"
:
"^1.3.
2
"
,
"reggol"
:
"^1.3.
3
"
,
"schemastery"
:
"^3.
5.4
"
"schemastery"
:
"^3.
6.1
"
}
}
},
},
"node_modules/@minatojs/core"
:
{
"node_modules/@minatojs/core"
:
{
"version"
:
"2.0.
2
"
,
"version"
:
"2.0.
3
"
,
"resolved"
:
"https://registry.npmjs.org/@minatojs/core/-/core-2.0.
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@minatojs/core/-/core-2.0.
3
.tgz"
,
"integrity"
:
"sha512-
pkjdHhcTuQ1QQdBCTXQLKudm2l4JBtxwLdAtmYqCK+dUxJlAod2t7eDkCFpzcUXbQzsXWJplvs7uYSIPQUYSyA
=="
,
"integrity"
:
"sha512-
VZo1sDl9jLcejMyEfd/A+yZt/qre3vB+woSIZmWCm78zBR+CkFPk56y5EAMnu0cW9kgtq0p/KHa2VUVXyN71Bw
=="
,
"dependencies"
:
{
"dependencies"
:
{
"cosmokit"
:
"^1.3.4"
"cosmokit"
:
"^1.3.4"
}
}
...
@@ -1515,48 +1515,48 @@
...
@@ -1515,48 +1515,48 @@
}
}
},
},
"node_modules/@satorijs/core"
:
{
"node_modules/@satorijs/core"
:
{
"version"
:
"1.4.
3
"
,
"version"
:
"1.4.
11
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/core/-/core-1.4.
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/core/-/core-1.4.
11
.tgz"
,
"integrity"
:
"sha512-
L0VJVq3jlb8r4IaYlNBMfh4A3vskDMeQwl9Y5lgXBlShxsMzn2XcgtDKfa4WgNH4HzRFjS8iLkVBSo9jDW+3T
A=="
,
"integrity"
:
"sha512-
8EsVA5esShEqYMwwXipGwx7obwVb3Lc0NwBmjZWNj2++WYKYg+jQ0Iatgd2jcJhNX2H9ziqnwu05aHtWo+mSs
A=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@satorijs/element"
:
"^2.
1.7
"
,
"@satorijs/element"
:
"^2.
2.2
"
,
"cordis"
:
"^2.6.0"
,
"cordis"
:
"^2.6.0"
,
"cordis-axios"
:
"^2.1.
5
"
,
"cordis-axios"
:
"^2.1.
6
"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"reggol"
:
"^1.3.
2
"
,
"reggol"
:
"^1.3.
3
"
,
"schemastery"
:
"^3.
5.4
"
,
"schemastery"
:
"^3.
6.1
"
,
"ws"
:
"^8.11.0"
"ws"
:
"^8.11.0"
}
}
},
},
"node_modules/@satorijs/element"
:
{
"node_modules/@satorijs/element"
:
{
"version"
:
"2.
1.8
"
,
"version"
:
"2.
2.2
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/element/-/element-2.
1.8
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/element/-/element-2.
2.2
.tgz"
,
"integrity"
:
"sha512-
a1/ClyPKJQdv07RgUANdOahULTiJE7H7TRaP6w6d+DB46rh9KAvZyhp3tDgMBKBm/3bOvfpieXWExgDdQVgsBA
=="
,
"integrity"
:
"sha512-
t6K0weO+GwqHhP/C9GTchck0jDk8c63kiAr9hHEVQX3nx/+fjGquTDGzBc4WzOVc105wePWRvV1UtvRaa0I9FQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"cosmokit"
:
"^1.3.
3
"
"cosmokit"
:
"^1.3.
6
"
}
}
},
},
"node_modules/@satorijs/satori"
:
{
"node_modules/@satorijs/satori"
:
{
"version"
:
"1.4.
3
"
,
"version"
:
"1.4.
11
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/satori/-/satori-1.4.
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/satori/-/satori-1.4.
11
.tgz"
,
"integrity"
:
"sha512-
XgMolxa9/9gWf4+VKqLioBkzuZA0QXQIMWZHFET1dVvQjbxNhaETF0NBmwFSjbVBOWvTN8vecTGTSLc3pQn+R
w=="
,
"integrity"
:
"sha512-
nQHch/Ya1ClsNO9anJYfNnpiMFHCc1ihxdWuVKKpGOXRxuGMOtnbkB/Qa+NuBT+887E2NsFfTBoFgt8vuExxe
w=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@koa/router"
:
"^10.1.1"
,
"@koa/router"
:
"^10.1.1"
,
"@satorijs/core"
:
"1.4.
3
"
,
"@satorijs/core"
:
"1.4.
11
"
,
"@types/koa"
:
"*"
,
"@types/koa"
:
"*"
,
"@types/koa__router"
:
"*"
,
"@types/koa__router"
:
"*"
,
"@types/ws"
:
"^8.5.3"
,
"@types/ws"
:
"^8.5.3"
,
"agent-base"
:
"^6.0.2"
,
"agent-base"
:
"^6.0.2"
,
"http-proxy-agent"
:
"^5.0.0"
,
"http-proxy-agent"
:
"^5.0.0"
,
"https-proxy-agent"
:
"^5.0.1"
,
"https-proxy-agent"
:
"^5.0.1"
,
"koa"
:
"^2.1
3.4
"
,
"koa"
:
"^2.1
4.1
"
,
"koa-bodyparser"
:
"^4.3.0"
,
"koa-bodyparser"
:
"^4.3.0"
,
"parseurl"
:
"^1.3.3"
,
"parseurl"
:
"^1.3.3"
,
"path-to-regexp"
:
"^6.2.1"
,
"path-to-regexp"
:
"^6.2.1"
,
"schemastery"
:
"^3.
5.4
"
,
"schemastery"
:
"^3.
6.1
"
,
"socks-proxy-agent"
:
"^5.0.1"
,
"socks-proxy-agent"
:
"^5.0.1"
,
"ws"
:
"^8.11.0"
"ws"
:
"^8.11.0"
},
},
...
@@ -2907,16 +2907,16 @@
...
@@ -2907,16 +2907,16 @@
}
}
},
},
"node_modules/cordis-axios"
:
{
"node_modules/cordis-axios"
:
{
"version"
:
"2.1.
5
"
,
"version"
:
"2.1.
6
"
,
"resolved"
:
"https://registry.npmjs.org/cordis-axios/-/cordis-axios-2.1.
5
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/cordis-axios/-/cordis-axios-2.1.
6
.tgz"
,
"integrity"
:
"sha512-
L5cHolNBlo4MxhfWRETpz1G20jF6J0Hu+5zPxebo0XJthqO0eI6U/2DrbQvXARnyMhuQIIZfoPJLvSNgd0Rjzw
=="
,
"integrity"
:
"sha512-
GaJq5zoh4XRAFHEOyCLyU7kIcRrV7hqDVEh5kF4t047TmROAUaLukPKSMeMVMNohpKW4Vz+tj2FGEqMx5NuBQg
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"~1.1.3"
,
"axios"
:
"~1.1.3"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
4
"
,
"file-type"
:
"^16.5.4"
,
"file-type"
:
"^16.5.4"
,
"mime-db"
:
"^1.52.0"
,
"mime-db"
:
"^1.52.0"
,
"schemastery"
:
"^3.
5.4
"
"schemastery"
:
"^3.
6.1
"
},
},
"engines"
:
{
"engines"
:
{
"node"
:
">=12.0.0"
"node"
:
">=12.0.0"
...
@@ -2943,9 +2943,9 @@
...
@@ -2943,9 +2943,9 @@
}
}
},
},
"node_modules/cosmokit"
:
{
"node_modules/cosmokit"
:
{
"version"
:
"1.3.
4
"
,
"version"
:
"1.3.
6
"
,
"resolved"
:
"https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.
6
.tgz"
,
"integrity"
:
"sha512-
E4G29C9xwvi1mcihAYz1R0NGbu8lYkxi/MRtnfG8qJ10OGJNhgdvgE3X7XgpMHEFkhEGT+YTnjUvQA53gI7Vo
g=="
"integrity"
:
"sha512-
buZvC7fuqBbSimJfkaaTJmlelpgj56L7VybjNkCy5UVvShMVQHi/bTZcuBfYLBwpuebSfvDZPwwHS5IfcoAnx
g=="
},
},
"node_modules/create-require"
:
{
"node_modules/create-require"
:
{
"version"
:
"1.1.1"
,
"version"
:
"1.1.1"
,
...
@@ -6024,9 +6024,9 @@
...
@@ -6024,9 +6024,9 @@
}
}
},
},
"node_modules/koa"
:
{
"node_modules/koa"
:
{
"version"
:
"2.1
3.4
"
,
"version"
:
"2.1
4.1
"
,
"resolved"
:
"https://registry.npmjs.org/koa/-/koa-2.1
3.4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koa/-/koa-2.1
4.1
.tgz"
,
"integrity"
:
"sha512-
43zkIKubNbnrULWlHdN5h1g3SEKXOEzoAlRsHOTFpnlDu8JlAOZSMJBLULusuXRequboiwJcj5vtYXKB3k7+2g
=="
,
"integrity"
:
"sha512-
USJFyZgi2l0wDgqkfD27gL4YGno7TfUkcmOe6UOLFOVuN+J7FwnNu4Dydl4CUQzraM1lBAiGed0M9OVJoT0Kqw
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"accepts"
:
"^1.3.5"
,
"accepts"
:
"^1.3.5"
,
...
@@ -6099,14 +6099,14 @@
...
@@ -6099,14 +6099,14 @@
}
}
},
},
"node_modules/koishi"
:
{
"node_modules/koishi"
:
{
"version"
:
"4.10.
4
"
,
"version"
:
"4.10.
10
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.10.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.10.
10
.tgz"
,
"integrity"
:
"sha512-
06ylHCmyyj8buQxPcnuSap7Yco6HtzC0o61AwBuBOikdILQj2WicexztohuLhQ/9ElA3pEOsJaHzDa/9Lh71Ng
=="
,
"integrity"
:
"sha512-
92VxR/7AL8l2eyd0MOWi5Nc/nLe2lX9ftglsMkqHvvImFkQma+2kSuexuxVLjcDmkAL6LWI27VxyuUH35jl5PQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@koishijs/core"
:
"^4.10.
4
"
,
"@koishijs/core"
:
"^4.10.
10
"
,
"@koishijs/utils"
:
"^6.
2.6
"
,
"@koishijs/utils"
:
"^6.
3.4
"
,
"@satorijs/satori"
:
"^1.4.
3
"
,
"@satorijs/satori"
:
"^1.4.
11
"
,
"file-type"
:
"^16.5.4"
,
"file-type"
:
"^16.5.4"
,
"ns-require"
:
"^1.1.4"
"ns-require"
:
"^1.1.4"
},
},
...
@@ -6115,16 +6115,16 @@
...
@@ -6115,16 +6115,16 @@
}
}
},
},
"node_modules/koishi-thirdeye"
:
{
"node_modules/koishi-thirdeye"
:
{
"version"
:
"11.1.1
4
"
,
"version"
:
"11.1.1
7
"
,
"resolved"
:
"https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-11.1.1
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-11.1.1
7
.tgz"
,
"integrity"
:
"sha512-
poQZwMfkiurvDMdEhfa0TnhRhe/7VNismNDo6xcZAZVUfDl4Q8USCYEVwlmUvi6GSWl4X+4a51YL3VUZQX+GrA
=="
,
"integrity"
:
"sha512-
Ij65qf1pLO1kQMrs2RNRVUdalmb2lL8tcxGVl79cDqW/V6ECjPgaSVIPuUT3uxI6FAaQHq9dXHMF54Iw05W8+Q
=="
,
"dependencies"
:
{
"dependencies"
:
{
"minato-decorators"
:
"^2.2.1"
,
"minato-decorators"
:
"^2.2.1"
,
"rxjs"
:
"^7.5.6"
,
"rxjs"
:
"^7.5.6"
,
"satori-decorators"
:
"^1.1.1"
"satori-decorators"
:
"^1.1.1"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"koishi"
:
"^4.10.
4
"
"koishi"
:
"^4.10.
10
"
}
}
},
},
"node_modules/leven"
:
{
"node_modules/leven"
:
{
...
@@ -6985,12 +6985,12 @@
...
@@ -6985,12 +6985,12 @@
}
}
},
},
"node_modules/reggol"
:
{
"node_modules/reggol"
:
{
"version"
:
"1.3.
2
"
,
"version"
:
"1.3.
3
"
,
"resolved"
:
"https://registry.npmjs.org/reggol/-/reggol-1.3.
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/reggol/-/reggol-1.3.
3
.tgz"
,
"integrity"
:
"sha512-
vI+nWzdBJlO9OsrDCJ/z5NS4/o1mzHjwrZcn6LoESHn2get7LrbZ0TZB/dEkCtUlah324rxd5E2zciT/98Op1
Q=="
,
"integrity"
:
"sha512-
AmFo4aBBLwd1IosfkQ9cnWJF+RDXjrfmY2pFeRXSLlvi1UoqMYLsltR/514R8Dr/ZfAYdcD75V/vFDK60hgyO
Q=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"object-inspect"
:
"^1.12.2"
,
"object-inspect"
:
"^1.12.2"
,
"supports-color"
:
"^8.1.1"
"supports-color"
:
"^8.1.1"
}
}
...
@@ -7181,12 +7181,12 @@
...
@@ -7181,12 +7181,12 @@
}
}
},
},
"node_modules/schemastery"
:
{
"node_modules/schemastery"
:
{
"version"
:
"3.
5.4
"
,
"version"
:
"3.
6.1
"
,
"resolved"
:
"https://registry.npmjs.org/schemastery/-/schemastery-3.
5.4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/schemastery/-/schemastery-3.
6.1
.tgz"
,
"integrity"
:
"sha512-
YPr+tR4fFt/d1gH0AXQjlr+Luw5+3Hz75tWT8g8Iqt1wnNTys3+TB2wAaekrTKhgnWhQPCHwDfLF1KZHNTNqu
w=="
,
"integrity"
:
"sha512-
Igh4oqaHco1AYmqpSgYgg411gNomSI9xE35Xo/FuzJZTMYWA5W1o+82Q5qMnt9FAQ76gZig0pea9OcHl0AM/L
w=="
,
"peer"
:
true
,
"peer"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"cosmokit"
:
"^1.
2.1
"
"cosmokit"
:
"^1.
3.4
"
}
}
},
},
"node_modules/schemastery-gen"
:
{
"node_modules/schemastery-gen"
:
{
...
@@ -9406,23 +9406,23 @@
...
@@ -9406,23 +9406,23 @@
}
}
},
},
"@koishijs/core"
:
{
"@koishijs/core"
:
{
"version"
:
"4.10.
4
"
,
"version"
:
"4.10.
10
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.10.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.10.
10
.tgz"
,
"integrity"
:
"sha512-
uhR2RoslHs3ynhElWP+jIwzqn8PprlPGF10qWQvTpW1l5XmPr+PiWgf5HmAGt1XucWcuij9n1Z179yqZs6xLNg
=="
,
"integrity"
:
"sha512-
LooBZCQSm91TL7aBBECjaFaROn+udCAavOwi+AWzbFPBfcuF4ZHFGpQ112yWK70xbQ7YhHUueueqJpkAGOy4RA
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"@koishijs/utils"
:
"^6.
2.6
"
,
"@koishijs/utils"
:
"^6.
3.4
"
,
"@minatojs/core"
:
"^2.0.
1
"
,
"@minatojs/core"
:
"^2.0.
3
"
,
"@satorijs/core"
:
"^1.4.
3
"
,
"@satorijs/core"
:
"^1.4.
11
"
,
"cordis"
:
"^2.6.0"
,
"cordis"
:
"^2.6.0"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"fastest-levenshtein"
:
"^1.0.16"
"fastest-levenshtein"
:
"^1.0.16"
}
}
},
},
"@koishijs/plugin-console"
:
{
"@koishijs/plugin-console"
:
{
"version"
:
"
4.7.1
"
,
"version"
:
"
5.0.0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-console/-/plugin-console-
4.7.1
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-console/-/plugin-console-
5.0.0
.tgz"
,
"integrity"
:
"sha512-
pkoWnR1j/XQkZ3veUypmtaeyH21Fo3BIPRGN5Ct1TVFzMrj/d553hc4EmHXO2Qi2HEQnYYMaVSY3ApWWHLUVzA
=="
,
"integrity"
:
"sha512-
6jLYse2EYgoNcOvOfKWWBnMXEfY8E9NCKpLrr8ts7PmY+8ot9ZsO4SbEEDYB1VgKMfkKm1zY12Jsa+ziNIiG1Q
=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"open"
:
"^8.4.0"
,
"open"
:
"^8.4.0"
,
...
@@ -9440,28 +9440,28 @@
...
@@ -9440,28 +9440,28 @@
}
}
},
},
"@koishijs/plugin-sandbox"
:
{
"@koishijs/plugin-sandbox"
:
{
"version"
:
"2.
4
.0"
,
"version"
:
"2.
5
.0"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-sandbox/-/plugin-sandbox-2.
4
.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-sandbox/-/plugin-sandbox-2.
5
.0.tgz"
,
"integrity"
:
"sha512-
HUsxONww1CUwA18b1cGsGRFA0p1e9B1nYMek5iUQc7eCxkTjRmnmwjcskOmvOPlLqlziE59NV82jD7M/aUd9R
g=="
,
"integrity"
:
"sha512-
9sRLvSmHP8s6mkegGOedQocSDwhtULeoWEUH+CMoLPltIPCy2zam7ZA/+1Te2hNcRqN2NbhS/rOWAO6XeQ1PT
g=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{}
"requires"
:
{}
},
},
"@koishijs/utils"
:
{
"@koishijs/utils"
:
{
"version"
:
"6.
2.6
"
,
"version"
:
"6.
3.4
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/utils/-/utils-6.
2.6
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/utils/-/utils-6.
3.4
.tgz"
,
"integrity"
:
"sha512-
JAqzAmTLwLwd4LHRoLjMvCojHeyDiGaKqgpd7p3/PMeXL7aHtN+owPv0xtn9jB375llGHYQT51PMkiLMbAIpYw
=="
,
"integrity"
:
"sha512-
P8hQOTVYsk5rCkBcYbIKKKBm58etGlY/Q3xOuMEyz6BlTe0V8A6lFv56nInuPIaTOf4XprTceZBE6Oe3lC8RuQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"inaba"
:
"^1.1.1"
,
"inaba"
:
"^1.1.1"
,
"reggol"
:
"^1.3.
2
"
,
"reggol"
:
"^1.3.
3
"
,
"schemastery"
:
"^3.
5.4
"
"schemastery"
:
"^3.
6.1
"
}
}
},
},
"@minatojs/core"
:
{
"@minatojs/core"
:
{
"version"
:
"2.0.
2
"
,
"version"
:
"2.0.
3
"
,
"resolved"
:
"https://registry.npmjs.org/@minatojs/core/-/core-2.0.
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@minatojs/core/-/core-2.0.
3
.tgz"
,
"integrity"
:
"sha512-
pkjdHhcTuQ1QQdBCTXQLKudm2l4JBtxwLdAtmYqCK+dUxJlAod2t7eDkCFpzcUXbQzsXWJplvs7uYSIPQUYSyA
=="
,
"integrity"
:
"sha512-
VZo1sDl9jLcejMyEfd/A+yZt/qre3vB+woSIZmWCm78zBR+CkFPk56y5EAMnu0cW9kgtq0p/KHa2VUVXyN71Bw
=="
,
"requires"
:
{
"requires"
:
{
"cosmokit"
:
"^1.3.4"
"cosmokit"
:
"^1.3.4"
}
}
...
@@ -9502,48 +9502,48 @@
...
@@ -9502,48 +9502,48 @@
}
}
},
},
"@satorijs/core"
:
{
"@satorijs/core"
:
{
"version"
:
"1.4.
3
"
,
"version"
:
"1.4.
11
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/core/-/core-1.4.
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/core/-/core-1.4.
11
.tgz"
,
"integrity"
:
"sha512-
L0VJVq3jlb8r4IaYlNBMfh4A3vskDMeQwl9Y5lgXBlShxsMzn2XcgtDKfa4WgNH4HzRFjS8iLkVBSo9jDW+3T
A=="
,
"integrity"
:
"sha512-
8EsVA5esShEqYMwwXipGwx7obwVb3Lc0NwBmjZWNj2++WYKYg+jQ0Iatgd2jcJhNX2H9ziqnwu05aHtWo+mSs
A=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"@satorijs/element"
:
"^2.
1.7
"
,
"@satorijs/element"
:
"^2.
2.2
"
,
"cordis"
:
"^2.6.0"
,
"cordis"
:
"^2.6.0"
,
"cordis-axios"
:
"^2.1.
5
"
,
"cordis-axios"
:
"^2.1.
6
"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"reggol"
:
"^1.3.
2
"
,
"reggol"
:
"^1.3.
3
"
,
"schemastery"
:
"^3.
5.4
"
,
"schemastery"
:
"^3.
6.1
"
,
"ws"
:
"^8.11.0"
"ws"
:
"^8.11.0"
}
}
},
},
"@satorijs/element"
:
{
"@satorijs/element"
:
{
"version"
:
"2.
1.8
"
,
"version"
:
"2.
2.2
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/element/-/element-2.
1.8
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/element/-/element-2.
2.2
.tgz"
,
"integrity"
:
"sha512-
a1/ClyPKJQdv07RgUANdOahULTiJE7H7TRaP6w6d+DB46rh9KAvZyhp3tDgMBKBm/3bOvfpieXWExgDdQVgsBA
=="
,
"integrity"
:
"sha512-
t6K0weO+GwqHhP/C9GTchck0jDk8c63kiAr9hHEVQX3nx/+fjGquTDGzBc4WzOVc105wePWRvV1UtvRaa0I9FQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"cosmokit"
:
"^1.3.
3
"
"cosmokit"
:
"^1.3.
6
"
}
}
},
},
"@satorijs/satori"
:
{
"@satorijs/satori"
:
{
"version"
:
"1.4.
3
"
,
"version"
:
"1.4.
11
"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/satori/-/satori-1.4.
3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@satorijs/satori/-/satori-1.4.
11
.tgz"
,
"integrity"
:
"sha512-
XgMolxa9/9gWf4+VKqLioBkzuZA0QXQIMWZHFET1dVvQjbxNhaETF0NBmwFSjbVBOWvTN8vecTGTSLc3pQn+R
w=="
,
"integrity"
:
"sha512-
nQHch/Ya1ClsNO9anJYfNnpiMFHCc1ihxdWuVKKpGOXRxuGMOtnbkB/Qa+NuBT+887E2NsFfTBoFgt8vuExxe
w=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"@koa/router"
:
"^10.1.1"
,
"@koa/router"
:
"^10.1.1"
,
"@satorijs/core"
:
"1.4.
3
"
,
"@satorijs/core"
:
"1.4.
11
"
,
"@types/koa"
:
"*"
,
"@types/koa"
:
"*"
,
"@types/koa__router"
:
"*"
,
"@types/koa__router"
:
"*"
,
"@types/ws"
:
"^8.5.3"
,
"@types/ws"
:
"^8.5.3"
,
"agent-base"
:
"^6.0.2"
,
"agent-base"
:
"^6.0.2"
,
"http-proxy-agent"
:
"^5.0.0"
,
"http-proxy-agent"
:
"^5.0.0"
,
"https-proxy-agent"
:
"^5.0.1"
,
"https-proxy-agent"
:
"^5.0.1"
,
"koa"
:
"^2.1
3.4
"
,
"koa"
:
"^2.1
4.1
"
,
"koa-bodyparser"
:
"^4.3.0"
,
"koa-bodyparser"
:
"^4.3.0"
,
"parseurl"
:
"^1.3.3"
,
"parseurl"
:
"^1.3.3"
,
"path-to-regexp"
:
"^6.2.1"
,
"path-to-regexp"
:
"^6.2.1"
,
"schemastery"
:
"^3.
5.4
"
,
"schemastery"
:
"^3.
6.1
"
,
"socks-proxy-agent"
:
"^5.0.1"
,
"socks-proxy-agent"
:
"^5.0.1"
,
"ws"
:
"^8.11.0"
"ws"
:
"^8.11.0"
}
}
...
@@ -10649,16 +10649,16 @@
...
@@ -10649,16 +10649,16 @@
}
}
},
},
"cordis-axios"
:
{
"cordis-axios"
:
{
"version"
:
"2.1.
5
"
,
"version"
:
"2.1.
6
"
,
"resolved"
:
"https://registry.npmjs.org/cordis-axios/-/cordis-axios-2.1.
5
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/cordis-axios/-/cordis-axios-2.1.
6
.tgz"
,
"integrity"
:
"sha512-
L5cHolNBlo4MxhfWRETpz1G20jF6J0Hu+5zPxebo0XJthqO0eI6U/2DrbQvXARnyMhuQIIZfoPJLvSNgd0Rjzw
=="
,
"integrity"
:
"sha512-
GaJq5zoh4XRAFHEOyCLyU7kIcRrV7hqDVEh5kF4t047TmROAUaLukPKSMeMVMNohpKW4Vz+tj2FGEqMx5NuBQg
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"axios"
:
"~1.1.3"
,
"axios"
:
"~1.1.3"
,
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
4
"
,
"file-type"
:
"^16.5.4"
,
"file-type"
:
"^16.5.4"
,
"mime-db"
:
"^1.52.0"
,
"mime-db"
:
"^1.52.0"
,
"schemastery"
:
"^3.
5.4
"
"schemastery"
:
"^3.
6.1
"
}
}
},
},
"cordis-decorators"
:
{
"cordis-decorators"
:
{
...
@@ -10675,9 +10675,9 @@
...
@@ -10675,9 +10675,9 @@
}
}
},
},
"cosmokit"
:
{
"cosmokit"
:
{
"version"
:
"1.3.
4
"
,
"version"
:
"1.3.
6
"
,
"resolved"
:
"https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.
6
.tgz"
,
"integrity"
:
"sha512-
E4G29C9xwvi1mcihAYz1R0NGbu8lYkxi/MRtnfG8qJ10OGJNhgdvgE3X7XgpMHEFkhEGT+YTnjUvQA53gI7Vo
g=="
"integrity"
:
"sha512-
buZvC7fuqBbSimJfkaaTJmlelpgj56L7VybjNkCy5UVvShMVQHi/bTZcuBfYLBwpuebSfvDZPwwHS5IfcoAnx
g=="
},
},
"create-require"
:
{
"create-require"
:
{
"version"
:
"1.1.1"
,
"version"
:
"1.1.1"
,
...
@@ -12899,9 +12899,9 @@
...
@@ -12899,9 +12899,9 @@
"dev"
:
true
"dev"
:
true
},
},
"koa"
:
{
"koa"
:
{
"version"
:
"2.1
3.4
"
,
"version"
:
"2.1
4.1
"
,
"resolved"
:
"https://registry.npmjs.org/koa/-/koa-2.1
3.4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koa/-/koa-2.1
4.1
.tgz"
,
"integrity"
:
"sha512-
43zkIKubNbnrULWlHdN5h1g3SEKXOEzoAlRsHOTFpnlDu8JlAOZSMJBLULusuXRequboiwJcj5vtYXKB3k7+2g
=="
,
"integrity"
:
"sha512-
USJFyZgi2l0wDgqkfD27gL4YGno7TfUkcmOe6UOLFOVuN+J7FwnNu4Dydl4CUQzraM1lBAiGed0M9OVJoT0Kqw
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"accepts"
:
"^1.3.5"
,
"accepts"
:
"^1.3.5"
,
...
@@ -12964,22 +12964,22 @@
...
@@ -12964,22 +12964,22 @@
}
}
},
},
"koishi"
:
{
"koishi"
:
{
"version"
:
"4.10.
4
"
,
"version"
:
"4.10.
10
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.10.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.10.
10
.tgz"
,
"integrity"
:
"sha512-
06ylHCmyyj8buQxPcnuSap7Yco6HtzC0o61AwBuBOikdILQj2WicexztohuLhQ/9ElA3pEOsJaHzDa/9Lh71Ng
=="
,
"integrity"
:
"sha512-
92VxR/7AL8l2eyd0MOWi5Nc/nLe2lX9ftglsMkqHvvImFkQma+2kSuexuxVLjcDmkAL6LWI27VxyuUH35jl5PQ
=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"@koishijs/core"
:
"^4.10.
4
"
,
"@koishijs/core"
:
"^4.10.
10
"
,
"@koishijs/utils"
:
"^6.
2.6
"
,
"@koishijs/utils"
:
"^6.
3.4
"
,
"@satorijs/satori"
:
"^1.4.
3
"
,
"@satorijs/satori"
:
"^1.4.
11
"
,
"file-type"
:
"^16.5.4"
,
"file-type"
:
"^16.5.4"
,
"ns-require"
:
"^1.1.4"
"ns-require"
:
"^1.1.4"
}
}
},
},
"koishi-thirdeye"
:
{
"koishi-thirdeye"
:
{
"version"
:
"11.1.1
4
"
,
"version"
:
"11.1.1
7
"
,
"resolved"
:
"https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-11.1.1
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/koishi-thirdeye/-/koishi-thirdeye-11.1.1
7
.tgz"
,
"integrity"
:
"sha512-
poQZwMfkiurvDMdEhfa0TnhRhe/7VNismNDo6xcZAZVUfDl4Q8USCYEVwlmUvi6GSWl4X+4a51YL3VUZQX+GrA
=="
,
"integrity"
:
"sha512-
Ij65qf1pLO1kQMrs2RNRVUdalmb2lL8tcxGVl79cDqW/V6ECjPgaSVIPuUT3uxI6FAaQHq9dXHMF54Iw05W8+Q
=="
,
"requires"
:
{
"requires"
:
{
"minato-decorators"
:
"^2.2.1"
,
"minato-decorators"
:
"^2.2.1"
,
"rxjs"
:
"^7.5.6"
,
"rxjs"
:
"^7.5.6"
,
...
@@ -13616,12 +13616,12 @@
...
@@ -13616,12 +13616,12 @@
"dev"
:
true
"dev"
:
true
},
},
"reggol"
:
{
"reggol"
:
{
"version"
:
"1.3.
2
"
,
"version"
:
"1.3.
3
"
,
"resolved"
:
"https://registry.npmjs.org/reggol/-/reggol-1.3.
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/reggol/-/reggol-1.3.
3
.tgz"
,
"integrity"
:
"sha512-
vI+nWzdBJlO9OsrDCJ/z5NS4/o1mzHjwrZcn6LoESHn2get7LrbZ0TZB/dEkCtUlah324rxd5E2zciT/98Op1
Q=="
,
"integrity"
:
"sha512-
AmFo4aBBLwd1IosfkQ9cnWJF+RDXjrfmY2pFeRXSLlvi1UoqMYLsltR/514R8Dr/ZfAYdcD75V/vFDK60hgyO
Q=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"cosmokit"
:
"^1.3.
3
"
,
"cosmokit"
:
"^1.3.
6
"
,
"object-inspect"
:
"^1.12.2"
,
"object-inspect"
:
"^1.12.2"
,
"supports-color"
:
"^8.1.1"
"supports-color"
:
"^8.1.1"
},
},
...
@@ -13755,12 +13755,12 @@
...
@@ -13755,12 +13755,12 @@
}
}
},
},
"schemastery"
:
{
"schemastery"
:
{
"version"
:
"3.
5.4
"
,
"version"
:
"3.
6.1
"
,
"resolved"
:
"https://registry.npmjs.org/schemastery/-/schemastery-3.
5.4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/schemastery/-/schemastery-3.
6.1
.tgz"
,
"integrity"
:
"sha512-
YPr+tR4fFt/d1gH0AXQjlr+Luw5+3Hz75tWT8g8Iqt1wnNTys3+TB2wAaekrTKhgnWhQPCHwDfLF1KZHNTNqu
w=="
,
"integrity"
:
"sha512-
Igh4oqaHco1AYmqpSgYgg411gNomSI9xE35Xo/FuzJZTMYWA5W1o+82Q5qMnt9FAQ76gZig0pea9OcHl0AM/L
w=="
,
"peer"
:
true
,
"peer"
:
true
,
"requires"
:
{
"requires"
:
{
"cosmokit"
:
"^1.
2.1
"
"cosmokit"
:
"^1.
3.4
"
}
}
},
},
"schemastery-gen"
:
{
"schemastery-gen"
:
{
...
...
package.json
View file @
fba3555b
...
@@ -28,13 +28,13 @@
...
@@ -28,13 +28,13 @@
"homepage"
:
"
https://github.com/koishijs/koishi-plugin-pics
"
,
"homepage"
:
"
https://github.com/koishijs/koishi-plugin-pics
"
,
"dependencies"
:
{
"dependencies"
:
{
"
@koishijs/assets
"
:
"
^1.0.1
"
,
"
@koishijs/assets
"
:
"
^1.0.1
"
,
"
koishi-thirdeye
"
:
"
^11.1.1
4
"
,
"
koishi-thirdeye
"
:
"
^11.1.1
7
"
,
"
lodash
"
:
"
^4.17.21
"
"
lodash
"
:
"
^4.17.21
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@koishijs/plugin-console
"
:
"
^
4.7.1
"
,
"
@koishijs/plugin-console
"
:
"
^
5.0.0
"
,
"
@koishijs/plugin-database-memory
"
:
"
^2.0.1
"
,
"
@koishijs/plugin-database-memory
"
:
"
^2.0.1
"
,
"
@koishijs/plugin-sandbox
"
:
"
^2.
4
.0
"
,
"
@koishijs/plugin-sandbox
"
:
"
^2.
5
.0
"
,
"
@types/jest
"
:
"
^29.2.0
"
,
"
@types/jest
"
:
"
^29.2.0
"
,
"
@types/lodash
"
:
"
^4.14.176
"
,
"
@types/lodash
"
:
"
^4.14.176
"
,
"
@types/node
"
:
"
^16.11.4
"
,
"
@types/node
"
:
"
^16.11.4
"
,
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
"
ws
"
:
"
^8.3.0
"
"
ws
"
:
"
^8.3.0
"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"koishi"
:
"^4.10.
4
"
"koishi"
:
"^4.10.
10
"
},
},
"jest"
:
{
"jest"
:
{
"moduleFileExtensions"
:
[
"moduleFileExtensions"
:
[
...
...
src/index.ts
View file @
fba3555b
// import 'source-map-support/register';
// import 'source-map-support/register';
import
{
Context
,
Random
,
Logger
,
Bot
,
remove
}
from
'
koishi
'
;
import
{
Context
,
Random
,
Logger
,
Bot
,
remove
,
Session
,
Dict
}
from
'
koishi
'
;
import
{
PicsPluginConfig
}
from
'
./config
'
;
import
{
PicsPluginConfig
}
from
'
./config
'
;
import
_
from
'
lodash
'
;
import
_
from
'
lodash
'
;
import
{
segment
,
Quester
}
from
'
koishi
'
;
import
{
segment
,
Quester
,
Element
}
from
'
koishi
'
;
import
{
import
{
StarterPlugin
,
StarterPlugin
,
Caller
,
Caller
,
...
@@ -14,11 +14,11 @@ import {
...
@@ -14,11 +14,11 @@ import {
LifecycleEvents
,
LifecycleEvents
,
Provide
,
Provide
,
PutArgs
,
PutArgs
,
PutBot
,
PutOption
,
PutOption
,
PutRenderer
,
PutRenderer
,
Renderer
,
Renderer
,
UseCommand
,
UseCommand
,
UseComponent
,
}
from
'
koishi-thirdeye
'
;
}
from
'
koishi-thirdeye
'
;
import
{
AxiosRequestConfig
}
from
'
axios
'
;
import
{
AxiosRequestConfig
}
from
'
axios
'
;
import
{
PicAssetsTransformMiddleware
}
from
'
./middlewares/assets
'
;
import
{
PicAssetsTransformMiddleware
}
from
'
./middlewares/assets
'
;
...
@@ -322,4 +322,19 @@ export default class PicsContainer
...
@@ -322,4 +322,19 @@ export default class PicsContainer
this
.
_http
=
this
.
http
.
extend
(
this
.
config
.
httpConfig
);
this
.
_http
=
this
.
http
.
extend
(
this
.
config
.
httpConfig
);
this
.
installDefaultMiddlewares
();
this
.
installDefaultMiddlewares
();
}
}
@
UseComponent
(
'
pics
'
)
async
picsComponent
(
attrs
:
Dict
<
any
>
,
children
:
Element
[],
session
:
Session
)
{
const
tags
=
attrs
.
tags
?.
split
(
/
[
,+
\u
FF0C
\u
FF0B
\u
3001
]
/
)
||
[];
const
sourceTags
=
attrs
.
source
?.
split
(
/
[
,+
\u
FF0C
\u
FF0B
\u
3001
]
/
)
||
[];
const
result
=
await
this
.
randomPic
(
tags
,
sourceTags
);
if
(
!
result
)
{
return
attrs
.
fallback
||
''
;
}
const
segment
=
await
this
.
getSegment
(
result
.
url
);
if
(
result
.
description
)
{
segment
.
attrs
.
description
=
result
.
description
;
}
return
segment
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment