From 2d940bcd10ff7851b75a2434786fa42b4de9d48c Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 13 Sep 2024 15:09:40 +0200 Subject: [PATCH 1/4] setup extension insight as a package --- src/apps/backoffice/backoffice.element.ts | 1 + .../collection/manifests.ts | 24 ------------------ .../collection/views/manifests.ts | 25 ------------------- .../core/extension-registry/manifests.ts | 12 +-------- .../extension-collection.element.ts | 2 +- .../extension-insight/collection/manifests.ts | 20 +++++++++++++++ .../extension-collection.repository.ts | 2 +- .../collection/repository/index.ts | 0 .../collection/repository/manifests.ts | 0 .../collection/types.ts | 0 .../collection/views/manifests.ts | 23 +++++++++++++++++ ...extension-table-collection-view.element.ts | 0 ...le-entity-actions-column-layout.element.ts | 0 .../entity-actions/manifests.ts | 0 .../entity-actions/unregister/index.ts | 0 .../entity-actions/unregister/manifests.ts | 0 .../unregister/unregister-extension.action.ts | 2 +- .../entity.ts | 0 src/packages/extension-insight/manifests.ts | 11 ++++++++ .../menu-item/manifests.ts | 0 src/packages/extension-insight/package.json | 8 ++++++ .../extension-insight/umbraco-package.ts | 9 +++++++ src/packages/extension-insight/vite.config.ts | 12 +++++++++ .../extension-root-workspace.element.ts | 0 .../extension-root-workspace.stories.ts | 0 .../workspace/manifests.ts | 0 26 files changed, 88 insertions(+), 63 deletions(-) delete mode 100644 src/packages/core/extension-registry/collection/manifests.ts delete mode 100644 src/packages/core/extension-registry/collection/views/manifests.ts rename src/packages/{core/extension-registry => extension-insight}/collection/extension-collection.element.ts (96%) create mode 100644 src/packages/extension-insight/collection/manifests.ts rename src/packages/{core/extension-registry => extension-insight}/collection/repository/extension-collection.repository.ts (94%) rename src/packages/{core/extension-registry => extension-insight}/collection/repository/index.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/collection/repository/manifests.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/collection/types.ts (100%) create mode 100644 src/packages/extension-insight/collection/views/manifests.ts rename src/packages/{core/extension-registry => extension-insight}/collection/views/table/extension-table-collection-view.element.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/collection/views/table/extension-table-entity-actions-column-layout.element.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/entity-actions/manifests.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/entity-actions/unregister/index.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/entity-actions/unregister/manifests.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/entity-actions/unregister/unregister-extension.action.ts (93%) rename src/packages/{core/extension-registry => extension-insight}/entity.ts (100%) create mode 100644 src/packages/extension-insight/manifests.ts rename src/packages/{core/extension-registry => extension-insight}/menu-item/manifests.ts (100%) create mode 100644 src/packages/extension-insight/package.json create mode 100644 src/packages/extension-insight/umbraco-package.ts create mode 100644 src/packages/extension-insight/vite.config.ts rename src/packages/{core/extension-registry => extension-insight}/workspace/extension-root-workspace.element.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/workspace/extension-root-workspace.stories.ts (100%) rename src/packages/{core/extension-registry => extension-insight}/workspace/manifests.ts (100%) diff --git a/src/apps/backoffice/backoffice.element.ts b/src/apps/backoffice/backoffice.element.ts index d54b7fc79e..52f5e00322 100644 --- a/src/apps/backoffice/backoffice.element.ts +++ b/src/apps/backoffice/backoffice.element.ts @@ -17,6 +17,7 @@ const CORE_PACKAGES = [ import('../../packages/data-type/umbraco-package.js'), import('../../packages/dictionary/umbraco-package.js'), import('../../packages/documents/umbraco-package.js'), + import('../../packages/extension-insight/umbraco-package.js'), import('../../packages/health-check/umbraco-package.js'), import('../../packages/help/umbraco-package.js'), import('../../packages/language/umbraco-package.js'), diff --git a/src/packages/core/extension-registry/collection/manifests.ts b/src/packages/core/extension-registry/collection/manifests.ts deleted file mode 100644 index 3d2fcf1205..0000000000 --- a/src/packages/core/extension-registry/collection/manifests.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { UMB_EXTENSION_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js'; -import { manifests as collectionRepositoryManifests } from './repository/manifests.js'; -import { manifests as collectionViewManifests } from './views/manifests.js'; -import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; -import type { ManifestCollection } from '@umbraco-cms/backoffice/collection'; - -export const UMB_EXTENSION_COLLECTION_ALIAS = 'Umb.Collection.Extension'; - -const collectionManifest: ManifestCollection = { - type: 'collection', - kind: 'default', - alias: UMB_EXTENSION_COLLECTION_ALIAS, - name: 'Extension Collection', - element: () => import('./extension-collection.element.js'), - meta: { - repositoryAlias: UMB_EXTENSION_COLLECTION_REPOSITORY_ALIAS, - }, -}; - -export const manifests: Array = [ - collectionManifest, - ...collectionRepositoryManifests, - ...collectionViewManifests, -]; diff --git a/src/packages/core/extension-registry/collection/views/manifests.ts b/src/packages/core/extension-registry/collection/views/manifests.ts deleted file mode 100644 index 0fd5cf9fef..0000000000 --- a/src/packages/core/extension-registry/collection/views/manifests.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection'; -import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; -import type { ManifestCollectionView } from '@umbraco-cms/backoffice/collection'; - -export const UMB_EXTENSION_TABLE_COLLECTION_VIEW_ALIAS = 'Umb.CollectionView.Extension.Table'; - -const tableCollectionView: ManifestCollectionView = { - type: 'collectionView', - alias: UMB_EXTENSION_TABLE_COLLECTION_VIEW_ALIAS, - name: 'Extension Table Collection View', - element: () => import('./table/extension-table-collection-view.element.js'), - meta: { - label: 'Table', - icon: 'icon-list', - pathName: 'table', - }, - conditions: [ - { - alias: UMB_COLLECTION_ALIAS_CONDITION, - match: 'Umb.Collection.Extension', - }, - ], -}; - -export const manifests: Array = [tableCollectionView]; diff --git a/src/packages/core/extension-registry/manifests.ts b/src/packages/core/extension-registry/manifests.ts index dd1a2d6e84..f8705be56e 100644 --- a/src/packages/core/extension-registry/manifests.ts +++ b/src/packages/core/extension-registry/manifests.ts @@ -1,14 +1,4 @@ import { manifests as conditionManifests } from './conditions/manifests.js'; -import { manifests as menuItemManifests } from './menu-item/manifests.js'; -import { manifests as workspaceManifests } from './workspace/manifests.js'; -import { manifests as collectionManifests } from './collection/manifests.js'; -import { manifests as entityActionManifests } from './entity-actions/manifests.js'; import type { ManifestTypes } from './models/index.js'; -export const manifests: Array = [ - ...conditionManifests, - ...menuItemManifests, - ...workspaceManifests, - ...collectionManifests, - ...entityActionManifests, -]; +export const manifests: Array = [...conditionManifests]; diff --git a/src/packages/core/extension-registry/collection/extension-collection.element.ts b/src/packages/extension-insight/collection/extension-collection.element.ts similarity index 96% rename from src/packages/core/extension-registry/collection/extension-collection.element.ts rename to src/packages/extension-insight/collection/extension-collection.element.ts index a57ef177a0..3c22b9e54a 100644 --- a/src/packages/core/extension-registry/collection/extension-collection.element.ts +++ b/src/packages/extension-insight/collection/extension-collection.element.ts @@ -1,5 +1,5 @@ -import { umbExtensionsRegistry } from '../registry.js'; import type { UmbExtensionCollectionFilterModel } from './types.js'; +import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit'; import { fromCamelCase } from '@umbraco-cms/backoffice/utils'; import { UMB_COLLECTION_CONTEXT, UmbCollectionDefaultElement } from '@umbraco-cms/backoffice/collection'; diff --git a/src/packages/extension-insight/collection/manifests.ts b/src/packages/extension-insight/collection/manifests.ts new file mode 100644 index 0000000000..750465b90d --- /dev/null +++ b/src/packages/extension-insight/collection/manifests.ts @@ -0,0 +1,20 @@ +import { UMB_EXTENSION_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js'; +import { manifests as collectionRepositoryManifests } from './repository/manifests.js'; +import { manifests as collectionViewManifests } from './views/manifests.js'; + +export const UMB_EXTENSION_COLLECTION_ALIAS = 'Umb.Collection.Extension'; + +export const manifests: Array = [ + { + type: 'collection', + kind: 'default', + alias: UMB_EXTENSION_COLLECTION_ALIAS, + name: 'Extension Collection', + element: () => import('./extension-collection.element.js'), + meta: { + repositoryAlias: UMB_EXTENSION_COLLECTION_REPOSITORY_ALIAS, + }, + }, + ...collectionRepositoryManifests, + ...collectionViewManifests, +]; diff --git a/src/packages/core/extension-registry/collection/repository/extension-collection.repository.ts b/src/packages/extension-insight/collection/repository/extension-collection.repository.ts similarity index 94% rename from src/packages/core/extension-registry/collection/repository/extension-collection.repository.ts rename to src/packages/extension-insight/collection/repository/extension-collection.repository.ts index 5daaac2129..a400517ce5 100644 --- a/src/packages/core/extension-registry/collection/repository/extension-collection.repository.ts +++ b/src/packages/extension-insight/collection/repository/extension-collection.repository.ts @@ -1,6 +1,6 @@ -import { umbExtensionsRegistry } from '../../registry.js'; import type { UmbExtensionCollectionFilterModel, UmbExtensionDetailModel } from '../types.js'; import { UMB_EXTENSION_ENTITY_TYPE } from '../../entity.js'; +import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UmbRepositoryBase } from '@umbraco-cms/backoffice/repository'; import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import type { UmbCollectionRepository } from '@umbraco-cms/backoffice/collection'; diff --git a/src/packages/core/extension-registry/collection/repository/index.ts b/src/packages/extension-insight/collection/repository/index.ts similarity index 100% rename from src/packages/core/extension-registry/collection/repository/index.ts rename to src/packages/extension-insight/collection/repository/index.ts diff --git a/src/packages/core/extension-registry/collection/repository/manifests.ts b/src/packages/extension-insight/collection/repository/manifests.ts similarity index 100% rename from src/packages/core/extension-registry/collection/repository/manifests.ts rename to src/packages/extension-insight/collection/repository/manifests.ts diff --git a/src/packages/core/extension-registry/collection/types.ts b/src/packages/extension-insight/collection/types.ts similarity index 100% rename from src/packages/core/extension-registry/collection/types.ts rename to src/packages/extension-insight/collection/types.ts diff --git a/src/packages/extension-insight/collection/views/manifests.ts b/src/packages/extension-insight/collection/views/manifests.ts new file mode 100644 index 0000000000..097a9e5b25 --- /dev/null +++ b/src/packages/extension-insight/collection/views/manifests.ts @@ -0,0 +1,23 @@ +import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection'; + +export const UMB_EXTENSION_TABLE_COLLECTION_VIEW_ALIAS = 'Umb.CollectionView.Extension.Table'; + +export const manifests: Array = [ + { + type: 'collectionView', + alias: UMB_EXTENSION_TABLE_COLLECTION_VIEW_ALIAS, + name: 'Extension Table Collection View', + element: () => import('./table/extension-table-collection-view.element.js'), + meta: { + label: 'Table', + icon: 'icon-list', + pathName: 'table', + }, + conditions: [ + { + alias: UMB_COLLECTION_ALIAS_CONDITION, + match: 'Umb.Collection.Extension', + }, + ], + }, +]; diff --git a/src/packages/core/extension-registry/collection/views/table/extension-table-collection-view.element.ts b/src/packages/extension-insight/collection/views/table/extension-table-collection-view.element.ts similarity index 100% rename from src/packages/core/extension-registry/collection/views/table/extension-table-collection-view.element.ts rename to src/packages/extension-insight/collection/views/table/extension-table-collection-view.element.ts diff --git a/src/packages/core/extension-registry/collection/views/table/extension-table-entity-actions-column-layout.element.ts b/src/packages/extension-insight/collection/views/table/extension-table-entity-actions-column-layout.element.ts similarity index 100% rename from src/packages/core/extension-registry/collection/views/table/extension-table-entity-actions-column-layout.element.ts rename to src/packages/extension-insight/collection/views/table/extension-table-entity-actions-column-layout.element.ts diff --git a/src/packages/core/extension-registry/entity-actions/manifests.ts b/src/packages/extension-insight/entity-actions/manifests.ts similarity index 100% rename from src/packages/core/extension-registry/entity-actions/manifests.ts rename to src/packages/extension-insight/entity-actions/manifests.ts diff --git a/src/packages/core/extension-registry/entity-actions/unregister/index.ts b/src/packages/extension-insight/entity-actions/unregister/index.ts similarity index 100% rename from src/packages/core/extension-registry/entity-actions/unregister/index.ts rename to src/packages/extension-insight/entity-actions/unregister/index.ts diff --git a/src/packages/core/extension-registry/entity-actions/unregister/manifests.ts b/src/packages/extension-insight/entity-actions/unregister/manifests.ts similarity index 100% rename from src/packages/core/extension-registry/entity-actions/unregister/manifests.ts rename to src/packages/extension-insight/entity-actions/unregister/manifests.ts diff --git a/src/packages/core/extension-registry/entity-actions/unregister/unregister-extension.action.ts b/src/packages/extension-insight/entity-actions/unregister/unregister-extension.action.ts similarity index 93% rename from src/packages/core/extension-registry/entity-actions/unregister/unregister-extension.action.ts rename to src/packages/extension-insight/entity-actions/unregister/unregister-extension.action.ts index 019871bfbd..c904dc092d 100644 --- a/src/packages/core/extension-registry/entity-actions/unregister/unregister-extension.action.ts +++ b/src/packages/extension-insight/entity-actions/unregister/unregister-extension.action.ts @@ -1,4 +1,4 @@ -import { umbExtensionsRegistry } from '../../registry.js'; +import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action'; import { UmbEntityActionBase, UmbRequestReloadStructureForEntityEvent } from '@umbraco-cms/backoffice/entity-action'; import { umbConfirmModal } from '@umbraco-cms/backoffice/modal'; diff --git a/src/packages/core/extension-registry/entity.ts b/src/packages/extension-insight/entity.ts similarity index 100% rename from src/packages/core/extension-registry/entity.ts rename to src/packages/extension-insight/entity.ts diff --git a/src/packages/extension-insight/manifests.ts b/src/packages/extension-insight/manifests.ts new file mode 100644 index 0000000000..0507e6a8ee --- /dev/null +++ b/src/packages/extension-insight/manifests.ts @@ -0,0 +1,11 @@ +import { manifests as menuItemManifests } from './menu-item/manifests.js'; +import { manifests as workspaceManifests } from './workspace/manifests.js'; +import { manifests as collectionManifests } from './collection/manifests.js'; +import { manifests as entityActionManifests } from './entity-actions/manifests.js'; + +export const manifests: Array = [ + ...menuItemManifests, + ...workspaceManifests, + ...collectionManifests, + ...entityActionManifests, +]; diff --git a/src/packages/core/extension-registry/menu-item/manifests.ts b/src/packages/extension-insight/menu-item/manifests.ts similarity index 100% rename from src/packages/core/extension-registry/menu-item/manifests.ts rename to src/packages/extension-insight/menu-item/manifests.ts diff --git a/src/packages/extension-insight/package.json b/src/packages/extension-insight/package.json new file mode 100644 index 0000000000..b9eeb6c15c --- /dev/null +++ b/src/packages/extension-insight/package.json @@ -0,0 +1,8 @@ +{ + "name": "@umbraco-backoffice/log-viewer", + "private": true, + "type": "module", + "scripts": { + "build": "vite build" + } +} \ No newline at end of file diff --git a/src/packages/extension-insight/umbraco-package.ts b/src/packages/extension-insight/umbraco-package.ts new file mode 100644 index 0000000000..c9a7e12951 --- /dev/null +++ b/src/packages/extension-insight/umbraco-package.ts @@ -0,0 +1,9 @@ +export const name = 'Umbraco.Core.ExtensionInsight'; +export const extensions = [ + { + name: 'Extension Insight Bundle', + alias: 'Umb.Bundle.ExtensionInsight', + type: 'bundle', + js: () => import('./manifests.js'), + }, +]; diff --git a/src/packages/extension-insight/vite.config.ts b/src/packages/extension-insight/vite.config.ts new file mode 100644 index 0000000000..086063eb13 --- /dev/null +++ b/src/packages/extension-insight/vite.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from 'vite'; +import { rmSync } from 'fs'; +import { getDefaultConfig } from '../../vite-config-base'; + +const dist = '../../../dist-cms/packages/webhook'; + +// delete the unbundled dist folder +rmSync(dist, { recursive: true, force: true }); + +export default defineConfig({ + ...getDefaultConfig({ dist, entry: ['manifests.ts', 'umbraco-package.ts'] }), +}); diff --git a/src/packages/core/extension-registry/workspace/extension-root-workspace.element.ts b/src/packages/extension-insight/workspace/extension-root-workspace.element.ts similarity index 100% rename from src/packages/core/extension-registry/workspace/extension-root-workspace.element.ts rename to src/packages/extension-insight/workspace/extension-root-workspace.element.ts diff --git a/src/packages/core/extension-registry/workspace/extension-root-workspace.stories.ts b/src/packages/extension-insight/workspace/extension-root-workspace.stories.ts similarity index 100% rename from src/packages/core/extension-registry/workspace/extension-root-workspace.stories.ts rename to src/packages/extension-insight/workspace/extension-root-workspace.stories.ts diff --git a/src/packages/core/extension-registry/workspace/manifests.ts b/src/packages/extension-insight/workspace/manifests.ts similarity index 100% rename from src/packages/core/extension-registry/workspace/manifests.ts rename to src/packages/extension-insight/workspace/manifests.ts From e251cb8762fd32ce6617444f22a8ba20d5b50bd5 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 13 Sep 2024 15:36:13 +0200 Subject: [PATCH 2/4] rename folder --- .../collection/extension-collection.element.ts | 0 .../collection/manifests.ts | 0 .../collection/repository/extension-collection.repository.ts | 0 .../collection/repository/index.ts | 0 .../collection/repository/manifests.ts | 0 .../collection/types.ts | 0 .../collection/views/manifests.ts | 0 .../views/table/extension-table-collection-view.element.ts | 0 .../extension-table-entity-actions-column-layout.element.ts | 0 .../entity-actions/manifests.ts | 0 .../entity-actions/unregister/index.ts | 0 .../entity-actions/unregister/manifests.ts | 0 .../entity-actions/unregister/unregister-extension.action.ts | 0 .../{extension-insight => extension-insights}/entity.ts | 0 .../{extension-insight => extension-insights}/manifests.ts | 0 .../menu-item/manifests.ts | 0 .../{extension-insight => extension-insights}/package.json | 2 +- .../umbraco-package.ts | 0 .../{extension-insight => extension-insights}/vite.config.ts | 2 +- .../workspace/extension-root-workspace.element.ts | 0 .../workspace/extension-root-workspace.stories.ts | 0 .../workspace/manifests.ts | 0 22 files changed, 2 insertions(+), 2 deletions(-) rename src/packages/{extension-insight => extension-insights}/collection/extension-collection.element.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/repository/extension-collection.repository.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/repository/index.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/repository/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/types.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/views/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/views/table/extension-table-collection-view.element.ts (100%) rename src/packages/{extension-insight => extension-insights}/collection/views/table/extension-table-entity-actions-column-layout.element.ts (100%) rename src/packages/{extension-insight => extension-insights}/entity-actions/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/entity-actions/unregister/index.ts (100%) rename src/packages/{extension-insight => extension-insights}/entity-actions/unregister/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/entity-actions/unregister/unregister-extension.action.ts (100%) rename src/packages/{extension-insight => extension-insights}/entity.ts (100%) rename src/packages/{extension-insight => extension-insights}/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/menu-item/manifests.ts (100%) rename src/packages/{extension-insight => extension-insights}/package.json (61%) rename src/packages/{extension-insight => extension-insights}/umbraco-package.ts (100%) rename src/packages/{extension-insight => extension-insights}/vite.config.ts (83%) rename src/packages/{extension-insight => extension-insights}/workspace/extension-root-workspace.element.ts (100%) rename src/packages/{extension-insight => extension-insights}/workspace/extension-root-workspace.stories.ts (100%) rename src/packages/{extension-insight => extension-insights}/workspace/manifests.ts (100%) diff --git a/src/packages/extension-insight/collection/extension-collection.element.ts b/src/packages/extension-insights/collection/extension-collection.element.ts similarity index 100% rename from src/packages/extension-insight/collection/extension-collection.element.ts rename to src/packages/extension-insights/collection/extension-collection.element.ts diff --git a/src/packages/extension-insight/collection/manifests.ts b/src/packages/extension-insights/collection/manifests.ts similarity index 100% rename from src/packages/extension-insight/collection/manifests.ts rename to src/packages/extension-insights/collection/manifests.ts diff --git a/src/packages/extension-insight/collection/repository/extension-collection.repository.ts b/src/packages/extension-insights/collection/repository/extension-collection.repository.ts similarity index 100% rename from src/packages/extension-insight/collection/repository/extension-collection.repository.ts rename to src/packages/extension-insights/collection/repository/extension-collection.repository.ts diff --git a/src/packages/extension-insight/collection/repository/index.ts b/src/packages/extension-insights/collection/repository/index.ts similarity index 100% rename from src/packages/extension-insight/collection/repository/index.ts rename to src/packages/extension-insights/collection/repository/index.ts diff --git a/src/packages/extension-insight/collection/repository/manifests.ts b/src/packages/extension-insights/collection/repository/manifests.ts similarity index 100% rename from src/packages/extension-insight/collection/repository/manifests.ts rename to src/packages/extension-insights/collection/repository/manifests.ts diff --git a/src/packages/extension-insight/collection/types.ts b/src/packages/extension-insights/collection/types.ts similarity index 100% rename from src/packages/extension-insight/collection/types.ts rename to src/packages/extension-insights/collection/types.ts diff --git a/src/packages/extension-insight/collection/views/manifests.ts b/src/packages/extension-insights/collection/views/manifests.ts similarity index 100% rename from src/packages/extension-insight/collection/views/manifests.ts rename to src/packages/extension-insights/collection/views/manifests.ts diff --git a/src/packages/extension-insight/collection/views/table/extension-table-collection-view.element.ts b/src/packages/extension-insights/collection/views/table/extension-table-collection-view.element.ts similarity index 100% rename from src/packages/extension-insight/collection/views/table/extension-table-collection-view.element.ts rename to src/packages/extension-insights/collection/views/table/extension-table-collection-view.element.ts diff --git a/src/packages/extension-insight/collection/views/table/extension-table-entity-actions-column-layout.element.ts b/src/packages/extension-insights/collection/views/table/extension-table-entity-actions-column-layout.element.ts similarity index 100% rename from src/packages/extension-insight/collection/views/table/extension-table-entity-actions-column-layout.element.ts rename to src/packages/extension-insights/collection/views/table/extension-table-entity-actions-column-layout.element.ts diff --git a/src/packages/extension-insight/entity-actions/manifests.ts b/src/packages/extension-insights/entity-actions/manifests.ts similarity index 100% rename from src/packages/extension-insight/entity-actions/manifests.ts rename to src/packages/extension-insights/entity-actions/manifests.ts diff --git a/src/packages/extension-insight/entity-actions/unregister/index.ts b/src/packages/extension-insights/entity-actions/unregister/index.ts similarity index 100% rename from src/packages/extension-insight/entity-actions/unregister/index.ts rename to src/packages/extension-insights/entity-actions/unregister/index.ts diff --git a/src/packages/extension-insight/entity-actions/unregister/manifests.ts b/src/packages/extension-insights/entity-actions/unregister/manifests.ts similarity index 100% rename from src/packages/extension-insight/entity-actions/unregister/manifests.ts rename to src/packages/extension-insights/entity-actions/unregister/manifests.ts diff --git a/src/packages/extension-insight/entity-actions/unregister/unregister-extension.action.ts b/src/packages/extension-insights/entity-actions/unregister/unregister-extension.action.ts similarity index 100% rename from src/packages/extension-insight/entity-actions/unregister/unregister-extension.action.ts rename to src/packages/extension-insights/entity-actions/unregister/unregister-extension.action.ts diff --git a/src/packages/extension-insight/entity.ts b/src/packages/extension-insights/entity.ts similarity index 100% rename from src/packages/extension-insight/entity.ts rename to src/packages/extension-insights/entity.ts diff --git a/src/packages/extension-insight/manifests.ts b/src/packages/extension-insights/manifests.ts similarity index 100% rename from src/packages/extension-insight/manifests.ts rename to src/packages/extension-insights/manifests.ts diff --git a/src/packages/extension-insight/menu-item/manifests.ts b/src/packages/extension-insights/menu-item/manifests.ts similarity index 100% rename from src/packages/extension-insight/menu-item/manifests.ts rename to src/packages/extension-insights/menu-item/manifests.ts diff --git a/src/packages/extension-insight/package.json b/src/packages/extension-insights/package.json similarity index 61% rename from src/packages/extension-insight/package.json rename to src/packages/extension-insights/package.json index b9eeb6c15c..25e8983f7a 100644 --- a/src/packages/extension-insight/package.json +++ b/src/packages/extension-insights/package.json @@ -1,5 +1,5 @@ { - "name": "@umbraco-backoffice/log-viewer", + "name": "@umbraco-backoffice/extension-insights", "private": true, "type": "module", "scripts": { diff --git a/src/packages/extension-insight/umbraco-package.ts b/src/packages/extension-insights/umbraco-package.ts similarity index 100% rename from src/packages/extension-insight/umbraco-package.ts rename to src/packages/extension-insights/umbraco-package.ts diff --git a/src/packages/extension-insight/vite.config.ts b/src/packages/extension-insights/vite.config.ts similarity index 83% rename from src/packages/extension-insight/vite.config.ts rename to src/packages/extension-insights/vite.config.ts index 086063eb13..8e8a57e4b0 100644 --- a/src/packages/extension-insight/vite.config.ts +++ b/src/packages/extension-insights/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'; import { rmSync } from 'fs'; import { getDefaultConfig } from '../../vite-config-base'; -const dist = '../../../dist-cms/packages/webhook'; +const dist = '../../../dist-cms/packages/extension-insights'; // delete the unbundled dist folder rmSync(dist, { recursive: true, force: true }); diff --git a/src/packages/extension-insight/workspace/extension-root-workspace.element.ts b/src/packages/extension-insights/workspace/extension-root-workspace.element.ts similarity index 100% rename from src/packages/extension-insight/workspace/extension-root-workspace.element.ts rename to src/packages/extension-insights/workspace/extension-root-workspace.element.ts diff --git a/src/packages/extension-insight/workspace/extension-root-workspace.stories.ts b/src/packages/extension-insights/workspace/extension-root-workspace.stories.ts similarity index 100% rename from src/packages/extension-insight/workspace/extension-root-workspace.stories.ts rename to src/packages/extension-insights/workspace/extension-root-workspace.stories.ts diff --git a/src/packages/extension-insight/workspace/manifests.ts b/src/packages/extension-insights/workspace/manifests.ts similarity index 100% rename from src/packages/extension-insight/workspace/manifests.ts rename to src/packages/extension-insights/workspace/manifests.ts From 51b406febd62c9a6b63399c39d12dfdba7e135dd Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 13 Sep 2024 15:37:01 +0200 Subject: [PATCH 3/4] Update backoffice.element.ts --- src/apps/backoffice/backoffice.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/backoffice/backoffice.element.ts b/src/apps/backoffice/backoffice.element.ts index 52f5e00322..efb18e9fa6 100644 --- a/src/apps/backoffice/backoffice.element.ts +++ b/src/apps/backoffice/backoffice.element.ts @@ -17,7 +17,7 @@ const CORE_PACKAGES = [ import('../../packages/data-type/umbraco-package.js'), import('../../packages/dictionary/umbraco-package.js'), import('../../packages/documents/umbraco-package.js'), - import('../../packages/extension-insight/umbraco-package.js'), + import('../../packages/extension-insights/umbraco-package.js'), import('../../packages/health-check/umbraco-package.js'), import('../../packages/help/umbraco-package.js'), import('../../packages/language/umbraco-package.js'), From 6b4f0728532aeb6e5155d2a56e6b6dc4e4d3b230 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 13 Sep 2024 15:39:10 +0200 Subject: [PATCH 4/4] Update package-lock.json --- package-lock.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package-lock.json b/package-lock.json index 4acffeedbd..c311f8f38f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7807,6 +7807,10 @@ "resolved": "src/packages/documents", "link": true }, + "node_modules/@umbraco-backoffice/extension-insights": { + "resolved": "src/packages/extension-insights", + "link": true + }, "node_modules/@umbraco-backoffice/health-check": { "resolved": "src/packages/health-check", "link": true @@ -23079,6 +23083,7 @@ "src/packages/documents": { "name": "@umbraco-backoffice/document" }, + "src/packages/extension-insights": {}, "src/packages/health-check": { "name": "@umbraco-backoffice/health-check" },