Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/packages/static-file/tree/manifests.ts

53 lines
1.4 KiB
TypeScript
Raw Normal View History

import {
UMB_STATIC_FILE_ENTITY_TYPE,
UMB_STATIC_FILE_FOLDER_ENTITY_TYPE,
UMB_STATIC_FILE_ROOT_ENTITY_TYPE,
} from '../entity.js';
2024-08-08 11:04:31 +02:00
import {
UMB_STATIC_FILE_TREE_ALIAS,
UMB_STATIC_FILE_TREE_ITEM_ALIAS,
UMB_STATIC_FILE_TREE_REPOSITORY_ALIAS,
UMB_STATIC_FILE_TREE_STORE_ALIAS,
} from './constants.js';
import type {
ManifestRepository,
ManifestTree,
ManifestTreeStore,
ManifestTreeItem,
2024-04-24 11:08:37 +02:00
ManifestTypes,
} from '@umbraco-cms/backoffice/extension-registry';
const treeRepository: ManifestRepository = {
type: 'repository',
alias: UMB_STATIC_FILE_TREE_REPOSITORY_ALIAS,
name: 'Static File Tree Repository',
2024-02-23 23:52:09 +01:00
api: () => import('./static-file-tree.repository.js'),
};
const treeStore: ManifestTreeStore = {
type: 'treeStore',
alias: UMB_STATIC_FILE_TREE_STORE_ALIAS,
name: 'Static File Tree Store',
2024-02-23 23:52:09 +01:00
api: () => import('./static-file-tree.store.js'),
};
const tree: ManifestTree = {
type: 'tree',
2024-02-28 10:00:39 +01:00
kind: 'default',
alias: UMB_STATIC_FILE_TREE_ALIAS,
name: 'Static File Tree',
meta: {
repositoryAlias: UMB_STATIC_FILE_TREE_REPOSITORY_ALIAS,
},
};
2023-12-13 15:19:19 +01:00
const treeItem: ManifestTreeItem = {
type: 'treeItem',
kind: 'default',
alias: UMB_STATIC_FILE_TREE_ITEM_ALIAS,
2023-12-13 15:19:19 +01:00
name: 'Static File Tree Item',
2024-03-03 22:23:42 +01:00
forEntityTypes: [UMB_STATIC_FILE_ENTITY_TYPE, UMB_STATIC_FILE_ROOT_ENTITY_TYPE, UMB_STATIC_FILE_FOLDER_ENTITY_TYPE],
2023-12-13 15:19:19 +01:00
};
2024-04-24 10:29:44 +02:00
export const manifests: Array<ManifestTypes> = [treeRepository, treeStore, tree, treeItem];