From 0d1b4096d2a059c2cfa2be5783fd1a3d10ea9bcf Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 14 Sep 2022 13:55:45 +0200 Subject: [PATCH] move edit view into folder --- .../editors/data-type/editor-data-type.element.ts | 2 +- .../{ => edit}/editor-view-data-type-edit.element.ts | 12 ++++++------ .../{ => edit}/editor-view-data-type-edit.stories.ts | 4 ++-- .../src/temp-internal-manifests.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) rename src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/{ => edit}/editor-view-data-type-edit.element.ts (85%) rename src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/{ => edit}/editor-view-data-type-edit.stories.ts (85%) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts index 7b703c05f6..bf1bf95260 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts @@ -13,7 +13,7 @@ import '../shared/editor-entity-layout/editor-entity-layout.element'; // Lazy load // TODO: Make this dynamic, use load-extensions method to loop over extensions for this node. -import './views/editor-view-data-type-edit.element'; +import './views/edit/editor-view-data-type-edit.element'; import { UmbNotificationDefaultData } from '../../../core/services/notification/layouts/default'; @customElement('umb-editor-data-type') diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.element.ts similarity index 85% rename from src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.element.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.element.ts index 7e59b63319..534db546cd 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.element.ts @@ -3,14 +3,14 @@ import { css, html, LitElement } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import { Subscription, distinctUntilChanged } from 'rxjs'; import { ifDefined } from 'lit-html/directives/if-defined.js'; -import { UmbModalService } from '../../../../core/services/modal'; +import { UmbModalService } from '../../../../../core/services/modal'; -import { UmbContextConsumerMixin } from '../../../../core/context'; -import type { ManifestPropertyEditorUI } from '../../../../core/models'; -import { UmbDataTypeContext } from '../data-type.context'; +import { UmbContextConsumerMixin } from '../../../../../core/context'; +import type { ManifestPropertyEditorUI } from '../../../../../core/models'; +import { UmbDataTypeContext } from '../../data-type.context'; -import type { DataTypeEntity } from '../../../../mocks/data/data-type.data'; -import type { UmbExtensionRegistry } from '../../../../core/extension'; +import type { DataTypeEntity } from '../../../../../mocks/data/data-type.data'; +import type { UmbExtensionRegistry } from '../../../../../core/extension'; @customElement('umb-editor-view-data-type-edit') export class UmbEditorViewDataTypeEditElement extends UmbContextConsumerMixin(LitElement) { static styles = [UUITextStyles, css``]; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.stories.ts similarity index 85% rename from src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.stories.ts rename to src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.stories.ts index ef68c2ec7c..e977cc073c 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/editor-view-data-type-edit.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/views/edit/editor-view-data-type-edit.stories.ts @@ -3,8 +3,8 @@ import './editor-view-data-type-edit.element'; import { Meta, Story } from '@storybook/web-components'; import { html } from 'lit-html'; -import { data } from '../../../../mocks/data/data-type.data'; -import { UmbDataTypeContext } from '../data-type.context'; +import { data } from '../../../../../mocks/data/data-type.data'; +import { UmbDataTypeContext } from '../../data-type.context'; import type { UmbEditorViewDataTypeEditElement } from './editor-view-data-type-edit.element'; diff --git a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts index d24a1ab104..edafbc176b 100644 --- a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts @@ -196,7 +196,7 @@ export const internalManifests: Array Promise import('./backoffice/editors/data-type/views/editor-view-data-type-edit.element'), + loader: () => import('./backoffice/editors/data-type/views/edit/editor-view-data-type-edit.element'), meta: { // TODO: how do we want to filter where editor views are shown? https://our.umbraco.com/documentation/extending/Content-Apps/#setting-up-the-plugin // this is a temp solution