From 0a101521220908abf53c04444f2fcfa6e4a49d21 Mon Sep 17 00:00:00 2001 From: andz-bb Date: Wed, 19 Oct 2022 10:39:54 +0100 Subject: [PATCH] minor schema fixes to get plugin to load properly --- package.json | 2 +- schema.json | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index bba1949..f6efd96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "countdown_timer", - "version": "1.0.0", + "version": "1.0.1", "description": "A timer which counts down (days/min/secs) to a certain date time. Uses data from a data provider. Ability to change background color, complete text, and", "license": "MIT", "svelte": "index.js", diff --git a/schema.json b/schema.json index 5fecf6f..9f1c82a 100644 --- a/schema.json +++ b/schema.json @@ -2,25 +2,21 @@ "type": "component", "metadata": {}, "schema": { - "name": "timer", + "name": "countdown_timer", "friendlyName": "timer", "description": " The timer counts down to a specific date time. The timer can use a field from a datasource provider.", "icon": "Text", "settings": [ { - "type": "field/number", + "type": "field/datetime", "label": "Field", "key": "field", "required": true }, { "type": "select", - "options": [ - "small", - "medium", - "large" - ], - "defaultValue": "large", + "options": ["Small", "Medium", "Large"], + "defaultValue": "Large", "key": "size", "label": "Size" }, @@ -47,7 +43,7 @@ { "type": "color", "label": "Background Color", - "defaultValue":"4CAF50", + "defaultValue": "#4CAF50", "key": "color" }, { @@ -58,4 +54,4 @@ } ] } -} \ No newline at end of file +}