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.

46 lines
999 B

  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. ): DefaultResponse @auth(requires: ["manage:theme", "manage:system"])
  25. }
  26. # -----------------------------------------------
  27. # TYPES
  28. # -----------------------------------------------
  29. type ThemingConfig {
  30. theme: String
  31. darkMode: Boolean
  32. }
  33. type ThemingTheme {
  34. key: String
  35. title: String
  36. author: String
  37. }