Merge branch 'main' into chore/split-components

This commit is contained in:
Nathan Woulfe
2023-05-03 15:25:40 +10:00
13 changed files with 24 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
// TODO: remove this import when the search hack is removed
import '../../src/backoffice/search/modals/search/search-modal.element';
import '../../src/backoffice/search/search-modal/search-modal.element';
import type { UUIModalDialogElement, UUIModalSidebarSize } from '@umbraco-ui/uui';
import { BehaviorSubject } from 'rxjs';

View File

@@ -1,4 +1,5 @@
import { manifests as searchManifests } from '../search/manifests';
import type { UmbEntrypointOnInit } from '@umbraco-cms/backoffice/extensions-api';
export const manifests = [...searchManifests];

View File

@@ -13,7 +13,27 @@ const headerApps: Array<ManifestTypes> = [
pathname: 'search',
},
},
{
type: 'modal',
alias: 'Umb.Modal.Search',
name: 'Search Modal',
loader: () => import('./search-modal/search-modal.element'),
},
{
type: 'dashboard',
alias: 'Umb.Dashboard.ExamineManagement',
name: 'Examine Management Dashboard',
elementName: 'umb-dashboard-examine-management',
loader: () => import('./examine-management-dashboard/dashboard-examine-management.element'),
weight: 400,
meta: {
label: 'Examine Management',
pathname: 'examine-management',
},
conditions: {
sections: ['Umb.Section.Settings'],
},
},
{
type: 'headerApp',
kind: 'button',

View File

@@ -1,12 +0,0 @@
import type { ManifestModal } from '@umbraco-cms/backoffice/extensions-registry';
const modals: Array<ManifestModal> = [
{
type: 'modal',
alias: 'Umb.Modal.Search',
name: 'Search Modal',
loader: () => import('./search/search-modal.element'),
},
];
export const manifests = [...modals];

View File

@@ -16,21 +16,6 @@ const dashboards: Array<ManifestDashboard> = [
sections: ['Umb.Section.Settings'],
},
},
{
type: 'dashboard',
alias: 'Umb.Dashboard.ExamineManagement',
name: 'Examine Management Dashboard',
elementName: 'umb-dashboard-examine-management',
loader: () => import('./examine-management/dashboard-examine-management.element'),
weight: 400,
meta: {
label: 'Examine Management',
pathname: 'examine-management',
},
conditions: {
sections: ['Umb.Section.Settings'],
},
},
{
type: 'dashboard',
alias: 'Umb.Dashboard.ModelsBuilder',
@@ -113,7 +98,7 @@ const modals: Array<ManifestModal> = [
type: 'modal',
alias: 'Umb.Modal.ExamineFieldsSettings',
name: 'Examine Field Settings Modal',
loader: () => import('./examine-management/views/modal-views/fields-settings.element'),
loader: () => import('../../search/examine-management-dashboard/views/modal-views/fields-settings.element'),
},
];