Add custom css

This commit is contained in:
WithoutPants
2019-08-23 08:24:14 +10:00
parent 32a4f34c7c
commit 7562792589
14 changed files with 531 additions and 14 deletions

View File

@@ -4,8 +4,16 @@ fragment ConfigGeneralData on ConfigGeneralResult {
generatedPath
}
fragment ConfigInterfaceData on ConfigInterfaceResult {
css
cssEnabled
}
fragment ConfigData on ConfigResult {
general {
...ConfigGeneralData
}
interface {
...ConfigInterfaceData
}
}

View File

@@ -2,4 +2,10 @@ mutation ConfigureGeneral($input: ConfigGeneralInput!) {
configureGeneral(input: $input) {
...ConfigGeneralData
}
}
mutation ConfigureInterface($input: ConfigInterfaceInput!) {
configureInterface(input: $input) {
...ConfigInterfaceData
}
}

View File

@@ -91,6 +91,7 @@ type Mutation {
"""Change general configuration options"""
configureGeneral(input: ConfigGeneralInput!): ConfigGeneralResult!
configureInterface(input: ConfigInterfaceInput!): ConfigInterfaceResult!
}
type Subscription {

View File

@@ -16,7 +16,20 @@ type ConfigGeneralResult {
generatedPath: String!
}
input ConfigInterfaceInput {
"""Custom CSS"""
css: String
cssEnabled: Boolean
}
type ConfigInterfaceResult {
"""Custom CSS"""
css: String
cssEnabled: Boolean
}
"""All configuration settings"""
type ConfigResult {
general: ConfigGeneralResult!
interface: ConfigInterfaceResult!
}