diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/constants.ts new file mode 100644 index 0000000000..dda3fbabe7 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/constants.ts @@ -0,0 +1 @@ +export const UMB_USER_COLLECTION_ALIAS = 'Umb.Collection.User'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/index.ts index 3d76f338dd..4991633288 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/index.ts @@ -1 +1,2 @@ export * from './repository/index.js'; +export * from './constants.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts index ed2494e45b..72741e772e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/constants.ts new file mode 100644 index 0000000000..d0760765e1 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/constants.ts @@ -0,0 +1 @@ +export const UMB_USER_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserCollection'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/manifests.ts index 772ef263ed..15afe81d2b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/repository/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/constants.ts new file mode 100644 index 0000000000..f0437f0645 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/constants.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/index.ts index d0c7f1bb4a..4f07201dcf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/index.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/manifests.ts index 1837436687..dcc1bd579b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/views/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-bulk-actions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-bulk-actions/manifests.ts index 3b9e43a859..72b43c8818 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-bulk-actions/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-bulk-actions/manifests.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/constants.ts new file mode 100644 index 0000000000..6846237bee --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/constants.ts @@ -0,0 +1 @@ +export const UMB_INVITE_USER_REPOSITORY_ALIAS = 'Umb.Repository.User.Invite'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/index.ts index 9d8b0a75fe..f49723b7e3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/index.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/manifests.ts index 9bf092cbca..387f146850 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/invite/repository/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/constants.ts new file mode 100644 index 0000000000..79d661d45d --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/constants.ts @@ -0,0 +1 @@ +export const UMB_USER_AVATAR_REPOSITORY_ALIAS = 'Umb.Repository.User.Avatar'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/index.ts index a7af3a805e..c823650a05 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/index.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/manifests.ts index ae4aa735fd..87961d59ff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/avatar/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/constants.ts new file mode 100644 index 0000000000..20d2c55398 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/constants.ts @@ -0,0 +1 @@ +export const UMB_CHANGE_USER_PASSWORD_REPOSITORY_ALIAS = 'Umb.Repository.User.ChangePassword'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/index.ts index 2088a93329..22eb448ee8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/index.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/manifests.ts index 43bd6665aa..2283923820 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/change-password/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/constants.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/constants.ts new file mode 100644 index 0000000000..a0b65e1d4e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/constants.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/index.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/index.ts index a01f34ea23..8df7e84ab6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/index.ts @@ -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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/manifests.ts index 1f7b40d743..f110fb5c3d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/detail/manifests.ts @@ -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, diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/section-view/users-section-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/section-view/users-section-view.element.ts index 002fbf4d92..22f9d5069d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/section-view/users-section-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/section-view/users-section-view.element.ts @@ -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';