mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 05:42:41 +08:00
UX: Admin setting page consistency - Security (#30598)
Create a basic config page that only contains security-related settings, to replace the "security" category view linked to from "Security settings" in the admin sidebar.
This commit is contained in:
parent
0f0b3a21e6
commit
d9d1da82cb
|
@ -0,0 +1,3 @@
|
|||
import AdminAreaSettingsBaseController from "admin/controllers/admin-area-settings-base";
|
||||
|
||||
export default class AdminConfigSecuritySettingsController extends AdminAreaSettingsBaseController {}
|
|
@ -0,0 +1,8 @@
|
|||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class AdminConfigSecurityRoute extends DiscourseRoute {
|
||||
titleToken() {
|
||||
return i18n("admin.security.sidebar_link.security");
|
||||
}
|
||||
}
|
|
@ -300,6 +300,9 @@ export default function () {
|
|||
this.route("navigation", function () {
|
||||
this.route("settings", { path: "/" });
|
||||
});
|
||||
this.route("security", function () {
|
||||
this.route("settings", { path: "/" });
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
import RouteTemplate from "ember-route-template";
|
||||
import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item";
|
||||
import DPageHeader from "discourse/components/d-page-header";
|
||||
import { i18n } from "discourse-i18n";
|
||||
import AdminAreaSettings from "admin/components/admin-area-settings";
|
||||
|
||||
export default RouteTemplate(<template>
|
||||
<DPageHeader
|
||||
@titleLabel={{i18n "admin.config.security.title"}}
|
||||
@descriptionLabel={{i18n "admin.config.security.header_description"}}
|
||||
>
|
||||
<:breadcrumbs>
|
||||
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
||||
<DBreadcrumbsItem
|
||||
@path="/admin/config/security"
|
||||
@label={{i18n "admin.config.security.title"}}
|
||||
/>
|
||||
</:breadcrumbs>
|
||||
</DPageHeader>
|
||||
|
||||
<div class="admin-config-page__main-area">
|
||||
<AdminAreaSettings
|
||||
@categories="security"
|
||||
@path="/admin/config/security"
|
||||
@filter={{@controller.filter}}
|
||||
@adminSettingsFilterChangedCallback={{@controller.adminSettingsFilterChangedCallback}}
|
||||
/>
|
||||
</div>
|
||||
</template>);
|
|
@ -181,9 +181,7 @@ export const ADMIN_NAV_MAP = [
|
|||
links: [
|
||||
{
|
||||
name: "admin_security",
|
||||
route: "adminSiteSettingsCategory",
|
||||
routeModels: ["security"],
|
||||
query: { filter: "" },
|
||||
route: "adminConfig.security.settings",
|
||||
label: "admin.security.sidebar_link.security",
|
||||
icon: "lock",
|
||||
},
|
||||
|
|
|
@ -5140,6 +5140,9 @@ en:
|
|||
font_style:
|
||||
title: "Font style"
|
||||
header_description: "Customize the font styles used by your themes"
|
||||
legal:
|
||||
title: "Legal"
|
||||
header_description: "Configure legal settings, such as terms of service, privacy policy, contact details, and EU-specific considerations"
|
||||
login_and_authentication:
|
||||
title: "Login and authentication"
|
||||
header_description: "Configure how users log in and authenticate, secrets and keys, OAuth2 providers, and more"
|
||||
|
@ -5148,16 +5151,16 @@ en:
|
|||
header_description: "Customize the variations of your site logo"
|
||||
navigation:
|
||||
title: "Navigation"
|
||||
header_description: "Configure the navigation links and menu items for your site. This includes the location and behaviour of the primary navigation menu, the quick links at the top of the homepage, as well as the admin sidebar."
|
||||
header_description: "Configure the navigation links and menu items for your site. This includes the location and behaviour of the primary navigation menu, the quick links at the top of the homepage, as well as the admin sidebar"
|
||||
notifications:
|
||||
title: "Notifications"
|
||||
header_description: "Configure how notifications are managed and delivered for users, including email preferences, push notifications, mention limits, and notification consolidation"
|
||||
search:
|
||||
title: "Search"
|
||||
header_description: "Configure search settings including logging and tokenization for Chinese and Japanese languages"
|
||||
legal:
|
||||
title: "Legal"
|
||||
header_description: "Configure legal settings, such as terms of service, privacy policy, contact details, and EU-specific considerations"
|
||||
security:
|
||||
title: "Security"
|
||||
header_description: "Configure security settings, including two-factor authentication, moderator priviledges, and content security policies"
|
||||
trust_levels:
|
||||
title: "Trust levels"
|
||||
header_description: "Trust level settings allow you to fine-tune the requirements and notifications for your community’s progression system, which automatically promotes users to higher trust levels as they demonstrate consistent, positive engagement with your forum"
|
||||
|
|
|
@ -394,12 +394,13 @@ Discourse::Application.routes.draw do
|
|||
resources :site_settings, only: %i[index]
|
||||
|
||||
get "fonts" => "site_settings#index"
|
||||
get "legal" => "site_settings#index"
|
||||
get "login-and-authentication" => "site_settings#index"
|
||||
get "logo" => "site_settings#index"
|
||||
get "navigation" => "site_settings#index"
|
||||
get "notifications" => "site_settings#index"
|
||||
get "search" => "site_settings#index"
|
||||
get "legal" => "site_settings#index"
|
||||
get "security" => "site_settings#index"
|
||||
get "experimental" => "site_settings#index"
|
||||
get "trust-levels" => "site_settings#index"
|
||||
get "group-permissions" => "site_settings#index"
|
||||
|
|
Loading…
Reference in New Issue
Block a user