1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # ===============================================
- # 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!
- iconset: String!
- darkMode: Boolean!
- tocDepth: RangeInput!
- injectCSS: String
- injectHead: String
- injectBody: String
- ): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
- }
- # -----------------------------------------------
- # TYPES
- # -----------------------------------------------
- type ThemingConfig {
- theme: String
- iconset: String
- darkMode: Boolean
- tocDepth: Range
- injectCSS: String
- injectHead: String
- injectBody: String
- }
- type ThemingTheme {
- key: String
- title: String
- author: String
- }
|