move tree store manifest to tree module

This commit is contained in:
Mads Rasmussen
2023-11-13 19:58:13 +01:00
parent f745c5f10f
commit 289f007fd8
2 changed files with 14 additions and 21 deletions

View File

@@ -1,11 +1,10 @@
import { UmbDataTypeRepository } from './data-type.repository.js';
import { UmbDataTypeStore } from './data-type.store.js';
import { UmbDataTypeTreeStore } from '../tree/data-type.tree.store.js';
import { manifests as itemManifests } from './item/manifests.js';
import { manifests as moveManifests } from './move/manifests.js';
import { manifests as copyManifests } from './copy/manifests.js';
import { manifests as folderManifests } from './folder/manifests.js';
import type { ManifestStore, ManifestTreeStore, ManifestRepository } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestStore, ManifestRepository } from '@umbraco-cms/backoffice/extension-registry';
export const DATA_TYPE_REPOSITORY_ALIAS = 'Umb.Repository.DataType';
@@ -17,7 +16,6 @@ const repository: ManifestRepository = {
};
export const DATA_TYPE_STORE_ALIAS = 'Umb.Store.DataType';
export const DATA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.DataTypeTree';
const store: ManifestStore = {
type: 'store',
@@ -26,19 +24,4 @@ const store: ManifestStore = {
api: UmbDataTypeStore,
};
const treeStore: ManifestTreeStore = {
type: 'treeStore',
alias: DATA_TYPE_TREE_STORE_ALIAS,
name: 'Data Type Tree Store',
api: UmbDataTypeTreeStore,
};
export const manifests = [
repository,
store,
treeStore,
...itemManifests,
...moveManifests,
...copyManifests,
...folderManifests,
];
export const manifests = [repository, store, ...itemManifests, ...moveManifests, ...copyManifests, ...folderManifests];

View File

@@ -1,5 +1,15 @@
import { DATA_TYPE_REPOSITORY_ALIAS } from '../repository/manifests.js';
import type { ManifestTree, ManifestTreeItem } from '@umbraco-cms/backoffice/extension-registry';
import { UmbDataTypeTreeStore } from './data-type.tree.store.js';
import type { ManifestTree, ManifestTreeItem, ManifestTreeStore } from '@umbraco-cms/backoffice/extension-registry';
export const DATA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.DataType.Tree';
const treeStore: ManifestTreeStore = {
type: 'treeStore',
alias: DATA_TYPE_TREE_STORE_ALIAS,
name: 'Data Type Tree Store',
api: UmbDataTypeTreeStore,
};
const tree: ManifestTree = {
type: 'tree',
@@ -20,4 +30,4 @@ const treeItem: ManifestTreeItem = {
},
};
export const manifests = [tree, treeItem];
export const manifests = [treeStore, tree, treeItem];