From 763cb61b8b97948d2f6d0bcd11ff553fd3bc7554 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 31 Jul 2021 17:20:48 +0200 Subject: [PATCH] bug fixes and template adjustments --- Docs/Dev/en/specification.md | 57 ++++++++++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 Docs/Dev/en/specification.md diff --git a/Docs/Dev/en/specification.md b/Docs/Dev/en/specification.md new file mode 100644 index 0000000..443c511 --- /dev/null +++ b/Docs/Dev/en/specification.md @@ -0,0 +1,57 @@ +# Specification + +```json +{ + "elements": [ + { + "create_task": 1, + "type": 1, + "optional": 0, + "description": "", + "text": "", + "labels": [], + "values": [] + } + ] +} +``` + +e.g. + +Task description - Labels/values - who? - until_when - when_actually - reference (e.g. task) + +Should have a checklist status, usually set/checked with every change. But can also be manually set, e.g. if you want to cancel a checklist/close it without finishing it. + + +SURVEY!!!!! + +```json +{ + "elements": [ + { + "type": 1, + "optional": 0, + "description": "", + "text": "", + "labels": [], + "values": [] + } + ] +} +``` + +## Type + +* 1 = Headline +* 2 = Checkbox +* 3 = Radio +* 4 = Textfield +* 5 = Dropdown + +## Text + +Headline/question, ... + +## Labels + +In case this element has different labels \ No newline at end of file diff --git a/composer.json b/composer.json index 7ad134b..7cf5769 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "require-dev": { "phpunit/phpunit": ">=9.4", "friendsofphp/php-cs-fixer": ">=3.0", - "squizlabs/php_codesniffer": ">=3.5", + "squizlabs/php_codesniffer": ">=3.6", "phpmd/phpmd": ">=2.9", "phpstan/phpstan": ">=0.12.58", "phan/phan": ">=3.2.6"