wikijs-fork/server/graph/schemas/theming.graphql

53 lines
1.1 KiB
GraphQL
Raw Normal View History

2018-06-11 03:23:09 +00:00
# ===============================================
# THEMES
# ===============================================
extend type Query {
theming: ThemingQuery
}
extend type Mutation {
theming: ThemingMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type ThemingQuery {
2018-10-14 21:38:39 +00:00
themes: [ThemingTheme] @auth(requires: ["manage:theme", "manage:system"])
config: ThemingConfig @auth(requires: ["manage:theme", "manage:system"])
2018-06-11 03:23:09 +00:00
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type ThemingMutation {
setConfig(
theme: String!
darkMode: Boolean!
2019-01-26 02:29:34 +00:00
injectCSS: String
injectHead: String
injectBody: String
2018-10-14 21:38:39 +00:00
): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
2018-06-11 03:23:09 +00:00
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type ThemingConfig {
2019-01-26 02:29:34 +00:00
theme: String!
darkMode: Boolean!
injectCSS: String
injectHead: String
injectBody: String
2018-06-11 03:23:09 +00:00
}
type ThemingTheme {
key: String
title: String
author: String
}