split tokens/consts from implementation

This commit is contained in:
Mads Rasmussen
2024-07-04 21:07:22 +02:00
parent dd6b467d74
commit e0c977e122
22 changed files with 24 additions and 24 deletions

View File

@@ -0,0 +1 @@
export const UMB_USER_COLLECTION_ALIAS = 'Umb.Collection.User';

View File

@@ -1 +1,2 @@
export * from './repository/index.js';
export * from './constants.js';

View File

@@ -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,

View File

@@ -0,0 +1 @@
export const UMB_USER_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserCollection';

View File

@@ -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,

View File

@@ -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';

View File

@@ -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';

View File

@@ -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,

View File

@@ -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';

View File

@@ -0,0 +1 @@
export const UMB_INVITE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Invite';

View File

@@ -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';

View File

@@ -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,

View File

@@ -0,0 +1 @@
export const UMB_USER_AVATAR_REPOSITORY_ALIAS = 'Umb.Repository.User.Avatar';

View File

@@ -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';

View File

@@ -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,

View File

@@ -0,0 +1 @@
export const UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS = 'Umb.Repository.User.ChangePassword';

View File

@@ -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';

View File

@@ -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,

View File

@@ -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';

View File

@@ -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';

View File

@@ -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,

View File

@@ -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';