clean up
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import type { ManifestDashboardCollection } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
|
||||
@customElement('umb-dashboard-collection')
|
||||
export class UmbDashboardCollectionElement extends UmbLitElement {
|
||||
public manifest!: ManifestDashboardCollection;
|
||||
|
||||
// TODO: figure out what collection to render
|
||||
override render() {
|
||||
return html`<umb-collection></umb-collection>`;
|
||||
}
|
||||
|
||||
static override styles = [
|
||||
css`
|
||||
:host {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
gap: var(--uui-size-space-5);
|
||||
height: 100%;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
export default UmbDashboardCollectionElement;
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'umb-dashboard-collection': UmbDashboardCollectionElement;
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import type { UmbDashboardCollectionElement } from './dashboard-collection.element.js';
|
||||
import type { Meta, Story } from '@storybook/web-components';
|
||||
import { html } from '@umbraco-cms/backoffice/external/lit';
|
||||
|
||||
import './dashboard-collection.element.js';
|
||||
|
||||
export default {
|
||||
title: 'Dashboards/Media Management',
|
||||
component: 'umb-dashboard-collection',
|
||||
id: 'umb-dashboard-collection',
|
||||
} as Meta;
|
||||
|
||||
export const AAAOverview: Story<UmbDashboardCollectionElement> = () =>
|
||||
html` <umb-dashboard-collection></umb-dashboard-collection>`;
|
||||
AAAOverview.storyName = 'Overview';
|
||||
@@ -1,54 +0,0 @@
|
||||
import type { ManifestBase } from '@umbraco-cms/backoffice/extension-api';
|
||||
|
||||
export interface ManifestDashboardCollection extends ManifestBase {
|
||||
type: 'dashboardCollection';
|
||||
meta: MetaDashboardCollection;
|
||||
conditions: ConditionsDashboardCollection;
|
||||
}
|
||||
|
||||
export interface MetaDashboardCollection {
|
||||
/**
|
||||
* The URL path for the dashboard which is used for navigating or deep linking directly to the dashboard
|
||||
* @examples [
|
||||
* "media-management-dashboard",
|
||||
* "my-awesome-dashboard"
|
||||
* ]
|
||||
*/
|
||||
pathname: string;
|
||||
|
||||
/**
|
||||
* Optional string to display as the label for the dashboard collection
|
||||
*/
|
||||
label?: string;
|
||||
|
||||
/**
|
||||
* The alias of the repository that the dashboard collection is for
|
||||
* @examples [
|
||||
* "Umb.Repository.Media"
|
||||
* ]
|
||||
*/
|
||||
repositoryAlias: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The conditions for when the dashboard should be available
|
||||
*/
|
||||
export interface ConditionsDashboardCollection {
|
||||
/**
|
||||
* An array of section aliases that the dashboard collection should be available in
|
||||
* @uniqueItems true
|
||||
* @examples [
|
||||
* "Umb.Section.Content",
|
||||
* "Umb.Section.Settings"
|
||||
* ]
|
||||
*/
|
||||
sections: string[];
|
||||
|
||||
/**
|
||||
* The entity type that the dashboard collection should be available for
|
||||
* @examples [
|
||||
* "media"
|
||||
* ]
|
||||
*/
|
||||
entityType: string;
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import type { ManifestCollection } from './collection.models.js';
|
||||
import type { ManifestCollectionView } from './collection-view.model.js';
|
||||
import type { ManifestCurrentUserAction, ManifestCurrentUserActionDefaultKind } from './current-user-action.model.js';
|
||||
import type { ManifestDashboard } from './dashboard.model.js';
|
||||
import type { ManifestDashboardCollection } from './dashboard-collection.model.js';
|
||||
import type {
|
||||
ManifestEntityAction,
|
||||
ManifestEntityActionDeleteKind,
|
||||
@@ -166,7 +165,6 @@ export type ManifestTypes =
|
||||
| ManifestCurrentUserAction
|
||||
| ManifestCurrentUserActionDefaultKind
|
||||
| ManifestDashboard
|
||||
| ManifestDashboardCollection
|
||||
| ManifestDynamicRootOrigin
|
||||
| ManifestDynamicRootQueryStep
|
||||
| ManifestEntityActions
|
||||
|
||||
Reference in New Issue
Block a user