ckt的看板部分
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.

77 lines
1.1 KiB

4 years ago
  1. # monitor
  2. ## mqtt
  3. ### channels
  4. ```
  5. 所有: /tv/cmd/all
  6. 单个: /tv/cmd/<clientId>
  7. 返回通道: /tv/log/#
  8. ```
  9. ### cmds
  10. 信息
  11. ```
  12. {
  13. "cmd": "info"
  14. }
  15. ```
  16. 路由跳转
  17. ```
  18. {
  19. "cmd": "routerPush",
  20. "payload": {
  21. "path": "/frame",
  22. "query": {
  23. "url": "http://www.baidu.com"
  24. }
  25. }
  26. }
  27. ```
  28. 祝贺签单
  29. ```
  30. {
  31. "cmd": "congrats",
  32. "payload": {
  33. "img": "http://...", //全屏幕图片地址, 1920*1080
  34. "audio": "http://...", //播放mp3, 可不填,使用默认
  35. "duration": 50000, //持续时间, ms, 可不填, 默认10min
  36. "text": "恭喜签单" //底部贺词, 可不填
  37. }
  38. }
  39. ```
  40. 设置LocalStorage
  41. ```
  42. {
  43. "cmd": "localStorageSet",
  44. "payload": {
  45. "clientCode": "...",
  46. "clientName": "xx小米电视"
  47. }
  48. }
  49. ```
  50. ## Project setup
  51. ```
  52. npm install
  53. ```
  54. ### Compiles and hot-reloads for development
  55. ```
  56. npm run dev
  57. ```
  58. ### Compiles and minifies for production
  59. ```
  60. npm run build
  61. ```
  62. ### Lints and fixes files
  63. ```
  64. npm run lint
  65. ```