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
999 B
47 lines
999 B
# ===============================================
|
|
# THEMES
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
theming: ThemingQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
theming: ThemingMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type ThemingQuery {
|
|
themes: [ThemingTheme] @auth(requires: ["manage:theme", "manage:system"])
|
|
config: ThemingConfig @auth(requires: ["manage:theme", "manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type ThemingMutation {
|
|
setConfig(
|
|
theme: String!
|
|
darkMode: Boolean!
|
|
): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type ThemingConfig {
|
|
theme: String
|
|
darkMode: Boolean
|
|
}
|
|
|
|
type ThemingTheme {
|
|
key: String
|
|
title: String
|
|
author: String
|
|
}
|