feat: theme code injection

This commit is contained in:
Nicolas Giard
2019-01-25 21:29:34 -05:00
committed by Nick
parent ded1cf6261
commit faa1f389d9
9 changed files with 94 additions and 276 deletions

View File

@@ -27,6 +27,9 @@ type ThemingMutation {
setConfig(
theme: String!
darkMode: Boolean!
injectCSS: String
injectHead: String
injectBody: String
): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
}
@@ -35,8 +38,11 @@ type ThemingMutation {
# -----------------------------------------------
type ThemingConfig {
theme: String
darkMode: Boolean
theme: String!
darkMode: Boolean!
injectCSS: String
injectHead: String
injectBody: String
}
type ThemingTheme {