index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <style>
  2. .tree{
  3. max-height:calc(90vh);
  4. overflow: auto;
  5. overflow-x: hidden;
  6. }
  7. </style>
  8. <div class="panel panel-default col-xs-4 col-sm-4">
  9. <div class="panel-body">
  10. <input type="text" id="search_input" placeholder="在展开节点中搜索.." /><br/>
  11. <div id="tree" class="tree"></div>
  12. </div>
  13. </div>
  14. <!--add key panel-->
  15. <div class="panel panel-default col-xs-8 col-sm-8 addkey" hidden style="padding:0%">
  16. <div class="panel-heading">
  17. <h3 class="panel-title">新增键值</h3>
  18. </div>
  19. <div class="panel-body">
  20. <form id="add-form" class="form-horizontal" role="form-add" data-toggle="validator"
  21. method="POST" action="faredis/index/newkey">
  22. <input id="c-newdb" class="form-control c-newdb" style="display: none;" name="newdb" type="text">
  23. <div class="form-group">
  24. <label class="control-label col-xs-2 col-sm-2">Key:</label>
  25. <div class="col-xs-10 col-sm-10">
  26. <input id="c-newkey" class="form-control" name="newkey" type="text">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="control-label col-xs-2 col-sm-2">类型:</label>
  31. <div class="col-xs-10 col-sm-10">
  32. <select id="c-newtype" class="form-control selectpicker" name="newType">
  33. <option value="string">string</option>
  34. <option value="list">list</option>
  35. <option value="set">set</option>
  36. <option value="zset">zset</option>
  37. <option value="hash">hash</option>
  38. </select>
  39. </div>
  40. </div>
  41. <div class="form-group hash-filed">
  42. <label class="control-label col-xs-2 col-sm-2">Field:</label>
  43. <div class="col-xs-10 col-sm-10">
  44. <textarea id="c-newfiled" name="newfield" style="width: 100%;" rows="10"></textarea>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="control-label col-xs-2 col-sm-2">Value:</label>
  49. <div class="col-xs-10 col-sm-10">
  50. <textarea id="c-newvalue" name="newvalue" style="width: 100%;" rows="10"></textarea>
  51. </div>
  52. </div>
  53. <div class="form-group newsource">
  54. <label class="control-label col-xs-2 col-sm-2">Score:</label>
  55. <div class="col-xs-10 col-sm-10">
  56. <input id="c-newscore" class="form-control" name="newscore" type="number" min="0" step="1">
  57. </div>
  58. </div>
  59. <div class="form-group layer-footer">
  60. <label class="control-label col-xs-12 col-sm-2"></label>
  61. <div class="col-xs-12 col-sm-8">
  62. <button id="add-reset" type="reset" class="btn btn-default">重置</button>
  63. <button type="submit" class="btn btn-success btn-embossed">新增</button></button>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. <!--string-->
  70. <div class="panel panel-default col-xs-8 col-sm-8 string" hidden style="padding:0%">
  71. <div class="panel-heading">
  72. <h3 class="panel-title p-title">key</h3>
  73. </div>
  74. <div class="panel-body">
  75. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator"
  76. method="POST" action="faredis/index/updateValue">
  77. <input id="c-db" class="form-control c-db" style="display: none;" name="db" type="text">
  78. <div class="form-group">
  79. <label class="control-label col-xs-2 col-sm-2">STRING:</label>
  80. <div class="col-xs-2 col-sm-2">
  81. <input id="c-key" class="form-control c-key" readonly name="key" type="text">
  82. </div>
  83. <div class="col-xs-8 col-sm-8">
  84. TTL:<label id="ttl" class="ttl"> </label>
  85. <button type="button" class="btn btn-default btn-embossed rds_rename">重命名</button>
  86. <button type="button" class="btn btn-default btn-embossed rds_del">删除</button>
  87. <button type="button" class="btn btn-default btn-embossed rds_ttl">设置TTL</button>
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-2 col-sm-2">Value:</label>
  92. <div class="col-xs-10 col-sm-10">
  93. <textarea id="c-value" name="value" style="width: 100%;" rows="10"></textarea>
  94. </div>
  95. </div>
  96. <div class="form-group layer-footer">
  97. <label class="control-label col-xs-12 col-sm-2"></label>
  98. <div class="col-xs-12 col-sm-8">
  99. <button type="submit" class="btn btn-success btn-embossed">保存</button>
  100. </div>
  101. </div>
  102. </form>
  103. </div>
  104. </div>
  105. <!--Set list-->
  106. <div class="panel panel-default col-xs-8 col-sm-8 set" hidden style="padding:0%">
  107. <div class="panel-heading">
  108. <h3 class="panel-title p-title">key</h3>
  109. </div>
  110. <div class="panel-body">
  111. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator"
  112. method="POST" action="faredis/index/updateValue">
  113. <input id="c-db" class="form-control c-db" style="display: none;" name="db" type="text">
  114. <div class="form-group">
  115. <label class="control-label col-xs-2 col-sm-2 type-lb">SET:</label>
  116. <div class="col-xs-2 col-sm-2">
  117. <input id="c-key" class="form-control c-key" readonly name="key" type="text">
  118. </div>
  119. <div class="col-xs-8 col-sm-8">
  120. 元素个数:<label id="size" class="size"> </label>
  121. &nbsp;&nbsp;TTL:<label id="ttl" class="ttl"> </label>
  122. <button type="button" class="btn btn-default btn-embossed rds_rename">重命名</button>
  123. <button type="button" class="btn btn-default btn-embossed rds_del">删除</button>
  124. <button type="button" class="btn btn-default btn-embossed rds_ttl">设置TTL</button>
  125. </div>
  126. </div>
  127. <div class="form-group">
  128. <label class="control-label col-xs-2 col-sm-2"></label>
  129. <div class="col-xs-10 col-sm-10" style="display: flex;flex-direction:row;">
  130. <select multiple="true" style="width: 80%;height: 200px;" id='set-list' name="oldvalue">
  131. </select>
  132. <div style="display: flex; flex-direction: column;margin-left: 10px;">
  133. <button type="button" class="btn btn-default btn-embossed rds_add_row">增加项</button>
  134. <button type="button" style="margin-top: 10px;" data-type="set-list" class="btn btn-default btn-embossed rds_delete_row">删除项</button>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <label class="control-label col-xs-2 col-sm-2">Value:</label>
  140. <div class="col-xs-10 col-sm-10">
  141. <textarea id="c-value" class="set-value" name="value" style="width: 100%;" rows="10"></textarea>
  142. </div>
  143. </div>
  144. <div class="form-group layer-footer">
  145. <label class="control-label col-xs-12 col-sm-2"></label>
  146. <div class="col-xs-12 col-sm-8">
  147. <button type="submit" class="btn btn-success btn-embossed">保存</button>
  148. </div>
  149. </div>
  150. </form>
  151. </div>
  152. </div>
  153. <!--hash-->
  154. <div class="panel panel-default col-xs-8 col-sm-8 hash" hidden style="padding:0%">
  155. <div class="panel-heading">
  156. <h3 class="panel-title p-title">key</h3>
  157. </div>
  158. <div class="panel-body">
  159. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator"
  160. method="POST" action="faredis/index/updateValue">
  161. <input id="c-db" class="form-control c-db" style="display: none;" name="db" type="text">
  162. <div class="form-group">
  163. <label class="control-label col-xs-2 col-sm-2 type-lb">HASH:</label>
  164. <div class="col-xs-2 col-sm-2">
  165. <input id="c-key" class="form-control c-key" readonly name="key" type="text">
  166. </div>
  167. <div class="col-xs-8 col-sm-8">
  168. 元素个数:<label id="size" class="size"> </label>
  169. &nbsp;&nbsp;TTL:<label id="ttl" class="ttl"> </label>
  170. <button type="button" class="btn btn-default btn-embossed rds_rename">重命名</button>
  171. <button type="button" class="btn btn-default btn-embossed rds_del">删除</button>
  172. <button type="button" class="btn btn-default btn-embossed rds_ttl">设置TTL</button>
  173. </div>
  174. </div>
  175. <div class="form-group">
  176. <label class="control-label col-xs-2 col-sm-2"></label>
  177. <div class="col-xs-10 col-sm-10" style="display: flex;flex-direction:row;">
  178. <select multiple="true" style="width: 80%;height: 200px;" id='hash-list'>
  179. </select>
  180. <div style="display: flex; flex-direction: column;margin-left: 10px;">
  181. <button type="button" class="btn btn-default btn-embossed rds_add_row_hash">增加项</button>
  182. <button type="button" style="margin-top: 10px;" data-type="hash-list" class="btn btn-default btn-embossed rds_delete_row">删除项</button>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="form-group">
  187. <label class="control-label col-xs-2 col-sm-2">Key:</label>
  188. <div class="col-xs-10 col-sm-10">
  189. <input id="c-hash-key" class="form-control hash-key" readonly name="hash-key" style="width: 100%;" >
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label class="control-label col-xs-2 col-sm-2">Value:</label>
  194. <div class="col-xs-10 col-sm-10">
  195. <textarea id="c-hash-value" class="hash-value" name="value" style="width: 100%;" rows="10"></textarea>
  196. </div>
  197. </div>
  198. <div class="form-group layer-footer">
  199. <label class="control-label col-xs-12 col-sm-2"></label>
  200. <div class="col-xs-12 col-sm-8">
  201. <button type="submit" class="btn btn-success btn-embossed">保存</button>
  202. </div>
  203. </div>
  204. </form>
  205. </div>
  206. </div>
  207. <!--zset-->
  208. <div class="panel panel-default col-xs-8 col-sm-8 zset" hidden style="padding:0%">
  209. <div class="panel-heading">
  210. <h3 class="panel-title p-title">key</h3>
  211. </div>
  212. <div class="panel-body">
  213. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator"
  214. method="POST" action="faredis/index/updateValue">
  215. <input id="c-db" class="form-control c-db" style="display: none;" name="db" type="text">
  216. <div class="form-group">
  217. <label class="control-label col-xs-2 col-sm-2 type-lb">ZSET:</label>
  218. <div class="col-xs-2 col-sm-2">
  219. <input id="c-key" class="form-control c-key" readonly name="key" type="text">
  220. </div>
  221. <div class="col-xs-8 col-sm-8">
  222. 元素个数:<label id="size" class="size"> </label>
  223. &nbsp;&nbsp;TTL:<label id="ttl" class="ttl"> </label>
  224. <button type="button" class="btn btn-default btn-embossed rds_rename">重命名</button>
  225. <button type="button" class="btn btn-default btn-embossed rds_del">删除</button>
  226. <button type="button" class="btn btn-default btn-embossed rds_ttl">设置TTL</button>
  227. </div>
  228. </div>
  229. <div class="form-group">
  230. <label class="control-label col-xs-2 col-sm-2"></label>
  231. <div class="col-xs-10 col-sm-10" style="display: flex;flex-direction:row;">
  232. <select multiple="true" style="width: 80%;height: 200px;" name="zset-key" id='zset-list'>
  233. </select>
  234. <div style="display: flex; flex-direction: column;margin-left: 10px;">
  235. <button type="button" class="btn btn-default btn-embossed rds_add_row_zset">增加项</button>
  236. <button type="button" style="margin-top: 10px;" data-type="zset-list" class="btn btn-default btn-embossed rds_delete_row">删除项</button>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="form-group">
  241. <label class="control-label col-xs-2 col-sm-2">Value:</label>
  242. <div class="col-xs-10 col-sm-10">
  243. <input id="c-zset-value" class="form-control zset-value" readonly name="value" style="width: 100%;">
  244. </div>
  245. </div>
  246. <div class="form-group">
  247. <label class="control-label col-xs-2 col-sm-2">Score:</label>
  248. <div class="col-xs-10 col-sm-10">
  249. <input id="c-zset-score" class="form-control zset-score" name="zset-score" type="number" step="1">
  250. </div>
  251. </div>
  252. <div class="form-group layer-footer">
  253. <label class="control-label col-xs-12 col-sm-2"></label>
  254. <div class="col-xs-12 col-sm-8">
  255. <button type="submit" class="btn btn-success btn-embossed">保存</button>
  256. </div>
  257. </div>
  258. </form>
  259. </div>
  260. </div>