aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-10 14:06:19 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commitffb321bedca46d6987c7b31dd58e5dea96ea2ea2 (patch)
tree019f0427c1860ae0b00694c43f1be8d5fe1aa995 /shared
parent7cd4d2ba10106c10602c86f74f55743ded588896 (diff)
downloadPeerTube-ffb321bedca46d6987c7b31dd58e5dea96ea2ea2.tar.gz
PeerTube-ffb321bedca46d6987c7b31dd58e5dea96ea2ea2.tar.zst
PeerTube-ffb321bedca46d6987c7b31dd58e5dea96ea2ea2.zip
WIP plugins: load theme on client side
Diffstat (limited to 'shared')
-rw-r--r--shared/models/server/server-config.model.ts8
-rw-r--r--shared/models/users/user.model.ts3
2 files changed, 9 insertions, 2 deletions
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts
index d6c660aac..3498f86d7 100644
--- a/shared/models/server/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
@@ -1,13 +1,17 @@
1import { NSFWPolicyType } from '../videos/nsfw-policy.type' 1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2import { ClientScript } from '../plugins/plugin-package-json.model' 2import { ClientScript } from '../plugins/plugin-package-json.model'
3 3
4export type ServerConfigPlugin = { 4export interface ServerConfigPlugin {
5 name: string 5 name: string
6 version: string 6 version: string
7 description: string 7 description: string
8 clientScripts: { [name: string]: ClientScript } 8 clientScripts: { [name: string]: ClientScript }
9} 9}
10 10
11export interface ServerConfigTheme extends ServerConfigPlugin {
12 css: string[]
13}
14
11export interface ServerConfig { 15export interface ServerConfig {
12 serverVersion: string 16 serverVersion: string
13 serverCommit?: string 17 serverCommit?: string
@@ -29,7 +33,7 @@ export interface ServerConfig {
29 } 33 }
30 34
31 theme: { 35 theme: {
32 registered: ServerConfigPlugin[] 36 registered: ServerConfigTheme[]
33 default: string 37 default: string
34 } 38 }
35 39
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index b5823b47a..de9825e1f 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -25,6 +25,9 @@ export interface User {
25 videoQuota: number 25 videoQuota: number
26 videoQuotaDaily: number 26 videoQuotaDaily: number
27 createdAt: Date 27 createdAt: Date
28
29 theme: string
30
28 account: Account 31 account: Account
29 notificationSettings?: UserNotificationSetting 32 notificationSettings?: UserNotificationSetting
30 videoChannels?: VideoChannel[] 33 videoChannels?: VideoChannel[]