mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
846 B
47 lines
846 B
7 years ago
|
# ===============================================
|
||
|
# THEMES
|
||
|
# ===============================================
|
||
|
|
||
|
extend type Query {
|
||
|
theming: ThemingQuery
|
||
|
}
|
||
|
|
||
|
extend type Mutation {
|
||
|
theming: ThemingMutation
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# QUERIES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type ThemingQuery {
|
||
|
themes: [ThemingTheme]
|
||
|
config: ThemingConfig
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# MUTATIONS
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type ThemingMutation {
|
||
|
setConfig(
|
||
|
theme: String!
|
||
|
darkMode: Boolean!
|
||
|
): DefaultResponse
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# TYPES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type ThemingConfig {
|
||
|
theme: String
|
||
|
darkMode: Boolean
|
||
|
}
|
||
|
|
||
|
type ThemingTheme {
|
||
|
key: String
|
||
|
title: String
|
||
|
author: String
|
||
|
}
|