updated schema for homepage fields

This commit is contained in:
yusing 2024-10-04 01:00:06 +08:00
parent de6c1be51b
commit ca3b062f89
2 changed files with 55 additions and 4 deletions

View file

@ -6,8 +6,7 @@
],
"https://github.com/yusing/go-proxy/raw/main/schema/providers.schema.json": [
"providers.example.yml",
"*.providers.yml",
"providers.yml"
"*.yml"
]
}
}
}

View file

@ -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": [