mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
config_app_ynh: adapt to config panel changes
This commit is contained in:
parent
3120381ec1
commit
18fda74b51
2 changed files with 15 additions and 8 deletions
|
@ -71,15 +71,22 @@ services = ["nginx"]
|
|||
ask = "I can haz domain?"
|
||||
type = "domain"
|
||||
|
||||
[main.components.app_]
|
||||
ask = "I can haz app?"
|
||||
type = "app"
|
||||
|
||||
[main.components.user]
|
||||
ask = "I can haz user?"
|
||||
type = "user"
|
||||
|
||||
[main.components.group]
|
||||
ask = "I can haz group?"
|
||||
type = "group"
|
||||
|
||||
[main.components.tags]
|
||||
ask = "I can haz several emailz?"
|
||||
type = "tags"
|
||||
placeholder = "Enter some emails separated by commas"
|
||||
limit = 3
|
||||
pattern.regexp = '^.+@.+$'
|
||||
pattern.error = 'An email is required for this field'
|
||||
|
||||
|
@ -213,10 +220,10 @@ name = "Bind panel"
|
|||
name = "Bind to an entire file"
|
||||
|
||||
[bind.file.arg7]
|
||||
ask = "I can haz a .cube ?"
|
||||
ask = "I can haz a .json ?"
|
||||
type = "file"
|
||||
accept = ".cube"
|
||||
bind = "__FINALPATH__/test.cube"
|
||||
accept = ["application/json"]
|
||||
bind = "__FINALPATH__/test.json"
|
||||
|
||||
[bind.file.arg7b]
|
||||
ask = "Emeged i can edit sum file!#1!"
|
||||
|
@ -233,14 +240,12 @@ name = "Bind panel"
|
|||
bind = "null"
|
||||
|
||||
[bind.function.arg9]
|
||||
ask = "Custom getter arg9"
|
||||
help = "N.B.: This is mapped to a custom get__arg9 function in the config script"
|
||||
ask = "Custom getter arg9 N.B.: This is mapped to a custom get__arg9 function in the config script"
|
||||
type = "markdown"
|
||||
bind = "null"
|
||||
|
||||
[bind.function.alert]
|
||||
ask = "Custom getter alert"
|
||||
help = "N.B.: This is mapped to a custom get__alert function in the config script"
|
||||
ask = "Custom getter alert N.B.: This is mapped to a custom get__alert function in the config script"
|
||||
type = "alert"
|
||||
style = "info"
|
||||
bind = "null"
|
||||
|
|
|
@ -24,7 +24,9 @@ ynh_app_setting_set --app=$app --key=time --value=""
|
|||
ynh_app_setting_set --app=$app --key=color --value=""
|
||||
ynh_app_setting_set --app=$app --key=select --value="option_one"
|
||||
ynh_app_setting_set --app=$app --key=domain --value=""
|
||||
ynh_app_setting_set --app=$app --key=app_ --value=""
|
||||
ynh_app_setting_set --app=$app --key=user --value=""
|
||||
ynh_app_setting_set --app=$app --key=group --value=""
|
||||
ynh_app_setting_set --app=$app --key=tags --value=""
|
||||
ynh_app_setting_set --app=$app --key=tags2 --value=""
|
||||
ynh_app_setting_set --app=$app --key=pattern --value=""
|
||||
|
|
Loading…
Add table
Reference in a new issue