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.

chat.schema.json 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "type": "object",
  3. "title": "Themed chat",
  4. "properties": {
  5. "title": {
  6. "type": "string"
  7. },
  8. "markdown": {
  9. "type": "string",
  10. "title": "Content",
  11. "format": "markdown",
  12. "options": {
  13. "simplemde": {
  14. "renderingConfig": {
  15. "singleLineBreaks": false
  16. },
  17. "toolbar": [
  18. "bold",
  19. "italic",
  20. "heading",
  21. "|",
  22. "ordered-list",
  23. "unordered-list",
  24. "|",
  25. "link",
  26. "quote",
  27. "|",
  28. "preview"
  29. ]
  30. }
  31. }
  32. },
  33. "use_bg_video": {
  34. "title": "Use background video",
  35. "type": "boolean",
  36. "format": "checkbox"
  37. },
  38. "bg_video": {
  39. "dependencies": {
  40. "use_bg_video": true
  41. },
  42. "$ref": "/enum/bg-video",
  43. "title": "Background video",
  44. "links": [
  45. {
  46. "rel": "Preview video",
  47. "class": "link-info",
  48. "href": "{{self}}",
  49. "media-type": "video/mp4"
  50. }
  51. ]
  52. },
  53. "bg_video_opacity": {
  54. "dependencies": {
  55. "use_bg_video": true
  56. },
  57. "type": "string",
  58. "title": "Background video opacity",
  59. "enum": [
  60. "0.25",
  61. "0.5",
  62. "0.75",
  63. "1"
  64. ],
  65. "default": "0.5"
  66. },
  67. "use_bg_image": {
  68. "title": "Use background image",
  69. "type": "boolean",
  70. "format": "checkbox"
  71. },
  72. "bg_image": {
  73. "dependencies": {
  74. "use_bg_image": true
  75. },
  76. "$ref": "/enum/bg",
  77. "title": "Background image",
  78. "links": [
  79. {
  80. "rel": "Preview image",
  81. "class": "link-info",
  82. "href": "{{self}}"
  83. }
  84. ]
  85. },
  86. "bg_image_opacity": {
  87. "dependencies": {
  88. "use_bg_image": true
  89. },
  90. "type": "string",
  91. "title": "Background image opacity",
  92. "enum": [
  93. "0.25",
  94. "0.5",
  95. "0.75",
  96. "1"
  97. ],
  98. "default": "0.5"
  99. },
  100. "use_soundtrack": {
  101. "title": "Use soundtrack",
  102. "type": "boolean",
  103. "format": "checkbox"
  104. },
  105. "soundtrack": {
  106. "dependencies": {
  107. "use_soundtrack": true
  108. },
  109. "type": "string",
  110. "title": "Soundtrack",
  111. "$ref": "/enum/audio"
  112. }
  113. },
  114. "defaultProperties": [
  115. "title",
  116. "markdown",
  117. "use_bg_video",
  118. "bg_video",
  119. "bg_video_opacity",
  120. "use_bg_image",
  121. "bg_image",
  122. "bg_image_opacity",
  123. "use_soundtrack",
  124. "soundtrack"
  125. ]
  126. }