diff options
| author | William Hergès <anhgelus@anhgelus.world> | 2024-12-10 20:47:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-10 20:47:56 +0100 |
| commit | 0149f9905c2830441d9ccfeccbb02e4ebf60a0d8 (patch) | |
| tree | 52ffaeaea8534a2f4771a2c8a353b37f6a97f566 /custom_page.schema.json | |
| parent | 730ec347582289efbc0cd1c48e4c243d4c4920d6 (diff) | |
| parent | 40fe301b5462b84e06747ff30add26b4259d38a4 (diff) | |
Merge pull request #1 from anhgelus/feat/custom-page
[Feat] Custom page
Diffstat (limited to 'custom_page.schema.json')
| -rw-r--r-- | custom_page.schema.json | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/custom_page.schema.json b/custom_page.schema.json new file mode 100644 index 0000000..c7a1907 --- /dev/null +++ b/custom_page.schema.json @@ -0,0 +1,117 @@ +{ + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "uri": { + "type": "string" + }, + "image": { + "type": "string" + }, + "description": { + "type": "string" + }, + "colors": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "tag_hover": { + "type": "string" + }, + "background": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "angle": { + "type": "number" + }, + "colors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "position": { + "type": "number" + } + }, + "required": [ + "color", + "position" + ] + } + } + }, + "required": [ + "type", + "angle", + "colors" + ] + }, + "buttons": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "text_hover": { + "type": "string" + }, + "background": { + "type": "string" + }, + "background_hover": { + "type": "string" + } + }, + "required": [ + "text", + "text_hover", + "background", + "background_hover" + ] + } + }, + "required": [ + "text", + "tag_hover", + "background", + "buttons" + ] + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "content": { + "type": "string" + } + }, + "required": [ + "type", + "content" + ] + } + } + }, + "required": [ + "title", + "uri", + "image", + "description", + "colors", + "content" + ] +}
\ No newline at end of file |
