mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
updated schema for homepage fields
This commit is contained in:
parent
de6c1be51b
commit
ca3b062f89
2 changed files with 55 additions and 4 deletions
5
.vscode/settings.example.json
vendored
5
.vscode/settings.example.json
vendored
|
@ -6,8 +6,7 @@
|
|||
],
|
||||
"https://github.com/yusing/go-proxy/raw/main/schema/providers.schema.json": [
|
||||
"providers.example.yml",
|
||||
"*.providers.yml",
|
||||
"providers.yml"
|
||||
"*.yml"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -64,7 +64,59 @@
|
|||
"port": {},
|
||||
"no_tls_verify": {},
|
||||
"path_patterns": {},
|
||||
"middlewares": {}
|
||||
"middlewares": {},
|
||||
"homepage": {
|
||||
"title": "Dashboard config",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"show": {
|
||||
"description": "Show on dashboard",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"name": {
|
||||
"description": "Display name",
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"description": "Display icon",
|
||||
"type": "string",
|
||||
"oneOf": [
|
||||
{
|
||||
"pattern": "^(png|svg)\\/[\\w\\d-_]+\\.(png|svg)$",
|
||||
"description": "Icon from walkxcode/dashboard-icons",
|
||||
"errorMessage": "must be png/filename.png or svg/filename.svg"
|
||||
},
|
||||
{
|
||||
"pattern": "^https?://",
|
||||
"description": "Absolute URI"
|
||||
},
|
||||
{
|
||||
"pattern": "^@target/",
|
||||
"description": "Relative URI to target"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"description": "App URL override",
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"category": {
|
||||
"description": "Category",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "Description",
|
||||
"type": "string"
|
||||
},
|
||||
"widget_config": {
|
||||
"description": "Widget config",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"allOf": [
|
||||
|
|
Loading…
Add table
Reference in a new issue