register temp root workspaces
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { UMB_DATA_TYPE_ROOT_ENTITY_TYPE } from '../entity.js';
|
||||
import { manifests as folderManifests } from './folder/manifests.js';
|
||||
import { manifests as reloadManifests } from './reload-tree-item-children/manifests.js';
|
||||
import {
|
||||
@@ -35,6 +36,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Data Type Tree Item',
|
||||
forEntityTypes: ['data-type-root', 'data-type', 'data-type-folder'],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.DataType.Root',
|
||||
name: 'Data Type Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_DATA_TYPE_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_dataTypes',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadManifests,
|
||||
];
|
||||
|
||||
@@ -44,6 +44,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE,
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.DocumentBlueprint.Root',
|
||||
name: 'Document Blueprint Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_contentBlueprints',
|
||||
},
|
||||
},
|
||||
...reloadManifests,
|
||||
...folderManifests,
|
||||
];
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
|
||||
@customElement('umb-document-blueprint-root-workspace')
|
||||
export class UmbDocumentBlueprintRootWorkspaceElement extends UmbLitElement {
|
||||
override render() {
|
||||
return html`
|
||||
<umb-body-layout headline=${this.localize.term('treeHeaders_contentBlueprints')}>
|
||||
<uui-box class="uui-text">
|
||||
<h4>
|
||||
<umb-localize key="contentTemplatesDashboard_whatHeadline"> What are Document Blueprints? </umb-localize>
|
||||
</h4>
|
||||
<umb-localize key="contentTemplatesDashboard_whatDescription">
|
||||
Document Blueprints are pre-defined content that can be selected when creating a new content node.
|
||||
</umb-localize>
|
||||
<h4>
|
||||
<umb-localize key="contentTemplatesDashboard_createHeadline">
|
||||
How do I create a Document Blueprint?
|
||||
</umb-localize>
|
||||
</h4>
|
||||
<umb-localize key="contentTemplatesDashboard_createDescription">
|
||||
<p>There are two ways to create a Content Blueprint:</p>
|
||||
<ul>
|
||||
<li>
|
||||
Click "Create Document Blueprint" in the action menu on a content node to create a new Document
|
||||
Blueprint.
|
||||
</li>
|
||||
<li>
|
||||
Click the "+" button in the Document Blueprints tree in the Settings section and select the Document
|
||||
Type you want to create a Document Blueprint for.
|
||||
</li>
|
||||
</ul>
|
||||
<p>Once given a name, editors can start using the Document Blueprint as a foundation for their new page.</p>
|
||||
</umb-localize>
|
||||
<h4>
|
||||
<umb-localize key="contentTemplatesDashboard_manageHeadline">
|
||||
How do I manage Document Blueprints?
|
||||
</umb-localize>
|
||||
</h4>
|
||||
<umb-localize key="contentTemplatesDashboard_manageDescription">
|
||||
You can edit and delete Document Blueprints from the "Document Blueprints" tree in the Settings section.
|
||||
Expand the Document Type which the Document Blueprint is based on and click it to edit or delete it.
|
||||
</umb-localize>
|
||||
</uui-box>
|
||||
</umb-body-layout>
|
||||
`;
|
||||
}
|
||||
|
||||
static override styles = [UmbTextStyles];
|
||||
}
|
||||
|
||||
export default UmbDocumentBlueprintRootWorkspaceElement;
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'umb-document-blueprint-root-workspace': UmbDocumentBlueprintRootWorkspaceElement;
|
||||
}
|
||||
}
|
||||
@@ -18,15 +18,6 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
entityType: UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
alias: 'Umb.Workspace.DocumentBlueprint.Root',
|
||||
name: 'Document Blueprint Root Workspace',
|
||||
element: () => import('./document-blueprint-root-workspace.element.js'),
|
||||
meta: {
|
||||
entityType: UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'workspaceView',
|
||||
kind: 'contentEditor',
|
||||
|
||||
@@ -44,6 +44,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.DocumentType.Root',
|
||||
name: 'Document Type Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_documentTypes',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadManifests,
|
||||
];
|
||||
|
||||
@@ -40,6 +40,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Media Type Tree Item',
|
||||
forEntityTypes: [UMB_MEDIA_TYPE_ENTITY_TYPE, UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE, UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.MediaType.Root',
|
||||
name: 'Media Type Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_MEDIA_TYPE_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_mediaTypes',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
@@ -34,5 +34,15 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Member Type Tree Item',
|
||||
forEntityTypes: [UMB_MEMBER_TYPE_ROOT_ENTITY_TYPE, UMB_MEMBER_TYPE_ENTITY_TYPE],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.MemberType.Root',
|
||||
name: 'Member Type Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_MEMBER_TYPE_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_memberTypes',
|
||||
},
|
||||
},
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
@@ -43,6 +43,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
UMB_PARTIAL_VIEW_FOLDER_ENTITY_TYPE,
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.PartialView.Root',
|
||||
name: 'Partial View Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_PARTIAL_VIEW_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_partialViews',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
@@ -35,6 +35,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Script Tree Item',
|
||||
forEntityTypes: [UMB_SCRIPT_ROOT_ENTITY_TYPE, UMB_SCRIPT_ENTITY_TYPE, UMB_SCRIPT_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.Script.Root',
|
||||
name: 'Script Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_SCRIPT_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_scripts',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
@@ -40,6 +40,16 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Stylesheet Tree Item',
|
||||
forEntityTypes: [UMB_STYLESHEET_ROOT_ENTITY_TYPE, UMB_STYLESHEET_ENTITY_TYPE, UMB_STYLESHEET_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.Stylesheet.Root',
|
||||
name: 'Stylesheet Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_STYLESHEET_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_stylesheets',
|
||||
},
|
||||
},
|
||||
...folderManifests,
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
@@ -34,5 +34,15 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Template Tree Item',
|
||||
forEntityTypes: [UMB_TEMPLATE_ROOT_ENTITY_TYPE, UMB_TEMPLATE_ENTITY_TYPE],
|
||||
},
|
||||
{
|
||||
type: 'workspace',
|
||||
kind: 'default',
|
||||
alias: 'Umb.Workspace.Template.Root',
|
||||
name: 'Template Root Workspace',
|
||||
meta: {
|
||||
entityType: UMB_TEMPLATE_ROOT_ENTITY_TYPE,
|
||||
headline: '#treeHeaders_templates',
|
||||
},
|
||||
},
|
||||
...reloadTreeItemChildrenManifest,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user