REUSE compliance.
This commit is contained in:
parent
1d14bbbda0
commit
732f7aedcd
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { ChannelConfiguration } from 'shared/lib/types'
|
import type { ChannelConfiguration } from 'shared/lib/types'
|
||||||
import { createContext } from '@lit/context'
|
import { createContext } from '@lit/context'
|
||||||
import { ChannelDetailsService } from '../services/channel-details'
|
import { ChannelDetailsService } from '../services/channel-details'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
||||||
import type { ChannelConfiguration } from 'shared/lib/types'
|
import type { ChannelConfiguration } from 'shared/lib/types'
|
||||||
import { html } from 'lit'
|
import { html } from 'lit'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
||||||
import { html, LitElement } from 'lit'
|
import { html, LitElement } from 'lit'
|
||||||
import { customElement, property, state } from 'lit/decorators.js'
|
import { customElement, property, state } from 'lit/decorators.js'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { html } from 'lit'
|
import { html } from 'lit'
|
||||||
import { customElement, property } from 'lit/decorators.js'
|
import { customElement, property } from 'lit/decorators.js'
|
||||||
import { LivechatElement } from '../../lib/elements/livechat'
|
import { LivechatElement } from '../../lib/elements/livechat'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
// Add here all your elements, the main JS file will import them all.
|
// Add here all your elements, the main JS file will import them all.
|
||||||
import './channel-configuration'
|
import './channel-configuration'
|
||||||
import './channel-home'
|
import './channel-home'
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
|
||||||
import { ChannelLiveChatInfos, ChannelConfiguration, ChannelConfigurationOptions } from 'shared/lib/types'
|
import { ChannelLiveChatInfos, ChannelConfiguration, ChannelConfigurationOptions } from 'shared/lib/types'
|
||||||
import { getBaseRoute } from "../../../utils/uri"
|
import { getBaseRoute } from "../../../utils/uri"
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
let globalSheets: CSSStyleSheet[] | undefined = undefined;
|
|
||||||
|
|
||||||
export function getGlobalStyleSheets() {
|
|
||||||
if (globalSheets === undefined) {
|
|
||||||
globalSheets = Array.from(document.styleSheets)
|
|
||||||
.map(x => {
|
|
||||||
const sheet = new CSSStyleSheet();
|
|
||||||
const css = Array.from(x.cssRules).map(rule => rule.cssText).join(' ');
|
|
||||||
sheet.replaceSync(css);
|
|
||||||
return sheet;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return globalSheets;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function addGlobalStylesToShadowRoot(shadowRoot: ShadowRoot) {
|
|
||||||
shadowRoot.adoptedStyleSheets.push(
|
|
||||||
...getGlobalStyleSheets()
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { RegisterClientOptions } from '@peertube/peertube-types/client/types'
|
import type { RegisterClientOptions } from '@peertube/peertube-types/client/types'
|
||||||
import { createContext } from '@lit/context'
|
import { createContext } from '@lit/context'
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { PartInfo, directive } from 'lit/directive.js'
|
import { PartInfo, directive } from 'lit/directive.js'
|
||||||
import { AsyncDirective } from 'lit/async-directive.js'
|
import { AsyncDirective } from 'lit/async-directive.js'
|
||||||
import { RegisterClientHelpers } from '@peertube/peertube-types/client';
|
import { RegisterClientHelpers } from '@peertube/peertube-types/client';
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { css, html, LitElement, nothing, TemplateResult } from 'lit'
|
import { css, html, LitElement, nothing, TemplateResult } from 'lit'
|
||||||
import { repeat } from 'lit/directives/repeat.js'
|
import { repeat } from 'lit/directives/repeat.js'
|
||||||
import { customElement, property, state } from 'lit/decorators.js'
|
import { customElement, property, state } from 'lit/decorators.js'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { html } from 'lit'
|
import { html } from 'lit'
|
||||||
import { customElement, property, state } from 'lit/decorators.js'
|
import { customElement, property, state } from 'lit/decorators.js'
|
||||||
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
// Add here all your elements, the main JS file will import them all.
|
// Add here all your elements, the main JS file will import them all.
|
||||||
import './help-button'
|
import './help-button'
|
||||||
import './dynamic-table-form'
|
import './dynamic-table-form'
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Mehdi Benadel <https://mehdibenadel.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { LitElement } from 'lit'
|
import { LitElement } from 'lit'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user