WIP plugins: load theme on client side
This commit is contained in:
parent
7cd4d2ba10
commit
ffb321bedc
19 changed files with 194 additions and 91 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue