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
378dca5d
Commit
378dca5d
authored
Oct 23, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
01ad7257
Pipeline
#6389
passed with stages
in 32 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
16 deletions
+3
-16
.gitlab-ci.yml
.gitlab-ci.yml
+0
-11
README.md
README.md
+2
-4
package.json
package.json
+1
-1
No files found.
.gitlab-ci.yml
View file @
378dca5d
...
...
@@ -16,17 +16,6 @@ build:
paths
:
-
dist/
upload_to_minio
:
stage
:
deploy
dependencies
:
-
build
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/pics
only
:
-
master
deploy_npm
:
stage
:
deploy
dependencies
:
...
...
README.md
View file @
378dca5d
...
...
@@ -10,10 +10,6 @@ Koishi 的随机图片插件
npm
install
koishi-plugin-pics
```
### 直接安装
在 https://cdn02.moecube.com:444/nanahira/koishi-plugin/pics/index.js 下载即可。
## 命令
### 获取随机图片
...
...
@@ -142,6 +138,8 @@ export interface PicSourceInfo {
[
`koishi-utils-schemagen`
](
https://code.mycard.moe/3rdeye/koishi-utils-schemagen
)
用户可以使用
`PicSourceConfig`
类。插件的配置文件直接继承该类即可。
> `koishi-utils-schemagen` 包请**不要**使用 Webpack 打包。使用 Webpack 编写插件的用户请把该包列为 external 。
```
ts
export
class
PicSourceConfig
{
@
DefineSchema
({
type
:
'
string
'
,
default
:
[],
desc
:
'
图源标签
'
})
...
...
package.json
View file @
378dca5d
{
"name"
:
"koishi-plugin-pics"
,
"description"
:
"Koishi 的随机图片插件"
,
"version"
:
"1.0.
2
"
,
"version"
:
"1.0.
3
"
,
"main"
:
"dist/index.js"
,
"types"
:
"dist/index.d.ts"
,
"scripts"
:
{
...
...
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