mm_os 2.8.2 → 2.8.4

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 (303) hide show
  1. package/core/com/api/drive.js +3 -0
  2. package/core/com/api/index.js +3 -1
  3. package/core/com/cmd/drive.js +2 -1
  4. package/core/com/cmd/index.js +2 -0
  5. package/core/com/component/drive.js +2 -1
  6. package/core/com/component/index.js +2 -0
  7. package/core/com/event/drive.js +1 -1
  8. package/core/com/event/index.js +4 -3
  9. package/core/com/eventer/com.js +1 -1
  10. package/core/com/nav/drive.js +3 -2
  11. package/core/com/nav/index.js +2 -0
  12. package/core/com/param/drive.js +2 -1
  13. package/core/com/param/index.js +2 -0
  14. package/core/com/plugin/drive.js +2 -1
  15. package/core/com/plugin/index.js +2 -0
  16. package/core/com/sql/drive.js +2 -1
  17. package/core/com/sql/index.js +3 -1
  18. package/core/com/static/drive.js +4 -4
  19. package/core/com/task/index.js +4 -1
  20. package/package.json +2 -2
  21. package/demo/app/dev/README.md +0 -1
  22. package/demo/app/dev/app.js +0 -149
  23. package/demo/app/dev/app.json +0 -12
  24. package/demo/app/dev/event_api/client/event.json +0 -11
  25. package/demo/app/dev/event_api/client/main.js +0 -19
  26. package/demo/app/dev/event_api/manage/event.json +0 -19
  27. package/demo/app/dev/event_api/manage/main.js +0 -26
  28. package/demo/app/dev/plugin/doc/static/api_list.html +0 -144
  29. package/demo/app/dev/plugin/doc/static/api_view.html +0 -692
  30. package/demo/app/dev/plugin/doc/static/index.html +0 -138
  31. package/demo/app/dev/plugin/doc/static/request_test.html +0 -311
  32. package/demo/app/dev/plugin/main/api_dev_client/api/api.json +0 -11
  33. package/demo/app/dev/plugin/main/api_dev_client/api/index.js +0 -54
  34. package/demo/app/dev/plugin/main/api_dev_client/api/param.json +0 -31
  35. package/demo/app/dev/plugin/main/api_dev_client/app/api.json +0 -13
  36. package/demo/app/dev/plugin/main/api_dev_client/app/index.js +0 -13
  37. package/demo/app/dev/plugin/main/api_dev_client/app/param.json +0 -147
  38. package/demo/app/dev/plugin/main/api_dev_client/app/sql.json +0 -28
  39. package/demo/app/dev/plugin/main/api_dev_client/auto/api.json +0 -37
  40. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_db.js +0 -70
  41. package/demo/app/dev/plugin/main/api_dev_client/auto/auto_file.js +0 -32
  42. package/demo/app/dev/plugin/main/api_dev_client/auto/index.js +0 -51
  43. package/demo/app/dev/plugin/main/api_dev_client/auto/param.json +0 -51
  44. package/demo/app/dev/plugin/main/api_dev_client/com.js +0 -349
  45. package/demo/app/dev/plugin/main/api_dev_client/db/api.json +0 -10
  46. package/demo/app/dev/plugin/main/api_dev_client/db/index.js +0 -71
  47. package/demo/app/dev/plugin/main/api_dev_client/db/param.json +0 -31
  48. package/demo/app/dev/plugin/main/api_dev_client/dict/api.json +0 -10
  49. package/demo/app/dev/plugin/main/api_dev_client/dict/index.js +0 -49
  50. package/demo/app/dev/plugin/main/api_dev_client/dict/param.json +0 -29
  51. package/demo/app/dev/plugin/main/api_dev_client/event/api.json +0 -10
  52. package/demo/app/dev/plugin/main/api_dev_client/event/index.js +0 -31
  53. package/demo/app/dev/plugin/main/api_dev_client/event/param.json +0 -31
  54. package/demo/app/dev/plugin/main/api_dev_client/help/api.json +0 -10
  55. package/demo/app/dev/plugin/main/api_dev_client/help/index.js +0 -14
  56. package/demo/app/dev/plugin/main/api_dev_client/help/param.json +0 -31
  57. package/demo/app/dev/plugin/main/api_dev_client/nav/api.json +0 -10
  58. package/demo/app/dev/plugin/main/api_dev_client/nav/index.js +0 -36
  59. package/demo/app/dev/plugin/main/api_dev_client/nav/param.json +0 -36
  60. package/demo/app/dev/plugin/main/api_dev_client/plugin/api.json +0 -10
  61. package/demo/app/dev/plugin/main/api_dev_client/plugin/index.js +0 -13
  62. package/demo/app/dev/plugin/main/api_dev_client/plugin/param.json +0 -31
  63. package/demo/app/dev/plugin/main/api_dev_client/source/api.json +0 -10
  64. package/demo/app/dev/plugin/main/api_dev_client/source/index.js +0 -14
  65. package/demo/app/dev/plugin/main/api_dev_client/source/param.json +0 -31
  66. package/demo/app/dev/plugin/main/api_dev_client/sql/api.json +0 -10
  67. package/demo/app/dev/plugin/main/api_dev_client/sql/index.js +0 -13
  68. package/demo/app/dev/plugin/main/api_dev_client/sql/param.json +0 -31
  69. package/demo/app/dev/plugin/main/api_dev_client/task/api.json +0 -16
  70. package/demo/app/dev/plugin/main/api_dev_client/task/index.js +0 -13
  71. package/demo/app/dev/plugin/main/api_dev_client/task/param.json +0 -31
  72. package/demo/app/dev/plugin/main/api_dev_client/translate/api.json +0 -39
  73. package/demo/app/dev/plugin/main/api_dev_client/translate/index.js +0 -43
  74. package/demo/app/dev/plugin/main/api_dev_client/translate/param.json +0 -130
  75. package/demo/app/dev/plugin/main/api_dev_client/translate/sql.json +0 -62
  76. package/demo/app/dev/plugin/main/api_dev_client/ui/api.json +0 -10
  77. package/demo/app/dev/plugin/main/api_dev_client/ui/index.js +0 -146
  78. package/demo/app/dev/plugin/main/api_dev_client/ui/param.json +0 -31
  79. package/demo/app/dev/plugin/main/api_dev_client/view/api.json +0 -10
  80. package/demo/app/dev/plugin/main/api_dev_client/view/index.js +0 -100
  81. package/demo/app/dev/plugin/main/api_dev_client/view/param.json +0 -29
  82. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/nav.vue +0 -12
  83. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/obj.vue +0 -12
  84. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/post.vue +0 -12
  85. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/block/query.vue +0 -12
  86. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/edit.vue +0 -39
  87. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/list.vue +0 -12
  88. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/search.vue +0 -12
  89. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/table.vue +0 -12
  90. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/type.vue +0 -12
  91. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/page/view.vue +0 -56
  92. package/demo/app/dev/plugin/main/api_dev_client/view/tpl/view.json +0 -48
  93. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/api.json +0 -37
  94. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/auto_db.js +0 -120
  95. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy.js +0 -101
  96. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_framework.js +0 -118
  97. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy/copy_template.js +0 -78
  98. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/copy_file.js +0 -97
  99. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/common.js +0 -198
  100. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/django_server.js +0 -104
  101. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/helper.js +0 -161
  102. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/koa_art_server.js +0 -102
  103. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/mini_app_home.js +0 -415
  104. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/razor.js +0 -0
  105. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/springboot.js +0 -0
  106. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/thinkphp.js +0 -0
  107. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/uni_app_home.js +0 -418
  108. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_admin.js +0 -78
  109. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create/vue_cli_home.js +0 -112
  110. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/create_file.js +0 -97
  111. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/add_data.js +0 -221
  112. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/create_table.js +0 -162
  113. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/db/set_auth_table.js +0 -86
  114. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/index.js +0 -524
  115. package/demo/app/dev/plugin/main/api_dev_manage/auto_subject/param.json +0 -37
  116. package/demo/app/route/app.js +0 -131
  117. package/demo/app/route/app.json +0 -11
  118. package/demo/app/route/event_api/client/event.json +0 -10
  119. package/demo/app/route/event_api/client/main.js +0 -19
  120. package/demo/app/route/event_api/manage/event.json +0 -18
  121. package/demo/app/route/event_api/manage/main.js +0 -70
  122. package/demo/app/route/plugin/main/api_route_client/pass/api.json +0 -37
  123. package/demo/app/route/plugin/main/api_route_client/pass/index.js +0 -33
  124. package/demo/app/route/plugin/main/api_route_client/pass/param.json +0 -50
  125. package/demo/app/route/plugin/main/index.js +0 -144
  126. package/demo/app/route/plugin/main/plugin.json +0 -20
  127. package/demo/app/sys/app.js +0 -169
  128. package/demo/app/sys/app.json +0 -11
  129. package/demo/app/sys/event_api/api/before.js +0 -80
  130. package/demo/app/sys/event_api/api/check.js +0 -103
  131. package/demo/app/sys/event_api/api/event.json +0 -31
  132. package/demo/app/sys/event_api/api/main.js +0 -19
  133. package/demo/app/sys/event_api/apis/before.js +0 -80
  134. package/demo/app/sys/event_api/apis/event.json +0 -21
  135. package/demo/app/sys/event_api/apis/main.js +0 -19
  136. package/demo/app/sys/event_api/client/event.json +0 -10
  137. package/demo/app/sys/event_api/client/main.js +0 -17
  138. package/demo/app/sys/event_api/doc/event.json +0 -18
  139. package/demo/app/sys/event_api/doc/main.js +0 -67
  140. package/demo/app/sys/event_api/img/event.json +0 -11
  141. package/demo/app/sys/event_api/img/main.js +0 -90
  142. package/demo/app/sys/event_api/manage/event.json +0 -10
  143. package/demo/app/sys/event_api/manage/main.js +0 -19
  144. package/demo/app/sys/event_api/upload/event.json +0 -10
  145. package/demo/app/sys/event_api/upload/main.js +0 -17
  146. package/demo/app/sys/plugin/app_admin/index.js +0 -127
  147. package/demo/app/sys/plugin/app_admin/plugin.json +0 -20
  148. package/demo/app/sys/plugin/main/api_client/config/api.json +0 -39
  149. package/demo/app/sys/plugin/main/api_client/config/index.js +0 -37
  150. package/demo/app/sys/plugin/main/api_client/config/param.json +0 -27
  151. package/demo/app/sys/plugin/main/api_client/config/sql.json +0 -70
  152. package/demo/app/sys/plugin/main/api_client/lang/api.json +0 -37
  153. package/demo/app/sys/plugin/main/api_client/lang/index.js +0 -27
  154. package/demo/app/sys/plugin/main/api_client/lang/param.json +0 -22
  155. package/demo/app/sys/plugin/main/api_client/nav/api.json +0 -15
  156. package/demo/app/sys/plugin/main/api_client/nav/index.js +0 -39
  157. package/demo/app/sys/plugin/main/api_client/nav/param.json +0 -87
  158. package/demo/app/sys/plugin/main/api_client/query/api.json +0 -35
  159. package/demo/app/sys/plugin/main/api_client/query/index.js +0 -48
  160. package/demo/app/sys/plugin/main/api_client/theme/api.json +0 -37
  161. package/demo/app/sys/plugin/main/api_client/theme/index.js +0 -30
  162. package/demo/app/sys/plugin/main/api_client/theme/param.json +0 -31
  163. package/demo/app/sys/plugin/main/api_client/translate/api.json +0 -39
  164. package/demo/app/sys/plugin/main/api_client/translate/index.js +0 -21
  165. package/demo/app/sys/plugin/main/api_client/translate/param.json +0 -130
  166. package/demo/app/sys/plugin/main/api_client/translate/sql.json +0 -62
  167. package/demo/app/sys/plugin/main/api_upload/image/api.json +0 -15
  168. package/demo/app/sys/plugin/main/api_upload/image/index.js +0 -62
  169. package/demo/app/sys/plugin/main/api_upload/image/param.json +0 -9
  170. package/demo/app/sys/plugin/main/task/task_demo/index.js +0 -37
  171. package/demo/app/sys/plugin/main/task/task_demo/task.json +0 -24
  172. package/demo/app/sys/plugin/user/index.js +0 -127
  173. package/demo/app/sys/plugin/user/plugin.json +0 -20
  174. package/demo/app/sys/plugin/user/static/img/logo.png +0 -0
  175. package/demo/app/sys/static/img/avatar_1674484608066.png +0 -0
  176. package/demo/app/sys/static/img/avatar_1674633778171.jpeg +0 -0
  177. package/demo/app/sys/static/img/avatar_1674962702334.jpeg +0 -0
  178. package/demo/app/sys/static/img/avatar_1675075431736.jpeg +0 -0
  179. package/demo/app/sys/static/img/avatar_1675497065533.jpeg +0 -0
  180. package/demo/app/sys/static/img/avatar_1685352550990.jpeg +0 -0
  181. package/demo/app/sys/static/img/avatar_1685353685992.jpeg +0 -0
  182. package/demo/app/sys/static/img/avatar_1685353956587.jpeg +0 -0
  183. package/demo/app/sys/static/img/avatar_1685353971148.jpeg +0 -0
  184. package/demo/app/sys/static/img/avatar_1685353983723.jpeg +0 -0
  185. package/demo/app/sys/static/img/avatar_1685354014745.jpeg +0 -0
  186. package/demo/app/sys/static/img/avatar_1685354122355.jpeg +0 -0
  187. package/demo/app/sys/static/img/avatar_1685357983520.jpeg +0 -0
  188. package/demo/app/sys/static/img/avatar_1685358453383.jpeg +0 -0
  189. package/demo/app/sys/static/img/avatar_1685416570438.jpeg +0 -0
  190. package/demo/app/sys/static/img/avatar_1685512675830.png +0 -0
  191. package/demo/app/sys/static/img/avatar_1685939425608.jpeg +0 -0
  192. package/demo/app/sys/static/img/avatar_1685939886560.jpeg +0 -0
  193. package/demo/app/sys/static/img/avatar_1686106313194.png +0 -0
  194. package/demo/app/sys/static/img/avatar_1686371876175.png +0 -0
  195. package/demo/app/sys/static/img/avatar_1686372033596.png +0 -0
  196. package/demo/app/sys/static/img/avatar_1688215220669.png +0 -0
  197. package/demo/app/sys/static/img/avatar_1688531184690.png +0 -0
  198. package/demo/app/sys/static/img/avatar_1688531233080.png +0 -0
  199. package/demo/app/sys/static/img/avatar_1688548526909.png +0 -0
  200. package/demo/app/sys/static/img/avatar_1688549213411.png +0 -0
  201. package/demo/app/sys/static/img/avatar_1688549511977.png +0 -0
  202. package/demo/app/sys/static/img/avatar_1688549685464.png +0 -0
  203. package/demo/app/sys/static/img/avatar_1688608623049.png +0 -0
  204. package/demo/app/sys/static/img/avatar_1688638500476.png +0 -0
  205. package/demo/app/sys/static/img/avatar_1688638515195.png +0 -0
  206. package/demo/app/sys/static/img/avatar_1688638539928.png +0 -0
  207. package/demo/app/sys/static/img/avatar_1688638557960.png +0 -0
  208. package/demo/app/sys/static/img/avatar_1688638761798.png +0 -0
  209. package/demo/app/sys/static/img/avatar_1688638943140.png +0 -0
  210. package/demo/app/sys/static/img/avatar_1688639068330.png +0 -0
  211. package/demo/app/sys/static/img/image_1685357101273.jpeg +0 -0
  212. package/demo/app/sys/static/img/logo.png +0 -0
  213. package/demo/app/user/app.js +0 -148
  214. package/demo/app/user/app.json +0 -11
  215. package/demo/app/user/event_api/client/event.json +0 -10
  216. package/demo/app/user/event_api/client/main.js +0 -18
  217. package/demo/app/user/event_api/manage/event.json +0 -10
  218. package/demo/app/user/event_api/manage/main.js +0 -19
  219. package/demo/app/user/plugin/main/api_user_client/account/api.json +0 -39
  220. package/demo/app/user/plugin/main/api_user_client/account/index.js +0 -53
  221. package/demo/app/user/plugin/main/api_user_client/account/param.json +0 -130
  222. package/demo/app/user/plugin/main/api_user_client/base/api.json +0 -27
  223. package/demo/app/user/plugin/main/api_user_client/base/index.js +0 -84
  224. package/demo/app/user/plugin/main/api_user_client/base/param.json +0 -130
  225. package/demo/app/user/plugin/main/api_user_client/core/api.json +0 -20
  226. package/demo/app/user/plugin/main/api_user_client/core/forgot.js +0 -14
  227. package/demo/app/user/plugin/main/api_user_client/core/password.js +0 -14
  228. package/demo/app/user/plugin/main/api_user_client/core/sign_out.js +0 -26
  229. package/demo/app/user/plugin/main/api_user_client/core/state.js +0 -21
  230. package/demo/app/user/plugin/main/api_user_client/count/api.json +0 -27
  231. package/demo/app/user/plugin/main/api_user_client/count/chongzhi.js +0 -103
  232. package/demo/app/user/plugin/main/api_user_client/count/index.js +0 -40
  233. package/demo/app/user/plugin/main/api_user_client/count/param.json +0 -40
  234. package/demo/app/user/plugin/main/api_user_client/forgot/api.json +0 -37
  235. package/demo/app/user/plugin/main/api_user_client/forgot/index - /345/211/257/346/234/254.jsbat" +0 -41
  236. package/demo/app/user/plugin/main/api_user_client/forgot/index.js +0 -36
  237. package/demo/app/user/plugin/main/api_user_client/forgot/param.json +0 -56
  238. package/demo/app/user/plugin/main/api_user_client/oauth/WXBizDataCrypt.js +0 -33
  239. package/demo/app/user/plugin/main/api_user_client/oauth/api.json +0 -31
  240. package/demo/app/user/plugin/main/api_user_client/oauth/index.js +0 -16
  241. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.js +0 -270
  242. package/demo/app/user/plugin/main/api_user_client/oauth/oauth.json +0 -88
  243. package/demo/app/user/plugin/main/api_user_client/oauth/param.json +0 -111
  244. package/demo/app/user/plugin/main/api_user_client/password/api.json +0 -21
  245. package/demo/app/user/plugin/main/api_user_client/password/index.js +0 -56
  246. package/demo/app/user/plugin/main/api_user_client/password/param.json +0 -44
  247. package/demo/app/user/plugin/main/api_user_client/phone_code/aliyun.js +0 -230
  248. package/demo/app/user/plugin/main/api_user_client/phone_code/api.json +0 -37
  249. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js +0 -18
  250. package/demo/app/user/plugin/main/api_user_client/phone_code/index.js_ +0 -230
  251. package/demo/app/user/plugin/main/api_user_client/phone_code/param.json +0 -58
  252. package/demo/app/user/plugin/main/api_user_client/phone_code/phone_code.js +0 -278
  253. package/demo/app/user/plugin/main/api_user_client/realname/api.json +0 -21
  254. package/demo/app/user/plugin/main/api_user_client/realname/index.js +0 -48
  255. package/demo/app/user/plugin/main/api_user_client/realname/param.json +0 -74
  256. package/demo/app/user/plugin/main/api_user_client/servicer/api.json +0 -29
  257. package/demo/app/user/plugin/main/api_user_client/servicer/index.js +0 -19
  258. package/demo/app/user/plugin/main/api_user_client/servicer/param.json +0 -41
  259. package/demo/app/user/plugin/main/api_user_client/servicer/sql.json +0 -113
  260. package/demo/app/user/plugin/main/api_user_client/set_address/api.json +0 -37
  261. package/demo/app/user/plugin/main/api_user_client/set_address/index.js +0 -101
  262. package/demo/app/user/plugin/main/api_user_client/set_address/param.json +0 -165
  263. package/demo/app/user/plugin/main/api_user_client/set_avatar/api.json +0 -35
  264. package/demo/app/user/plugin/main/api_user_client/set_avatar/index.js +0 -77
  265. package/demo/app/user/plugin/main/api_user_client/set_info/api.json +0 -35
  266. package/demo/app/user/plugin/main/api_user_client/set_info/index.js +0 -47
  267. package/demo/app/user/plugin/main/api_user_client/set_nickname/api.json +0 -35
  268. package/demo/app/user/plugin/main/api_user_client/set_nickname/index.js +0 -49
  269. package/demo/app/user/plugin/main/api_user_client/set_pay_password/api.json +0 -21
  270. package/demo/app/user/plugin/main/api_user_client/set_pay_password/index.js +0 -67
  271. package/demo/app/user/plugin/main/api_user_client/sign_in/api.json +0 -11
  272. package/demo/app/user/plugin/main/api_user_client/sign_in/index.js +0 -275
  273. package/demo/app/user/plugin/main/api_user_client/sign_in/param.json +0 -125
  274. package/demo/app/user/plugin/main/api_user_client/sign_in/state.js +0 -37
  275. package/demo/app/user/plugin/main/api_user_client/sign_up/api.json +0 -12
  276. package/demo/app/user/plugin/main/api_user_client/sign_up/index.js +0 -110
  277. package/demo/app/user/plugin/main/api_user_client/sign_up/param.json +0 -65
  278. package/demo/app/user/plugin/main/api_user_client/sign_up_in/api.json +0 -37
  279. package/demo/app/user/plugin/main/api_user_client/sign_up_in/index.js +0 -110
  280. package/demo/app/user/plugin/main/api_user_client/sign_up_in/param.json +0 -34
  281. package/demo/app/user/plugin/main/api_user_client/token/api.json +0 -25
  282. package/demo/app/user/plugin/main/api_user_client/token/index.js +0 -20
  283. package/demo/app/user/plugin/main/api_user_client/token/param.json +0 -16
  284. package/demo/app/user/plugin/main/api_user_manage/account_base/api.json +0 -37
  285. package/demo/app/user/plugin/main/api_user_manage/account_base/index.js +0 -40
  286. package/demo/app/user/plugin/main/api_user_manage/account_base/param.json +0 -130
  287. package/demo/app/user/plugin/main/api_user_manage/invitation_code/api.json +0 -37
  288. package/demo/app/user/plugin/main/api_user_manage/invitation_code/index.js +0 -106
  289. package/demo/app/user/plugin/main/api_user_manage/invitation_code/param.json +0 -130
  290. package/demo/app/user/plugin/main/api_user_manage/update_team/api.json +0 -35
  291. package/demo/app/user/plugin/main/api_user_manage/update_team/index.js +0 -218
  292. package/demo/app/user/plugin/main/api_user_manage/update_team/param.json +0 -130
  293. package/demo/app/user/static/img/logo.png +0 -0
  294. package/demo/app/ws/app.js +0 -122
  295. package/demo/app/ws/app.json +0 -11
  296. package/demo/app/ws/event_api/client/event.json +0 -10
  297. package/demo/app/ws/event_api/client/main.js +0 -17
  298. package/demo/app/ws/socket/ws/index.js +0 -43
  299. package/demo/app/ws/socket/ws/socket.json +0 -14
  300. package/demo/config/development.json +0 -95
  301. package/demo/config/face.sql +0 -3824
  302. package/demo/config/local.json +0 -80
  303. package/demo/index.js +0 -19
@@ -36,7 +36,10 @@ class Drive extends Item {
36
36
  this.param;
37
37
  // sql模板配置 + 函数
38
38
  this.sql;
39
+
39
40
  /* 通用项 */
41
+ // 默认启用热更新
42
+ this.mode = 2;
40
43
  // 配置参数
41
44
  this.config = {
42
45
  // 名称, 由中英文和下“_”组成, 用于修改或卸载 例如: demo
@@ -18,6 +18,8 @@ class Api extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "api";
20
20
  this.title = title;
21
+ // 默认启用热更新
22
+ this.mode = 2;
21
23
  }
22
24
  }
23
25
 
@@ -55,7 +57,7 @@ Api.prototype.run = async function(ctx, db) {
55
57
  for (var i = 0, o; o = lt[i++];) {
56
58
  if (o.config.state === 1 && path.has(o.config.path)) {
57
59
  var ret = await o.run(ctx, db);
58
- if (this.mode) {
60
+ if (this.mode > 2) {
59
61
  o.load(o.filename);
60
62
  }
61
63
  if (ret) {
@@ -14,7 +14,8 @@ class Drive extends Item {
14
14
  constructor(dir) {
15
15
  super(dir, __dirname);
16
16
  this.default_file = "./cmd.json";
17
-
17
+ // 默认启用热更新
18
+ this.mode = 2;
18
19
  // 开关 true为开启, false为关闭
19
20
  this.onOff = true;
20
21
 
@@ -21,6 +21,8 @@ class Cmd extends Index {
21
21
  this.list_before = [];
22
22
  this.list_main = [];
23
23
  this.list_after = [];
24
+ // 默认启用热更新
25
+ this.mode = 2;
24
26
  }
25
27
  }
26
28
 
@@ -15,7 +15,8 @@ class Drive extends Item {
15
15
  constructor(dir) {
16
16
  super(dir, __dirname);
17
17
  this.default_file = "./component.json";
18
-
18
+ // 默认启用热更新
19
+ this.mode = 2;
19
20
  /* 通用项 */
20
21
  // 配置参数
21
22
  this.config = {
@@ -19,6 +19,8 @@ class Component extends Index {
19
19
  this.type = "component";
20
20
  this.title = title;
21
21
  this.list = [];
22
+ // 默认启用热更新
23
+ this.mode = 2;
22
24
  }
23
25
  }
24
26
 
@@ -14,7 +14,7 @@ class Drive extends Item {
14
14
  constructor(dir) {
15
15
  super(dir, __dirname);
16
16
  this.default_file = "./event.json";
17
-
17
+
18
18
  /* 通用项 */
19
19
  // 配置参数
20
20
  this.config = {
@@ -18,7 +18,8 @@ class Event extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "event";
20
20
  this.title = title;
21
-
21
+ // 默认启用热更新
22
+ this.mode = 2;
22
23
  /* === 验证 === */
23
24
  // 验证前
24
25
  this.list_before = [];
@@ -149,7 +150,7 @@ Event.prototype.doing = async function(o, ctx, db) {
149
150
  if (types.isPromise(ret)) {
150
151
  ret = await ret;
151
152
  }
152
- if (this.mode) {
153
+ if (this.mode > 2) {
153
154
  o.load(o.filename);
154
155
  }
155
156
  return ret;
@@ -167,7 +168,7 @@ Event.prototype.run_sub = async function(list, target, ctx, db) {
167
168
  for (var i = 0, o; o = list[i++];) {
168
169
  if (o.config.state === 1 && target.has(o.config.target)) {
169
170
  var ret = await o.run(ctx, db);
170
- if (this.mode) {
171
+ if (this.mode > 2) {
171
172
  o.load(o.filename);
172
173
  }
173
174
  if (ret) {
@@ -151,7 +151,7 @@ Eventer.prototype.doing = async function(o, ...msg) {
151
151
  if (types.isPromise(ret)) {
152
152
  ret = await ret;
153
153
  }
154
- if (this.mode) {
154
+ if (this.mode > 2) {
155
155
  o.load(o.filename);
156
156
  }
157
157
  } catch (err) {
@@ -28,7 +28,8 @@ class Drive extends Item {
28
28
 
29
29
  // 模板路径
30
30
  this.tpl_path = "./tpl/";
31
-
31
+ // 默认启用热更新
32
+ this.mode = 2;
32
33
  /* 通用项 */
33
34
  // 配置参数
34
35
  this.config = {
@@ -563,4 +564,4 @@ Drive.prototype.update_vue = async function(route_path, cover) {
563
564
  }
564
565
  };
565
566
 
566
- module.exports = Drive;
567
+ module.exports = Drive;
@@ -18,6 +18,8 @@ class Nav extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "nav";
20
20
  this.title = title;
21
+ // 默认启用热更新
22
+ this.mode = 2;
21
23
  }
22
24
  }
23
25
 
@@ -13,7 +13,8 @@ class Drive extends Item {
13
13
  constructor(dir) {
14
14
  super(dir, __dirname);
15
15
  this.default_file = "./param.json";
16
-
16
+ // 默认启用热更新
17
+ this.mode = 2;
17
18
  /* 通用项 */
18
19
  // 配置参数
19
20
  this.config = {
@@ -18,6 +18,8 @@ class Param extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "param";
20
20
  this.title = title;
21
+ // 默认启用热更新
22
+ this.mode = 2;
21
23
  }
22
24
  }
23
25
 
@@ -17,7 +17,8 @@ class Drive extends Item {
17
17
  constructor(dir) {
18
18
  super(dir, __dirname);
19
19
  this.default_file = "./plugin.json";
20
-
20
+ // 默认启用热更新
21
+ this.mode = 2;
21
22
  /**
22
23
  * 当前语言
23
24
  */
@@ -19,6 +19,8 @@ class Plugin extends Index {
19
19
  this.Drive = Drive;
20
20
  this.type = "plugin";
21
21
  this.title = title;
22
+ // 默认启用热更新
23
+ this.mode = 2;
22
24
  }
23
25
  }
24
26
 
@@ -19,7 +19,8 @@ class Drive extends Item {
19
19
  this.save_dir = './file/';
20
20
  // 读取文件目录
21
21
  this.url_path = "/file/";
22
-
22
+ // 默认启用热更新
23
+ this.mode = 2;
23
24
  /* 通用项 */
24
25
  this.params = null;
25
26
  // 配置参数
@@ -18,6 +18,8 @@ class Sql extends Index {
18
18
  this.Drive = Drive;
19
19
  this.type = "sql";
20
20
  this.title = title;
21
+ // 默认启用热更新
22
+ this.mode = 2;
21
23
  }
22
24
  }
23
25
 
@@ -66,7 +68,7 @@ Sql.prototype.run = async function(name, query, body, db) {
66
68
  var obj = this.get(name);
67
69
  if (obj) {
68
70
  var ret = await obj.run(query, body, db);
69
- if (this.mode) {
71
+ if (this.mode > 2) {
70
72
  o.load(o.filename);
71
73
  }
72
74
  return ret;
@@ -74,7 +74,7 @@ class Drive extends Item {
74
74
  }
75
75
  }
76
76
  if (this.config.convert_amd) {
77
- this.mode(true);
77
+ this.run_mode(true);
78
78
  }
79
79
  }
80
80
  }
@@ -95,7 +95,7 @@ Drive.prototype.loadObj = function(obj) {
95
95
  $.push(this.config, obj, true);
96
96
  var cg = this.config;
97
97
  if (cg.convert_amd) {
98
- this.mode(true);
98
+ this.run_mode(true);
99
99
  }
100
100
  var f = cg.func_file;
101
101
  if (f) {
@@ -142,10 +142,10 @@ Drive.prototype.main = async function(ctx, path) {
142
142
  Drive.prototype.after = async function(ctx, path) {};
143
143
 
144
144
  /**
145
- * 切换模式
145
+ * 切换运行模式
146
146
  * @param {Boolean} convert_amd 是否将ES6转换AMD
147
147
  */
148
- Drive.prototype.mode = async function(convert_amd) {
148
+ Drive.prototype.run_mode = async function(convert_amd) {
149
149
  var cg = this.config;
150
150
  if (convert_amd) {
151
151
  this.main = async function main(ctx, path) {
@@ -61,7 +61,10 @@ Task.prototype.load_item = function(dir, cg, file) {
61
61
  var drive = new this.Drive(dir);
62
62
  drive.loadObj(cg);
63
63
  drive.filename = file;
64
- drive.task_admin = this;
64
+ var _this = this;
65
+ drive.admin() = function() {
66
+ return this;
67
+ };
65
68
  this.list.push(drive);
66
69
  };
67
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "mm_html": "^1.1.6",
43
43
  "mm_koa_proxy": "^1.0.0",
44
44
  "mm_logs": "^1.1.7",
45
- "mm_machine": "^1.8.5",
45
+ "mm_machine": "^1.8.9",
46
46
  "mm_mongodb": "^1.4.2",
47
47
  "mm_mqtt": "^1.0.6",
48
48
  "mm_mysql": "^1.8.9",
@@ -1 +0,0 @@
1
- ## 开发者工具
@@ -1,149 +0,0 @@
1
- /**
2
- * @fileOverview dev
3
- * @author <a href="作者主页地址">插件作者</a>
4
- * @version 1.0
5
- */
6
-
7
-
8
-
9
- /**
10
- * @description 插件对象
11
- */
12
- module.exports = {
13
- /**
14
- * @description 初始化
15
- * @param {Object} option 配置参数
16
- * @return {String} 成功返回null, 否则返回错误提示
17
- */
18
- init(option) {
19
- // 创建插件
20
- this.plugin = $.plugin_admin('dev');
21
- this.plugin.update(__dirname);
22
- var msg = null;
23
- return msg;
24
- },
25
-
26
- /**
27
- * @description 安装
28
- * @param {Object} option 配置参数
29
- * @return {String} 成功返回null,否则返回错误提示
30
- */
31
- install(option) {
32
- var msg = null;
33
- return msg;
34
- },
35
-
36
- /**
37
- * @description 卸载
38
- * @param {Object} option 配置参数
39
- * @return {String} 成功返回null,否则返回错误提示
40
- */
41
- uninstall(option) {
42
- var msg = null;
43
- return msg;
44
- },
45
-
46
- /**
47
- * @description 更新
48
- * @param {Object} option 配置参数
49
- * @return {String} 成功返回null, 否则返回错误提示
50
- */
51
- update(option) {
52
- var msg = null;
53
- return msg;
54
- },
55
-
56
- /**
57
- * @description 启动
58
- * @param {Object} opiton 配置参数
59
- * @return {String} 成功返回null,否则返回错误提示
60
- */
61
- start(option) {
62
- var msg = null;
63
- return msg;
64
- },
65
-
66
- /**
67
- * @description 暂停
68
- * @param {Object} opiton 配置参数
69
- * @return {String} 成功返回null,否则返回错误提示
70
- */
71
- stop(option) {
72
- var msg = null;
73
- return msg;
74
- },
75
-
76
- /**
77
- * @description 结束
78
- * @param {Object} opiton 配置参数
79
- * @return {String} 成功返回null,否则返回错误提示
80
- */
81
- end(option) {
82
- var msg = null;
83
- return msg;
84
- },
85
-
86
- /**
87
- * @description 插件
88
- * @param {String} item 插件项
89
- * @return {Object} 旗下插件和信息
90
- */
91
- help(item) {
92
- var tip = "";
93
- switch (item) {
94
- case "run":
95
- break;
96
- default:
97
- break;
98
- }
99
- return tip;
100
- },
101
-
102
- /**
103
- * @description 主程序
104
- * @param {Object} param1 参数1
105
- * @param {Object} param2 参数2
106
- * @return {Object} 返回执行结果
107
- */
108
- main(param1, param2) {
109
- var ret = null;
110
- return ret;
111
- },
112
-
113
- /**
114
- * @description 指令(类似命令提示符)
115
- * @param {String} content 指令内容
116
- * @return {String} 执行结果
117
- */
118
- cmd(content) {
119
- var ret = "";
120
- return ret;
121
- },
122
-
123
- /**
124
- * @description API接口(用于其他插件调用该插件时)
125
- * @param {Object} ctx HTTP上下文
126
- * @param {Object} db 数据库管理器
127
- * @return {Object} 执行结果
128
- */
129
- api(ctx, db) {
130
- var ret = "";
131
- return ret;
132
- },
133
-
134
- /**
135
- * @description 聊天(通过聊天的方式驱动插件, 用于机器人开发)
136
- * @param {String} from_user 发送消息人
137
- * @param {String} to_user 接收消息人
138
- * @param {String} content 内容
139
- * @param {String} group 群组 如果是个人,群组为空
140
- * @param {Number} type 群类型, 1永久会话/群、2临时会话/群
141
- * @param {String} msg_type 消息类型, event事件型、message消息型。默认消息型
142
- * @param {Object} 数据管理器
143
- * @return {String} 回复内容
144
- */
145
- async chat(from_user, to_user, group, content, type, msg_type, db) {
146
- var ret = "";
147
- return ret;
148
- }
149
- };
@@ -1,12 +0,0 @@
1
- {
2
- "name": "dev",
3
- "title": "开发者",
4
- "description": "该应用便于开发和管理飞鸟云算力服务端,可管理“应用、插件、事件、接口、任务、数据库”等",
5
- "version": "1.0",
6
- "identifier": "dev",
7
- "lang_path": "./lang/",
8
- "icon": "/dev/img/logo.png",
9
- "script": "./app.js",
10
- "sort": 10,
11
- "state": 1
12
- }
@@ -1,11 +0,0 @@
1
- {
2
- "target": "/api/dev*",
3
- "name": "dev_client",
4
- "title": "开发者客户端调用的接口事件",
5
- "description": "用于开发者访问服务端时调用的接口",
6
- "stage": "main",
7
- "state": 1,
8
- "func_file": "./main.js",
9
- "sort": 99,
10
- "end": true
11
- }
@@ -1,19 +0,0 @@
1
- var api = $.api_admin('dev_client', '开发者专用');
2
- // 首次启动更新api接口;
3
- api.update('dev/');
4
-
5
- var sql = $.mysql_admin('sys', __dirname);
6
-
7
- /**
8
- * @description 接口主函数
9
- * @param {Object} ctx HTTP上下文
10
- * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
11
- * @return {Object} 执行结果
12
- */
13
- async function main(ctx, db) {
14
- // 在这定义要访问的数据库 (分布式开发时设置不同的数据库名)
15
- $.push(db, sql.db(), true);
16
- return api.run(ctx, db);
17
- };
18
-
19
- exports.main = main;
@@ -1,19 +0,0 @@
1
- [{
2
- // 目标对象
3
- "target": "/apis/dev*",
4
- // 事件名称, 用于动态增删改
5
- "name": "dev_manage",
6
- // 标题, 用于开发者查看事件
7
- "title": "示例事件",
8
- // 描述, 用于介绍该事件是做什么用的
9
- "description": "描述事件使用方法",
10
- // 阶段, 分执行前before、验证check、主要main、渲染render、执行后after阶段
11
- "stage": "main",
12
- "state": 1,
13
- // 响应方法 GET请求、POST请求、ALL所有请求,如果非API事件可自定义
14
- "method": "ALL",
15
- // 函数文件, 当事件触发时执行指定的脚本
16
- "func_file": "./main.js",
17
- // 执行顺序, 数值越小越优先执行
18
- "sort": 100
19
- }]
@@ -1,26 +0,0 @@
1
- // 使用api管理器
2
- var api = $.api_admin('dev_manage', 'dev_manage');
3
- // 首次启动更新api接口;
4
- api.update();
5
-
6
- // 使用mysql数据库管理器
7
- var sql = $.mysql_admin('sys', __dirname);
8
- // sql.setConfig($.config.mysql);
9
- // sql.open();
10
-
11
- /**
12
- * @description 接口主函数
13
- * @param {Object} ctx HTTP上下文
14
- * @param {Object} db 数据管理器,如: { next: async function{}, ret: {} }
15
- * @return {Object} 执行结果
16
- */
17
- async function main(ctx, db) {
18
- // 使用模板引擎
19
- db.tpl = new $.Tpl();
20
-
21
- // 在这定义要访问的数据库 (分布式开发时设置不同的数据库名)
22
- $.push(db, sql.db(), true);
23
- return api.run(ctx, db);
24
- };
25
-
26
- exports.main = main;
@@ -1,144 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta http-equiv="x-dns-prefetch-control" content="on">
8
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
9
- <meta name="format-detection" content="telephone=no">
10
- <meta name="apple-mobile-web-app-capable" content="yes">
11
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
12
- <meta name="description" content="这是web API文档">
13
- <meta name="keywords" content="开发文档">
14
- <meta name="author" content="邱文武">
15
-
16
- <!-- 加载CSS样式 -->
17
- <link rel="stylesheet" href="/css/font-awesome.min.css" async />
18
- <link rel="stylesheet" href="/css/mm_base.css" async />
19
- <link rel="stylesheet" href="/css/mm_layout.css" async />
20
- <link rel="stylesheet" href="/css/mm_common.css" async />
21
- <link rel="stylesheet" href="/css/mm_component.css" async />
22
- <link rel="stylesheet" href="/css/mm_theme.css" async />
23
-
24
- <!-- 加载JS脚本 -->
25
- <script src="/js/jquery.min.js"></script>
26
- <script src="/js/clipboard.min.js" async></script>
27
- <script src="/js/vue.js"></script>
28
- <script src="/js/mm_sdk.js"></script>
29
-
30
- <title>接口列表</title>
31
- <style>
32
- body {
33
- background: #fff;
34
- }
35
-
36
- main {
37
- padding: 2rem;
38
- }
39
-
40
- #app h4 {
41
- padding-bottom: 0.5rem;
42
- border-bottom: 1px solid rgba(125, 125, 125, 0.25);
43
- margin-bottom: 1rem;
44
- }
45
-
46
- .scope_list {
47
- padding-left: 2rem;
48
- }
49
-
50
- .desc {
51
- margin-bottom: 2rem;
52
- }
53
-
54
- .mm_btn {
55
- border: 1px solid var(--color_border);
56
- }
57
-
58
- h4 a {
59
- font-size: 0.875rem;
60
- padding-top: 0.5rem;
61
- }
62
- </style>
63
- </head>
64
- <body>
65
- <div id="app">
66
- <div class="mm_page">
67
- <main>
68
- <div class="mm_warp">
69
- <h4>API接口文档 —— <span>列表</span> <a class="fr" href="./">选择域</a></h4>
70
- <p class="desc">所有的API接口都作用在不同的域下,您可以点击以下域,访问该域下的接口列表</p>
71
- <table class="mm_table table-hover" v-if="list.length">
72
- <thead>
73
- <tr>
74
- <th>#</th>
75
- <th width="200">名称</th>
76
- <th width="200">标题</th>
77
- <th>描述</th>
78
- <th width="80">操作</th>
79
- </tr>
80
- </thead>
81
- <tbody>
82
- <tr v-for="(o, k) in list" :key="k">
83
- <th>{{ k + 1 }}</th>
84
- <td><a :href="'./api_view.html?scope=' + query.scope + '&name=' + o.name">{{ o.name }}</a></td>
85
- <td>{{ o.title }}</td>
86
- <td>{{ o.description }}</td>
87
- <td><a class="mm_btn btn_info-x" :href="'./api_view.html?scope=' + query.scope + '&name=' + o.name">查看</a></td>
88
- </tr>
89
- </tbody>
90
- </table>
91
- <div v-else class="desc center">
92
- 该域下没有定义API接口
93
- </div>
94
- </div>
95
- </main>
96
- </div>
97
- </div>
98
- <script>
99
- var vue = new Vue({
100
- el: '#app',
101
- data() {
102
- return {
103
- url: "/api/dev_api?",
104
- query: {
105
- scope: "client"
106
- },
107
- list: []
108
- }
109
- },
110
- methods: {
111
- get_list() {
112
- var _this = this;
113
- $.http.get(this.url + $.toUrl(this.query), function(json, status) {
114
- _this.get_list_after(json);
115
- });
116
- },
117
- get_list_after(json) {
118
- if (json.result) {
119
- var list = this.list;
120
- list.clear();
121
- list.addList(json.result.list);
122
- }
123
- }
124
- },
125
- created() {
126
- var arr = location.search.split("&");
127
- var len = arr.length;
128
- if (len > 0) {
129
- for (var i = 0; i < len; i++) {
130
- var o = arr[i];
131
- if (o.indexOf('scope') !== -1) {
132
- var ar = o.split("=");
133
- if (ar.length > 1) {
134
- this.query.scope = ar[1];
135
- }
136
- };
137
- }
138
- }
139
- this.get_list();
140
- }
141
- });
142
- </script>
143
- </body>
144
- </html>