register data type stores
This commit is contained in:
@@ -19,8 +19,6 @@ import { UmbDictionaryDetailStore } from './translation/dictionary/repository/di
|
||||
import { UmbDictionaryTreeStore } from './translation/dictionary/repository/dictionary.tree.store';
|
||||
import { UmbDocumentBlueprintDetailStore } from './documents/document-blueprints/document-blueprint.detail.store';
|
||||
import { UmbDocumentBlueprintTreeStore } from './documents/document-blueprints/document-blueprint.tree.store';
|
||||
import { UmbDataTypeStore } from './settings/data-types/repository/data-type.store';
|
||||
import { UmbDataTypeTreeStore } from './settings/data-types/repository/data-type.tree.store';
|
||||
import { UmbTemplateTreeStore } from './templating/templates/tree/data/template.tree.store';
|
||||
import { UmbTemplateDetailStore } from './templating/templates/workspace/data/template.detail.store';
|
||||
import { UmbThemeContext } from './themes/theme.context';
|
||||
@@ -74,8 +72,6 @@ export class UmbBackofficeElement extends UmbLitElement {
|
||||
// TODO: find a way this is possible outside this element. It needs to be possible to register stores in extensions
|
||||
this.provideContext(UMB_CURRENT_USER_STORE_CONTEXT_TOKEN, new UmbCurrentUserStore());
|
||||
|
||||
new UmbDataTypeStore(this);
|
||||
new UmbDataTypeTreeStore(this);
|
||||
new UmbUserStore(this);
|
||||
new UmbUserGroupStore(this);
|
||||
new UmbDictionaryDetailStore(this);
|
||||
|
||||
@@ -1,13 +1,33 @@
|
||||
import { UmbDataTypeRepository } from '../repository/data-type.repository';
|
||||
import { UmbDataTypeStore } from './data-type.store';
|
||||
import { UmbDataTypeTreeStore } from './data-type.tree.store';
|
||||
import { ManifestRepository } from 'libs/extensions-registry/repository.models';
|
||||
import { ManifestStore, ManifestTreeStore } from '@umbraco-cms/extensions-registry';
|
||||
|
||||
export const DATA_TYPE_REPOSITORY_ALIAS = 'Umb.Repository.DataTypes';
|
||||
export const DATA_TYPE_REPOSITORY_ALIAS = 'Umb.Repository.DataType';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: DATA_TYPE_REPOSITORY_ALIAS,
|
||||
name: 'Data Types Repository',
|
||||
name: 'Data Type Repository',
|
||||
class: UmbDataTypeRepository,
|
||||
};
|
||||
|
||||
export const manifests = [repository];
|
||||
export const DATA_TYPE_STORE_ALIAS = 'Umb.Store.DataType';
|
||||
export const DATA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.DataTypeTree';
|
||||
|
||||
const store: ManifestStore = {
|
||||
type: 'store',
|
||||
alias: DATA_TYPE_STORE_ALIAS,
|
||||
name: 'Data Type Store',
|
||||
class: UmbDataTypeStore,
|
||||
};
|
||||
|
||||
const treeStore: ManifestTreeStore = {
|
||||
type: 'treeStore',
|
||||
alias: DATA_TYPE_TREE_STORE_ALIAS,
|
||||
name: 'Data Type Tree Store',
|
||||
class: UmbDataTypeTreeStore,
|
||||
};
|
||||
|
||||
export const manifests = [repository, store, treeStore];
|
||||
|
||||
Reference in New Issue
Block a user