From a6ca9ad5be4256a97052f652c7e2aeca135739cb Mon Sep 17 00:00:00 2001 From: Thibaud WOJTOWICZ Date: Sat, 14 Aug 2021 21:26:18 +0200 Subject: [PATCH] add new tags --- .../packaging_apps_arguments_format.md | 158 +++++++++++++++++- 1 file changed, 157 insertions(+), 1 deletion(-) diff --git a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md index 4becbcc5..4a1aebc4 100644 --- a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md +++ b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md @@ -60,7 +60,6 @@ optional = true # optional, will skip if not answered This one is the simpliest one and is the default type if you don't specify one. -Example in toml: [ui-tabs position="top-left" active="0" theme="lite"] [ui-tab title="in toml"] ```toml @@ -359,3 +358,160 @@ ask.fr = "le text en français" ``` [/ui-tab] [/ui-tabs] + +### Range +This type will ask the user to specify a numeric value between two terminals. +Te precise value, however, is not considered important. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "email" +ask.en = "Put a range" +ask.fr = "Indiquer " +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "email", + "ask": { + "en": "the email address", + "fr": "l adresse courriel" + } +}, +``` +[/ui-tab] +[/ui-tabs] + +### Email +This type will ask the user to input a email address. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "email" +ask.en = "the email address" +ask.fr = "l adresse courriel" +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "email", + "ask": { + "en": "the email address", + "fr": "l adresse courriel" + } +}, +``` +[/ui-tab] +[/ui-tabs] + +### Url +This type will ask the user to input a url. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "email" +ask.en = "the url" +ask.fr = "l url" +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "url", + "ask": { + "en": "the url", + "fr": "l url" + } +}, +``` +[/ui-tab] +[/ui-tabs] + +### Date +This type will ask the user to input a date. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "date" +ask.en = "the date" +ask.fr = "la date " +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "date", + "ask": { + "en": "the date", + "fr": "la date" + } +}, +``` +[/ui-tab] +[/ui-tabs] + +### Time +This type will ask the user to input a Time (hours and minutes). + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "time" +ask.en = "time" +ask.fr = "l horaire" +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "date", + "ask": { + "en": "time", + "fr": "l horaire" + } +}, +``` +[/ui-tab] +[/ui-tabs] + +### File +This type will ask the user to input a file. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = file"" +ask.en = "the file" +ask.fr = "le fichier" +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "file", + "ask": { + "en": "the file", + "fr": "le fichier" + } +}, +``` +[/ui-tab] +[/ui-tabs]