Something went wrong. Try again.
Atmosphere Status dashboard page
Something went wrong. Try again.
1.1 kB · 56 lines
TypeScript
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import { createContext } from 'svelte';
export interface AppContext { config: MonitorConfig;}
export interface FeedConfig { label: string; hostname: string; uri: string;}
export interface EntrywayConfig { hostname: string; dids: string[];}
export interface ConstellationConfig { subject: string; source: string; limit: number;}
export interface CDNImageConfig { did: string; cid: string;}
export interface NetworkCheckConfig { label: string; url: string; validator: 'json-object' | 'dns-answer' | 'plain-text';}
export interface MonitorConfig { pdses: string[]; appViews: string[]; relays: string[]; entryway: EntrywayConfig; feeds: FeedConfig[]; constellationHosts: string[]; constellationBacklinks: ConstellationConfig[]; cdnHosts: string[]; cdnImages: CDNImageConfig[];
getAuthorFeedDIDs: string[]; getProfileDIDs: string[]; resolvedHandles: string[]; networkChecks: NetworkCheckConfig[];}
export const [getAppContext, setAppContext] = createContext<AppContext>();
export function getConfig(): MonitorConfig { return getAppContext().config;}