Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-picsource-localfs
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-picsource-localfs
Commits
8f6bc6b5
Commit
8f6bc6b5
authored
Dec 05, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
f8fd834f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/config.ts
src/config.ts
+11
-4
No files found.
src/config.ts
View file @
8f6bc6b5
...
...
@@ -14,11 +14,13 @@ export interface LocalSourceConfigLike extends PicSourceInfo {
@
RegisterSchema
()
export
class
LocalSourceConfig
extends
PicSourceConfig
implements
LocalSourceConfigLike
{
implements
LocalSourceConfigLike
{
@
DefineSchema
({
description
:
'
目录路径
'
,
required
:
true
})
path
:
string
;
@
DefineSchema
({
description
:
'
允许的文件后缀。使用 `*` 表示当前目录,`**` 表示递归所有子目录。
'
,
description
:
'
允许的文件后缀。使用 `*` 表示当前目录,`**` 表示递归所有子目录。
'
,
type
:
'
string
'
,
default
:
[
'
**.jpg
'
,
'
**.png
'
],
})
...
...
@@ -53,7 +55,12 @@ export interface PicSourceLocalFSPluginConfigLike {
}
export
class
PicSourceLocalFSPluginConfig
implements
PicSourceLocalFSPluginConfigLike
{
@
DefineSchema
({
description
:
'
目录定义
'
,
type
:
LocalSourceConfig
,
required
:
true
})
implements
PicSourceLocalFSPluginConfigLike
{
@
DefineSchema
({
description
:
'
目录定义
'
,
type
:
LocalSourceConfig
,
required
:
true
,
})
sources
:
LocalSourceConfig
[];
}
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