update imports
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
import { UMB_LANGUAGE_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';
|
||||
import { manifests as collectionActionManifests } from './action/manifests.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_LANGUAGE_COLLECTION_ALIAS } from './constants.js';
|
||||
import type { ManifestCollection, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { UMB_LANGUAGE_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';
|
||||
|
||||
const collectionManifest: ManifestCollection = {
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_LANGUAGE_COLLECTION_ALIAS,
|
||||
name: 'Language Collection',
|
||||
meta: {
|
||||
repositoryAlias: UMB_LANGUAGE_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_LANGUAGE_COLLECTION_ALIAS,
|
||||
name: 'Language Collection',
|
||||
meta: {
|
||||
repositoryAlias: UMB_LANGUAGE_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionActionManifests,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
...collectionActionManifests,
|
||||
];
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_LANGUAGE_TABLE_COLLECTION_VIEW_ALIAS = 'Umb.CollectionView.Language.Table';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_LANGUAGE_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Language Table Collection View',
|
||||
js: () => import('./table/language-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Language',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionView',
|
||||
alias: UMB_LANGUAGE_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Language Table Collection View',
|
||||
js: () => import('./table/language-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [tableCollectionView];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Language',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -7,7 +7,7 @@ import { UmbMediaTypeStructureRepository } from '@umbraco-cms/backoffice/media-t
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
import { UMB_WORKSPACE_MODAL } from '@umbraco-cms/backoffice/modal';
|
||||
import { UmbModalRouteRegistrationController } from '@umbraco-cms/backoffice/router';
|
||||
import type { ManifestCollectionAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import type { ManifestCollectionAction } from '@umbraco-cms/backoffice/collection';
|
||||
import type { UmbAllowedMediaTypeModel } from '@umbraco-cms/backoffice/media-type';
|
||||
|
||||
@customElement('umb-create-media-collection-action')
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionAction, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const createManifest: ManifestCollectionAction = {
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create Media Collection Action',
|
||||
alias: 'Umb.CollectionAction.Media.Create',
|
||||
element: () => import('./create-media-collection-action.element.js'),
|
||||
weight: 100,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Media',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create Media Collection Action',
|
||||
alias: 'Umb.CollectionAction.Media.Create',
|
||||
element: () => import('./create-media-collection-action.element.js'),
|
||||
weight: 100,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [createManifest];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Media',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -3,21 +3,18 @@ import { manifests as collectionActionManifests } from './action/manifests.js';
|
||||
import { manifests as collectionRepositoryManifests } from './repository/manifests.js';
|
||||
import { manifests as collectionViewManifests } from './views/manifests.js';
|
||||
import { UMB_MEDIA_COLLECTION_ALIAS } from './index.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const collectionManifest: ManifestTypes = {
|
||||
type: 'collection',
|
||||
alias: UMB_MEDIA_COLLECTION_ALIAS,
|
||||
name: 'Media Collection',
|
||||
api: () => import('./media-collection.context.js'),
|
||||
element: () => import('./media-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEDIA_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
alias: UMB_MEDIA_COLLECTION_ALIAS,
|
||||
name: 'Media Collection',
|
||||
api: () => import('./media-collection.context.js'),
|
||||
element: () => import('./media-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEDIA_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionActionManifests,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { UMB_MEDIA_GRID_COLLECTION_VIEW_ALIAS, UMB_MEDIA_TABLE_COLLECTION_VIEW_ALIAS } from './index.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import type { ManifestCollectionView } from '@umbraco-cms/backoffice/collection';
|
||||
|
||||
const gridViewManifest: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const createManifest: ManifestTypes = {
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create Member Group Collection Action',
|
||||
alias: 'Umb.CollectionAction.MemberGroup.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: 'section/member-management/workspace/member-group/create',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.MemberGroup',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create Member Group Collection Action',
|
||||
alias: 'Umb.CollectionAction.MemberGroup.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: 'section/member-management/workspace/member-group/create',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [createManifest];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.MemberGroup',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,22 +2,19 @@ import { UMB_MEMBER_GROUP_COLLECTION_REPOSITORY_ALIAS } from './repository/index
|
||||
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 type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_MEMBER_GROUP_COLLECTION_ALIAS = 'Umb.Collection.MemberGroup';
|
||||
|
||||
const collectionManifest: ManifestTypes = {
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_MEMBER_GROUP_COLLECTION_ALIAS,
|
||||
name: 'Member Group Collection',
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEMBER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_MEMBER_GROUP_COLLECTION_ALIAS,
|
||||
name: 'Member Group Collection',
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEMBER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
...collectionActionManifests,
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_MEMBER_GROUP_TABLE_COLLECTION_VIEW_ALIAS = 'Umb.CollectionView.MemberGroup.Table';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_MEMBER_GROUP_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Member Group Table Collection View',
|
||||
element: () => import('./table/member-group-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.MemberGroup',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionView',
|
||||
alias: UMB_MEMBER_GROUP_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Member Group Table Collection View',
|
||||
element: () => import('./table/member-group-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [tableCollectionView];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.MemberGroup',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const createManifest: ManifestTypes = {
|
||||
type: 'collectionAction',
|
||||
name: 'Create Member Collection Action',
|
||||
kind: 'button',
|
||||
alias: 'Umb.CollectionAction.Member.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: 'section/member-management/workspace/member/create/member-type-1-id', // TODO: remove hardcoded member type id
|
||||
},
|
||||
js: () => import('./create-member-collection-action.element.js'),
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Member',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
name: 'Create Member Collection Action',
|
||||
kind: 'button',
|
||||
alias: 'Umb.CollectionAction.Member.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: 'section/member-management/workspace/member/create/member-type-1-id', // TODO: remove hardcoded member type id
|
||||
},
|
||||
],
|
||||
// element: () => import('./create-member-collection-action.element.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [createManifest];
|
||||
js: () => import('./create-member-collection-action.element.js'),
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Member',
|
||||
},
|
||||
],
|
||||
// element: () => import('./create-member-collection-action.element.js'),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,23 +2,20 @@ import { UMB_MEMBER_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 type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_MEMBER_COLLECTION_ALIAS = 'Umb.Collection.Member';
|
||||
|
||||
const collectionManifest: ManifestTypes = {
|
||||
type: 'collection',
|
||||
alias: UMB_MEMBER_COLLECTION_ALIAS,
|
||||
name: 'Member Collection',
|
||||
api: () => import('./member-collection.context.js'),
|
||||
element: () => import('./member-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEMBER_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
alias: UMB_MEMBER_COLLECTION_ALIAS,
|
||||
name: 'Member Collection',
|
||||
api: () => import('./member-collection.context.js'),
|
||||
element: () => import('./member-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_MEMBER_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
...collectionActionManifests,
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_MEMBER_TABLE_COLLECTION_VIEW_ALIAS = 'Umb.CollectionView.Member.Table';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_MEMBER_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Member Table Collection View',
|
||||
element: () => import('./table/member-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Member',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionView',
|
||||
alias: UMB_MEMBER_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'Member Table Collection View',
|
||||
element: () => import('./table/member-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [tableCollectionView];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.Member',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,21 +2,18 @@ import { UMB_RELATION_TYPE_COLLECTION_ALIAS } from './constants.js';
|
||||
import { UMB_RELATION_TYPE_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';
|
||||
import { manifests as collectionRepositoryManifests } from './repository/manifests.js';
|
||||
import { manifests as collectionViewManifests } from './views/manifests.js';
|
||||
import type { ManifestCollection, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const collectionManifest: ManifestCollection = {
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_RELATION_TYPE_COLLECTION_ALIAS,
|
||||
name: 'Relation Type Collection',
|
||||
element: () => import('./relation-type-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_RELATION_TYPE_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_RELATION_TYPE_COLLECTION_ALIAS,
|
||||
name: 'Relation Type Collection',
|
||||
element: () => import('./relation-type-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_RELATION_TYPE_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
];
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: 'Umb.CollectionView.RelationType.Table',
|
||||
name: 'Relation Type Table Collection View',
|
||||
js: () => import('./table/relation-type-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.RelationType',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionView',
|
||||
alias: 'Umb.CollectionView.RelationType.Table',
|
||||
name: 'Relation Type Table Collection View',
|
||||
js: () => import('./table/relation-type-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [tableCollectionView];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.RelationType',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
import { UMB_USER_GROUP_WORKSPACE_PATH } from '../../paths.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const createManifest: ManifestTypes = {
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create User Group Collection Action',
|
||||
alias: 'Umb.CollectionAction.UserGroup.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: `${UMB_USER_GROUP_WORKSPACE_PATH}/create`,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.UserGroup',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
kind: 'button',
|
||||
name: 'Create User Group Collection Action',
|
||||
alias: 'Umb.CollectionAction.UserGroup.Create',
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: `${UMB_USER_GROUP_WORKSPACE_PATH}/create`,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [createManifest];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.UserGroup',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -3,21 +3,18 @@ import { manifests as collectionViewManifests } from './views/manifests.js';
|
||||
import { manifests as collectionActionManifests } from './action/manifests.js';
|
||||
import { UMB_USER_GROUP_COLLECTION_ALIAS } from './constants.js';
|
||||
import { UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS } from './repository/constants.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const collection: ManifestTypes = {
|
||||
type: 'collection',
|
||||
alias: UMB_USER_GROUP_COLLECTION_ALIAS,
|
||||
name: 'User Group Collection',
|
||||
api: () => import('./user-group-collection.context.js'),
|
||||
element: () => import('./user-group-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
alias: UMB_USER_GROUP_COLLECTION_ALIAS,
|
||||
name: 'User Group Collection',
|
||||
api: () => import('./user-group-collection.context.js'),
|
||||
element: () => import('./user-group-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collection,
|
||||
...repositoryManifests,
|
||||
...collectionViewManifests,
|
||||
...collectionActionManifests,
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
import { UMB_USER_GROUP_TABLE_COLLECTION_VIEW_ALIAS } from './constants.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestCollectionView, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const tableCollectionView: ManifestCollectionView = {
|
||||
type: 'collectionView',
|
||||
alias: UMB_USER_GROUP_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'User Group Table Collection View',
|
||||
js: () => import('./user-group-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.UserGroup',
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionView',
|
||||
alias: UMB_USER_GROUP_TABLE_COLLECTION_VIEW_ALIAS,
|
||||
name: 'User Group Table Collection View',
|
||||
js: () => import('./user-group-table-collection-view.element.js'),
|
||||
meta: {
|
||||
label: 'Table',
|
||||
icon: 'icon-list',
|
||||
pathName: 'table',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [tableCollectionView];
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.UserGroup',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const createManifest: ManifestTypes = {
|
||||
type: 'collectionAction',
|
||||
name: 'Create User Collection Action',
|
||||
alias: 'Umb.CollectionAction.User.Create',
|
||||
element: () => import('./create-user-collection-action.element.js'),
|
||||
weight: 200,
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.User',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [createManifest];
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
name: 'Create User Collection Action',
|
||||
alias: 'Umb.CollectionAction.User.Create',
|
||||
element: () => import('./create-user-collection-action.element.js'),
|
||||
weight: 200,
|
||||
conditions: [
|
||||
{
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: 'Umb.Collection.User',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -3,21 +3,18 @@ import { manifests as collectionRepositoryManifests } from './repository/manifes
|
||||
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';
|
||||
|
||||
const collectionManifest: ManifestTypes = {
|
||||
type: 'collection',
|
||||
alias: UMB_USER_COLLECTION_ALIAS,
|
||||
name: 'User Collection',
|
||||
api: () => import('./user-collection.context.js'),
|
||||
element: () => import('./user-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_USER_COLLECTION_REPOSITORY_ALIAS,
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collection',
|
||||
alias: UMB_USER_COLLECTION_ALIAS,
|
||||
name: 'User Collection',
|
||||
api: () => import('./user-collection.context.js'),
|
||||
element: () => import('./user-collection.element.js'),
|
||||
meta: {
|
||||
repositoryAlias: UMB_USER_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
collectionManifest,
|
||||
...collectionRepositoryManifests,
|
||||
...collectionViewManifests,
|
||||
...collectionActionManifests,
|
||||
|
||||
Reference in New Issue
Block a user