mm_os 1.3.4 → 1.3.6

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 (368) hide show
  1. package/README.en.md +36 -0
  2. package/README.md +25 -166
  3. package/conf.json +3 -0
  4. package/core/base/index.js +29 -0
  5. package/core/base/mqtt/index.js +268 -0
  6. package/core/base/mqtt/lib.js +40 -0
  7. package/core/base/web/index.js +110 -0
  8. package/core/com/api/com.json +4 -0
  9. package/{bin → core}/com/api/config.tpl.json +9 -7
  10. package/{bin → core}/com/api/drive.js +239 -64
  11. package/{bin → core}/com/api/index.js +8 -9
  12. package/{bin → core}/com/api/oauth.js +23 -14
  13. package/core/com/api/script.js +32 -0
  14. package/core/com/db/com.json +4 -0
  15. package/{bin → core}/com/db/drive.js +99 -65
  16. package/{bin → core}/com/db/index.js +2 -2
  17. package/core/com/event/com.json +4 -0
  18. package/{bin → core}/com/event/config.tpl.json +2 -2
  19. package/core/com/event/drive.js +125 -0
  20. package/{bin → core}/com/event/index.js +5 -10
  21. package/core/com/event/script.js +26 -0
  22. package/core/com/eventer/com.js +450 -0
  23. package/core/com/eventer/com.json +4 -0
  24. package/core/com/middleware/com.js +128 -0
  25. package/core/com/middleware/com.json +4 -0
  26. package/core/com/middleware/config.tpl.json +8 -0
  27. package/core/com/middleware/script.js +9 -0
  28. package/core/com/mqtt/com.json +4 -0
  29. package/core/com/mqtt/config.tpl.json +12 -0
  30. package/core/com/mqtt/drive.js +139 -0
  31. package/core/com/mqtt/index.js +138 -0
  32. package/core/com/mqtt/script.js +33 -0
  33. package/core/com/msg/com.js +296 -0
  34. package/core/com/msg/com.json +4 -0
  35. package/{bin → core}/com/nav/drive.js +42 -17
  36. package/{bin → core}/com/nav/index.js +4 -4
  37. package/core/com/nav/tpl/admin_pc/page_channel.vue +299 -0
  38. package/core/com/nav/tpl/admin_pc/page_config.vue +279 -0
  39. package/core/com/nav/tpl/admin_pc/page_config_form.vue +194 -0
  40. package/core/com/nav/tpl/admin_pc/page_default.vue +287 -0
  41. package/core/com/nav/tpl/admin_pc/page_form.vue +180 -0
  42. package/core/com/nav/tpl/admin_pc/page_lang.vue +265 -0
  43. package/core/com/nav/tpl/admin_pc/page_nav.vue +313 -0
  44. package/core/com/nav/tpl/admin_pc/page_table.vue +285 -0
  45. package/core/com/nav/tpl/admin_pc/page_type.vue +313 -0
  46. package/core/com/nav/tpl/dev_pc/page_channel.vue +253 -0
  47. package/core/com/nav/tpl/dev_pc/page_config.vue +253 -0
  48. package/core/com/nav/tpl/dev_pc/page_default.vue +247 -0
  49. package/core/com/nav/tpl/dev_pc/page_form.vue +162 -0
  50. package/core/com/nav/tpl/dev_pc/page_nav.vue +253 -0
  51. package/core/com/nav/tpl/dev_pc/page_table.vue +247 -0
  52. package/core/com/nav/tpl/dev_pc/page_type.vue +253 -0
  53. package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_channel.vue +231 -231
  54. package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_default.vue +231 -231
  55. package/{bin → core}/com/nav/tpl/home_pc/page_form.vue +9 -9
  56. package/{bin → core}/com/nav/tpl/home_pc/page_list.vue +231 -231
  57. package/{bin → core}/com/nav/tpl/home_pc/page_nav.vue +221 -221
  58. package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_type.vue +231 -231
  59. package/{bin → core}/com/nav/tpl/home_pc/page_view.vue +8 -8
  60. package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_channel.vue +231 -231
  61. package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_default.vue +231 -231
  62. package/{bin → core}/com/nav/tpl/home_phone/page_form.vue +9 -9
  63. package/{bin → core}/com/nav/tpl/home_phone/page_list.vue +231 -231
  64. package/{bin/com/nav/tpl/admin_pc → core/com/nav/tpl/home_phone}/page_nav.vue +236 -220
  65. package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_type.vue +231 -231
  66. package/{bin → core}/com/nav/tpl/home_phone/page_view.vue +8 -8
  67. package/core/com/nav/viewmodel.js +296 -0
  68. package/{bin → core}/com/param/config.tpl.json +24 -0
  69. package/{bin → core}/com/param/drive.js +47 -15
  70. package/core/com/plugin/com.json +4 -0
  71. package/core/com/plugin/config.tpl.json +20 -0
  72. package/{bin → core}/com/plugin/drive.js +5 -8
  73. package/{bin → core}/com/plugin/index.js +11 -56
  74. package/core/com/socket/README.md +47 -0
  75. package/core/com/socket/com.json +4 -0
  76. package/core/com/socket/config.tpl.json +14 -0
  77. package/{bin → core}/com/socket/drive.js +74 -51
  78. package/{bin → core}/com/socket/index.js +4 -2
  79. package/{bin → core}/com/socket/script.js +8 -6
  80. package/core/com/sql/config.tpl.json +70 -0
  81. package/{bin → core}/com/sql/drive.js +281 -58
  82. package/core/com/static/com.json +4 -0
  83. package/core/com/static/config.tpl.json +20 -0
  84. package/{bin → core}/com/static/drive.js +6 -4
  85. package/{bin → core}/com/static/index.js +5 -1
  86. package/core/com/task/com.json +4 -0
  87. package/core/com/task/config.tpl.json +24 -0
  88. package/core/com/task/drive.js +374 -0
  89. package/{bin → core}/com/task/index.js +14 -20
  90. package/core/com/task/script.js +37 -0
  91. package/core/com/timer/com.js +217 -0
  92. package/core/com/timer/com.json +4 -0
  93. package/core/com/tpl/com.js +19 -0
  94. package/core/com/tpl/com.json +4 -0
  95. package/index.js +161 -740
  96. package/lib/actions.js +50 -0
  97. package/lib/app.js +73 -0
  98. package/lib/base.js +355 -0
  99. package/lib/com.js +31 -0
  100. package/lib/game.js +31 -0
  101. package/lib/ref.js +121 -0
  102. package/middleware/cors/index.js +57 -0
  103. package/middleware/cors/middleware.json +7 -0
  104. package/middleware/mqtt_base/index.js +10 -0
  105. package/middleware/mqtt_base/middleware.json +8 -0
  106. package/{waf.js → middleware/waf/index.js} +12 -2
  107. package/middleware/waf/middleware.json +9 -0
  108. package/middleware/web_base/index.js +67 -0
  109. package/middleware/web_base/middleware.json +9 -0
  110. package/middleware/web_event/index.js +411 -0
  111. package/middleware/web_event/middleware.json +10 -0
  112. package/middleware/web_proxy/index.js +24 -0
  113. package/middleware/web_proxy/middleware.json +9 -0
  114. package/middleware/web_router/index.js +33 -0
  115. package/middleware/web_router/middleware.json +10 -0
  116. package/middleware/web_socket/index.js +21 -0
  117. package/middleware/web_socket/middleware.json +9 -0
  118. package/middleware/web_static/index.js +26 -0
  119. package/middleware/web_static/middleware.json +9 -0
  120. package/nodemon.json +12 -2
  121. package/package.json +56 -66
  122. package/.gitattributes +0 -5
  123. package/bin/com/README.md +0 -2
  124. package/bin/com/api/script.js +0 -14
  125. package/bin/com/cmd/README.md +0 -3
  126. package/bin/com/cmd/config.tpl.json +0 -41
  127. package/bin/com/cmd/drive.js +0 -512
  128. package/bin/com/cmd/index.js +0 -213
  129. package/bin/com/cmd/old/5w2h.js +0 -54
  130. package/bin/com/cmd/old/drive.js +0 -423
  131. package/bin/com/cmd/script.js +0 -11
  132. package/bin/com/event/drive.js +0 -69
  133. package/bin/com/event/script.js +0 -12
  134. package/bin/com/nav/tpl/admin_pc/page_channel.vue +0 -234
  135. package/bin/com/nav/tpl/admin_pc/page_default.vue +0 -236
  136. package/bin/com/nav/tpl/admin_pc/page_form.vue +0 -152
  137. package/bin/com/nav/tpl/admin_pc/page_table.vue +0 -236
  138. package/bin/com/nav/tpl/admin_pc/page_type.vue +0 -234
  139. package/bin/com/nav/tpl/home_phone/page_nav.vue +0 -221
  140. package/bin/com/nav/viewmodel.js +0 -161
  141. package/bin/com/plugin/config.tpl.json +0 -11
  142. package/bin/com/socket/config.tpl.json +0 -8
  143. package/bin/com/sql/config.tpl.json +0 -34
  144. package/bin/com/static/config.tpl.json +0 -11
  145. package/bin/com/task/config.tpl.json +0 -13
  146. package/bin/com/task/drive.js +0 -288
  147. package/bin/com/task/script.js +0 -38
  148. package/bin/com.js +0 -74
  149. package/bin/mm.conf +0 -48
  150. package/bin/static/404.html +0 -52
  151. package/bin/static/README.md +0 -1
  152. package/bin/static/css/font-awesome.min.css +0 -7
  153. package/bin/static/css/mm_base.css +0 -220
  154. package/bin/static/css/mm_common.css +0 -518
  155. package/bin/static/css/mm_component.css +0 -307
  156. package/bin/static/css/mm_expand.css +0 -634
  157. package/bin/static/css/mm_theme.css +0 -291
  158. package/bin/static/css/new_file.css +0 -79
  159. package/bin/static/css/swiper.min.css +0 -12
  160. package/bin/static/favicon.ico +0 -0
  161. package/bin/static/font/FontAwesome.otf +0 -0
  162. package/bin/static/font/HelveticaNeue.eot +0 -0
  163. package/bin/static/font/HelveticaNeue.otf +0 -0
  164. package/bin/static/font/HelveticaNeue.svg +0 -1273
  165. package/bin/static/font/HelveticaNeue.woff +0 -0
  166. package/bin/static/font/HelveticaNeue.woff2 +0 -0
  167. package/bin/static/font/fontawesome-webfont.eot +0 -0
  168. package/bin/static/font/fontawesome-webfont.svg +0 -2671
  169. package/bin/static/font/fontawesome-webfont.ttf +0 -0
  170. package/bin/static/font/fontawesome-webfont.woff +0 -0
  171. package/bin/static/font/fontawesome-webfont.woff2 +0 -0
  172. package/bin/static/h5.html +0 -325
  173. package/bin/static/highlight/highlight.pack.js +0 -2
  174. package/bin/static/highlight/styles/a11y-dark.css +0 -99
  175. package/bin/static/highlight/styles/a11y-light.css +0 -99
  176. package/bin/static/highlight/styles/agate.css +0 -108
  177. package/bin/static/highlight/styles/an-old-hope.css +0 -89
  178. package/bin/static/highlight/styles/androidstudio.css +0 -66
  179. package/bin/static/highlight/styles/arduino-light.css +0 -88
  180. package/bin/static/highlight/styles/arta.css +0 -73
  181. package/bin/static/highlight/styles/ascetic.css +0 -45
  182. package/bin/static/highlight/styles/atelier-cave-dark.css +0 -83
  183. package/bin/static/highlight/styles/atelier-cave-light.css +0 -85
  184. package/bin/static/highlight/styles/atelier-dune-dark.css +0 -69
  185. package/bin/static/highlight/styles/atelier-dune-light.css +0 -69
  186. package/bin/static/highlight/styles/atelier-estuary-dark.css +0 -84
  187. package/bin/static/highlight/styles/atelier-estuary-light.css +0 -84
  188. package/bin/static/highlight/styles/atelier-forest-dark.css +0 -69
  189. package/bin/static/highlight/styles/atelier-forest-light.css +0 -69
  190. package/bin/static/highlight/styles/atelier-heath-dark.css +0 -69
  191. package/bin/static/highlight/styles/atelier-heath-light.css +0 -69
  192. package/bin/static/highlight/styles/atelier-lakeside-dark.css +0 -69
  193. package/bin/static/highlight/styles/atelier-lakeside-light.css +0 -69
  194. package/bin/static/highlight/styles/atelier-plateau-dark.css +0 -84
  195. package/bin/static/highlight/styles/atelier-plateau-light.css +0 -84
  196. package/bin/static/highlight/styles/atelier-savanna-dark.css +0 -84
  197. package/bin/static/highlight/styles/atelier-savanna-light.css +0 -84
  198. package/bin/static/highlight/styles/atelier-seaside-dark.css +0 -69
  199. package/bin/static/highlight/styles/atelier-seaside-light.css +0 -69
  200. package/bin/static/highlight/styles/atelier-sulphurpool-dark.css +0 -69
  201. package/bin/static/highlight/styles/atelier-sulphurpool-light.css +0 -69
  202. package/bin/static/highlight/styles/atom-one-dark-reasonable.css +0 -77
  203. package/bin/static/highlight/styles/atom-one-dark.css +0 -96
  204. package/bin/static/highlight/styles/atom-one-light.css +0 -96
  205. package/bin/static/highlight/styles/brown-paper.css +0 -64
  206. package/bin/static/highlight/styles/brown-papersq.png +0 -0
  207. package/bin/static/highlight/styles/codepen-embed.css +0 -60
  208. package/bin/static/highlight/styles/color-brewer.css +0 -71
  209. package/bin/static/highlight/styles/darcula.css +0 -77
  210. package/bin/static/highlight/styles/dark.css +0 -63
  211. package/bin/static/highlight/styles/darkula.css +0 -6
  212. package/bin/static/highlight/styles/default.css +0 -99
  213. package/bin/static/highlight/styles/docco.css +0 -97
  214. package/bin/static/highlight/styles/dracula.css +0 -76
  215. package/bin/static/highlight/styles/far.css +0 -71
  216. package/bin/static/highlight/styles/foundation.css +0 -88
  217. package/bin/static/highlight/styles/github-gist.css +0 -79
  218. package/bin/static/highlight/styles/github.css +0 -99
  219. package/bin/static/highlight/styles/gml.css +0 -78
  220. package/bin/static/highlight/styles/googlecode.css +0 -89
  221. package/bin/static/highlight/styles/grayscale.css +0 -101
  222. package/bin/static/highlight/styles/gruvbox-dark.css +0 -108
  223. package/bin/static/highlight/styles/gruvbox-light.css +0 -108
  224. package/bin/static/highlight/styles/hopscotch.css +0 -83
  225. package/bin/static/highlight/styles/hybrid.css +0 -102
  226. package/bin/static/highlight/styles/idea.css +0 -97
  227. package/bin/static/highlight/styles/ir-black.css +0 -73
  228. package/bin/static/highlight/styles/isbl-editor-dark.css +0 -112
  229. package/bin/static/highlight/styles/isbl-editor-light.css +0 -112
  230. package/bin/static/highlight/styles/kimbie.dark.css +0 -74
  231. package/bin/static/highlight/styles/kimbie.light.css +0 -74
  232. package/bin/static/highlight/styles/lightfair.css +0 -87
  233. package/bin/static/highlight/styles/magula.css +0 -70
  234. package/bin/static/highlight/styles/mono-blue.css +0 -59
  235. package/bin/static/highlight/styles/monokai-sublime.css +0 -83
  236. package/bin/static/highlight/styles/monokai.css +0 -70
  237. package/bin/static/highlight/styles/nord.css +0 -309
  238. package/bin/static/highlight/styles/obsidian.css +0 -88
  239. package/bin/static/highlight/styles/ocean.css +0 -74
  240. package/bin/static/highlight/styles/paraiso-dark.css +0 -72
  241. package/bin/static/highlight/styles/paraiso-light.css +0 -72
  242. package/bin/static/highlight/styles/pojoaque.css +0 -83
  243. package/bin/static/highlight/styles/pojoaque.jpg +0 -0
  244. package/bin/static/highlight/styles/purebasic.css +0 -96
  245. package/bin/static/highlight/styles/qtcreator_dark.css +0 -83
  246. package/bin/static/highlight/styles/qtcreator_light.css +0 -83
  247. package/bin/static/highlight/styles/railscasts.css +0 -106
  248. package/bin/static/highlight/styles/rainbow.css +0 -85
  249. package/bin/static/highlight/styles/routeros.css +0 -108
  250. package/bin/static/highlight/styles/school-book.css +0 -69
  251. package/bin/static/highlight/styles/school-book.png +0 -0
  252. package/bin/static/highlight/styles/shades-of-purple.css +0 -97
  253. package/bin/static/highlight/styles/solarized-dark.css +0 -84
  254. package/bin/static/highlight/styles/solarized-light.css +0 -84
  255. package/bin/static/highlight/styles/sunburst.css +0 -102
  256. package/bin/static/highlight/styles/tomorrow-night-blue.css +0 -75
  257. package/bin/static/highlight/styles/tomorrow-night-bright.css +0 -74
  258. package/bin/static/highlight/styles/tomorrow-night-eighties.css +0 -74
  259. package/bin/static/highlight/styles/tomorrow-night.css +0 -75
  260. package/bin/static/highlight/styles/tomorrow.css +0 -72
  261. package/bin/static/highlight/styles/vs.css +0 -68
  262. package/bin/static/highlight/styles/vs2015.css +0 -115
  263. package/bin/static/highlight/styles/xcode.css +0 -104
  264. package/bin/static/highlight/styles/xt256.css +0 -92
  265. package/bin/static/highlight/styles/zenburn.css +0 -80
  266. package/bin/static/highlight/vue-highlight.js +0 -29
  267. package/bin/static/ifame.html +0 -24
  268. package/bin/static/img/add.png +0 -0
  269. package/bin/static/img/avatar.png +0 -0
  270. package/bin/static/img/banner_2.png +0 -0
  271. package/bin/static/img/default.png +0 -0
  272. package/bin/static/img/loading.svg +0 -1
  273. package/bin/static/img/logo.png +0 -0
  274. package/bin/static/img/logo1.png +0 -0
  275. package/bin/static/img/logo_gray.png +0 -0
  276. package/bin/static/img/logo_round.png +0 -0
  277. package/bin/static/img/mm.ico +0 -0
  278. package/bin/static/img/mm.jpg +0 -0
  279. package/bin/static/img/select.png +0 -0
  280. package/bin/static/img/web.png +0 -0
  281. package/bin/static/index.html +0 -12
  282. package/bin/static/js/clipboard.min.js +0 -257
  283. package/bin/static/js/css.min.js +0 -1
  284. package/bin/static/js/echarts.js +0 -22
  285. package/bin/static/js/html5.min.js +0 -1
  286. package/bin/static/js/jquery.lazyload.min.js +0 -2
  287. package/bin/static/js/jquery.min.js +0 -4189
  288. package/bin/static/js/jquery.scrollstop.min.js +0 -2
  289. package/bin/static/js/mm-requirejs-vue.js +0 -283
  290. package/bin/static/js/mm_check.js +0 -490
  291. package/bin/static/js/mm_flexble.js +0 -112
  292. package/bin/static/js/mm_picker.js +0 -1417
  293. package/bin/static/js/mm_pinyinlite.js +0 -873
  294. package/bin/static/js/mm_sdk.js +0 -2841
  295. package/bin/static/js/mm_ui_expand.js +0 -468
  296. package/bin/static/js/mm_vue.js +0 -376
  297. package/bin/static/js/mm_vue_ui.js +0 -2375
  298. package/bin/static/js/mm_websocket.js +0 -145
  299. package/bin/static/js/require.js +0 -5
  300. package/bin/static/js/sortable.min.js +0 -3
  301. package/bin/static/js/swiper.min.js +0 -13
  302. package/bin/static/js/text.min.js +0 -1
  303. package/bin/static/js/vue-router.min.js +0 -6
  304. package/bin/static/js/vue.js +0 -12338
  305. package/bin/static/js/vuedraggable.min.js +0 -2
  306. package/bin/static/js/vuex.min.js +0 -6
  307. package/bin/static/src/components/bar/mm_action.vue +0 -19
  308. package/bin/static/src/components/bar/mm_buy.vue +0 -19
  309. package/bin/static/src/components/bar/mm_chat.vue +0 -18
  310. package/bin/static/src/components/bar/mm_count.vue +0 -18
  311. package/bin/static/src/components/bar/mm_filter.vue +0 -18
  312. package/bin/static/src/components/bar/mm_search.vue +0 -18
  313. package/bin/static/src/components/bar/mm_sort.vue +0 -18
  314. package/bin/static/src/components/bar/mm_tag.vue +0 -18
  315. package/bin/static/src/components/bar/mm_title.vue +0 -19
  316. package/bin/static/src/components/content/mm_pre.vue +0 -70
  317. package/bin/static/src/components/expand/mm_drag.vue +0 -39
  318. package/bin/static/src/components/item/mm_article.vue +0 -115
  319. package/bin/static/src/components/item/mm_base.vue +0 -26
  320. package/bin/static/src/components/item/mm_contact.vue +0 -25
  321. package/bin/static/src/components/item/mm_goods.vue +0 -23
  322. package/bin/static/src/components/item/mm_img.vue +0 -21
  323. package/bin/static/src/components/item/mm_media.vue +0 -18
  324. package/bin/static/src/components/item/mm_message.vue +0 -18
  325. package/bin/static/src/components/item/mm_music.vue +0 -95
  326. package/bin/static/src/components/item/mm_news.vue +0 -22
  327. package/bin/static/src/components/item/mm_number.vue +0 -26
  328. package/bin/static/src/components/item/mm_question.vue +0 -35
  329. package/bin/static/src/components/item/mm_user.vue +0 -22
  330. package/bin/static/src/components/item/mm_video.vue +0 -95
  331. package/bin/static/src/components/slide/mm_slide_card.vue +0 -64
  332. package/bin/static/src/components/slide/mm_slide_img.vue +0 -47
  333. package/bin/static/src/components/slide/mm_slide_page.vue +0 -8
  334. package/bin/static/src/components/slide/mm_slide_text.vue +0 -54
  335. package/bin/static/src/main.js +0 -84
  336. package/bin/static/src/mixins/form.js +0 -223
  337. package/bin/static/src/mixins/item.js +0 -242
  338. package/bin/static/src/mixins/list.js +0 -244
  339. package/bin/static/src/mixins/page.js +0 -1011
  340. package/bin/static/src/mm_component.js +0 -74
  341. package/bin/static/src/router.js +0 -72
  342. package/bin/static/src/store/user.js +0 -75
  343. package/bin/static/src/store/web.js +0 -50
  344. package/bin/static/user/1/number_info.xlsx +0 -0
  345. package/bin/static/w3c.html +0 -94
  346. package/init.js +0 -55
  347. package/update.md +0 -1
  348. /package/{bin → core}/com/api/README.md +0 -0
  349. /package/{bin → core}/com/api/rpc.js +0 -0
  350. /package/{bin → core}/com/db/README.md +0 -0
  351. /package/{bin → core}/com/event/README.md +0 -0
  352. /package/{bin/com/socket → core/com/mqtt}/README.md +0 -0
  353. /package/{bin → core}/com/nav/README.md +0 -0
  354. /package/{bin → core}/com/nav/config.tpl.json +0 -0
  355. /package/{bin → core}/com/param/README.md +0 -0
  356. /package/{bin → core}/com/param/index.js +0 -0
  357. /package/{bin → core}/com/param/script.js +0 -0
  358. /package/{bin → core}/com/param/test.js +0 -0
  359. /package/{bin → core}/com/plugin/README.md +0 -0
  360. /package/{bin → core}/com/plugin/script.js +0 -0
  361. /package/{bin → core}/com/sql/README.md +0 -0
  362. /package/{bin → core}/com/sql/index.js +0 -0
  363. /package/{bin → core}/com/sql/script.js +0 -0
  364. /package/{bin → core}/com/static/README.md +0 -0
  365. /package/{bin → core}/com/static/script.js +0 -0
  366. /package/{bin → core}/com/task/README.md +0 -0
  367. /package/{bin/rps.bat → rps.bat} +0 -0
  368. /package/{bin/tps.bat → tps.bat} +0 -0
@@ -1,223 +0,0 @@
1
- define(function() {
2
- return {
3
- model: {
4
- prop: 'value',
5
- event: 'input'
6
- },
7
- props: {
8
- // 宽度
9
- width: {
10
- type: String,
11
- default: ''
12
- },
13
- height: {
14
- type: String,
15
- default: ''
16
- },
17
- // 类型
18
- type: {
19
- type: String,
20
- default: 'text'
21
- },
22
- // 选项
23
- options: {
24
- type: Array,
25
- default: function() {
26
- return []
27
- }
28
- },
29
- // 赋值
30
- value: {
31
- type: [String, Number, Boolean]
32
- },
33
- // 回调函数
34
- func: {
35
- type: Function,
36
- default: function(fun, param1, param2) {
37
- return null
38
- }
39
- },
40
- // 显示方式
41
- display: {
42
- type: String,
43
- default: "1"
44
- },
45
- // 显示隐藏
46
- show: {
47
- type: Boolean,
48
- default: false
49
- },
50
- // 标题
51
- title: {
52
- type: String,
53
- default: ""
54
- },
55
- // 图标
56
- icon: {
57
- type: String,
58
- default: ''
59
- },
60
- // 单位
61
- unit: {
62
- type: String,
63
- default: ''
64
- },
65
- // 描述
66
- desc: {
67
- type: String,
68
- default: ""
69
- },
70
- // 错误提示
71
- tip: {
72
- type: String,
73
- default: ""
74
- },
75
- // 最小值
76
- min: {
77
- type: Number,
78
- default: 0
79
- },
80
- // 最大值
81
- max: {
82
- type: Number,
83
- default: 0
84
- },
85
- // 最小长度
86
- min_length: {
87
- type: Number,
88
- default: 0
89
- },
90
- // 最大长度
91
- max_length: {
92
- type: Number,
93
- default: 65535
94
- },
95
- // 主键
96
- field: {
97
- type: String,
98
- default: "value"
99
- },
100
- // 标签
101
- type: {
102
- type: String,
103
- default: "text"
104
- },
105
- // 数量
106
- num: {
107
- type: Number,
108
- default: 1
109
- },
110
- // 文本
111
- text: {
112
- type: String,
113
- default: ""
114
- },
115
- disabled: {
116
- type: Boolean,
117
- default: false
118
- },
119
- // 链接
120
- url: {
121
- type: String,
122
- default: ""
123
- },
124
- // 允许访问的用户组
125
- user_group: {
126
- type: Array,
127
- default: function() {
128
- return []
129
- }
130
- },
131
- // 允许访问的管理组
132
- user_admin: {
133
- type: Array,
134
- default: function() {
135
- return []
136
- }
137
- },
138
- // 允许访问的用户级别需多少以上
139
- vip: {
140
- type: Number,
141
- default: 0
142
- },
143
- // 允许访问的管理级别需多少以上
144
- gm: {
145
- type: Number,
146
- default: 0
147
- },
148
- // 身份验证
149
- oauth: {
150
- type: Boolean,
151
- default: false
152
- }
153
- },
154
- data() {
155
- return {
156
- // 显示方式
157
- dy: this.display,
158
- // 显示隐藏
159
- sw: this.show,
160
- // 加载中
161
- load: this.loading,
162
- // 列表
163
- oj: this.obj,
164
- // 数量
165
- nm: this.num,
166
- // 文本
167
- txt: this.text,
168
- // 值
169
- val: this.value,
170
- // 禁用
171
- dd: this.disabled
172
- }
173
- },
174
- methods: {
175
- data: function data() {
176
- return {
177
- // 显示方式
178
- dy: this.display,
179
- // 显示隐藏
180
- sw: this.show,
181
- // 加载中
182
- load: this.loading,
183
- // 列表
184
- oj: this.obj,
185
- // 数量
186
- nm: this.num,
187
- // 文本
188
- txt: this.text,
189
- // 值
190
- val: this.value,
191
- // 禁用
192
- dd: this.disabled
193
- };
194
- },
195
- /// 可更改其他属性,默认绑定回调函数
196
- /// fun: 函数名
197
- /// param1: 参数1
198
- /// param2: 参数2
199
- /// param3: 参数3
200
- run: function run(fun, param1, param2, param3) {
201
- if (this.func) {
202
- return this.func(param1, param2, param3);
203
- }
204
- return null;
205
- },
206
- // 删除
207
- /// query: 查询条件
208
- del: function del() {
209
- var query = {};
210
- query[this.field] = this.id;
211
- this.run('del', query);
212
- },
213
- // 修改
214
- /// query: 查询条件
215
- /// obj: 修改的对象
216
- set: function set(obj) {
217
- var query = {};
218
- query[this.field] = this.id;
219
- this.run('set', query, obj);
220
- }
221
- }
222
- };
223
- });
@@ -1,242 +0,0 @@
1
- define(function() {
2
- "use strict";
3
- return {
4
- props: {
5
- // 回调函数
6
- func: {
7
- type: Function,
8
- default: null
9
- },
10
- // 主题
11
- theme: {
12
- type: String,
13
- default: "primary"
14
- },
15
- // 显示方式
16
- display: {
17
- type: String,
18
- default: "1"
19
- },
20
- // 显示隐藏
21
- show: {
22
- type: Boolean,
23
- default: false
24
- },
25
- // 加载进度, 小于100表示加载中,大于100表示加载完成
26
- loading: {
27
- type: Number,
28
- default: 0
29
- },
30
- // 当前索引
31
- index: {
32
- type: Number,
33
- default: 0
34
- },
35
- // 列数
36
- col: {
37
- type: Number,
38
- default: 4
39
- },
40
- // 对象
41
- obj: {
42
- type: Object,
43
- default: function() {
44
- return {
45
- url: ""
46
- };
47
- }
48
- },
49
- // 视图模型
50
- vm: {
51
- type: Object,
52
- default: function() {
53
- return {
54
- // 当前ID
55
- id: 'id',
56
- // 上级ID
57
- fid: 'fid',
58
- // 图片
59
- img: 'img',
60
- // 图标
61
- icon: 'icon',
62
- // 标题
63
- title: 'title',
64
- // 描述
65
- description: 'description',
66
- // 图片
67
- image: 'image',
68
- // 内容
69
- content: 'content',
70
- // 时间
71
- time: 'time',
72
- // 链接
73
- url: 'url',
74
- // 方式
75
- mode: 'mode',
76
- // 来源
77
- source: 'source',
78
- // 来源地址
79
- source_url: 'source_url',
80
- // 标签
81
- label: 'label',
82
- // 名称
83
- name: 'name',
84
- // 值
85
- value: 'value',
86
- // 提示
87
- tip: 'tip',
88
- // 热度
89
- hot: 'hot',
90
- // 原价
91
- price_old: 'price_old',
92
- // 价格
93
- price: 'price',
94
- // 总价
95
- total: 'total',
96
- // 点赞数
97
- zan: 'zan',
98
- // 总量
99
- count: 'count',
100
- // 数量
101
- num: 'num',
102
- // 作者
103
- author: 'author',
104
- // 收藏量
105
- collect: 'collect',
106
- // 标签
107
- tag: 'tag'
108
- };
109
- }
110
- },
111
- // 当前页
112
- page: {
113
- type: Number,
114
- default: 1
115
- },
116
- // 大小
117
- size: {
118
- type: Number,
119
- default: 10
120
- },
121
- // 总计
122
- count: {
123
- type: Number,
124
- default: 0
125
- },
126
- // 主键
127
- field: {
128
- type: String,
129
- default: "id"
130
- },
131
- // 活跃项
132
- active: {
133
- type: String,
134
- default: ""
135
- },
136
- // 选中项
137
- selected: {
138
- type: Array,
139
- default: function _default() {
140
- return [];
141
- }
142
- },
143
- // 允许访问的用户组
144
- user_group: {
145
- type: Array,
146
- default: function _default() {
147
- return [];
148
- }
149
- },
150
- // 允许访问的管理组
151
- user_admin: {
152
- type: Array,
153
- default: function _default() {
154
- return [];
155
- }
156
- },
157
- // 允许访问的用户级别需多少以上
158
- vip: {
159
- type: Number,
160
- default: 0
161
- },
162
- // 允许访问的管理级别需多少以上
163
- gm: {
164
- type: Number,
165
- default: 0
166
- },
167
- // 允许访问的角色
168
- roles: {
169
- type: Array,
170
- default: function _default() {
171
- return [];
172
- }
173
- },
174
- // 身份验证
175
- oauth: {
176
- type: Boolean,
177
- default: false
178
- }
179
- },
180
- data: function data() {
181
- return {
182
- // 显示方式
183
- dy: this.display,
184
- // 加载中
185
- load: this.loading,
186
- // 大小
187
- se: this.size,
188
- // 数量
189
- nm: this.num,
190
- // 选中
191
- sd: this.selected,
192
- // 显示隐藏
193
- sw: this.show
194
- };
195
- },
196
- methods: {
197
- /// 可更改其他属性,默认绑定回调函数
198
- /// fun: 函数名
199
- /// param1: 参数1
200
- /// param2: 参数2
201
- /// param3: 参数3
202
- run: function run(fun, param1, param2, param3) {
203
- if (this.func) {
204
- return this.func(param1, param2, param3);
205
- }
206
-
207
- return null;
208
- },
209
- // 添加
210
- /// obj: 添加的对象
211
- add: function add(obj) {
212
- this.run('add', obj);
213
- },
214
- // 删除
215
- /// query: 查询条件
216
- del: function del(query) {
217
- this.run('del', query);
218
- },
219
- // 修改
220
- /// query: 查询条件
221
- /// obj: 修改的对象
222
- set: function set(query, obj) {
223
- this.run('set', query, obj);
224
- },
225
- // 查询
226
- /// query: 查询条件
227
- get: function get(query) {
228
- this.run('get', query);
229
- },
230
- // 上下翻页
231
- /// n: 加减数
232
- go: function go(n) {
233
- this.run('go', n);
234
- },
235
- // 上下翻页
236
- /// page: 加减数
237
- goTo: function goTo(page) {
238
- this.run('goTo', page);
239
- }
240
- }
241
- };
242
- });
@@ -1,244 +0,0 @@
1
- define(function() {
2
- "use strict";
3
- return {
4
- props: {
5
- // 回调函数
6
- func: {
7
- type: Function,
8
- default: null
9
- },
10
- // 主题
11
- theme: {
12
- type: String,
13
- default: "primary"
14
- },
15
- // 显示方式
16
- display: {
17
- type: String,
18
- default: "1"
19
- },
20
- // 显示隐藏
21
- show: {
22
- type: Boolean,
23
- default: false
24
- },
25
- // 加载进度, 小于100表示加载中,大于100表示加载完成
26
- loading: {
27
- type: Number,
28
- default: 0
29
- },
30
- // 当前索引
31
- index: {
32
- type: Number,
33
- default: 0
34
- },
35
- // 列数
36
- col: {
37
- type: Number,
38
- default: 4
39
- },
40
- // 列表
41
- list: {
42
- type: Array,
43
- default: function _default() {
44
- return [];
45
- }
46
- },
47
- // 视图模型
48
- vm: {
49
- type: Object,
50
- default: function _default() {
51
- return {
52
- // 当前ID
53
- id: 'id',
54
- // 上级ID
55
- fid: 'fid',
56
- // 图片
57
- img: 'img',
58
- // 图标
59
- icon: 'icon',
60
- // 标题
61
- title: 'title',
62
- // 描述
63
- desc: 'desc',
64
- // 内容
65
- content: 'content',
66
- // 时间
67
- time: 'time',
68
- // 链接
69
- url: 'url',
70
- // 方式
71
- mode: 'mode',
72
- // 来源
73
- source: 'source',
74
- // 来源地址
75
- source_url: 'source_url',
76
- // 标签
77
- label: 'label',
78
- // 名称
79
- name: 'name',
80
- // 值
81
- value: 'value',
82
- // 提示
83
- tip: 'tip',
84
- // 热度
85
- hot: 'hot',
86
- // 原价
87
- price_old: 'price_old',
88
- // 价格
89
- price: 'price',
90
- // 总价
91
- total: 'total',
92
- // 点赞数
93
- zan: 'zan',
94
- // 总量
95
- count: 'count',
96
- // 数量
97
- num: 'num',
98
- // 作者
99
- author: 'author',
100
- // 收藏量
101
- collect: 'collect'
102
- };
103
- }
104
- },
105
- // 当前页
106
- page: {
107
- type: Number,
108
- default: 1
109
- },
110
- // 大小
111
- size: {
112
- type: Number,
113
- default: 10
114
- },
115
- // 总计
116
- count: {
117
- type: Number,
118
- default: 0
119
- },
120
- // 主键
121
- field: {
122
- type: String,
123
- default: "id"
124
- },
125
- // 活跃项
126
- active: {
127
- type: String,
128
- default: ""
129
- },
130
- // 选中项
131
- selected: {
132
- type: Array,
133
- default: function _default() {
134
- return [];
135
- }
136
- },
137
- // 允许访问的用户组
138
- user_group: {
139
- type: Array,
140
- default: function _default() {
141
- return [];
142
- }
143
- },
144
- // 允许访问的管理组
145
- user_admin: {
146
- type: Array,
147
- default: function _default() {
148
- return [];
149
- }
150
- },
151
- // 允许访问的用户级别需多少以上
152
- vip: {
153
- type: Number,
154
- default: 0
155
- },
156
- // 允许访问的管理级别需多少以上
157
- gm: {
158
- type: Number,
159
- default: 0
160
- },
161
- // 允许访问的角色
162
- roles: {
163
- type: Array,
164
- default: function _default() {
165
- return [];
166
- }
167
- },
168
- // 身份验证
169
- oauth: {
170
- type: Boolean,
171
- default: false
172
- }
173
- },
174
- data: function data() {
175
- return {
176
- // 显示方式
177
- dy: this.display,
178
- // 加载中
179
- load: this.loading,
180
- // 当前索引
181
- idx: this.index,
182
- // 列数
183
- cl: this.col,
184
- // 列表
185
- lt: this.list,
186
- // 当前页
187
- pe: this.page,
188
- // 大小
189
- se: this.size,
190
- // 数量
191
- nm: this.num,
192
- // 选中
193
- sd: this.selected,
194
- // 显示隐藏
195
- sw: this.show
196
- };
197
- },
198
- methods: {
199
- /// 可更改其他属性,默认绑定回调函数
200
- /// fun: 函数名
201
- /// param1: 参数1
202
- /// param2: 参数2
203
- /// param3: 参数3
204
- run: function run(fun, param1, param2, param3) {
205
- if (this.func) {
206
- return this.func(param1, param2, param3);
207
- }
208
-
209
- return null;
210
- },
211
- // 添加
212
- /// obj: 添加的对象
213
- add: function add(obj) {
214
- this.run('add', obj);
215
- },
216
- // 删除
217
- /// query: 查询条件
218
- del: function del(query) {
219
- this.run('del', query);
220
- },
221
- // 修改
222
- /// query: 查询条件
223
- /// obj: 修改的对象
224
- set: function set(query, obj) {
225
- this.run('set', query, obj);
226
- },
227
- // 查询
228
- /// query: 查询条件
229
- get: function get(query) {
230
- this.run('get', query);
231
- },
232
- // 上下翻页
233
- /// n: 加减数
234
- go: function go(n) {
235
- this.run('go', n);
236
- },
237
- // 上下翻页
238
- /// page: 加减数
239
- goTo: function goTo(page) {
240
- this.run('goTo', page);
241
- }
242
- }
243
- };
244
- });