From: lain Date: Tue, 25 Aug 2020 09:44:51 +0000 (+0200) Subject: Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into frontend-bundles... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c1d51944c71ff90650b1a631241daf0d8be5b861;p=akkoma Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into frontend-bundles-downloads --- c1d51944c71ff90650b1a631241daf0d8be5b861 diff --cc config/description.exs index c7c8524dd,ebe1f11c4..c50910911 --- a/config/description.exs +++ b/config/description.exs @@@ -12,36 -12,6 +12,40 @@@ websocket_config = compress: false ] +frontend_options = [ + %{ + key: "name", ++ label: "Name", + type: :string, - description: "Name of the installed Admin frontend" ++ description: ++ "Name of the frontend. Valid config must include both `Name` and `Reference` values." + }, + %{ + key: "ref", ++ label: "Reference", + type: :string, - description: "reference of the installed Admin frontend to be used" ++ description: ++ "Reference of the frontend to be used. Valid config must include both `Name` and `Reference` values." + }, + %{ + 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, @@@ -3582,18 -3553,41 +3587,41 @@@ key: :primary, type: :map, description: "Primary frontend, the one that is served for all pages by default", + children: frontend_options + }, + %{ + key: :admin, + type: :map, + description: "Admin frontend", + children: frontend_options + }, + %{ + key: :available, + type: :map, - description: "A map containing available frontends and parameters for their installation." ++ 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 + ] + } + ] + }, + %{ + group: :pleroma, + key: Pleroma.Web.Preload, + type: :group, + description: "Preload-related settings", + children: [ + %{ + key: :providers, + type: {:list, :module}, + description: "List of preload providers to enable", + suggestions: [ + Pleroma.Web.Preload.Providers.Instance, + Pleroma.Web.Preload.Providers.User, + Pleroma.Web.Preload.Providers.Timelines, + Pleroma.Web.Preload.Providers.StatusNet + ] } ] }