This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/fixtures/site-settings.js
Natalie Tay 23a8341b28
FEATURE: Validate domain settings for blocked_onebox_domain only (#15754)
We want to prevent the user from adding ? or * minimally
when setting domains in sitesettings
2022-02-03 11:26:53 +08:00

86 lines
2.2 KiB
JavaScript

export default {
"/admin/site_settings": {
site_settings: [
{
setting: "title",
description: "The name of this site, as used in the title tag.",
default: "Discourse",
value: "Discourse",
category: "required",
preview: null,
secret: false,
type: "string"
},
{
setting: "site_contact_username",
description:
"A valid staff username to send all automated messages from. If left blank the default System account will be used.",
default: "",
value: "",
category: "required",
preview: null,
secret: false,
type: "username"
},
{
setting: "logo",
description: "Some logo",
default: "",
value: "/images/avatar.png",
category: "required",
preview: null,
secret: false,
type: "upload"
},
{
setting: "top_menu",
description:
"Determine which items appear in the homepage navigation, and in what order. Example latest|new|unread|categories|top|read|posted|bookmarks",
default: "latest|new|unread|top|categories",
value: "latest|new|unread|top|categories",
category: "basic",
preview: null,
secret: false,
type: "list",
choices: [
"latest",
"new",
"unread",
"top",
"categories",
"read",
"posted",
"bookmarks"
],
list_type: "compact"
},
{
setting: "plugin_logo",
description: "Some plugin logo",
default: "",
value: "/images/avatar.png",
category: "required",
preview: null,
secret: false,
type: "upload",
plugin: "discourse-logo"
},
{
category: "onebox",
default: "",
description:
"A list of domains that will never be oneboxed e.g. wikipedia.org\n(Wildcard symbols * ? not supported)",
placeholder: null,
preview: null,
secret: false,
setting: "blocked_onebox_domains",
type: "host_list",
value: "",
},
],
diags: {
last_message_processed: null
}
}
};