lazt load item repo + store
This commit is contained in:
@@ -9,3 +9,5 @@ export class UmbDocumentItemRepository extends UmbItemRepositoryBase<UmbDocument
|
||||
super(host, UmbDocumentItemServerDataSource, UMB_DOCUMENT_ITEM_STORE_CONTEXT);
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbDocumentItemRepository as api };
|
||||
|
||||
@@ -21,4 +21,6 @@ export class UmbDocumentItemStore extends UmbItemStoreBase<UmbDocumentDetailMode
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbDocumentItemStore as api };
|
||||
|
||||
export const UMB_DOCUMENT_ITEM_STORE_CONTEXT = new UmbContextToken<UmbDocumentItemStore>('UmbDocumentItemStore');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { UmbDocumentItemStore } from './document-item.store.js';
|
||||
import { UmbDocumentItemRepository } from './document-item.repository.js';
|
||||
import type { ManifestRepository, ManifestItemStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.DocumentItem';
|
||||
@@ -9,14 +7,14 @@ const itemRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS,
|
||||
name: 'Document Item Repository',
|
||||
api: UmbDocumentItemRepository,
|
||||
api: () => import('./document-item.repository.js'),
|
||||
};
|
||||
|
||||
const itemStore: ManifestItemStore = {
|
||||
type: 'itemStore',
|
||||
alias: UMB_DOCUMENT_STORE_ALIAS,
|
||||
name: 'Document Item Store',
|
||||
api: UmbDocumentItemStore,
|
||||
api: () => import('./document-item.store.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [itemRepository, itemStore];
|
||||
|
||||
Reference in New Issue
Block a user