test_apps/config_app_ynh/config_panel.toml

243 lines
5.7 KiB
TOML
Raw Normal View History

2021-08-14 12:26:20 +02:00
version = "0.1"
name = "Configuration panel"
[main]
name = "Main section"
[main.components]
name = "Components"
[main.components.boolean]
ask = "Put a boolean"
type = "boolean"
labels.true = "on"
labels.false = "off"
default = true
optional = true
2021-08-14 12:26:20 +02:00
[main.components.number]
ask = "Put a number"
type = "number"
min = 1
max = 100
optional = true
2021-08-14 12:26:20 +02:00
[main.components.range]
ask = "Put a range"
type = "range"
min = 1
max = 100
optional = true
2021-08-14 12:26:20 +02:00
[main.components.str]
ask = "Put a string with yunohost word"
type = "string"
pattern = "yunohost"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.text]
ask = "Put a text"
type = "text"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.password]
ask = "Put a password"
type = "password"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.custom_path]
ask = "Put a path"
type = "path"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.email]
ask = "Put a email"
type = "email"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.url]
ask = "Put a url"
type = "url"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.date]
ask = "Put a date"
type = "date"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.time]
ask = "Put a time"
type = "time"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.color]
ask = "Put a color"
type = "color"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.select]
ask = "Choose an option"
type = "select"
choices = ["option1", "option2", "option3"]
optional = true
2021-08-14 12:26:20 +02:00
[main.components.custom_domain]
ask = "Put a domain"
type = "domain"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.user]
ask = "Put a user"
type = "user"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.tags]
ask = "Put some tags"
type = "tags"
optional = true
2021-08-14 12:26:20 +02:00
[main.components.file]
ask = "Put a file"
type = "file"
accept = ".cube"
optional = true
2021-08-14 12:26:20 +02:00
[main.messages]
name = "Read only components"
[main.messages.success]
ask = "This is a success message"
type = "success"
[main.messages.info]
ask = "This is an info message"
type = "info"
[main.messages.warning]
ask = "This is an warning message"
type = "warning"
[main.messages.error]
ask = "This is an simple message"
2021-08-14 12:26:20 +02:00
type = "error"
[main.messages.display_text]
ask = "This is a simple text"
type = "display_text"
[main.messages.markdown]
ask = "This is a **markdown** text"
type = "markdown"
[main.generic]
name = "Generic options"
[main.generic.default]
ask = "This is a question with a default value"
type = "string"
default = "Camille"
optional = true
2021-08-14 12:26:20 +02:00
[main.generic.example]
ask = "This is a question with an example value"
type = "string"
example = "Camille"
optional = true
2021-08-14 12:26:20 +02:00
[main.generic.required]
ask = "This is a required value"
2021-08-14 12:26:20 +02:00
type = "string"
[main.generic.help]
ask = "Here we add some help"
type = "string"
help = "You can feel this question with your keyboard (yes i know it's very useful)"
optional = true
2021-08-14 12:26:20 +02:00
[main.generic.helpLink]
ask = "Here we add an help link"
type = "string"
2021-08-14 14:42:44 +02:00
helpLink.href = "https://yunohost.org/doc"
helpLink.text = "Yunohost Doc"
optional = true
2021-08-14 12:26:20 +02:00
[main.generic.visibleIf]
ask = "Display if helpLink question is filled"
type = "string"
visibleIf = "helpLink"
optional = true
2021-08-14 12:26:20 +02:00
[source]
name = "Source section"
[source.settings]
name = "App settings"
[source.settings.arg1]
ask = "Save app settings arg1"
type = "string"
optional = true
2021-08-14 12:26:20 +02:00
[source.yml]
name = "YAML"
[source.yml.arg2]
ask = "Save arg2 in YAML"
type = "string"
source = "__FINALPATH__/test.yml"
optional = true
2021-08-14 12:26:20 +02:00
[source.json]
name = "JSON"
[source.json.arg3]
ask = "Save arg3 in JSON"
type = "string"
source = "__FINALPATH__/test.json"
optional = true
2021-08-14 12:26:20 +02:00
[source.ini]
name = "INI"
2021-08-14 14:42:44 +02:00
[source.ini.arg4]
2021-08-14 12:26:20 +02:00
ask = "Save arg4 in INI"
type = "string"
source = "__FINALPATH__/test.ini"
optional = true
2021-08-14 12:26:20 +02:00
[source.php]
name = "PHP"
[source.php.arg5]
ask = "Save arg5 in PHP file"
type = "string"
source = "__FINALPATH__/test.php"
optional = true
2021-08-14 12:26:20 +02:00
[source.python]
name = "Python"
[source.python.arg6]
ask = "Save arg6 in python file"
type = "string"
source = "__FINALPATH__/test.py"
optional = true
2021-08-14 12:26:20 +02:00
[source.file]
name = "File"
[source.file.arg7]
ask = "Save a cube file"
type = "file"
accept = ".cube"
source = "__FINALPATH__/test.cube"
optional = true
2021-08-14 12:26:20 +02:00
[source.function]
name = "Save with a bash function"
2021-08-14 12:26:20 +02:00
[source.function.arg8]
ask = "Custom validate and save arg8 password"
type = "password"
optional = true