Skip to content

Commit 1036ae7

Browse files
committed
reorganize
1 parent 70202cc commit 1036ae7

File tree

9 files changed

+23
-16
lines changed

9 files changed

+23
-16
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { UmbMediaTypeFolderRepository } from './media-type-folder.repository.js';
2-
export { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS } from './constants.js';
1+
export * from './repository/index.js';
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
import { UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE } from '../../entity.js';
2-
import { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_FOLDER_STORE_ALIAS } from './constants.js';
2+
import { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS } from './repository/constants.js';
3+
import { manifests as repositoryManifests } from './repository/manifests.js';
34

45
export const manifests: Array<UmbExtensionManifest> = [
5-
{
6-
type: 'repository',
7-
alias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
8-
name: 'Media Type Folder Repository',
9-
api: () => import('./media-type-folder.repository.js'),
10-
},
11-
{
12-
type: 'store',
13-
alias: UMB_MEDIA_TYPE_FOLDER_STORE_ALIAS,
14-
name: 'Media Type Folder Store',
15-
api: () => import('./media-type-folder.store.js'),
16-
},
176
{
187
type: 'entityAction',
198
kind: 'folderUpdate',
@@ -34,4 +23,5 @@ export const manifests: Array<UmbExtensionManifest> = [
3423
folderRepositoryAlias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
3524
},
3625
},
26+
...repositoryManifests,
3727
];
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './constants.js';
2+
export * from './media-type-folder.repository.js';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_FOLDER_STORE_ALIAS } from './constants.js';
2+
3+
export const manifests: Array<UmbExtensionManifest> = [
4+
{
5+
type: 'repository',
6+
alias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
7+
name: 'Media Type Folder Repository',
8+
api: () => import('./media-type-folder.repository.js'),
9+
},
10+
{
11+
type: 'store',
12+
alias: UMB_MEDIA_TYPE_FOLDER_STORE_ALIAS,
13+
name: 'Media Type Folder Store',
14+
api: () => import('./media-type-folder.store.js'),
15+
},
16+
];

src/packages/media/media-types/tree/folder/media-type-folder.server.data-source.ts renamed to src/packages/media/media-types/tree/folder/repository/media-type-folder.server.data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE } from '../../entity.js';
1+
import { UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
22
import type { UmbFolderModel } from '@umbraco-cms/backoffice/tree';
33
import { MediaTypeService } from '@umbraco-cms/backoffice/external/backend-api';
44
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';

0 commit comments

Comments
 (0)