split consts
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import {
|
||||
UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
manifests as repositoryManifests,
|
||||
} from './repository/manifests.js';
|
||||
import { manifests as repositoryManifests } from './repository/manifests.js';
|
||||
import { manifests as collectionViewManifests } from './views/manifests.js';
|
||||
import { manifests as collectionActionManifests } from './action/manifests.js';
|
||||
import { UMB_USER_GROUP_COLLECTION_ALIAS } from './constants.js';
|
||||
import { UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS } from './repository/constants.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const collection: ManifestTypes = {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserGroupCollection';
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserGroupCollection';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.UserGroup.Detail';
|
||||
export const UMB_USER_GROUP_DETAIL_STORE_ALIAS = 'Umb.Store.UserGroup.Detail';
|
||||
@@ -1,5 +1,5 @@
|
||||
export { UmbUserGroupDetailRepository } from './user-group-detail.repository.js';
|
||||
export { UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_USER_GROUP_DETAIL_STORE_CONTEXT } from './user-group-detail.store.js';
|
||||
export { UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS } from './constants.js';
|
||||
export { UMB_USER_GROUP_DETAIL_STORE_CONTEXT } from './user-group-detail.store.token.js';
|
||||
|
||||
export type { UmbUserGroupDetailStore } from './user-group-detail.store.js';
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS, UMB_USER_GROUP_DETAIL_STORE_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.UserGroup.Detail';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_GROUP_DETAIL_REPOSITORY_ALIAS,
|
||||
@@ -9,8 +8,6 @@ const repository: ManifestRepository = {
|
||||
api: () => import('./user-group-detail.repository.js'),
|
||||
};
|
||||
|
||||
export const UMB_USER_GROUP_DETAIL_STORE_ALIAS = 'Umb.Store.UserGroup.Detail';
|
||||
|
||||
const store: ManifestStore = {
|
||||
type: 'store',
|
||||
alias: UMB_USER_GROUP_DETAIL_STORE_ALIAS,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { UmbUserGroupDetailModel } from '../../types.js';
|
||||
import { UmbUserGroupServerDataSource } from './user-group-detail.server.data-source.js';
|
||||
import { UMB_USER_GROUP_DETAIL_STORE_CONTEXT } from './user-group-detail.store.js';
|
||||
import { UMB_USER_GROUP_DETAIL_STORE_CONTEXT } from './user-group-detail.store.token.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbDetailRepositoryBase } from '@umbraco-cms/backoffice/repository';
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import type UmbUserGroupDetailStore from './user-group-detail.store.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
|
||||
export const UMB_USER_GROUP_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbUserGroupDetailStore>(
|
||||
'UmbUserGroupDetailStore',
|
||||
);
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UmbUserGroupDetailModel } from '../../types.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import { UMB_USER_GROUP_DETAIL_STORE_CONTEXT } from './user-group-detail.store.token.js';
|
||||
import { UmbDetailStoreBase } from '@umbraco-cms/backoffice/store';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
@@ -21,7 +21,3 @@ export class UmbUserGroupDetailStore extends UmbDetailStoreBase<UmbUserGroupDeta
|
||||
}
|
||||
|
||||
export default UmbUserGroupDetailStore;
|
||||
|
||||
export const UMB_USER_GROUP_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbUserGroupDetailStore>(
|
||||
'UmbUserGroupDetailStore',
|
||||
);
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.UserGroupItem';
|
||||
export const UMB_USER_GROUP_STORE_ALIAS = 'Umb.Store.UserGroupItem';
|
||||
@@ -1,3 +1,3 @@
|
||||
export { UmbUserGroupItemRepository } from './user-group-item.repository.js';
|
||||
export { UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS } from './constants.js';
|
||||
export type { UmbUserGroupItemModel } from './types.js';
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS, UMB_USER_GROUP_STORE_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestItemStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.UserGroupItem';
|
||||
export const UMB_USER_GROUP_STORE_ALIAS = 'Umb.Store.UserGroupItem';
|
||||
|
||||
const itemRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UmbUserGroupItemServerDataSource } from './user-group-item.server.data-source.js';
|
||||
import { UMB_USER_GROUP_ITEM_STORE_CONTEXT } from './user-group-item.store.js';
|
||||
import { UMB_USER_GROUP_ITEM_STORE_CONTEXT } from './user-group-item.store.token.js';
|
||||
import type { UmbUserGroupItemModel } from './types.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbItemRepositoryBase } from '@umbraco-cms/backoffice/repository';
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import type UmbUserGroupItemStore from './user-group-item.store.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
|
||||
export const UMB_USER_GROUP_ITEM_STORE_CONTEXT = new UmbContextToken<UmbUserGroupItemStore>('UmbUserGroupItemStore');
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UmbUserGroupItemModel } from './types.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import { UMB_USER_GROUP_ITEM_STORE_CONTEXT } from './user-group-item.store.token.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbItemStoreBase } from '@umbraco-cms/backoffice/store';
|
||||
|
||||
@@ -22,5 +22,3 @@ export class UmbUserGroupItemStore extends UmbItemStoreBase<UmbUserGroupItemMode
|
||||
}
|
||||
|
||||
export default UmbUserGroupItemStore;
|
||||
|
||||
export const UMB_USER_GROUP_ITEM_STORE_CONTEXT = new UmbContextToken<UmbUserGroupItemStore>('UmbUserGroupItemStore');
|
||||
|
||||
Reference in New Issue
Block a user