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.

52 lines
1.1 KiB

  1. # ===============================================
  2. # THEMES
  3. # ===============================================
  4. extend type Query {
  5. theming: ThemingQuery
  6. }
  7. extend type Mutation {
  8. theming: ThemingMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type ThemingQuery {
  14. themes: [ThemingTheme] @auth(requires: ["manage:theme", "manage:system"])
  15. config: ThemingConfig @auth(requires: ["manage:theme", "manage:system"])
  16. }
  17. # -----------------------------------------------
  18. # MUTATIONS
  19. # -----------------------------------------------
  20. type ThemingMutation {
  21. setConfig(
  22. theme: String!
  23. darkMode: Boolean!
  24. injectCSS: String
  25. injectHead: String
  26. injectBody: String
  27. ): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
  28. }
  29. # -----------------------------------------------
  30. # TYPES
  31. # -----------------------------------------------
  32. type ThemingConfig {
  33. theme: String!
  34. darkMode: Boolean!
  35. injectCSS: String
  36. injectHead: String
  37. injectBody: String
  38. }
  39. type ThemingTheme {
  40. key: String
  41. title: String
  42. author: String
  43. }