Skip to content

Commit 99c8205

Browse files
committed
split constants to its own file
1 parent 1394db0 commit 99c8205

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

src/packages/data-type/entity-actions/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UMB_DATA_TYPE_ENTITY_TYPE } from '../entity.js';
22
import { UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS } from '../repository/detail/index.js';
3-
import { UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS } from '../repository/item/manifests.js';
3+
import { UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS } from '../repository/item/index.js';
44
import { manifests as createManifests } from './create/manifests.js';
55
import { manifests as moveManifests } from './move-to/manifests.js';
66
import { manifests as duplicateManifests } from './duplicate/manifests.js';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.DataType.Detail';
2+
export const UMB_DATA_TYPE_DETAIL_STORE_ALIAS = 'Umb.Store.DataType.Detail';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { UmbDataTypeDetailRepository } from './data-type-detail.repository.js';
2-
export { UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS } from './manifests.js';
2+
export { UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS } from './constants.js';
33
export { UMB_DATA_TYPE_DETAIL_STORE_CONTEXT } from './data-type-detail.store.js';

src/packages/data-type/repository/detail/manifests.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
2-
3-
export const UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS = 'Umb.Repository.DataType.Detail';
2+
import { UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS, UMB_DATA_TYPE_DETAIL_STORE_ALIAS } from './constants.js';
43

54
const repository: ManifestRepository = {
65
type: 'repository',
@@ -9,8 +8,6 @@ const repository: ManifestRepository = {
98
api: () => import('./data-type-detail.repository.js'),
109
};
1110

12-
export const UMB_DATA_TYPE_DETAIL_STORE_ALIAS = 'Umb.Store.DataType.Detail';
13-
1411
const store: ManifestStore = {
1512
type: 'store',
1613
alias: UMB_DATA_TYPE_DETAIL_STORE_ALIAS,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.DataType.Item';
2+
export const UMB_DATA_TYPE_STORE_ALIAS = 'Umb.Store.DataType.Item';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { UmbDataTypeItemRepository } from './data-type-item.repository.js';
2-
export { UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS } from './manifests.js';
2+
export { UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS } from './constants.js';
33
export type { UmbDataTypeItemModel } from './types.js';

src/packages/data-type/repository/item/manifests.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import type { ManifestRepository, ManifestItemStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
2-
3-
export const UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS = 'Umb.Repository.DataType.Item';
4-
export const UMB_DATA_TYPE_STORE_ALIAS = 'Umb.Store.DataType.Item';
2+
import { UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_DATA_TYPE_STORE_ALIAS } from './constants.js';
53

64
const itemRepository: ManifestRepository = {
75
type: 'repository',

0 commit comments

Comments
 (0)