mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
Move to .toml
This commit is contained in:
parent
5899a0d69d
commit
09190a0239
4 changed files with 150 additions and 183 deletions
64
actions.json
64
actions.json
|
@ -1,64 +0,0 @@
|
||||||
[{
|
|
||||||
"id": "add_remove_abiword",
|
|
||||||
"name": "Install/remove abiword",
|
|
||||||
"command": "/bin/bash scripts/actions/add_remove_abiword",
|
|
||||||
"user": "root",
|
|
||||||
"accepted_return_codes": [0],
|
|
||||||
"description": {
|
|
||||||
"en": "Install or remove abiword.",
|
|
||||||
"fr": "Installe ou supprime abiword."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "add_remove_libreoffice",
|
|
||||||
"name": "Install/remove libreoffice",
|
|
||||||
"command": "/bin/bash scripts/actions/add_remove_libreoffice",
|
|
||||||
"user": "root",
|
|
||||||
"accepted_return_codes": [0],
|
|
||||||
"description": {
|
|
||||||
"en": "Install or remove libreoffice.",
|
|
||||||
"fr": "Installe ou supprime libreoffice."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "list_all_pads",
|
|
||||||
"name": "List all existing pads",
|
|
||||||
"command": "/bin/bash scripts/actions/list_all_pads",
|
|
||||||
"user": "root",
|
|
||||||
"accepted_return_codes": [0],
|
|
||||||
"description": {
|
|
||||||
"en": "List all existing pads.",
|
|
||||||
"fr": "Liste tout les pads existants."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "reset_default_config",
|
|
||||||
"name": "Reset the config file and restore a default one.",
|
|
||||||
"command": "/bin/bash scripts/actions/reset_default_config \"settings.json\"",
|
|
||||||
"user": "root",
|
|
||||||
"accepted_return_codes": [0],
|
|
||||||
"description": {
|
|
||||||
"en": "Reset the config file settings.json.",
|
|
||||||
"fr": "Réinitialise le fichier de configuration settings.json."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "public_private",
|
|
||||||
"name": "Move to public or private",
|
|
||||||
"command": "/bin/bash scripts/actions/public_private",
|
|
||||||
"user": "root",
|
|
||||||
"accepted_return_codes": [0],
|
|
||||||
"description": {
|
|
||||||
"en": "Change the public access of the app."
|
|
||||||
},
|
|
||||||
"arguments": [
|
|
||||||
{
|
|
||||||
"name": "is_public",
|
|
||||||
"type": "boolean",
|
|
||||||
"ask": {
|
|
||||||
"en": "Is it a public app ?"
|
|
||||||
},
|
|
||||||
"default": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}]
|
|
50
actions.toml
Normal file
50
actions.toml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
[add_remove_abiword]
|
||||||
|
name = "Install/remove abiword"
|
||||||
|
command = "/bin/bash scripts/actions/add_remove_abiword"
|
||||||
|
# user = "root" # optional
|
||||||
|
# cwd = "/" # optional
|
||||||
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
||||||
|
accepted_return_codes = [0]
|
||||||
|
description = "Install or remove abiword"
|
||||||
|
|
||||||
|
[add_remove_libreoffice]
|
||||||
|
name = "Install/remove libreoffice"
|
||||||
|
command = "/bin/bash scripts/actions/add_remove_libreoffice"
|
||||||
|
# user = "root" # optional
|
||||||
|
# cwd = "/" # optional
|
||||||
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
||||||
|
accepted_return_codes = [0]
|
||||||
|
description = "Install or remove libreoffice"
|
||||||
|
|
||||||
|
[list_all_pads]
|
||||||
|
name = "List all existing pads"
|
||||||
|
command = "/bin/bash scripts/actions/list_all_pads"
|
||||||
|
# user = "root" # optional
|
||||||
|
# cwd = "/" # optional
|
||||||
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
||||||
|
accepted_return_codes = [0]
|
||||||
|
description = "List all existing pads."
|
||||||
|
|
||||||
|
[reset_default_config]
|
||||||
|
name = "Reset the config file and restore a default one."
|
||||||
|
command = "/bin/bash scripts/actions/reset_default_config \"settings.json\""
|
||||||
|
# user = "root" # optional
|
||||||
|
# cwd = "/" # optional
|
||||||
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
||||||
|
accepted_return_codes = [0]
|
||||||
|
description = "Reset the config file settings.json."
|
||||||
|
|
||||||
|
[public_private]
|
||||||
|
name = "Move to public or private"
|
||||||
|
command = "/bin/bash scripts/actions/public_private"
|
||||||
|
# user = "root" # optional
|
||||||
|
# cwd = "/" # optional
|
||||||
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
||||||
|
accepted_return_codes = [0]
|
||||||
|
description = "Change the public access of the app."
|
||||||
|
|
||||||
|
[public_private.arguments]
|
||||||
|
[public_private.arguments.is_public]
|
||||||
|
type = "boolean"
|
||||||
|
ask = "Is it a public app ?"
|
||||||
|
default = true
|
|
@ -1,119 +0,0 @@
|
||||||
{
|
|
||||||
"name": "Etherpad configuration panel",
|
|
||||||
"version": "0.1",
|
|
||||||
"panel": [{
|
|
||||||
"name": "Etherpad configuration",
|
|
||||||
"id": "main",
|
|
||||||
"sections": [{
|
|
||||||
"name": "Export",
|
|
||||||
"id": "export",
|
|
||||||
"options": [{
|
|
||||||
"name": "Use abiword (~260Mo) or libreoffice (~400Mo) (more stable) to expand export possibilities (pdf, doc) ?",
|
|
||||||
"help": "We can't use a choices field for now. In the meantime please choose between one of this values:<br>none, abiword, libreoffice.",
|
|
||||||
"id": "export",
|
|
||||||
"type": "text",
|
|
||||||
"//": "\"choices\" : [\"none\", \"abiword\", \"libreoffice\"]",
|
|
||||||
"default" : "none"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Default pad configuration",
|
|
||||||
"id": "pad_configuration",
|
|
||||||
"options": [{
|
|
||||||
"name": "Hide authorship colors ?",
|
|
||||||
"id": "pad_config_nocolors",
|
|
||||||
"type": "bool",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Show line numbers ?",
|
|
||||||
"id": "pad_config_showlinenumbers",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Show chat and users ?",
|
|
||||||
"id": "pad_config_chatandusers",
|
|
||||||
"type": "bool",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Always show chat ?",
|
|
||||||
"id": "pad_config_alwaysshowchat",
|
|
||||||
"type": "bool",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Show markdown syntax ?",
|
|
||||||
"id": "pad_config_show_markdown",
|
|
||||||
"type": "bool",
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Page view ?",
|
|
||||||
"id": "pad_config_pageview",
|
|
||||||
"type": "bool",
|
|
||||||
"default": false
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Mypads configuration",
|
|
||||||
"id": "mypads_configuration",
|
|
||||||
"options": [{
|
|
||||||
"name": "Enable Mypads plugin ?",
|
|
||||||
"id": "mypads",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Use ldap with Mypads ?",
|
|
||||||
"id": "useldap",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Public access",
|
|
||||||
"id": "is_public",
|
|
||||||
"options": [{
|
|
||||||
"name": "Is it a public app ?",
|
|
||||||
"id": "is_public",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overwriting config files",
|
|
||||||
"id": "overwrite_files",
|
|
||||||
"options": [{
|
|
||||||
"name": "Overwrite the config file settings.json ?",
|
|
||||||
"help": "If the file is overwritten, a backup will be created.",
|
|
||||||
"id": "overwrite_settings",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overwrite the config file credentials.json ?",
|
|
||||||
"help": "If the file is overwritten, a backup will be created.",
|
|
||||||
"id": "overwrite_credentials",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overwrite the nginx config file ?",
|
|
||||||
"help": "If the file is overwritten, a backup will be created.",
|
|
||||||
"id": "overwrite_nginx",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overwrite the systemd config file ?",
|
|
||||||
"help": "If the file is overwritten, a backup will be created.",
|
|
||||||
"id": "overwrite_systemd",
|
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
100
config_panel.toml
Normal file
100
config_panel.toml
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
version = "0.1"
|
||||||
|
name = "Etherpad configuration panel"
|
||||||
|
|
||||||
|
[main]
|
||||||
|
name = "Etherpad configuration"
|
||||||
|
|
||||||
|
|
||||||
|
[main.export]
|
||||||
|
name = "Export"
|
||||||
|
|
||||||
|
[main.export.export]
|
||||||
|
ask = "Use abiword (~260Mo) or libreoffice (~400Mo) (more stable) to expand export possibilities (pdf, doc) ?"
|
||||||
|
choices = ["none", "abiword", "libreoffice"]
|
||||||
|
default = "none"
|
||||||
|
|
||||||
|
|
||||||
|
[main.pad_configuration]
|
||||||
|
name = "Default pad configuration"
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_nocolors]
|
||||||
|
ask = "Hide authorship colors ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_showlinenumbers]
|
||||||
|
ask = "Show line numbers ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_chatandusers]
|
||||||
|
ask = "Show chat and users ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_alwaysshowchat]
|
||||||
|
ask = "Always show chat ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_show_markdown]
|
||||||
|
ask = "Show markdown syntax ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
|
||||||
|
[main.pad_configuration.pad_config_pageview]
|
||||||
|
ask = "Page view ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = false
|
||||||
|
|
||||||
|
|
||||||
|
[main.mypads_configuration]
|
||||||
|
name = "Mypads configuration"
|
||||||
|
|
||||||
|
[main.mypads_configuration.mypads]
|
||||||
|
ask = "Enable Mypads plugin ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
|
||||||
|
[main.mypads_configuration.useldap]
|
||||||
|
ask = "Use ldap with Mypads ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
|
||||||
|
|
||||||
|
[main.is_public]
|
||||||
|
name = "Public access"
|
||||||
|
|
||||||
|
[main.is_public.is_public]
|
||||||
|
ask = "Is it a public website?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
help = "If your etherpad instance is public, everyone will be able to create a pad or see an existing one."
|
||||||
|
|
||||||
|
|
||||||
|
[main.overwrite_files]
|
||||||
|
name = "Overwriting config files"
|
||||||
|
|
||||||
|
[main.overwrite_files.overwrite_settings]
|
||||||
|
ask = "Overwrite the config file settings.json ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
|
||||||
|
[main.overwrite_files.overwrite_credentials]
|
||||||
|
ask = "Overwrite the config file credentials.json ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
|
||||||
|
[main.overwrite_files.overwrite_nginx]
|
||||||
|
ask = "Overwrite the nginx config file ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
help = "If the file is overwritten, a backup will be created."
|
||||||
|
|
||||||
|
[main.overwrite_files.overwrite_systemd]
|
||||||
|
ask = "Overwrite the systemd config file ?"
|
||||||
|
type = "boolean"
|
||||||
|
default = true
|
||||||
|
help = "If the file is overwritten, a backup will be created."
|
Loading…
Add table
Reference in a new issue