From 112cdb3faca5280d0e22be63060c22b4e34d6306 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Thu, 12 Jan 2023 14:56:23 +0100 Subject: [PATCH] combine tree picker folders --- .../backoffice/shared/property-editors/uis/manifests.ts | 6 ++---- .../config/start-node}/manifests.ts | 0 .../property-editor-ui-tree-picker-start-node.element.ts | 0 .../property-editor-ui-tree-picker-start-node.stories.ts | 0 .../property-editor-ui-tree-picker-start-node.test.ts | 0 .../shared/property-editors/uis/tree-picker/manifests.ts | 7 ++++++- 6 files changed, 8 insertions(+), 5 deletions(-) rename src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/{tree-picker-start-node => tree-picker/config/start-node}/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/{tree-picker-start-node => tree-picker/config/start-node}/property-editor-ui-tree-picker-start-node.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/{tree-picker-start-node => tree-picker/config/start-node}/property-editor-ui-tree-picker-start-node.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/{tree-picker-start-node => tree-picker/config/start-node}/property-editor-ui-tree-picker-start-node.test.ts (100%) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/manifests.ts index cdde70a559..50319ff12c 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/manifests.ts @@ -4,8 +4,7 @@ import { manifest as datePicker } from './date-picker/manifests'; import { manifest as eyeDropper } from './eye-dropper/manifests'; import { manifest as multiUrlPicker } from './multi-url-picker/manifests'; import { manifest as overlaySize } from './overlay-size/manifests'; -import { manifest as treePicker } from './tree-picker/manifests'; -import { manifest as treePickerStartNode } from './tree-picker-start-node/manifests'; +import { manifests as treePicker } from './tree-picker/manifests'; import { manifests as textBoxes } from './text-box/manifests'; import { manifest as dropdown } from './dropdown/manifests'; import { manifest as multipleTextString } from './multiple-text-string/manifests'; @@ -35,8 +34,7 @@ export const manifests: Array = [ multiUrlPicker, overlaySize, ...textBoxes, - treePicker, - treePickerStartNode, + ...treePicker, dropdown, multipleTextString, textArea, diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/manifests.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.element.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.stories.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker-start-node/property-editor-ui-tree-picker-start-node.test.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/manifests.ts index fcc55d2af6..0743c08937 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/tree-picker/manifests.ts @@ -1,6 +1,7 @@ +import { manifest as startNode } from './config/start-node/manifests'; import type { ManifestPropertyEditorUI } from '@umbraco-cms/models'; -export const manifest: ManifestPropertyEditorUI = { +const manifest: ManifestPropertyEditorUI = { type: 'propertyEditorUI', alias: 'Umb.PropertyEditorUI.TreePicker', name: 'Tree Picker Property Editor UI', @@ -34,3 +35,7 @@ export const manifest: ManifestPropertyEditorUI = { }, }, }; + +const config: Array = [startNode]; + +export const manifests = [manifest, ...config];