WIP plugins: load theme on client side

This commit is contained in:
Chocobozzz 2019-07-10 14:06:19 +02:00 committed by Chocobozzz
parent 7cd4d2ba10
commit ffb321bedc
19 changed files with 194 additions and 91 deletions

View file

@ -1,13 +1,17 @@
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
import { ClientScript } from '../plugins/plugin-package-json.model'
export type ServerConfigPlugin = {
export interface ServerConfigPlugin {
name: string
version: string
description: string
clientScripts: { [name: string]: ClientScript }
}
export interface ServerConfigTheme extends ServerConfigPlugin {
css: string[]
}
export interface ServerConfig {
serverVersion: string
serverCommit?: string
@ -29,7 +33,7 @@ export interface ServerConfig {
}
theme: {
registered: ServerConfigPlugin[]
registered: ServerConfigTheme[]
default: string
}