remove double headers
This commit is contained in:
@@ -1,21 +1,13 @@
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { customElement, state, property } from 'lit/decorators.js';
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { data } from '../../../mocks/data/node.data';
|
||||
import { UmbContextConsumerMixin } from '../../../core/context';
|
||||
import { UmbNodeStore } from '../../../core/stores/node.store';
|
||||
import { map, Subscription } from 'rxjs';
|
||||
|
||||
@customElement('umb-content-section-tree')
|
||||
class UmbContentSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
static styles = [
|
||||
UUITextStyles,
|
||||
css`
|
||||
h3 {
|
||||
padding: var(--uui-size-4) var(--uui-size-8);
|
||||
}
|
||||
`,
|
||||
];
|
||||
static styles = [UUITextStyles];
|
||||
|
||||
@property()
|
||||
public currentNodeId?: string;
|
||||
@@ -53,10 +45,6 @@ class UmbContentSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<a href="${'/section/content'}">
|
||||
<h3>Content</h3>
|
||||
</a>
|
||||
|
||||
<div class="nav-list">
|
||||
${this._tree.map(
|
||||
(item) => html`
|
||||
|
||||
@@ -1,21 +1,13 @@
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { customElement, state, property } from 'lit/decorators.js';
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { data } from '../../../mocks/data/node.data';
|
||||
import { UmbContextConsumerMixin } from '../../../core/context';
|
||||
import { UmbNodeStore } from '../../../core/stores/node.store';
|
||||
import { map, Subscription } from 'rxjs';
|
||||
|
||||
@customElement('umb-media-section-tree')
|
||||
class UmbMediaSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
static styles = [
|
||||
UUITextStyles,
|
||||
css`
|
||||
h3 {
|
||||
padding: var(--uui-size-4) var(--uui-size-8);
|
||||
}
|
||||
`,
|
||||
];
|
||||
static styles = [UUITextStyles];
|
||||
|
||||
@property()
|
||||
public currentNodeId?: string;
|
||||
@@ -53,10 +45,6 @@ class UmbMediaSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<a href="${'/section/media'}">
|
||||
<h3>Media</h3>
|
||||
</a>
|
||||
|
||||
<div class="nav-list">
|
||||
${this._tree.map(
|
||||
(item) => html`
|
||||
|
||||
@@ -1,26 +1,17 @@
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { customElement, state } from 'lit/decorators.js';
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { data as dataTypeData } from '../../../mocks/data/data-type.data';
|
||||
import { data as documentTypeData } from '../../../mocks/data/document-type.data';
|
||||
import { UmbContextConsumerMixin } from '../../../core/context';
|
||||
import { UmbDataTypeStore } from '../../../core/stores/data-type.store';
|
||||
import { map, Subscription, first } from 'rxjs';
|
||||
import { UmbDocumentTypeStore } from '../../../core/stores/document-type.store';
|
||||
import { createExtensionElement, UmbExtensionRegistry } from '../../../core/extension';
|
||||
import { UmbExtensionRegistry } from '../../../core/extension';
|
||||
import '../../tree/shared/tree.element';
|
||||
import { UmbSectionContext } from '../section.context';
|
||||
|
||||
@customElement('umb-settings-section-tree')
|
||||
class UmbSettingsSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
static styles = [
|
||||
UUITextStyles,
|
||||
css`
|
||||
h3 {
|
||||
padding: var(--uui-size-4) var(--uui-size-8);
|
||||
}
|
||||
`,
|
||||
];
|
||||
static styles = [UUITextStyles];
|
||||
|
||||
// TODO: implement dynamic tree data
|
||||
@state()
|
||||
@@ -117,10 +108,6 @@ class UmbSettingsSectionTree extends UmbContextConsumerMixin(LitElement) {
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<a href="${'/section/settings'}">
|
||||
<h3>Settings</h3>
|
||||
</a>
|
||||
|
||||
<!-- TODO: hardcoded tree items. These should come the extensions -->
|
||||
<uui-menu-item label="Extensions" href="/section/settings/extensions"></uui-menu-item>
|
||||
<uui-menu-item label="Data Types" has-children>
|
||||
|
||||
Reference in New Issue
Block a user