register user sidebar menu
This commit is contained in:
committed by
Niels Lyngsø
parent
cc28e65612
commit
63f0420477
@@ -10,11 +10,11 @@ export const manifests = [
|
||||
{
|
||||
type: 'sectionSidebarApp',
|
||||
kind: 'menu',
|
||||
alias: 'Umb.SectionSidebarMenu.AdvancedSettings',
|
||||
name: 'Advanced Settings Sidebar Menu',
|
||||
alias: 'Umb.SectionSidebarApp.Menu.Users',
|
||||
name: 'Users Section Sidebar Menu',
|
||||
weight: 100,
|
||||
meta: {
|
||||
label: '#treeHeaders_advancedGroup',
|
||||
label: 'Users',
|
||||
menu: UMB_ADVANCED_SETTINGS_MENU_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { manifests as userGroupManifests } from './user-group/manifests.js';
|
||||
import { manifests as userManifests } from './user/manifests.js';
|
||||
import { manifests as userSectionManifests } from './user-section/manifests.js';
|
||||
import { manifests as userSectionManifests } from './section/manifests.js';
|
||||
import { manifests as currentUserManifests } from './current-user/manifests.js';
|
||||
import { manifests as userPermissionManifests } from './user-permission/manifests.js';
|
||||
import { manifests as changePasswordManifests } from './change-password/manifests.js';
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from './constants.js';
|
||||
import { manifests as sectionSidebarAppManifests } from './sidebar-app/manifests.js';
|
||||
import { manifests as menuManifests } from './menu/manifests.js';
|
||||
import type {
|
||||
ManifestSection,
|
||||
ManifestTypes,
|
||||
UmbBackofficeManifestKind,
|
||||
} from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const section: ManifestSection = {
|
||||
type: 'section',
|
||||
alias: UMB_USER_MANAGEMENT_SECTION_ALIAS,
|
||||
name: 'User Management Section',
|
||||
weight: 600,
|
||||
meta: {
|
||||
label: '#sections_users',
|
||||
pathname: 'user-management',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.SectionUserPermission',
|
||||
match: UMB_USER_MANAGEMENT_SECTION_ALIAS,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes | UmbBackofficeManifestKind> = [
|
||||
section,
|
||||
...sectionSidebarAppManifests,
|
||||
...menuManifests,
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_USER_MANAGEMENT_MENU_ALIAS = 'Umb.Menu.UserManagement';
|
||||
@@ -0,0 +1 @@
|
||||
export * from './constants.js';
|
||||
@@ -0,0 +1,9 @@
|
||||
import { UMB_USER_MANAGEMENT_MENU_ALIAS } from './constants.js';
|
||||
|
||||
export const manifests = [
|
||||
{
|
||||
type: 'menu',
|
||||
alias: UMB_USER_MANAGEMENT_MENU_ALIAS,
|
||||
name: 'User Management Menu',
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1 @@
|
||||
export * from './constants.js';
|
||||
@@ -0,0 +1,23 @@
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from '../constants.js';
|
||||
import { UMB_USER_MANAGEMENT_MENU_ALIAS } from '../menu/index.js';
|
||||
import type { ManifestTypes, UmbBackofficeManifestKind } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const manifests: Array<ManifestTypes | UmbBackofficeManifestKind> = [
|
||||
{
|
||||
type: 'sectionSidebarApp',
|
||||
kind: 'menu',
|
||||
alias: 'Umb.SectionSidebarApp.Menu.UserManagement',
|
||||
name: 'User Management Menu Sidebar App',
|
||||
weight: 100,
|
||||
meta: {
|
||||
label: '#treeHeaders_users',
|
||||
menu: UMB_USER_MANAGEMENT_MENU_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.SectionAlias',
|
||||
match: UMB_USER_MANAGEMENT_SECTION_ALIAS,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from '../../user-section/index.js';
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from '../../section/index.js';
|
||||
import type { ManifestSectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const sectionsViews: Array<ManifestSectionView> = [
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from './constants.js';
|
||||
import type { ManifestSection, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const section: ManifestSection = {
|
||||
type: 'section',
|
||||
alias: UMB_USER_MANAGEMENT_SECTION_ALIAS,
|
||||
name: 'User Management Section',
|
||||
weight: 600,
|
||||
meta: {
|
||||
label: '#sections_users',
|
||||
pathname: 'user-management',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.SectionUserPermission',
|
||||
match: UMB_USER_MANAGEMENT_SECTION_ALIAS,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [section];
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from '../../user-section/index.js';
|
||||
import { UMB_USER_MANAGEMENT_SECTION_ALIAS } from '../../section/index.js';
|
||||
import type { ManifestSectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const sectionsViews: Array<ManifestSectionView> = [
|
||||
|
||||
Reference in New Issue
Block a user