Lazy-load repositories
Found a couple of repositories that hadn't been lazy-loaded.
This commit is contained in:
committed by
Lee Kelleher
parent
38b952b99b
commit
35fe4dbb55
@@ -18,3 +18,5 @@ export class UmbCultureRepository extends UmbControllerBase implements UmbApi {
|
||||
|
||||
override destroy() {}
|
||||
}
|
||||
|
||||
export { UmbCultureRepository as api };
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UmbCultureRepository } from './culture.repository.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_CULTURE_REPOSITORY_ALIAS = 'Umb.Repository.Culture';
|
||||
@@ -7,7 +6,7 @@ const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_CULTURE_REPOSITORY_ALIAS,
|
||||
name: 'Cultures Repository',
|
||||
api: UmbCultureRepository,
|
||||
api: () => import('./culture.repository.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [repository];
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UmbOEmbedRepository } from './oembed.repository.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_OEMBED_REPOSITORY_ALIAS = 'Umb.Repository.OEmbed';
|
||||
@@ -7,7 +6,7 @@ const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_OEMBED_REPOSITORY_ALIAS,
|
||||
name: 'OEmbed Repository',
|
||||
api: UmbOEmbedRepository,
|
||||
api: () => import('./oembed.repository.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [repository];
|
||||
|
||||
@@ -18,3 +18,5 @@ export class UmbOEmbedRepository extends UmbControllerBase implements UmbApi {
|
||||
return { error };
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbOEmbedRepository as api };
|
||||
|
||||
Reference in New Issue
Block a user