split tokens/consts from implementation
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const UMB_USER_COLLECTION_ALIAS = 'Umb.Collection.User';
|
||||
@@ -1 +1,2 @@
|
||||
export * from './repository/index.js';
|
||||
export * from './constants.js';
|
||||
|
||||
@@ -2,9 +2,9 @@ import { UMB_USER_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';
|
||||
import { manifests as collectionRepositoryManifests } from './repository/manifests.js';
|
||||
import { manifests as collectionViewManifests } from './views/manifests.js';
|
||||
import { manifests as collectionActionManifests } from './action/manifests.js';
|
||||
import { UMB_USER_COLLECTION_ALIAS } from './constants.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_COLLECTION_ALIAS = 'Umb.Collection.User';
|
||||
const collectionManifest: ManifestTypes = {
|
||||
type: 'collection',
|
||||
alias: UMB_USER_COLLECTION_ALIAS,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_USER_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserCollection';
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_USER_COLLECTION_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserCollection';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_COLLECTION_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const UMB_COLLECTION_VIEW_USER_TABLE = 'Umb.CollectionView.User.Table';
|
||||
export const UMB_COLLECTION_VIEW_USER_GRID = 'Umb.CollectionView.User.Grid';
|
||||
@@ -1,2 +1 @@
|
||||
export { UMB_COLLECTION_VIEW_USER_TABLE } from './manifests.js';
|
||||
export { UMB_COLLECTION_VIEW_USER_GRID } from './manifests.js';
|
||||
export * from './constants.js';
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { UMB_COLLECTION_VIEW_USER_GRID, UMB_COLLECTION_VIEW_USER_TABLE } from './constants.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_COLLECTION_VIEW_USER_TABLE = 'Umb.CollectionView.User.Table';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_COLLECTION_VIEW_USER_TABLE,
|
||||
@@ -21,8 +20,6 @@ const tableCollectionView: ManifestCollectionView = {
|
||||
],
|
||||
};
|
||||
|
||||
export const UMB_COLLECTION_VIEW_USER_GRID = 'Umb.CollectionView.User.Grid';
|
||||
|
||||
const gridCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_COLLECTION_VIEW_USER_GRID,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UMB_USER_COLLECTION_ALIAS } from '../collection/manifests.js';
|
||||
import { UMB_USER_COLLECTION_ALIAS } from '../collection/index.js';
|
||||
import { UMB_USER_ENTITY_TYPE } from '../entity.js';
|
||||
import { UmbEnableUserEntityBulkAction } from './enable/enable.action.js';
|
||||
import { UmbSetGroupUserEntityBulkAction } from './set-group/set-group.action.js';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_INVITE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Invite';
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbInviteUserRepository } from './invite-user.repository.js';
|
||||
export { UMB_INVITE_USER_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_INVITE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UMB_INVITE_USER_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_INVITE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Invite';
|
||||
const inviteRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_INVITE_USER_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_USER_AVATAR_REPOSITORY_ALIAS = 'Umb.Repository.User.Avatar';
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbUserAvatarRepository } from './user-avatar.repository.js';
|
||||
export { UMB_USER_AVATAR_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_USER_AVATAR_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_USER_AVATAR_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_AVATAR_REPOSITORY_ALIAS = 'Umb.Repository.User.Avatar';
|
||||
|
||||
const avatarRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_AVATAR_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS = 'Umb.Repository.User.ChangePassword';
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbChangeUserPasswordRepository } from './change-user-password.repository.js';
|
||||
export { UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS = 'Umb.Repository.User.ChangePassword';
|
||||
|
||||
const changePasswordRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const UMB_USER_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.User.Detail';
|
||||
export const UMB_USER_DETAIL_STORE_ALIAS = 'Umb.Store.User.Detail';
|
||||
@@ -1,5 +1,5 @@
|
||||
export { UmbUserDetailRepository } from './user-detail.repository.js';
|
||||
export { UMB_USER_DETAIL_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_USER_DETAIL_STORE_CONTEXT } from './user-detail.store.js';
|
||||
export * from './constants.js';
|
||||
|
||||
export type { UmbUserDetailStore } from './user-detail.store.js';
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { UMB_USER_DETAIL_REPOSITORY_ALIAS, UMB_USER_DETAIL_STORE_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_USER_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.User.Detail';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_USER_DETAIL_REPOSITORY_ALIAS,
|
||||
@@ -9,8 +8,6 @@ const repository: ManifestRepository = {
|
||||
api: () => import('./user-detail.repository.js'),
|
||||
};
|
||||
|
||||
export const UMB_USER_DETAIL_STORE_ALIAS = 'Umb.Store.User.Detail';
|
||||
|
||||
const store: ManifestStore = {
|
||||
type: 'store',
|
||||
alias: UMB_USER_DETAIL_STORE_ALIAS,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UMB_USER_COLLECTION_ALIAS } from '../collection/manifests.js';
|
||||
import { UMB_USER_COLLECTION_ALIAS } from '../collection/index.js';
|
||||
import { UMB_USER_ENTITY_TYPE, UMB_USER_ROOT_ENTITY_TYPE } from '../entity.js';
|
||||
import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
|
||||
Reference in New Issue
Block a user