Document overlay alert settings contract
This commit is contained in:
@@ -4,13 +4,16 @@
|
|||||||
"title": "Trixie public overlay",
|
"title": "Trixie public overlay",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["slug", "html", "css", "javascript", "enabled", "disabled_design"],
|
"required": ["slug", "html", "css", "javascript", "enabled", "disabled_design", "alert_group_window_ms", "alert_group_size", "alert_display_ms"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
|
"slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
|
||||||
"html": { "type": "string" },
|
"html": { "type": "string" },
|
||||||
"css": { "type": "string" },
|
"css": { "type": "string" },
|
||||||
"javascript": { "type": "string" },
|
"javascript": { "type": "string" },
|
||||||
"enabled": { "type": "boolean" },
|
"enabled": { "type": "boolean" },
|
||||||
"disabled_design": { "type": "string" }
|
"disabled_design": { "type": "string" },
|
||||||
|
"alert_group_window_ms": { "type": "integer", "minimum": 0, "maximum": 5000 },
|
||||||
|
"alert_group_size": { "type": "integer", "minimum": 1, "maximum": 20 },
|
||||||
|
"alert_display_ms": { "type": "integer", "minimum": 500, "maximum": 60000 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,8 @@
|
|||||||
"css": "#alert { color: white; }",
|
"css": "#alert { color: white; }",
|
||||||
"javascript": "",
|
"javascript": "",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"disabled_design": "transparent"
|
"disabled_design": "transparent",
|
||||||
|
"alert_group_window_ms": 200,
|
||||||
|
"alert_group_size": 5,
|
||||||
|
"alert_display_ms": 4000
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user