aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-09 11:45:19 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit7cd4d2ba10106c10602c86f74f55743ded588896 (patch)
tree81f0dd7a7ef763511158d1035f3e09e09d5dcd2c /shared
parent8d76959e11ab7172040853fa4fadaf8d53e6aa12 (diff)
downloadPeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.tar.gz
PeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.tar.zst
PeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.zip
WIP plugins: add theme support
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/server/config.ts3
-rw-r--r--shared/models/server/custom-config.model.ts4
-rw-r--r--shared/models/server/server-config.model.ts9
-rw-r--r--shared/models/users/user-update-me.model.ts2
4 files changed, 17 insertions, 1 deletions
diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts
index 2b7965bc2..8736f083f 100644
--- a/shared/extra-utils/server/config.ts
+++ b/shared/extra-utils/server/config.ts
@@ -59,6 +59,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) {
59 css: 'body { background-color: red; }' 59 css: 'body { background-color: red; }'
60 } 60 }
61 }, 61 },
62 theme: {
63 default: 'default'
64 },
62 services: { 65 services: {
63 twitter: { 66 twitter: {
64 username: '@MySuperUsername', 67 username: '@MySuperUsername',
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 670553d16..a0541f5b6 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -15,6 +15,10 @@ export interface CustomConfig {
15 } 15 }
16 } 16 }
17 17
18 theme: {
19 default: string
20 }
21
18 services: { 22 services: {
19 twitter: { 23 twitter: {
20 username: string 24 username: string
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts
index c259a849a..d6c660aac 100644
--- a/shared/models/server/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
@@ -24,7 +24,14 @@ export interface ServerConfig {
24 } 24 }
25 } 25 }
26 26
27 plugins: ServerConfigPlugin[] 27 plugin: {
28 registered: ServerConfigPlugin[]
29 }
30
31 theme: {
32 registered: ServerConfigPlugin[]
33 default: string
34 }
28 35
29 email: { 36 email: {
30 enabled: boolean 37 enabled: boolean
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts
index 6e6cd7115..b6c0002e5 100644
--- a/shared/models/users/user-update-me.model.ts
+++ b/shared/models/users/user-update-me.model.ts
@@ -13,4 +13,6 @@ export interface UserUpdateMe {
13 email?: string 13 email?: string
14 currentPassword?: string 14 currentPassword?: string
15 password?: string 15 password?: string
16
17 theme?: string
16} 18}