@zeppos/zeus-cli 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/package.json +1 -1
  2. package/private-modules/zeppos-app-utils/dist/config/device-server.js +113 -0
  3. package/private-modules/zeppos-app-utils/dist/config/device.js +74 -1
  4. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/_package.json +14 -0
  5. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/app-side/i18n/en-US.po +2 -0
  6. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/app-side/index.js +13 -0
  7. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/app.js +10 -0
  8. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/app.json +59 -0
  9. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/assets/default/icon.png +0 -0
  10. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/page/i18n/en-US.po +2 -0
  11. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/page/index.js +7 -0
  12. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/setting/i18n/en-US.po +2 -0
  13. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/setting/index.js +7 -0
  14. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/empty/watchface/index.js +13 -0
  15. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/app-side/index.js +11 -0
  16. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/app.js +10 -0
  17. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/app.json +66 -0
  18. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gtr3/icon.png +0 -0
  19. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gtr3/image/logo.png +0 -0
  20. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gtr3-pro/icon.png +0 -0
  21. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gtr3-pro/image/logo.png +0 -0
  22. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gts3/icon.png +0 -0
  23. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/assets/gts3/image/logo.png +0 -0
  24. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3/home/index.page.js +18 -0
  25. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3/home/index.page.json +1 -0
  26. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3/home/index.style.js +15 -0
  27. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3-pro/home/index.page.js +18 -0
  28. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3-pro/home/index.page.json +1 -0
  29. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gtr3-pro/home/index.style.js +15 -0
  30. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gts3/home/index.page.js +19 -0
  31. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gts3/home/index.page.json +1 -0
  32. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/gts3/home/index.style.js +15 -0
  33. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/page/i18n/en-US.po +3 -0
  34. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/setting/i18n/en-US.po +2 -0
  35. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/setting/index.js +5 -0
  36. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/hello-world/utils/index.js +3 -0
  37. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/jsconfig.json +14 -0
  38. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/app.js +7 -0
  39. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/app.json +51 -0
  40. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bg/bg.png +0 -0
  41. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/0.png +0 -0
  42. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/1.png +0 -0
  43. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/2.png +0 -0
  44. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/3.png +0 -0
  45. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/4.png +0 -0
  46. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/5.png +0 -0
  47. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/6.png +0 -0
  48. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/7.png +0 -0
  49. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/8.png +0 -0
  50. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/9.png +0 -0
  51. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/bigNum/sp.png +0 -0
  52. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/btn/back.png +0 -0
  53. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/btn/lv.png +0 -0
  54. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/btn/red.png +0 -0
  55. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/bg.png +0 -0
  56. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/bottom.png +0 -0
  57. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/center.png +0 -0
  58. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/h.png +0 -0
  59. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/left.png +0 -0
  60. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/m.png +0 -0
  61. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/right.png +0 -0
  62. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/point/s.png +0 -0
  63. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/preview.png +0 -0
  64. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/second/second.png +0 -0
  65. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/0.png +0 -0
  66. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/1.png +0 -0
  67. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/2.png +0 -0
  68. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/3.png +0 -0
  69. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/4.png +0 -0
  70. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/5.png +0 -0
  71. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/6.png +0 -0
  72. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/7.png +0 -0
  73. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/8.png +0 -0
  74. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/9.png +0 -0
  75. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/d.png +0 -0
  76. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/smallNum/n.png +0 -0
  77. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/1.png +0 -0
  78. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/2.png +0 -0
  79. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/3.png +0 -0
  80. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/4.png +0 -0
  81. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/5.png +0 -0
  82. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/6.png +0 -0
  83. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_ch/7.png +0 -0
  84. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/1.png +0 -0
  85. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/2.png +0 -0
  86. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/3.png +0 -0
  87. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/4.png +0 -0
  88. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/5.png +0 -0
  89. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/6.png +0 -0
  90. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/assets/gtr-3-pro/images/week_en/7.png +0 -0
  91. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/buffer.js +11 -0
  92. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/device-polyfill.js +3 -0
  93. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/global.js +17 -0
  94. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/js-module.js +27 -0
  95. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/logger.js +21 -0
  96. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/shared/setTimeout.js +59 -0
  97. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/watchface/gtr-3-pro/index.js +1 -0
  98. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v1/timer/watchface/round/index.js +438 -0
  99. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/_package.json +14 -0
  100. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/app.js +28 -0
  101. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/app.json +51 -0
  102. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/consume.png +0 -0
  103. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/beer.png +0 -0
  104. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/cake.png +0 -0
  105. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/chocolate.png +0 -0
  106. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/coffee.png +0 -0
  107. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/cookies.png +0 -0
  108. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/ham.png +0 -0
  109. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/hamburger.png +0 -0
  110. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/ice cream.png +0 -0
  111. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/pizza.png +0 -0
  112. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/food/sausage.png +0 -0
  113. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/icon.png +0 -0
  114. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/multiply.png +0 -0
  115. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/selected.png +0 -0
  116. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gt.s/unselected.png +0 -0
  117. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/consume.png +0 -0
  118. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/beer.png +0 -0
  119. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/cake.png +0 -0
  120. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/chocolate.png +0 -0
  121. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/coffee.png +0 -0
  122. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/cookies.png +0 -0
  123. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/ham.png +0 -0
  124. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/hamburger.png +0 -0
  125. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/ice cream.png +0 -0
  126. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/pizza.png +0 -0
  127. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/sausage.png +0 -0
  128. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/icon.png +0 -0
  129. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/multiply.png +0 -0
  130. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/selected.png +0 -0
  131. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/unselected.png +0 -0
  132. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gt/food-list.js +113 -0
  133. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gt/index.js +126 -0
  134. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gts/food-list.js +113 -0
  135. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gts/index.js +126 -0
  136. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/i18n/en-US.po +42 -0
  137. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/i18n/zh-CN.po +42 -0
  138. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/utils/constants.js +54 -0
  139. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/utils/storage.js +42 -0
  140. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/utils/styles-gts-3.js +141 -0
  141. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/utils/styles.js +142 -0
  142. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/app-side/i18n/en-US.po +2 -0
  143. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/app-side/index.js +13 -0
  144. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/app.js +10 -0
  145. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/app.json +59 -0
  146. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/assets/default/icon.png +0 -0
  147. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/page/i18n/en-US.po +2 -0
  148. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/page/index.js +7 -0
  149. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/setting/i18n/en-US.po +2 -0
  150. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/setting/index.js +7 -0
  151. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/empty/watchface/index.js +13 -0
  152. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/app-side/i18n/en-US.po +2 -0
  153. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/app-side/index.js +72 -0
  154. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/app.js +23 -0
  155. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/app.json +55 -0
  156. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/assets/common/icon.png +0 -0
  157. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/assets/common.r/icon.png +0 -0
  158. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/assets/common.s/icon.png +0 -0
  159. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/page/i18n/en-US.po +2 -0
  160. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/page/index.js +55 -0
  161. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/pages/i18n/en-US.po +2 -0
  162. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/pages/index.js +55 -0
  163. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/data.js +67 -0
  164. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/defer.js +35 -0
  165. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/device-polyfill.js +6 -0
  166. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/es6-promise.js +1149 -0
  167. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/event.js +42 -0
  168. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/message-side.js +1145 -0
  169. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/shared/message.js +1151 -0
  170. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/utils/config/constants.js +2 -0
  171. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/utils/config/device.js +2 -0
  172. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/app-side/index.js +11 -0
  173. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/app.js +10 -0
  174. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/app.json +66 -0
  175. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gt.r/icon.png +0 -0
  176. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gt.r/image/logo.png +0 -0
  177. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gt.s/icon.png +0 -0
  178. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gt.s/image/logo.png +0 -0
  179. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gtr/icon.png +0 -0
  180. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gtr/image/logo.png +0 -0
  181. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gts/icon.png +0 -0
  182. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gts/image/logo.png +0 -0
  183. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gt/home/index.page.js +17 -0
  184. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gt/home/index.page.json +1 -0
  185. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gt/home/index.page.r.layout.js +28 -0
  186. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gt/home/index.page.s.layout.js +28 -0
  187. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gt/home/index.style.js +18 -0
  188. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.page.js +20 -0
  189. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.page.json +1 -0
  190. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.style.js +18 -0
  191. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.page.js +21 -0
  192. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.page.json +1 -0
  193. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.style.js +17 -0
  194. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/i18n/en-US.po +3 -0
  195. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/setting/i18n/en-US.po +2 -0
  196. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/setting/index.js +5 -0
  197. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/utils/index.js +3 -0
  198. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/jsconfig.json +14 -0
  199. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/.prettierrc.js +6 -0
  200. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/app-side/index.js +48 -0
  201. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/app.js +25 -0
  202. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/app.json +70 -0
  203. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/assets/gt.s/icon.png +0 -0
  204. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/assets/gts/icon.png +0 -0
  205. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/page/home/index.page.js +155 -0
  206. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/page/home/index.page.json +1 -0
  207. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/page/home/index.style.js +93 -0
  208. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/page/i18n/en-US.po +9 -0
  209. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/setting/i18n/en-US.po +5 -0
  210. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/setting/index.js +145 -0
  211. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/data.js +67 -0
  212. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/defer.js +35 -0
  213. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/device-polyfill.js +6 -0
  214. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/es6-promise.js +1149 -0
  215. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/event.js +42 -0
  216. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/message-side.js +1145 -0
  217. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/shared/message.js +1151 -0
  218. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/utils/constants.js +3 -0
  219. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/utils/fs.js +38 -0
  220. package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/utils/index.js +38 -0
  221. package/private-modules/zeppos-app-utils/dist/tools/tools.js +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ exports.__esModule = true;
29
+ exports.DeviceScreenType = void 0;
30
+ var axios_1 = __importDefault(require("axios"));
31
+ var os = __importStar(require("os"));
32
+ var path = __importStar(require("path"));
33
+ var fs = __importStar(require("fs"));
34
+ var fs_extra_1 = __importDefault(require("fs-extra"));
35
+ var lodash_1 = require("lodash");
36
+ var LOCAL_CACHE_DEVICE_PATH = path.resolve(os.homedir(), ".zepp/.zeus_device");
37
+ var serverPath = 'https://upload-cdn.zepp.com/zeppos/devkit/zeus/devices.json';
38
+ var DeviceScreenType;
39
+ (function (DeviceScreenType) {
40
+ DeviceScreenType["R"] = "r";
41
+ DeviceScreenType["S"] = "s";
42
+ DeviceScreenType["B"] = "b";
43
+ })(DeviceScreenType = exports.DeviceScreenType || (exports.DeviceScreenType = {}));
44
+ var shapeMap = {
45
+ square: DeviceScreenType.S,
46
+ round: DeviceScreenType.R,
47
+ bar: DeviceScreenType.B
48
+ };
49
+ var localContent = {};
50
+ if (fs.existsSync(LOCAL_CACHE_DEVICE_PATH)) {
51
+ try {
52
+ localContent = fs_extra_1["default"].readJsonSync(LOCAL_CACHE_DEVICE_PATH);
53
+ }
54
+ catch (_e) { }
55
+ }
56
+ var now = Date.now().valueOf();
57
+ if (!((0, lodash_1.get)(localContent, 'expiredTime') > now)) {
58
+ axios_1["default"].get(serverPath).then(function (res) {
59
+ if (res.status === 200) {
60
+ var data = res.data;
61
+ if (!(0, lodash_1.isEmpty)(data)) {
62
+ fs_extra_1["default"].writeJsonSync(LOCAL_CACHE_DEVICE_PATH, {
63
+ devices: data,
64
+ expiredTime: now + 24 * 60 * 60 * 1000
65
+ });
66
+ }
67
+ }
68
+ });
69
+ }
70
+ var deviceList = (0, lodash_1.get)(localContent, 'devices', []);
71
+ var deviceGroup = (0, lodash_1.groupBy)(deviceList, 'productName');
72
+ var deviceInfo = {};
73
+ Object.values(deviceGroup).forEach(function (devices) {
74
+ var _a;
75
+ var info = {
76
+ deviceName: '',
77
+ platforms: [],
78
+ screen: {
79
+ type: DeviceScreenType.R,
80
+ width: 0,
81
+ height: 0
82
+ },
83
+ apiLevelLimit: {
84
+ min: '1.0.0'
85
+ }
86
+ };
87
+ var deviceInnerName = devices.reduce(function (acc, cur) {
88
+ !info.deviceName && (info.deviceName = cur.productName);
89
+ var screenType = (0, lodash_1.get)(shapeMap, (0, lodash_1.get)(cur, 'value.shape'));
90
+ var _a = (0, lodash_1.get)(cur, 'value.screen.size', '').split('*'), width = _a[0], height = _a[1];
91
+ if (screenType) {
92
+ info.screen.type = screenType;
93
+ }
94
+ if (width && height) {
95
+ info.screen.width = Number(width);
96
+ info.screen.height = Number(height);
97
+ }
98
+ info.platforms.push({
99
+ name: cur.code,
100
+ deviceSource: cur.deviceSource
101
+ });
102
+ Object.assign(info.apiLevelLimit, {
103
+ min: (0, lodash_1.get)(cur, 'value.os.apiLevelLimitMin', '1.0.0'),
104
+ max: (0, lodash_1.get)(cur, 'value.os.apiLevelLimitMax', '')
105
+ });
106
+ return cur.code.length < acc.length ? cur.code : acc;
107
+ }, devices[0].code);
108
+ var lowerName = (0, lodash_1.toLower)(deviceInnerName.replace(/[^a-zA-Z]/g, ''));
109
+ lowerName && Object.assign(deviceInfo, (_a = {},
110
+ _a[lowerName] = info,
111
+ _a));
112
+ });
113
+ exports["default"] = deviceInfo;
@@ -12,6 +12,9 @@ var DeviceTarget;
12
12
  DeviceTarget["BARI"] = "bari";
13
13
  DeviceTarget["BERLIN"] = "berlin";
14
14
  DeviceTarget["LILLE"] = "lille";
15
+ DeviceTarget["VIENNA"] = "vienna";
16
+ DeviceTarget["LEIDEN"] = "leiden";
17
+ DeviceTarget["ANDES"] = "andes";
15
18
  })(DeviceTarget = exports.DeviceTarget || (exports.DeviceTarget = {}));
16
19
  var DevicePlatformName;
17
20
  (function (DevicePlatformName) {
@@ -33,6 +36,12 @@ var DevicePlatformName;
33
36
  DevicePlatformName["BERLIN_W"] = "gtr4-w";
34
37
  DevicePlatformName["LILLE"] = "gts4";
35
38
  DevicePlatformName["LILLE_W"] = "gts4-w";
39
+ DevicePlatformName["VIENNA"] = "falcon";
40
+ DevicePlatformName["VIENNA_W"] = "falcon";
41
+ DevicePlatformName["LEIDEN"] = "gtr-mini";
42
+ DevicePlatformName["LEIDEN_W"] = "gtr-mini-w";
43
+ DevicePlatformName["ANDES"] = "t-rex-ultra";
44
+ DevicePlatformName["ANDES_W"] = "t-rex-ultra-w";
36
45
  })(DevicePlatformName = exports.DevicePlatformName || (exports.DevicePlatformName = {}));
37
46
  var DeviceSource;
38
47
  (function (DeviceSource) {
@@ -54,6 +63,12 @@ var DeviceSource;
54
63
  DeviceSource[DeviceSource["BERLIN_W"] = 7930113] = "BERLIN_W";
55
64
  DeviceSource[DeviceSource["LILLE"] = 7995648] = "LILLE";
56
65
  DeviceSource[DeviceSource["LILLE_W"] = 7995649] = "LILLE_W";
66
+ DeviceSource[DeviceSource["VIENNA"] = 414] = "VIENNA";
67
+ DeviceSource[DeviceSource["VIENNA_W"] = 415] = "VIENNA_W";
68
+ DeviceSource[DeviceSource["LEIDEN"] = 250] = "LEIDEN";
69
+ DeviceSource[DeviceSource["LEIDEN_W"] = 251] = "LEIDEN_W";
70
+ DeviceSource[DeviceSource["ANDES"] = 6553856] = "ANDES";
71
+ DeviceSource[DeviceSource["ANDES_W"] = 6553857] = "ANDES_W";
57
72
  })(DeviceSource = exports.DeviceSource || (exports.DeviceSource = {}));
58
73
  var DeviceScreenType;
59
74
  (function (DeviceScreenType) {
@@ -213,12 +228,70 @@ exports.deviceTargets = (_a = {},
213
228
  height: 450
214
229
  }
215
230
  },
231
+ _a[DeviceTarget.VIENNA] = {
232
+ deviceName: 'Falcon',
233
+ platforms: [
234
+ {
235
+ name: DevicePlatformName.VIENNA,
236
+ deviceSource: DeviceSource.VIENNA
237
+ },
238
+ {
239
+ name: DevicePlatformName.VIENNA_W,
240
+ deviceSource: DeviceSource.VIENNA_W
241
+ }
242
+ ],
243
+ screen: {
244
+ type: DeviceScreenType.R,
245
+ width: 416,
246
+ height: 416
247
+ }
248
+ },
249
+ _a[DeviceTarget.LEIDEN] = {
250
+ deviceName: 'GTR Mini',
251
+ platforms: [
252
+ {
253
+ name: DevicePlatformName.LEIDEN,
254
+ deviceSource: DeviceSource.LEIDEN
255
+ },
256
+ {
257
+ name: DevicePlatformName.LEIDEN_W,
258
+ deviceSource: DeviceSource.LEIDEN_W
259
+ }
260
+ ],
261
+ screen: {
262
+ type: DeviceScreenType.R,
263
+ width: 416,
264
+ height: 416
265
+ }
266
+ },
267
+ _a[DeviceTarget.ANDES] = {
268
+ deviceName: 'T-Rex Ultra',
269
+ platforms: [
270
+ {
271
+ name: DevicePlatformName.ANDES,
272
+ deviceSource: DeviceSource.ANDES
273
+ },
274
+ {
275
+ name: DevicePlatformName.ANDES_W,
276
+ deviceSource: DeviceSource.ANDES_W
277
+ }
278
+ ],
279
+ screen: {
280
+ type: DeviceScreenType.R,
281
+ width: 454,
282
+ height: 454
283
+ }
284
+ },
216
285
  _a);
217
286
  exports.OSV2Devices = [
218
287
  DeviceSource.BERLIN,
219
288
  DeviceSource.BERLIN_W,
220
289
  DeviceSource.LILLE,
221
- DeviceSource.LILLE_W
290
+ DeviceSource.LILLE_W,
291
+ DeviceSource.LEIDEN,
292
+ DeviceSource.LEIDEN_W,
293
+ DeviceSource.ANDES,
294
+ DeviceSource.ANDES_W
222
295
  ];
223
296
  exports.OSV2DeviceTargetNames = Object.keys(exports.deviceTargets).reduce(function (targetNames, target) {
224
297
  var flag = true;
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "empty",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "app.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "devDependencies": {
12
+ "@zeppos/device-types": "^1.0.0"
13
+ }
14
+ }
@@ -0,0 +1,2 @@
1
+ msgid "example"
2
+ msgstr "This is an example in app-side"
@@ -0,0 +1,13 @@
1
+ import { gettext } from 'i18n'
2
+
3
+ AppSideService({
4
+ onInit() {
5
+ console.log(gettext('example'))
6
+ },
7
+
8
+ onRun() {
9
+ },
10
+
11
+ onDestroy() {
12
+ }
13
+ })
@@ -0,0 +1,10 @@
1
+ App({
2
+ globalData: {},
3
+ onCreate(options) {
4
+ console.log('app on create invoke')
5
+ },
6
+
7
+ onDestroy(options) {
8
+ console.log('app on destroy invoke')
9
+ }
10
+ })
@@ -0,0 +1,59 @@
1
+ {
2
+ "configVersion": "v3",
3
+ "app": {
4
+ "appId": 20000,
5
+ "appName": "Empty",
6
+ "appType": "app",
7
+ "version": {
8
+ "code": 1,
9
+ "name": "1.0.0"
10
+ },
11
+ "icon": "icon.png",
12
+ "vender": "zepp",
13
+ "description": "empty application"
14
+ },
15
+ "permissions": [
16
+ "data:os.device.info",
17
+ "device:os.local_storage",
18
+ "data:user.hd.calorie"
19
+ ],
20
+ "runtime": {
21
+ "apiVersion": {
22
+ "compatible": "1.0.0",
23
+ "target": "1.0.0",
24
+ "minVersion": "1.0"
25
+ }
26
+ },
27
+ "targets": {
28
+ "default": {
29
+ "module": {
30
+ "page": {
31
+ "pages": [
32
+ "page/index"
33
+ ]
34
+ },
35
+ "app-side": {
36
+ "path": "app-side/index"
37
+ },
38
+ "setting": {
39
+ "path": "setting/index"
40
+ }
41
+ },
42
+ "platforms": [
43
+ {
44
+ "st": "r"
45
+ },
46
+ {
47
+ "st": "s"
48
+ }
49
+ ],
50
+ "designWidth": 480
51
+ }
52
+ },
53
+ "i18n": {
54
+ "en-US": {
55
+ "appName": "Empty"
56
+ }
57
+ },
58
+ "defaultLanguage": "en-US"
59
+ }
@@ -0,0 +1,2 @@
1
+ msgid "example"
2
+ msgstr "This is an example in device"
@@ -0,0 +1,7 @@
1
+ import { gettext } from 'i18n'
2
+
3
+ Page({
4
+ build() {
5
+ console.log(gettext('example'))
6
+ }
7
+ })
@@ -0,0 +1,2 @@
1
+ msgid "example"
2
+ msgstr "This is an example in app-side"
@@ -0,0 +1,7 @@
1
+ import { gettext } from 'i18n'
2
+
3
+ AppSettingsPage({
4
+ build() {
5
+ console.log(gettext('example'))
6
+ }
7
+ })
@@ -0,0 +1,13 @@
1
+ WatchFace({
2
+ onInit() {
3
+ console.log('index page.js on init invoke')
4
+ },
5
+
6
+ build() {
7
+ console.log('index page.js on build invoke')
8
+ },
9
+
10
+ onDestroy() {
11
+ console.log('index page.js on destroy invoke')
12
+ },
13
+ })
@@ -0,0 +1,11 @@
1
+ AppSideService({
2
+ onInit() {
3
+ console.log('app side service invoke onInit')
4
+ },
5
+ onRun() {
6
+ console.log('app side service invoke onRun')
7
+ },
8
+ onDestroy() {
9
+ console.log('app side service invoke onDestroy')
10
+ }
11
+ })
@@ -0,0 +1,10 @@
1
+ App({
2
+ globalData: {},
3
+ onCreate(options) {
4
+ console.log('app on create invoke')
5
+ },
6
+
7
+ onDestroy(options) {
8
+ console.log('app on destroy invoke')
9
+ }
10
+ })
@@ -0,0 +1,66 @@
1
+ {
2
+ "configVersion": "v2",
3
+ "app": {
4
+ "appId": 20001,
5
+ "appName": "Hello World",
6
+ "appType": "app",
7
+ "version": {
8
+ "code": 1,
9
+ "name": "1.0.1"
10
+ },
11
+ "icon": "icon.png",
12
+ "vender": "zepp",
13
+ "description": "hello world app"
14
+ },
15
+ "permissions": [
16
+ "data:os.device.info",
17
+ "device:os.local_storage"
18
+ ],
19
+ "runtime": {
20
+ "apiVersion": {
21
+ "compatible": "1.0.0",
22
+ "target": "1.0.0",
23
+ "minVersion": "1.0"
24
+ }
25
+ },
26
+ "debug": false,
27
+ "targets": {
28
+ "gt": {
29
+ "module": {
30
+ "page": {
31
+ "pages": [
32
+ "page/gt/home/index.page"
33
+ ],
34
+ "window": {
35
+ "navigationBarBackgroundColor": "#ffffff",
36
+ "navigationBarTextStyle": "black",
37
+ "navigationBarTitleText": "Hello World",
38
+ "backgroundColor": "#eeeeee",
39
+ "backgroundTextStyle": "light"
40
+ }
41
+ },
42
+ "app-side": {
43
+ "path": "app-side/index"
44
+ },
45
+ "setting": {
46
+ "path": "setting/index"
47
+ }
48
+ },
49
+ "platforms": [
50
+ {
51
+ "st": "r"
52
+ },
53
+ {
54
+ "st": "s"
55
+ }
56
+ ],
57
+ "designWidth": 480
58
+ }
59
+ },
60
+ "i18n": {
61
+ "en-US": {
62
+ "appName": "Hello World"
63
+ }
64
+ },
65
+ "defaultLanguage": "en-US"
66
+ }
@@ -0,0 +1,18 @@
1
+ import { TEXT_STYLE } from './index.style'
2
+
3
+ const logger = DeviceRuntimeCore.HmLogger.getLogger('helloworld')
4
+ Page({
5
+ build() {
6
+ logger.debug('page build invoked')
7
+ hmUI.createWidget(hmUI.widget.TEXT, {
8
+ ...TEXT_STYLE,
9
+ })
10
+ },
11
+ onInit() {
12
+ logger.debug('page onInit invoked')
13
+ },
14
+
15
+ onDestroy() {
16
+ logger.debug('page onDestroy invoked')
17
+ },
18
+ })
@@ -0,0 +1,15 @@
1
+ import { gettext } from "i18n"
2
+
3
+ export const { width: DEVICE_WIDTH, height: DEVICE_HEIGHT } = hmSetting.getDeviceInfo()
4
+
5
+ export const TEXT_STYLE = {
6
+ text: gettext('appName'),
7
+ x: px(42),
8
+ y: px(200),
9
+ w: DEVICE_WIDTH - px(42) * 2,
10
+ h: px(100),
11
+ color: 0xffffff,
12
+ text_size: px(36),
13
+ align_h: hmUI.align.CENTER_H,
14
+ text_style: hmUI.text_style.WRAP,
15
+ }
@@ -0,0 +1,18 @@
1
+ import { TEXT_STYLE } from './index.style'
2
+
3
+ const logger = DeviceRuntimeCore.HmLogger.getLogger('helloworld')
4
+ Page({
5
+ build() {
6
+ logger.debug('page build invoked')
7
+ hmUI.createWidget(hmUI.widget.TEXT, {
8
+ ...TEXT_STYLE,
9
+ })
10
+ },
11
+ onInit() {
12
+ logger.debug('page onInit invoked')
13
+ },
14
+
15
+ onDestroy() {
16
+ logger.debug('page onDestroy invoked')
17
+ },
18
+ })
@@ -0,0 +1,15 @@
1
+ import { gettext } from "i18n"
2
+
3
+ export const { width: DEVICE_WIDTH, height: DEVICE_HEIGHT } = hmSetting.getDeviceInfo()
4
+
5
+ export const TEXT_STYLE = {
6
+ text: gettext('appName'),
7
+ x: px(42),
8
+ y: px(200),
9
+ w: DEVICE_WIDTH - px(42) * 2,
10
+ h: px(100),
11
+ color: 0xffffff,
12
+ text_size: px(36),
13
+ align_h: hmUI.align.CENTER_H,
14
+ text_style: hmUI.text_style.WRAP,
15
+ }
@@ -0,0 +1,19 @@
1
+ import { TEXT_STYLE } from './index.style'
2
+
3
+ const logger = DeviceRuntimeCore.HmLogger.getLogger('helloworld')
4
+
5
+ Page({
6
+ build() {
7
+ logger.debug('page build invoked')
8
+ hmUI.createWidget(hmUI.widget.TEXT, {
9
+ ...TEXT_STYLE,
10
+ })
11
+ },
12
+ onInit() {
13
+ logger.debug('page onInit invoked')
14
+ },
15
+
16
+ onDestroy() {
17
+ logger.debug('page onDestroy invoked')
18
+ },
19
+ })
@@ -0,0 +1,15 @@
1
+ import { gettext } from "i18n"
2
+
3
+ export const { width: DEVICE_WIDTH, height: DEVICE_HEIGHT } = hmSetting.getDeviceInfo()
4
+
5
+ export const TEXT_STYLE = {
6
+ text: gettext('appName'),
7
+ x: 42,
8
+ y: 200,
9
+ w: DEVICE_WIDTH - 42 * 2,
10
+ h: 100,
11
+ color: 0xffffff,
12
+ text_size: 36,
13
+ align_h: hmUI.align.CENTER_H,
14
+ text_style: hmUI.text_style.WRAP,
15
+ }
@@ -0,0 +1,5 @@
1
+ AppSettingsPage({
2
+ build(props) {
3
+ return Section({})
4
+ },
5
+ })
@@ -0,0 +1,3 @@
1
+ export function assets(type) {
2
+ return (path) => type + '/' + path
3
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "target": "es6",
5
+ "checkJs": true
6
+ },
7
+ "exclude": [
8
+ "node_modules",
9
+ "**/node_modules/*"
10
+ ],
11
+ "files": [
12
+ "node_modules/@zeppos/device-types/index.d.ts"
13
+ ]
14
+ }
@@ -0,0 +1,7 @@
1
+ import './shared/device-polyfill'
2
+
3
+ App({
4
+ globalData: {},
5
+ onCreate(options) {},
6
+ onDestroy(options) {}
7
+ })