boards.pug 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. h1.title Boards
  2. .columns
  3. .column
  4. .card
  5. .card-header
  6. p.card-header-title Create or modify board
  7. .card-content
  8. .field
  9. label.label ID
  10. .control
  11. input.input(type="number" v-model="board.new_id" min="0", max="65535", step="1")
  12. .columns
  13. .column
  14. .field
  15. label.label Key (in base16)
  16. .control
  17. input.input(type="text" v-model="board.new_key")
  18. p.help Leave empty for random
  19. .column
  20. .field
  21. label.label Key size
  22. .control
  23. .select
  24. select(v-model="board.new_keysize")
  25. option(:value="128") 128 bit
  26. option(:value="192") 192 bit
  27. option(:value="256") 256 bit
  28. hr
  29. .columns
  30. .column
  31. .field
  32. label.label Update period (in minutes)
  33. .control
  34. input.input(type="number" min="0.1", max="36000", step="1")
  35. .column
  36. .field
  37. label.label Accelerometer threshold
  38. .control
  39. input.input(type="number" min="10", max="5000", step="10" placeholder="Threshold")
  40. .column
  41. .field
  42. label.label Accelerometer critical threshold
  43. .control
  44. input.input(type="number" min="10", max="10000", step="100" placeholder="Threshold")
  45. .columns
  46. .column
  47. .field
  48. label.checkbox
  49. input(type="checkbox")
  50. | Disable light sensor
  51. .column
  52. .field
  53. label.checkbox
  54. input(type="checkbox")
  55. | Disable accelerometer critical threshold
  56. hr
  57. .columns
  58. .column
  59. .field
  60. label.label New WiFi network SSID
  61. .control
  62. input.input(type="text" placeholder="SSID")
  63. .column
  64. .field
  65. label.label New WiFi network Passphrase
  66. .control
  67. input.input(type="text" placeholder="Passphrase")
  68. .field
  69. .control
  70. table.table.is-hoverable.is-fullwidth
  71. thead
  72. tr
  73. th SSID
  74. th Action
  75. tbody
  76. tr
  77. td Click here for viruses
  78. td
  79. a.button.is-small.is-danger.is-outlined Remove
  80. tr
  81. td Some other access point
  82. td
  83. a.button.is-small.is-danger.is-outlined Remove
  84. hr
  85. .columns
  86. .column
  87. .field
  88. label.label GSM APN Domain
  89. .control
  90. input.input(type="text" placeholder="APN Domain")
  91. .column
  92. .field
  93. label.label GSM APN Username
  94. .control
  95. input.input(type="text" placeholder="APN Username")
  96. .column
  97. .field
  98. label.label GSM APN Password
  99. .control
  100. input.input(type="text" placeholder="APN Password")
  101. .field
  102. label.checkbox
  103. input(type="checkbox")
  104. | Do not check location via GSM when WiFi is available
  105. .field
  106. .control
  107. button.button.is-primary(@click="board_create") Submit
  108. .column
  109. table.table.is-striped.is-hoverable.is-fullwidth
  110. thead
  111. tr
  112. th ID
  113. th Key
  114. th Last Seen
  115. th Actions
  116. tbody
  117. tr(v-for="board in config.boards")
  118. td {{ board.ID }}
  119. td {{ board.KEY16 }}
  120. td {{ board.LastSeen | timeSince }}
  121. td
  122. a.button.is-danger(@click="board_delete(board.ID)") Delete