summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-25 10:34:09 +0000
committerlain <lain@soykaf.club>2020-08-25 10:34:09 +0000
commit361aa22e2862c1c914baf8257fdc8b20cbc7941d (patch)
treee306f33dcd26fad9751a111a87efe78ac438a1a7 /config/description.exs
parent5722b0e2e5e7113f0422798a6ea8cc40d1953291 (diff)
parent6d6e43fd09a66740d447e77e9878d9d35bc07414 (diff)
downloadpleroma-361aa22e2862c1c914baf8257fdc8b20cbc7941d.tar.gz
pleroma-361aa22e2862c1c914baf8257fdc8b20cbc7941d.zip
Merge branch 'frontend-bundles-downloads' into 'develop'
frontend install mix tasks See merge request pleroma/pleroma!2841
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs77
1 files changed, 63 insertions, 14 deletions
diff --git a/config/description.exs b/config/description.exs
index ebe1f11c4..29a657333 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -12,6 +12,55 @@ websocket_config = [
compress: false
]
+installed_frontend_options = [
+ %{
+ key: "name",
+ label: "Name",
+ type: :string,
+ description:
+ "Name of the installed frontend. Valid config must include both `Name` and `Reference` values."
+ },
+ %{
+ key: "ref",
+ label: "Reference",
+ type: :string,
+ description:
+ "Reference of the installed frontend to be used. Valid config must include both `Name` and `Reference` values."
+ }
+]
+
+frontend_options = [
+ %{
+ key: "name",
+ label: "Name",
+ type: :string,
+ description: "Name of the frontend."
+ },
+ %{
+ key: "ref",
+ label: "Reference",
+ type: :string,
+ description: "Reference of the frontend to be used."
+ },
+ %{
+ key: "git",
+ type: :string,
+ description: "URL of the git repository of the frontend"
+ },
+ %{
+ key: "build_url",
+ type: :string,
+ description:
+ "Either an url to a zip file containing the frontend or a template to build it by inserting the `ref`. The string `${ref}` will be replaced by the configured `ref`.",
+ example: "https://some.url/builds/${ref}.zip"
+ },
+ %{
+ key: "build_dir",
+ type: :string,
+ description: "The directory inside the zip file "
+ }
+]
+
config :pleroma, :config_description, [
%{
group: :pleroma,
@@ -3553,21 +3602,21 @@ config :pleroma, :config_description, [
key: :primary,
type: :map,
description: "Primary frontend, the one that is served for all pages by default",
+ children: installed_frontend_options
+ },
+ %{
+ key: :admin,
+ type: :map,
+ description: "Admin frontend",
+ children: installed_frontend_options
+ },
+ %{
+ key: :available,
+ type: :map,
+ description:
+ "A map containing available frontends and parameters for their installation.",
children: [
- %{
- key: "name",
- label: "Name",
- type: :string,
- description:
- "Name of the installed primary frontend. Valid config must include both `Name` and `Reference` values."
- },
- %{
- key: "ref",
- label: "Reference",
- type: :string,
- description:
- "Reference of the installed primary frontend to be used. Valid config must include both `Name` and `Reference` values."
- }
+ frontend_options
]
}
]