Update types for settings that are selects and multiple selects with reduced labels

This commit is contained in:
Angelina Filippova 2021-03-22 21:26:48 +03:00
parent 957a51058b
commit 36d93d691d

View File

@ -102,13 +102,15 @@ config :pleroma, :config_description, [
children: [ children: [
%{ %{
key: :uploader, key: :uploader,
type: :module, type: {:select, :reduced_labels},
prefix: "Pleroma.Uploaders.",
description: "Module which will be used for uploads", description: "Module which will be used for uploads",
suggestions: {:list_behaviour_implementations, Pleroma.Uploaders.Uploader} suggestions: {:list_behaviour_implementations, Pleroma.Uploaders.Uploader}
}, },
%{ %{
key: :filters, key: :filters,
type: {:list, :module}, type: {:multiple_select, :reduced_labels},
prefix: "Pleroma.Upload.Filter.",
description: description:
"List of filter modules for uploads. Module names are shortened (removed leading `Pleroma.Upload.Filter.` part), but on adding custom module you need to use full name.", "List of filter modules for uploads. Module names are shortened (removed leading `Pleroma.Upload.Filter.` part), but on adding custom module you need to use full name.",
suggestions: {:list_behaviour_implementations, Pleroma.Upload.Filter} suggestions: {:list_behaviour_implementations, Pleroma.Upload.Filter}
@ -251,7 +253,8 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :adapter, key: :adapter,
type: :module, type: {:select, :reduced_labels},
prefix: "Swoosh.Adapters.",
description: description:
"One of the mail adapters listed in [Swoosh documentation](https://hexdocs.pm/swoosh/Swoosh.html#module-adapters)", "One of the mail adapters listed in [Swoosh documentation](https://hexdocs.pm/swoosh/Swoosh.html#module-adapters)",
suggestions: [ suggestions: [
@ -1822,7 +1825,8 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :method, key: :method,
type: :module, type: {:select, :reduced_labels},
prefix: "Pleroma.Captcha.",
description: "The method/service to use for captcha", description: "The method/service to use for captcha",
suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native] suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
}, },
@ -2045,7 +2049,8 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :parsers, key: :parsers,
type: {:list, :module}, type: {:multiple_select, :reduced_labels},
prefix: "Pleroma.Web.RichMedia.Parsers.",
description: description:
"List of Rich Media parsers. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parsers.` part), but on adding custom module you need to use full name.", "List of Rich Media parsers. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parsers.` part), but on adding custom module you need to use full name.",
suggestions: [ suggestions: [
@ -2056,7 +2061,8 @@ config :pleroma, :config_description, [
%{ %{
key: :ttl_setters, key: :ttl_setters,
label: "TTL setters", label: "TTL setters",
type: {:list, :module}, type: {:multiple_select, :reduced_labels},
prefix: "Pleroma.Web.RichMedia.Parser.",
description: description:
"List of rich media TTL setters. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parser.` part), but on adding custom module you need to use full name.", "List of rich media TTL setters. Module names are shortened (removed leading `Pleroma.Web.RichMedia.Parser.` part), but on adding custom module you need to use full name.",
suggestions: [ suggestions: [
@ -2181,7 +2187,8 @@ config :pleroma, :config_description, [
children: [ children: [
%{ %{
key: Pleroma.Web.Auth.Authenticator, key: Pleroma.Web.Auth.Authenticator,
type: :module, type: {:select, :reduced_labels},
prefix: "Pleroma.Web.Auth.",
suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator] suggestions: [Pleroma.Web.Auth.PleromaAuthenticator, Pleroma.Web.Auth.LDAPAuthenticator]
} }
] ]
@ -2760,7 +2767,8 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :scrub_policy, key: :scrub_policy,
type: {:list, :module}, type: {:multiple_select, :reduced_labels},
prefix: "Pleroma.HTML.",
description: description:
"Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.", "Module names are shortened (removed leading `Pleroma.HTML.` part), but on adding custom module you need to use full name.",
suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default] suggestions: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML.Scrubber.Default]
@ -3314,7 +3322,8 @@ config :pleroma, :config_description, [
children: [ children: [
%{ %{
key: :providers, key: :providers,
type: {:list, :module}, type: {:multiple_select, :reduced_labels},
prefix: "Pleroma.Web.Metadata.Providers.",
description: "List of preload providers to enable", description: "List of preload providers to enable",
suggestions: [ suggestions: [
Pleroma.Web.Preload.Providers.Instance, Pleroma.Web.Preload.Providers.Instance,