From 00b5556c182fa70dfca17c517488b8afae6257c9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Feb 2018 10:22:53 +0100 Subject: Add ability to add custom css/javascript --- shared/models/config/custom-config.model.ts | 4 ++++ shared/models/config/customization.model.ts | 8 ++++++++ shared/models/config/server-config.model.ts | 6 +++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 shared/models/config/customization.model.ts (limited to 'shared/models') 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 { name: string description: string terms: string + customizations: { + javascript?: string + css?: string + } } 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 @@ +export interface Customization { + instance: { + customization: { + javascript: string + css: string + } + } +} 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 { serverVersion: string instance: { - name: string + name: string; + customizations: { + javascript: string + css: string + } } signup: { -- cgit v1.2.3