2021-09-02 02:31:39 +02:00
|
|
|
version = "1.0"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main]
|
2021-08-20 16:42:47 +02:00
|
|
|
name = "Main panel"
|
2021-09-02 02:31:39 +02:00
|
|
|
services = ["nginx"]
|
2021-08-14 12:26:20 +02:00
|
|
|
[main.components]
|
2021-09-02 02:31:39 +02:00
|
|
|
name = ""
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.components.boolean]
|
|
|
|
ask = "Put a boolean"
|
|
|
|
type = "boolean"
|
|
|
|
|
|
|
|
[main.components.number]
|
|
|
|
ask = "Put a number"
|
|
|
|
type = "number"
|
|
|
|
min = 1
|
|
|
|
max = 100
|
|
|
|
|
|
|
|
[main.components.range]
|
|
|
|
ask = "Put a range"
|
|
|
|
type = "range"
|
2021-09-02 02:31:39 +02:00
|
|
|
min = 0
|
2021-08-14 12:26:20 +02:00
|
|
|
max = 100
|
2021-09-02 02:31:39 +02:00
|
|
|
step = 10
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.components.str]
|
2021-09-02 02:31:39 +02:00
|
|
|
ask = "Put a string"
|
2021-08-14 12:26:20 +02:00
|
|
|
type = "string"
|
|
|
|
|
|
|
|
[main.components.text]
|
|
|
|
ask = "Put a text"
|
|
|
|
type = "text"
|
|
|
|
|
|
|
|
[main.components.password]
|
|
|
|
ask = "Put a password"
|
|
|
|
type = "password"
|
|
|
|
|
2021-08-20 16:42:47 +02:00
|
|
|
[main.components.path]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Put a path"
|
|
|
|
type = "path"
|
|
|
|
|
|
|
|
[main.components.email]
|
|
|
|
ask = "Put a email"
|
|
|
|
type = "email"
|
|
|
|
|
|
|
|
[main.components.url]
|
|
|
|
ask = "Put a url"
|
|
|
|
type = "url"
|
|
|
|
|
|
|
|
[main.components.date]
|
|
|
|
ask = "Put a date"
|
|
|
|
type = "date"
|
|
|
|
|
|
|
|
[main.components.time]
|
|
|
|
ask = "Put a time"
|
|
|
|
type = "time"
|
|
|
|
|
|
|
|
[main.components.color]
|
|
|
|
ask = "Put a color"
|
|
|
|
type = "color"
|
|
|
|
|
|
|
|
[main.components.select]
|
|
|
|
ask = "Choose an option"
|
|
|
|
type = "select"
|
2021-09-02 02:31:39 +02:00
|
|
|
choices.option1 = "Plop1"
|
|
|
|
choices.option2 = "Plop2"
|
|
|
|
choices.option3 = "Plop3"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-08-20 16:42:47 +02:00
|
|
|
[main.components.domain]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Put a domain"
|
|
|
|
type = "domain"
|
|
|
|
|
|
|
|
[main.components.user]
|
|
|
|
ask = "Put a user"
|
|
|
|
type = "user"
|
|
|
|
|
|
|
|
[main.components.tags]
|
2021-09-02 02:31:39 +02:00
|
|
|
ask = "Put some emails"
|
2021-08-14 12:26:20 +02:00
|
|
|
type = "tags"
|
2021-09-02 02:31:39 +02:00
|
|
|
placeholder = "Enter some emails separated by commas"
|
|
|
|
limit = 3
|
|
|
|
pattern.regexp = '^.+@.+$'
|
|
|
|
pattern.error = 'An email is required for this field'
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[main.components.tags2]
|
|
|
|
ask = "Put some tags from a list"
|
|
|
|
type = "tags"
|
|
|
|
choices = ['table', 'chair', 'bed', 'desk']
|
|
|
|
placeholder = "Add some tags"
|
|
|
|
icon = "bed"
|
|
|
|
|
|
|
|
[main.components.file]
|
|
|
|
ask = "Put a file"
|
|
|
|
type = "file"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.messages]
|
|
|
|
name = "Read only components"
|
|
|
|
|
|
|
|
[main.messages.success]
|
|
|
|
ask = "This is a success message"
|
2021-09-02 02:31:39 +02:00
|
|
|
type = "alert"
|
|
|
|
style = "success"
|
|
|
|
icon = "beer"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.messages.info]
|
|
|
|
ask = "This is an info message"
|
2021-09-02 02:31:39 +02:00
|
|
|
type = "alert"
|
|
|
|
style = "info"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.messages.warning]
|
|
|
|
ask = "This is an warning message"
|
2021-09-02 02:31:39 +02:00
|
|
|
type = "alert"
|
|
|
|
style = "warning"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-08-20 16:42:47 +02:00
|
|
|
[main.messages.danger]
|
|
|
|
ask = "This is a danger message"
|
2021-09-02 02:31:39 +02:00
|
|
|
type = "alert"
|
|
|
|
style = "danger"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[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"
|
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[main.generic.pattern]
|
|
|
|
ask = "This is a question with a pattern validation"
|
2021-08-14 12:26:20 +02:00
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
pattern.regexp = '^[A-F]\d\d$'
|
|
|
|
pattern.error = "Provide a room like F12 : one uppercase and 2 numbers"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[main.generic.example]
|
|
|
|
ask = "This is a question with an example value"
|
|
|
|
type = "string"
|
|
|
|
example = "Camille"
|
|
|
|
|
2021-08-14 17:36:52 +02:00
|
|
|
[main.generic.required]
|
|
|
|
ask = "This is a required value"
|
2021-08-14 12:26:20 +02:00
|
|
|
type = "string"
|
2021-08-20 16:42:47 +02:00
|
|
|
optional = false
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[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)"
|
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[main.generic.helplink]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Here we add an help link"
|
2021-09-02 02:31:39 +02:00
|
|
|
type = "select"
|
|
|
|
choices.question = "Display next question"
|
|
|
|
choices.section = "Display next section"
|
2021-08-14 14:42:44 +02:00
|
|
|
helpLink.href = "https://yunohost.org/doc"
|
|
|
|
helpLink.text = "Yunohost Doc"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[main.generic.visibleif]
|
|
|
|
ask = "Display if helpLink question is filled"
|
|
|
|
type = "string"
|
|
|
|
visibleIf = "helplink == 'question'"
|
|
|
|
|
|
|
|
[main.ifsection]
|
|
|
|
name = "Section displayed only if helplink is filled"
|
|
|
|
visibleIf = "helplink == 'section'"
|
|
|
|
|
|
|
|
[main.ifsection.sub]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Display if helpLink question is filled"
|
|
|
|
type = "string"
|
|
|
|
|
|
|
|
[source]
|
|
|
|
name = "Source section"
|
|
|
|
|
|
|
|
[source.settings]
|
|
|
|
name = "App settings"
|
|
|
|
|
|
|
|
[source.settings.arg1]
|
|
|
|
ask = "Save app settings arg1"
|
|
|
|
type = "string"
|
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable]
|
2021-08-14 12:26:20 +02:00
|
|
|
name = "YAML"
|
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable.arg2]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Save arg2 in YAML"
|
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ":__FINALPATH__/test.yml"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable.arg3]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Save arg3 in JSON"
|
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ":__FINALPATH__/test.json"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable.arg4]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Save arg4 in INI"
|
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ":__FINALPATH__/test.ini"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable.arg5]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Save arg5 in PHP file"
|
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ":__FINALPATH__/test.php"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.variable.arg6]
|
2021-08-14 12:26:20 +02:00
|
|
|
ask = "Save arg6 in python file"
|
|
|
|
type = "string"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ":__FINALPATH__/test.py"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
2021-09-02 02:31:39 +02:00
|
|
|
[source.file]
|
|
|
|
name = "File"
|
|
|
|
|
|
|
|
[source.file.arg7]
|
|
|
|
ask = "Save a cube file"
|
|
|
|
type = "file"
|
|
|
|
accept = ".cube"
|
|
|
|
source = "__FINALPATH__/test.cube"
|
|
|
|
|
|
|
|
[source.file.arg7b]
|
|
|
|
ask = "Nginx file"
|
|
|
|
type = "text"
|
|
|
|
source = "__FINALPATH__/nginx.conf"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[source.function]
|
2021-09-02 02:31:39 +02:00
|
|
|
name = "Bash function"
|
2021-08-14 12:26:20 +02:00
|
|
|
|
|
|
|
[source.function.arg8]
|
2021-09-02 02:31:39 +02:00
|
|
|
ask = "Custom validator and setter for arg8 password"
|
2021-08-14 12:26:20 +02:00
|
|
|
type = "password"
|
2021-09-02 02:31:39 +02:00
|
|
|
source = ""
|
|
|
|
|
|
|
|
[source.function.arg9]
|
|
|
|
ask = "Custom getter arg9"
|
|
|
|
type = "markdown"
|
|
|
|
source = ""
|
|
|
|
|
|
|
|
[source.function.alert]
|
|
|
|
ask = "Custom getter alert"
|
|
|
|
type = "alert"
|
|
|
|
style = "info"
|
|
|
|
source = ""
|