split consts
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export { UmbUserDetailRepository } from './user-detail.repository.js';
|
||||
export { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.js';
|
||||
export { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.token.js';
|
||||
export * from './constants.js';
|
||||
|
||||
export type { UmbUserDetailStore } from './user-detail.store.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { UmbUserDetailModel } from '../../types.js';
|
||||
import type { UmbUserDetailDataSource } from './types.js';
|
||||
import { UmbUserServerDataSource } from './user-detail.server.data-source.js';
|
||||
import { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.js';
|
||||
import { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.token.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbDetailRepositoryBase } from '@umbraco-cms/backoffice/repository';
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import type UmbUserDetailStore from './user-detail.store.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
|
||||
export const UMB_USER_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbUserDetailStore>('UmbUserDetailStore');
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UmbUserDetailModel } from '../../types.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.token.js';
|
||||
import { UmbDetailStoreBase } from '@umbraco-cms/backoffice/store';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
@@ -21,5 +21,3 @@ export class UmbUserDetailStore extends UmbDetailStoreBase<UmbUserDetailModel> {
|
||||
}
|
||||
|
||||
export default UmbUserDetailStore;
|
||||
|
||||
export const UMB_USER_DETAIL_STORE_CONTEXT = new UmbContextToken<UmbUserDetailStore>('UmbUserDetailStore');
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_DISABLE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Disable';
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbDisableUserRepository } from './disable-user.repository.js';
|
||||
export { UMB_DISABLE_USER_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_DISABLE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UMB_DISABLE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_DISABLE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Disable';
|
||||
const disableRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_DISABLE_USER_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_ENABLE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Enable';
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbEnableUserRepository } from './enable-user.repository.js';
|
||||
export { UMB_ENABLE_USER_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_ENABLE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UMB_ENABLE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_ENABLE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Enable';
|
||||
const enableRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_ENABLE_USER_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const UMB_USER_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.User.Item';
|
||||
export const UMB_USER_ITEM_STORE_ALIAS = 'Umb.ItemStore.User';
|
||||
@@ -1,5 +1,5 @@
|
||||
export { UmbUserItemRepository } from './user-item.repository.js';
|
||||
export { UMB_USER_ITEM_STORE_CONTEXT } from './user-item.store.js';
|
||||
export { UMB_USER_ITEM_REPOSITORY_ALIAS, UMB_USER_ITEM_STORE_ALIAS } from './manifests.js';
|
||||
export { UMB_USER_ITEM_STORE_CONTEXT } from './user-item.store.token.js';
|
||||
export * from './constants.js';
|
||||
|
||||
export type { UmbUserItemModel } from './types.js';
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { UMB_USER_ITEM_REPOSITORY_ALIAS, UMB_USER_ITEM_STORE_ALIAS } from './constants.js';
|
||||
import type { ManifestItemStore, ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.User.Item';
|
||||
export const UMB_USER_ITEM_STORE_ALIAS = 'Umb.ItemStore.User';
|
||||
|
||||
const itemRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_ITEM_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UmbUserItemServerDataSource } from './user-item.server.data-source.js';
|
||||
import { UMB_USER_ITEM_STORE_CONTEXT } from './user-item.store.js';
|
||||
import { UMB_USER_ITEM_STORE_CONTEXT } from './user-item.store.token.js';
|
||||
import type { UmbUserItemModel } 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 UmbUserItemStore from './user-item.store.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
|
||||
export const UMB_USER_ITEM_STORE_CONTEXT = new UmbContextToken<UmbUserItemStore>('UmbUserItemStore');
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UmbUserItemModel } from './types.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import { UMB_USER_ITEM_STORE_CONTEXT } from './user-item.store.token.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbItemStoreBase } from '@umbraco-cms/backoffice/store';
|
||||
|
||||
@@ -23,5 +23,3 @@ export class UmbUserItemStore extends UmbItemStoreBase<UmbUserItemModel> {
|
||||
}
|
||||
|
||||
export default UmbUserItemStore;
|
||||
|
||||
export const UMB_USER_ITEM_STORE_CONTEXT = new UmbContextToken<UmbUserItemStore>('UmbUserItemStore');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { UmbUserDetailStore } from './detail/user-detail.store.js';
|
||||
import { UMB_USER_DETAIL_STORE_CONTEXT } from './detail/user-detail.store.js';
|
||||
import { UMB_USER_DETAIL_STORE_CONTEXT } from './detail/user-detail.store.token.js';
|
||||
import type { UmbUserItemStore } from './item/user-item.store.js';
|
||||
import { UMB_USER_ITEM_STORE_CONTEXT } from './item/user-item.store.js';
|
||||
import { UMB_USER_ITEM_STORE_CONTEXT } from './item/user-item.store.token.js';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import type { UmbNotificationContext } from '@umbraco-cms/backoffice/notification';
|
||||
import { UMB_NOTIFICATION_CONTEXT } from '@umbraco-cms/backoffice/notification';
|
||||
|
||||
Reference in New Issue
Block a user