register data type item store
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { UmbDataTypeRepository } from '../repository/data-type.repository';
|
||||
import { UmbDataTypeItemStore } from './data-type-item.store';
|
||||
import { UmbDataTypeStore } from './data-type.store';
|
||||
import { UmbDataTypeTreeStore } from './data-type.tree.store';
|
||||
import type { ManifestStore, ManifestTreeStore, ManifestRepository } from '@umbraco-cms/backoffice/extensions-registry';
|
||||
import type {
|
||||
ManifestStore,
|
||||
ManifestTreeStore,
|
||||
ManifestRepository,
|
||||
ManifestItemStore,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
export const DATA_TYPE_REPOSITORY_ALIAS = 'Umb.Repository.DataType';
|
||||
|
||||
@@ -14,6 +20,7 @@ const repository: ManifestRepository = {
|
||||
|
||||
export const DATA_TYPE_STORE_ALIAS = 'Umb.Store.DataType';
|
||||
export const DATA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.DataTypeTree';
|
||||
export const DATA_TYPE_ITEM_STORE_ALIAS = 'Umb.Store.DataTypeItem';
|
||||
|
||||
const store: ManifestStore = {
|
||||
type: 'store',
|
||||
@@ -29,4 +36,11 @@ const treeStore: ManifestTreeStore = {
|
||||
class: UmbDataTypeTreeStore,
|
||||
};
|
||||
|
||||
export const manifests = [repository, store, treeStore];
|
||||
const itemStore: ManifestItemStore = {
|
||||
type: 'itemStore',
|
||||
alias: DATA_TYPE_ITEM_STORE_ALIAS,
|
||||
name: 'Data Type Item Store',
|
||||
class: UmbDataTypeItemStore,
|
||||
};
|
||||
|
||||
export const manifests = [repository, store, treeStore, itemStore];
|
||||
|
||||
Reference in New Issue
Block a user