rename entrypoint to entryPoint

This commit is contained in:
Mads Rasmussen
2023-04-13 15:38:30 +02:00
parent 668b23f876
commit d5b5f9dffe
13 changed files with 13 additions and 14 deletions

View File

@@ -10,8 +10,7 @@ export class UmbEntryPointExtensionInitializer {
constructor(host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry) {
this.#host = host;
this.#extensionRegistry = extensionRegistry;
// TODO: change entrypoint extension to be entryPoint:
extensionRegistry.extensionsOfType('entrypoint').subscribe((entryPoints) => {
extensionRegistry.extensionsOfType('entryPoint').subscribe((entryPoints) => {
entryPoints.forEach((entryPoint) => {
if (this.#entryPointMap.has(entryPoint.alias)) return;
this.#entryPointMap.set(entryPoint.alias, entryPoint);

View File

@@ -171,6 +171,6 @@ export interface ManifestWithMeta extends ManifestBase {
}
export interface ManifestEntrypoint extends ManifestBase {
type: 'entrypoint';
type: 'entryPoint';
js: string;
}

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Document Management Entry Point',
alias: 'Umb.EntryPoint.DocumentManagement',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Media Management Entry Point',
alias: 'Umb.EntryPoint.MediaManagement',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Member Management Entry Point',
alias: 'Umb.EntryPoint.MemberManagement',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Package Management Entry Point',
alias: 'Umb.EntryPoint.PackageManagement',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Search Entry Point',
alias: 'Umb.EntryPoint.Search',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Settings Entry Point',
alias: 'Umb.EntryPoint.Settings',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Core Entry Point',
alias: 'Umb.EntryPoint.Core',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Templating Entry Point',
alias: 'Umb.EntryPoint.Templating',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'Translation Entry Point',
alias: 'Umb.EntryPoint.Translation',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -4,7 +4,7 @@ export const extensions = [
{
name: 'User Management Entry Point',
alias: 'Umb.EntryPoint.UserManagement',
type: 'entrypoint',
type: 'entryPoint',
loader: () => import('./index'),
},
];

View File

@@ -42,7 +42,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/package/manifes
{
extensions: [
{
type: 'entrypoint',
type: 'entryPoint',
name: 'My Custom Entry Point',
alias: 'My.Entrypoint.Custom',
js: '/App_Plugins/custom-entrypoint.js',