From 18fda74b5138badb739d58240c3b586565bd74c7 Mon Sep 17 00:00:00 2001 From: axolotle Date: Sun, 26 Nov 2023 16:40:57 +0100 Subject: [PATCH] config_app_ynh: adapt to config panel changes --- config_app_ynh/config_panel.toml | 21 +++++++++++++-------- config_app_ynh/scripts/install | 2 ++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/config_app_ynh/config_panel.toml b/config_app_ynh/config_panel.toml index bfa07b9..67efa8d 100644 --- a/config_app_ynh/config_panel.toml +++ b/config_app_ynh/config_panel.toml @@ -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" diff --git a/config_app_ynh/scripts/install b/config_app_ynh/scripts/install index 571e886..11acb7f 100644 --- a/config_app_ynh/scripts/install +++ b/config_app_ynh/scripts/install @@ -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=""