aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-22 10:22:53 +0100
committerChocobozzz <me@florianbigard.com>2018-02-22 10:22:53 +0100
commit00b5556c182fa70dfca17c517488b8afae6257c9 (patch)
tree853ad8d85572b5b37b1956fea96a51fed211453f /shared/models/config
parent6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd (diff)
downloadPeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.tar.gz
PeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.tar.zst
PeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.zip
Add ability to add custom css/javascript
Diffstat (limited to 'shared/models/config')
-rw-r--r--shared/models/config/custom-config.model.ts4
-rw-r--r--shared/models/config/customization.model.ts8
-rw-r--r--shared/models/config/server-config.model.ts6
3 files changed, 17 insertions, 1 deletions
diff --git a/shared/models/config/custom-config.model.ts b/shared/models/config/custom-config.model.ts
index 6ef0fc5a2..46d0a86ef 100644
--- a/shared/models/config/custom-config.model.ts
+++ b/shared/models/config/custom-config.model.ts
@@ -3,6 +3,10 @@ export interface CustomConfig {
3 name: string 3 name: string
4 description: string 4 description: string
5 terms: string 5 terms: string
6 customizations: {
7 javascript?: string
8 css?: string
9 }
6 } 10 }
7 11
8 cache: { 12 cache: {
diff --git a/shared/models/config/customization.model.ts b/shared/models/config/customization.model.ts
new file mode 100644
index 000000000..4e4d0d193
--- /dev/null
+++ b/shared/models/config/customization.model.ts
@@ -0,0 +1,8 @@
1export interface Customization {
2 instance: {
3 customization: {
4 javascript: string
5 css: string
6 }
7 }
8}
diff --git a/shared/models/config/server-config.model.ts b/shared/models/config/server-config.model.ts
index 988dd71e3..004cf6ddb 100644
--- a/shared/models/config/server-config.model.ts
+++ b/shared/models/config/server-config.model.ts
@@ -2,7 +2,11 @@ export interface ServerConfig {
2 serverVersion: string 2 serverVersion: string
3 3
4 instance: { 4 instance: {
5 name: string 5 name: string;
6 customizations: {
7 javascript: string
8 css: string
9 }
6 } 10 }
7 11
8 signup: { 12 signup: {