classification.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. const config = `
  2. <View>
  3. <Text name="text" value="Hello"></Text>
  4. <Number name="num" toName="text" min="1" max="10"/>
  5. <DateTime name="dt" toName="text" showDate="true" showTime="true"/>
  6. <TextArea name="txt" toName="text" editable="true"/>
  7. <Choices name="choices" toName="text">
  8. <Choice value="Choice 1" background="#5b5"/>
  9. <Choice value="Choice 2" background="#55f"/>
  10. </Choices>
  11. <Taxonomy name="taxonomy" toName="text">
  12. <Choice value="Choice 1" background="#5b5"/>
  13. <Choice value="Choice 2" background="#55f">
  14. <Choice value="Choice 2.1" background="#5b5"/>
  15. <Choice value="Choice 2.2" background="#55f"/>
  16. </Choice>
  17. </Taxonomy>
  18. </View>
  19. `;
  20. const data = {
  21. url: "/public/files/barradeen-emotional.mp3",
  22. };
  23. const result = [
  24. {
  25. value: {
  26. number: 2,
  27. },
  28. id: "W7wMwaYoa9",
  29. from_name: "num",
  30. to_name: "text",
  31. type: "number",
  32. origin: "manual",
  33. },
  34. {
  35. value: {
  36. datetime: "1991-05-22T09:17",
  37. },
  38. id: "xMvgTyP6e4",
  39. from_name: "dt",
  40. to_name: "text",
  41. type: "datetime",
  42. origin: "manual",
  43. },
  44. {
  45. value: {
  46. text: ["Hello", "World"],
  47. },
  48. meta: {
  49. lead_time: 0,
  50. },
  51. id: "0yMHFegGSK",
  52. from_name: "txt",
  53. to_name: "text",
  54. type: "textarea",
  55. origin: "manual",
  56. },
  57. {
  58. value: {
  59. choices: ["Choice 1"],
  60. },
  61. id: "dZyZ7Dx3uS",
  62. from_name: "choices",
  63. to_name: "text",
  64. type: "choices",
  65. origin: "manual",
  66. },
  67. {
  68. value: {
  69. taxonomy: [["Choice 2", "Choice 2.1"]],
  70. },
  71. id: "4IHbGrfa-P",
  72. from_name: "taxonomy",
  73. to_name: "text",
  74. type: "taxonomy",
  75. origin: "manual",
  76. },
  77. ];
  78. const title = "Classification Mixed";
  79. module.exports = { config, data, result, title };