-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2286 from umbraco/v15/chore/extension-insight-pac…
…kage Chore: Extension insights package
- Loading branch information
Showing
27 changed files
with
93 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/packages/core/extension-registry/collection/manifests.ts
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/packages/core/extension-registry/collection/views/manifests.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ManifestTypes> = [ | ||
...conditionManifests, | ||
...menuItemManifests, | ||
...workspaceManifests, | ||
...collectionManifests, | ||
...entityActionManifests, | ||
]; | ||
export const manifests: Array<ManifestTypes> = [...conditionManifests]; |
2 changes: 1 addition & 1 deletion
2
...ollection/extension-collection.element.ts → ...ollection/extension-collection.element.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<UmbExtensionManifest> = [ | ||
{ | ||
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, | ||
]; |
2 changes: 1 addition & 1 deletion
2
...sitory/extension-collection.repository.ts → ...sitory/extension-collection.repository.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
src/packages/extension-insights/collection/views/manifests.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<UmbExtensionManifest> = [ | ||
{ | ||
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', | ||
}, | ||
], | ||
}, | ||
]; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...unregister/unregister-extension.action.ts → ...unregister/unregister-extension.action.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<UmbExtensionManifest> = [ | ||
...menuItemManifests, | ||
...workspaceManifests, | ||
...collectionManifests, | ||
...entityActionManifests, | ||
]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@umbraco-backoffice/extension-insights", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "vite build" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { defineConfig } from 'vite'; | ||
import { rmSync } from 'fs'; | ||
import { getDefaultConfig } from '../../vite-config-base'; | ||
|
||
const dist = '../../../dist-cms/packages/extension-insights'; | ||
|
||
// delete the unbundled dist folder | ||
rmSync(dist, { recursive: true, force: true }); | ||
|
||
export default defineConfig({ | ||
...getDefaultConfig({ dist, entry: ['manifests.ts', 'umbraco-package.ts'] }), | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.