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.

54 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. iconset: String!
  24. darkMode: Boolean!
  25. injectCSS: String
  26. injectHead: String
  27. injectBody: String
  28. ): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
  29. }
  30. # -----------------------------------------------
  31. # TYPES
  32. # -----------------------------------------------
  33. type ThemingConfig {
  34. theme: String!
  35. iconset: String!
  36. darkMode: Boolean!
  37. injectCSS: String
  38. injectHead: String
  39. injectBody: String
  40. }
  41. type ThemingTheme {
  42. key: String
  43. title: String
  44. author: String
  45. }