Better structure + channel home in LitElement format

This commit is contained in:
Mehdi Benadel
2024-05-23 14:41:11 +02:00
parent 687c4742f7
commit de974eae22
14 changed files with 191 additions and 217 deletions

View File

@ -0,0 +1,8 @@
import { createContext } from "@lit/context";
import type { RegisterClientOptions } from "@peertube/peertube-types/client/types";
import type { ChannelConfiguration } from "shared/lib/types";
import { ChannelDetailsService } from "../services/channel-details";
export const registerClientOptionsContext = createContext<RegisterClientOptions | undefined>(Symbol('register-client-options'));
export const channelConfigurationContext = createContext<ChannelConfiguration | undefined>(Symbol('channel-configuration'));
export const channelDetailsServiceContext = createContext<ChannelDetailsService | undefined>(Symbol('channel-configuration-service'));