Cleaning more stuff.
This commit is contained in:
committed by
Mehdi Benadel
parent
b72b23d6ae
commit
1d14bbbda0
@ -1,6 +1,6 @@
|
||||
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
||||
import type { ChannelConfiguration } from 'shared/lib/types'
|
||||
import { html, LitElement } from 'lit'
|
||||
import { html } from 'lit'
|
||||
import { customElement, property, state } from 'lit/decorators.js'
|
||||
import { ptTr } from '../../lib/directives/translation'
|
||||
import { Task } from '@lit/task'
|
||||
@ -8,9 +8,10 @@ import { ChannelDetailsService } from '../services/channel-details'
|
||||
import { provide } from '@lit/context'
|
||||
import { channelConfigurationContext, channelDetailsServiceContext } from '../contexts/channel'
|
||||
import { registerClientOptionsContext } from '../../lib/contexts/peertube'
|
||||
import { LivechatElement } from '../../lib/elements/livechat'
|
||||
|
||||
@customElement('livechat-channel-configuration')
|
||||
export class ChannelConfigurationElement extends LitElement {
|
||||
export class ChannelConfigurationElement extends LivechatElement {
|
||||
|
||||
@provide({ context: registerClientOptionsContext })
|
||||
@property({ attribute: false })
|
||||
@ -26,10 +27,6 @@ export class ChannelConfigurationElement extends LitElement {
|
||||
@provide({ context: channelDetailsServiceContext })
|
||||
private _channelDetailsService: ChannelDetailsService | undefined
|
||||
|
||||
protected createRenderRoot = (): HTMLElement | DocumentFragment => {
|
||||
return this
|
||||
}
|
||||
|
||||
@state()
|
||||
public _formStatus: boolean | any = undefined
|
||||
|
||||
|
@ -8,9 +8,10 @@ import { ChannelDetailsService } from '../services/channel-details'
|
||||
import { provide } from '@lit/context'
|
||||
import { channelDetailsServiceContext } from '../contexts/channel'
|
||||
import { registerClientOptionsContext } from '../../lib/contexts/peertube'
|
||||
import { LivechatElement } from '../../lib/elements/livechat'
|
||||
|
||||
@customElement('livechat-channel-home')
|
||||
export class ChannelHomeElement extends LitElement {
|
||||
export class ChannelHomeElement extends LivechatElement {
|
||||
|
||||
@provide({ context: registerClientOptionsContext })
|
||||
@property({ attribute: false })
|
||||
@ -22,10 +23,6 @@ export class ChannelHomeElement extends LitElement {
|
||||
@provide({ context: channelDetailsServiceContext })
|
||||
private _channelDetailsService: ChannelDetailsService | undefined
|
||||
|
||||
protected createRenderRoot = (): HTMLElement | DocumentFragment => {
|
||||
return this
|
||||
}
|
||||
|
||||
@state()
|
||||
public _formStatus: boolean | any = undefined
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
import { html, LitElement } from 'lit'
|
||||
import { html } from 'lit'
|
||||
import { customElement, property } from 'lit/decorators.js'
|
||||
import { LivechatElement } from '../../lib/elements/livechat'
|
||||
|
||||
@customElement('livechat-configuration-row')
|
||||
export class ConfigurationRowElement extends LitElement {
|
||||
export class ConfigurationRowElement extends LivechatElement {
|
||||
|
||||
@property({ attribute: false })
|
||||
public title: string = `title`
|
||||
@ -13,10 +14,6 @@ export class ConfigurationRowElement extends LitElement {
|
||||
@property({ attribute: false })
|
||||
public helpPage: string = 'documentation'
|
||||
|
||||
protected createRenderRoot = (): HTMLElement | DocumentFragment => {
|
||||
return this
|
||||
}
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<h2>${this.title}</h2>
|
||||
|
Reference in New Issue
Block a user