mm_os 1.3.3 → 1.3.5
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.
- package/README.en.md +36 -0
- package/README.md +25 -166
- package/conf.json +3 -0
- package/core/base/index.js +29 -0
- package/core/base/mqtt/index.js +268 -0
- package/core/base/mqtt/lib.js +40 -0
- package/core/base/web/index.js +110 -0
- package/core/com/api/com.json +4 -0
- package/{bin → core}/com/api/config.tpl.json +9 -7
- package/{bin → core}/com/api/drive.js +239 -64
- package/{bin → core}/com/api/index.js +8 -9
- package/{bin → core}/com/api/oauth.js +23 -14
- package/core/com/api/script.js +32 -0
- package/core/com/db/com.json +4 -0
- package/{bin → core}/com/db/drive.js +99 -65
- package/{bin → core}/com/db/index.js +2 -2
- package/core/com/event/com.json +4 -0
- package/{bin → core}/com/event/config.tpl.json +2 -2
- package/core/com/event/drive.js +125 -0
- package/{bin → core}/com/event/index.js +5 -10
- package/core/com/event/script.js +26 -0
- package/core/com/eventer/com.js +450 -0
- package/core/com/eventer/com.json +4 -0
- package/core/com/middleware/com.js +128 -0
- package/core/com/middleware/com.json +4 -0
- package/core/com/middleware/config.tpl.json +8 -0
- package/core/com/middleware/script.js +9 -0
- package/core/com/mqtt/com.json +4 -0
- package/core/com/mqtt/config.tpl.json +12 -0
- package/core/com/mqtt/drive.js +139 -0
- package/core/com/mqtt/index.js +138 -0
- package/core/com/mqtt/script.js +33 -0
- package/core/com/msg/com.js +296 -0
- package/core/com/msg/com.json +4 -0
- package/{bin → core}/com/nav/drive.js +42 -17
- package/{bin → core}/com/nav/index.js +4 -4
- package/core/com/nav/tpl/admin_pc/page_channel.vue +299 -0
- package/core/com/nav/tpl/admin_pc/page_config.vue +279 -0
- package/core/com/nav/tpl/admin_pc/page_config_form.vue +194 -0
- package/core/com/nav/tpl/admin_pc/page_default.vue +287 -0
- package/core/com/nav/tpl/admin_pc/page_form.vue +180 -0
- package/core/com/nav/tpl/admin_pc/page_lang.vue +265 -0
- package/core/com/nav/tpl/admin_pc/page_nav.vue +313 -0
- package/core/com/nav/tpl/admin_pc/page_table.vue +285 -0
- package/core/com/nav/tpl/admin_pc/page_type.vue +313 -0
- package/core/com/nav/tpl/dev_pc/page_channel.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_config.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_default.vue +247 -0
- package/core/com/nav/tpl/dev_pc/page_form.vue +162 -0
- package/core/com/nav/tpl/dev_pc/page_nav.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_table.vue +247 -0
- package/core/com/nav/tpl/dev_pc/page_type.vue +253 -0
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_channel.vue +231 -231
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_default.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_form.vue +9 -9
- package/{bin → core}/com/nav/tpl/home_pc/page_list.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_nav.vue +221 -221
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_type.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_view.vue +8 -8
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_channel.vue +231 -231
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_default.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_phone/page_form.vue +9 -9
- package/{bin → core}/com/nav/tpl/home_phone/page_list.vue +231 -231
- package/{bin/com/nav/tpl/admin_pc → core/com/nav/tpl/home_phone}/page_nav.vue +236 -220
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_type.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_phone/page_view.vue +8 -8
- package/core/com/nav/viewmodel.js +296 -0
- package/{bin → core}/com/param/config.tpl.json +24 -0
- package/{bin → core}/com/param/drive.js +47 -15
- package/core/com/plugin/com.json +4 -0
- package/core/com/plugin/config.tpl.json +20 -0
- package/{bin → core}/com/plugin/drive.js +5 -8
- package/{bin → core}/com/plugin/index.js +11 -56
- package/core/com/socket/README.md +47 -0
- package/core/com/socket/com.json +4 -0
- package/core/com/socket/config.tpl.json +14 -0
- package/{bin → core}/com/socket/drive.js +74 -51
- package/{bin → core}/com/socket/index.js +4 -2
- package/{bin → core}/com/socket/script.js +8 -6
- package/core/com/sql/config.tpl.json +70 -0
- package/{bin → core}/com/sql/drive.js +281 -58
- package/core/com/static/com.json +4 -0
- package/core/com/static/config.tpl.json +20 -0
- package/{bin → core}/com/static/drive.js +6 -4
- package/{bin → core}/com/static/index.js +5 -1
- package/core/com/task/com.json +4 -0
- package/core/com/task/config.tpl.json +24 -0
- package/core/com/task/drive.js +374 -0
- package/{bin → core}/com/task/index.js +14 -20
- package/core/com/task/script.js +37 -0
- package/core/com/timer/com.js +217 -0
- package/core/com/timer/com.json +4 -0
- package/core/com/tpl/com.js +19 -0
- package/core/com/tpl/com.json +4 -0
- package/index.js +161 -740
- package/lib/actions.js +50 -0
- package/lib/app.js +73 -0
- package/lib/base.js +355 -0
- package/lib/com.js +31 -0
- package/lib/game.js +31 -0
- package/lib/ref.js +121 -0
- package/middleware/cors/index.js +57 -0
- package/middleware/cors/middleware.json +7 -0
- package/middleware/mqtt_base/index.js +10 -0
- package/middleware/mqtt_base/middleware.json +8 -0
- package/{waf.js → middleware/waf/index.js} +12 -2
- package/middleware/waf/middleware.json +9 -0
- package/middleware/web_base/index.js +67 -0
- package/middleware/web_base/middleware.json +9 -0
- package/middleware/web_event/index.js +411 -0
- package/middleware/web_event/middleware.json +10 -0
- package/middleware/web_proxy/index.js +24 -0
- package/middleware/web_proxy/middleware.json +9 -0
- package/middleware/web_router/index.js +33 -0
- package/middleware/web_router/middleware.json +10 -0
- package/middleware/web_socket/index.js +21 -0
- package/middleware/web_socket/middleware.json +9 -0
- package/middleware/web_static/index.js +26 -0
- package/middleware/web_static/middleware.json +9 -0
- package/nodemon.json +12 -2
- package/package.json +56 -66
- package/.gitattributes +0 -5
- package/bin/com/README.md +0 -2
- package/bin/com/api/script.js +0 -14
- package/bin/com/cmd/README.md +0 -3
- package/bin/com/cmd/config.tpl.json +0 -41
- package/bin/com/cmd/drive.js +0 -512
- package/bin/com/cmd/index.js +0 -213
- package/bin/com/cmd/old/5w2h.js +0 -54
- package/bin/com/cmd/old/drive.js +0 -423
- package/bin/com/cmd/script.js +0 -11
- package/bin/com/event/drive.js +0 -69
- package/bin/com/event/script.js +0 -12
- package/bin/com/nav/tpl/admin_pc/page_channel.vue +0 -234
- package/bin/com/nav/tpl/admin_pc/page_default.vue +0 -236
- package/bin/com/nav/tpl/admin_pc/page_form.vue +0 -152
- package/bin/com/nav/tpl/admin_pc/page_table.vue +0 -236
- package/bin/com/nav/tpl/admin_pc/page_type.vue +0 -234
- package/bin/com/nav/tpl/home_phone/page_nav.vue +0 -221
- package/bin/com/nav/viewmodel.js +0 -161
- package/bin/com/plugin/config.tpl.json +0 -11
- package/bin/com/socket/config.tpl.json +0 -8
- package/bin/com/sql/config.tpl.json +0 -34
- package/bin/com/static/config.tpl.json +0 -11
- package/bin/com/task/config.tpl.json +0 -13
- package/bin/com/task/drive.js +0 -288
- package/bin/com/task/script.js +0 -38
- package/bin/com.js +0 -74
- package/bin/mm.conf +0 -48
- package/bin/static/404.html +0 -52
- package/bin/static/README.md +0 -1
- package/bin/static/css/font-awesome.min.css +0 -7
- package/bin/static/css/mm_base.css +0 -220
- package/bin/static/css/mm_common.css +0 -518
- package/bin/static/css/mm_component.css +0 -307
- package/bin/static/css/mm_expand.css +0 -634
- package/bin/static/css/mm_theme.css +0 -291
- package/bin/static/css/new_file.css +0 -79
- package/bin/static/css/swiper.min.css +0 -12
- package/bin/static/favicon.ico +0 -0
- package/bin/static/font/FontAwesome.otf +0 -0
- package/bin/static/font/HelveticaNeue.eot +0 -0
- package/bin/static/font/HelveticaNeue.otf +0 -0
- package/bin/static/font/HelveticaNeue.svg +0 -1273
- package/bin/static/font/HelveticaNeue.woff +0 -0
- package/bin/static/font/HelveticaNeue.woff2 +0 -0
- package/bin/static/font/fontawesome-webfont.eot +0 -0
- package/bin/static/font/fontawesome-webfont.svg +0 -2671
- package/bin/static/font/fontawesome-webfont.ttf +0 -0
- package/bin/static/font/fontawesome-webfont.woff +0 -0
- package/bin/static/font/fontawesome-webfont.woff2 +0 -0
- package/bin/static/h5.html +0 -325
- package/bin/static/highlight/highlight.pack.js +0 -2
- package/bin/static/highlight/styles/a11y-dark.css +0 -99
- package/bin/static/highlight/styles/a11y-light.css +0 -99
- package/bin/static/highlight/styles/agate.css +0 -108
- package/bin/static/highlight/styles/an-old-hope.css +0 -89
- package/bin/static/highlight/styles/androidstudio.css +0 -66
- package/bin/static/highlight/styles/arduino-light.css +0 -88
- package/bin/static/highlight/styles/arta.css +0 -73
- package/bin/static/highlight/styles/ascetic.css +0 -45
- package/bin/static/highlight/styles/atelier-cave-dark.css +0 -83
- package/bin/static/highlight/styles/atelier-cave-light.css +0 -85
- package/bin/static/highlight/styles/atelier-dune-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-dune-light.css +0 -69
- package/bin/static/highlight/styles/atelier-estuary-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-estuary-light.css +0 -84
- package/bin/static/highlight/styles/atelier-forest-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-forest-light.css +0 -69
- package/bin/static/highlight/styles/atelier-heath-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-heath-light.css +0 -69
- package/bin/static/highlight/styles/atelier-lakeside-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-lakeside-light.css +0 -69
- package/bin/static/highlight/styles/atelier-plateau-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-plateau-light.css +0 -84
- package/bin/static/highlight/styles/atelier-savanna-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-savanna-light.css +0 -84
- package/bin/static/highlight/styles/atelier-seaside-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-seaside-light.css +0 -69
- package/bin/static/highlight/styles/atelier-sulphurpool-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-sulphurpool-light.css +0 -69
- package/bin/static/highlight/styles/atom-one-dark-reasonable.css +0 -77
- package/bin/static/highlight/styles/atom-one-dark.css +0 -96
- package/bin/static/highlight/styles/atom-one-light.css +0 -96
- package/bin/static/highlight/styles/brown-paper.css +0 -64
- package/bin/static/highlight/styles/brown-papersq.png +0 -0
- package/bin/static/highlight/styles/codepen-embed.css +0 -60
- package/bin/static/highlight/styles/color-brewer.css +0 -71
- package/bin/static/highlight/styles/darcula.css +0 -77
- package/bin/static/highlight/styles/dark.css +0 -63
- package/bin/static/highlight/styles/darkula.css +0 -6
- package/bin/static/highlight/styles/default.css +0 -99
- package/bin/static/highlight/styles/docco.css +0 -97
- package/bin/static/highlight/styles/dracula.css +0 -76
- package/bin/static/highlight/styles/far.css +0 -71
- package/bin/static/highlight/styles/foundation.css +0 -88
- package/bin/static/highlight/styles/github-gist.css +0 -79
- package/bin/static/highlight/styles/github.css +0 -99
- package/bin/static/highlight/styles/gml.css +0 -78
- package/bin/static/highlight/styles/googlecode.css +0 -89
- package/bin/static/highlight/styles/grayscale.css +0 -101
- package/bin/static/highlight/styles/gruvbox-dark.css +0 -108
- package/bin/static/highlight/styles/gruvbox-light.css +0 -108
- package/bin/static/highlight/styles/hopscotch.css +0 -83
- package/bin/static/highlight/styles/hybrid.css +0 -102
- package/bin/static/highlight/styles/idea.css +0 -97
- package/bin/static/highlight/styles/ir-black.css +0 -73
- package/bin/static/highlight/styles/isbl-editor-dark.css +0 -112
- package/bin/static/highlight/styles/isbl-editor-light.css +0 -112
- package/bin/static/highlight/styles/kimbie.dark.css +0 -74
- package/bin/static/highlight/styles/kimbie.light.css +0 -74
- package/bin/static/highlight/styles/lightfair.css +0 -87
- package/bin/static/highlight/styles/magula.css +0 -70
- package/bin/static/highlight/styles/mono-blue.css +0 -59
- package/bin/static/highlight/styles/monokai-sublime.css +0 -83
- package/bin/static/highlight/styles/monokai.css +0 -70
- package/bin/static/highlight/styles/nord.css +0 -309
- package/bin/static/highlight/styles/obsidian.css +0 -88
- package/bin/static/highlight/styles/ocean.css +0 -74
- package/bin/static/highlight/styles/paraiso-dark.css +0 -72
- package/bin/static/highlight/styles/paraiso-light.css +0 -72
- package/bin/static/highlight/styles/pojoaque.css +0 -83
- package/bin/static/highlight/styles/pojoaque.jpg +0 -0
- package/bin/static/highlight/styles/purebasic.css +0 -96
- package/bin/static/highlight/styles/qtcreator_dark.css +0 -83
- package/bin/static/highlight/styles/qtcreator_light.css +0 -83
- package/bin/static/highlight/styles/railscasts.css +0 -106
- package/bin/static/highlight/styles/rainbow.css +0 -85
- package/bin/static/highlight/styles/routeros.css +0 -108
- package/bin/static/highlight/styles/school-book.css +0 -69
- package/bin/static/highlight/styles/school-book.png +0 -0
- package/bin/static/highlight/styles/shades-of-purple.css +0 -97
- package/bin/static/highlight/styles/solarized-dark.css +0 -84
- package/bin/static/highlight/styles/solarized-light.css +0 -84
- package/bin/static/highlight/styles/sunburst.css +0 -102
- package/bin/static/highlight/styles/tomorrow-night-blue.css +0 -75
- package/bin/static/highlight/styles/tomorrow-night-bright.css +0 -74
- package/bin/static/highlight/styles/tomorrow-night-eighties.css +0 -74
- package/bin/static/highlight/styles/tomorrow-night.css +0 -75
- package/bin/static/highlight/styles/tomorrow.css +0 -72
- package/bin/static/highlight/styles/vs.css +0 -68
- package/bin/static/highlight/styles/vs2015.css +0 -115
- package/bin/static/highlight/styles/xcode.css +0 -104
- package/bin/static/highlight/styles/xt256.css +0 -92
- package/bin/static/highlight/styles/zenburn.css +0 -80
- package/bin/static/highlight/vue-highlight.js +0 -29
- package/bin/static/ifame.html +0 -24
- package/bin/static/img/add.png +0 -0
- package/bin/static/img/avatar.png +0 -0
- package/bin/static/img/banner_2.png +0 -0
- package/bin/static/img/default.png +0 -0
- package/bin/static/img/loading.svg +0 -1
- package/bin/static/img/logo.png +0 -0
- package/bin/static/img/logo1.png +0 -0
- package/bin/static/img/logo_gray.png +0 -0
- package/bin/static/img/logo_round.png +0 -0
- package/bin/static/img/mm.ico +0 -0
- package/bin/static/img/mm.jpg +0 -0
- package/bin/static/img/select.png +0 -0
- package/bin/static/img/web.png +0 -0
- package/bin/static/index.html +0 -12
- package/bin/static/js/clipboard.min.js +0 -257
- package/bin/static/js/css.min.js +0 -1
- package/bin/static/js/echarts.js +0 -22
- package/bin/static/js/html5.min.js +0 -1
- package/bin/static/js/jquery.lazyload.min.js +0 -2
- package/bin/static/js/jquery.min.js +0 -4189
- package/bin/static/js/jquery.scrollstop.min.js +0 -2
- package/bin/static/js/mm-requirejs-vue.js +0 -283
- package/bin/static/js/mm_check.js +0 -490
- package/bin/static/js/mm_flexble.js +0 -112
- package/bin/static/js/mm_picker.js +0 -1417
- package/bin/static/js/mm_pinyinlite.js +0 -873
- package/bin/static/js/mm_sdk.js +0 -2841
- package/bin/static/js/mm_ui_expand.js +0 -468
- package/bin/static/js/mm_vue.js +0 -376
- package/bin/static/js/mm_vue_ui.js +0 -2375
- package/bin/static/js/mm_websocket.js +0 -145
- package/bin/static/js/require.js +0 -5
- package/bin/static/js/sortable.min.js +0 -3
- package/bin/static/js/swiper.min.js +0 -13
- package/bin/static/js/text.min.js +0 -1
- package/bin/static/js/vue-router.min.js +0 -6
- package/bin/static/js/vue.js +0 -12338
- package/bin/static/js/vuedraggable.min.js +0 -2
- package/bin/static/js/vuex.min.js +0 -6
- package/bin/static/src/components/bar/mm_action.vue +0 -19
- package/bin/static/src/components/bar/mm_buy.vue +0 -19
- package/bin/static/src/components/bar/mm_chat.vue +0 -18
- package/bin/static/src/components/bar/mm_count.vue +0 -18
- package/bin/static/src/components/bar/mm_filter.vue +0 -18
- package/bin/static/src/components/bar/mm_search.vue +0 -18
- package/bin/static/src/components/bar/mm_sort.vue +0 -18
- package/bin/static/src/components/bar/mm_tag.vue +0 -18
- package/bin/static/src/components/bar/mm_title.vue +0 -19
- package/bin/static/src/components/content/mm_pre.vue +0 -70
- package/bin/static/src/components/expand/mm_drag.vue +0 -39
- package/bin/static/src/components/item/mm_article.vue +0 -115
- package/bin/static/src/components/item/mm_base.vue +0 -26
- package/bin/static/src/components/item/mm_contact.vue +0 -25
- package/bin/static/src/components/item/mm_goods.vue +0 -23
- package/bin/static/src/components/item/mm_img.vue +0 -21
- package/bin/static/src/components/item/mm_media.vue +0 -18
- package/bin/static/src/components/item/mm_message.vue +0 -18
- package/bin/static/src/components/item/mm_music.vue +0 -95
- package/bin/static/src/components/item/mm_news.vue +0 -22
- package/bin/static/src/components/item/mm_number.vue +0 -26
- package/bin/static/src/components/item/mm_question.vue +0 -35
- package/bin/static/src/components/item/mm_user.vue +0 -22
- package/bin/static/src/components/item/mm_video.vue +0 -95
- package/bin/static/src/components/slide/mm_slide_card.vue +0 -64
- package/bin/static/src/components/slide/mm_slide_img.vue +0 -47
- package/bin/static/src/components/slide/mm_slide_page.vue +0 -8
- package/bin/static/src/components/slide/mm_slide_text.vue +0 -54
- package/bin/static/src/main.js +0 -84
- package/bin/static/src/mixins/form.js +0 -223
- package/bin/static/src/mixins/item.js +0 -242
- package/bin/static/src/mixins/list.js +0 -244
- package/bin/static/src/mixins/page.js +0 -1011
- package/bin/static/src/mm_component.js +0 -74
- package/bin/static/src/router.js +0 -72
- package/bin/static/src/store/user.js +0 -75
- package/bin/static/src/store/web.js +0 -50
- package/bin/static/user/1/number_info.xlsx +0 -0
- package/bin/static/w3c.html +0 -94
- package/init.js +0 -55
- package/update.md +0 -1
- /package/{bin → core}/com/api/README.md +0 -0
- /package/{bin → core}/com/api/rpc.js +0 -0
- /package/{bin → core}/com/db/README.md +0 -0
- /package/{bin → core}/com/event/README.md +0 -0
- /package/{bin/com/socket → core/com/mqtt}/README.md +0 -0
- /package/{bin → core}/com/nav/README.md +0 -0
- /package/{bin → core}/com/nav/config.tpl.json +0 -0
- /package/{bin → core}/com/param/README.md +0 -0
- /package/{bin → core}/com/param/index.js +0 -0
- /package/{bin → core}/com/param/script.js +0 -0
- /package/{bin → core}/com/param/test.js +0 -0
- /package/{bin → core}/com/plugin/README.md +0 -0
- /package/{bin → core}/com/plugin/script.js +0 -0
- /package/{bin → core}/com/sql/README.md +0 -0
- /package/{bin → core}/com/sql/index.js +0 -0
- /package/{bin → core}/com/sql/script.js +0 -0
- /package/{bin → core}/com/static/README.md +0 -0
- /package/{bin → core}/com/static/script.js +0 -0
- /package/{bin → core}/com/task/README.md +0 -0
- /package/{bin/rps.bat → rps.bat} +0 -0
- /package/{bin/tps.bat → tps.bat} +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// 栏目
|
|
2
|
-
import mm_action from '/src/components/bar/mm_action.vue';
|
|
3
|
-
import mm_buy from '/src/components/bar/mm_buy.vue';
|
|
4
|
-
import mm_chat from '/src/components/bar/mm_chat.vue';
|
|
5
|
-
import mm_count from '/src/components/bar/mm_count.vue';
|
|
6
|
-
import mm_filter from '/src/components/bar/mm_filter.vue';
|
|
7
|
-
import mm_search from '/src/components/bar/mm_search.vue';
|
|
8
|
-
import mm_sort from '/src/components/bar/mm_sort.vue';
|
|
9
|
-
import mm_title from '/src/components/bar/mm_title.vue';
|
|
10
|
-
import mm_tag from '/src/components/bar/mm_tag.vue';
|
|
11
|
-
|
|
12
|
-
// 列表项
|
|
13
|
-
import mm_article from '/src/components/item/mm_article.vue';
|
|
14
|
-
import mm_base from '/src/components/item/mm_base.vue';
|
|
15
|
-
import mm_contact from '/src/components/item/mm_contact.vue';
|
|
16
|
-
import mm_goods from '/src/components/item/mm_goods.vue';
|
|
17
|
-
import mm_img from '/src/components/item/mm_img.vue';
|
|
18
|
-
import mm_media from '/src/components/item/mm_media.vue';
|
|
19
|
-
import mm_message from '/src/components/item/mm_message.vue';
|
|
20
|
-
import mm_music from '/src/components/item/mm_music.vue';
|
|
21
|
-
import mm_news from '/src/components/item/mm_news.vue';
|
|
22
|
-
import mm_question from '/src/components/item/mm_question.vue';
|
|
23
|
-
import mm_user from '/src/components/item/mm_user.vue';
|
|
24
|
-
import mm_video from '/src/components/item/mm_video.vue';
|
|
25
|
-
|
|
26
|
-
// 轮播
|
|
27
|
-
import mm_slide_card from '/src/components/slide/mm_slide_card.vue';
|
|
28
|
-
import mm_slide_img from '/src/components/slide/mm_slide_img.vue';
|
|
29
|
-
import mm_slide_page from '/src/components/slide/mm_slide_page.vue';
|
|
30
|
-
import mm_slide_text from '/src/components/slide/mm_slide_text.vue';
|
|
31
|
-
|
|
32
|
-
// 拓展
|
|
33
|
-
import 'mm_drag' from '/src/components/expand/mm_drag.vue';
|
|
34
|
-
|
|
35
|
-
/* === 创建全局组件 === */
|
|
36
|
-
export default {
|
|
37
|
-
install(Vue, options) {
|
|
38
|
-
|
|
39
|
-
// 栏目组件
|
|
40
|
-
Vue.component('mm_action', mm_action);
|
|
41
|
-
Vue.component('mm_buy', mm_buy);
|
|
42
|
-
Vue.component('mm_chat', mm_chat);
|
|
43
|
-
Vue.component('mm_count', mm_count);
|
|
44
|
-
Vue.component('mm_filter', mm_filter);
|
|
45
|
-
Vue.component('mm_search', mm_search);
|
|
46
|
-
Vue.component('mm_sort', mm_sort);
|
|
47
|
-
Vue.component('mm_title', mm_title);
|
|
48
|
-
Vue.component('mm_tag', mm_tag);
|
|
49
|
-
|
|
50
|
-
// 项目
|
|
51
|
-
Vue.component('mm_article', mm_article);
|
|
52
|
-
Vue.component('mm_base', mm_base);
|
|
53
|
-
Vue.component('mm_contact', mm_contact);
|
|
54
|
-
Vue.component('mm_goods', mm_goods);
|
|
55
|
-
Vue.component('mm_img', mm_img);
|
|
56
|
-
Vue.component('mm_media', mm_media);
|
|
57
|
-
Vue.component('mm_message', mm_message);
|
|
58
|
-
|
|
59
|
-
Vue.component('mm_music', mm_music);
|
|
60
|
-
Vue.component('mm_news', mm_news);
|
|
61
|
-
Vue.component('mm_question', mm_question);
|
|
62
|
-
Vue.component('mm_user', mm_user);
|
|
63
|
-
Vue.component('mm_video', mm_video);
|
|
64
|
-
|
|
65
|
-
// 轮播
|
|
66
|
-
Vue.component('mm_slide_card', mm_slide_card);
|
|
67
|
-
Vue.component('mm_slide_img', mm_slide_img);
|
|
68
|
-
Vue.component('mm_slide_page', mm_slide_page);
|
|
69
|
-
Vue.component('mm_slide_text', mm_slide_text);
|
|
70
|
-
|
|
71
|
-
// 轮播
|
|
72
|
-
Vue.component('mm_drag', mm_drag);
|
|
73
|
-
}
|
|
74
|
-
}
|
package/bin/static/src/router.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
define(["Vue", "VueRouter", "mm_sdk", "nav"], function(Vue, VueRouter, mm_sdk, nav) {
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
Vue.use(VueRouter);
|
|
5
|
-
var routePath = "/admin";
|
|
6
|
-
var filePath = "/admin";
|
|
7
|
-
var routes = [{
|
|
8
|
-
path: "/not_power",
|
|
9
|
-
component: function component(resolve) {
|
|
10
|
-
return require(["vue!./pages/not_power.vue"], resolve);
|
|
11
|
-
}
|
|
12
|
-
}, {
|
|
13
|
-
path: "/404",
|
|
14
|
-
component: function component(resolve) {
|
|
15
|
-
return require(["vue!./pages/404.vue"], resolve);
|
|
16
|
-
}
|
|
17
|
-
}, {
|
|
18
|
-
path: "*",
|
|
19
|
-
redirect: "/404"
|
|
20
|
-
}];
|
|
21
|
-
|
|
22
|
-
function new_route(o, com) {
|
|
23
|
-
var obj = Object.assign({}, o);
|
|
24
|
-
obj.component = function(resolve) {
|
|
25
|
-
return require(["vue!" + com], resolve);
|
|
26
|
-
};
|
|
27
|
-
return obj;
|
|
28
|
-
}
|
|
29
|
-
var lt = nav.routes;
|
|
30
|
-
for (var i = 0; i < lt.length; i++) {
|
|
31
|
-
var o = lt[i];
|
|
32
|
-
var com = o.component;
|
|
33
|
-
if (com) {
|
|
34
|
-
var obj = new_route(o, com);
|
|
35
|
-
routes.push(obj);
|
|
36
|
-
} else if (o.redirect) {
|
|
37
|
-
routes.push(o);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
var router = new VueRouter({
|
|
42
|
-
mode: "history",
|
|
43
|
-
base: routePath,
|
|
44
|
-
hashbang: true,
|
|
45
|
-
history: false,
|
|
46
|
-
saveScrollPosition: true,
|
|
47
|
-
transitionOnLoad: true,
|
|
48
|
-
routes: routes
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
VueRouter.prototype.goBack = function(url) {
|
|
52
|
-
this.isBack = true;
|
|
53
|
-
if (window.history.length > 1) {
|
|
54
|
-
window.history.go(-1);
|
|
55
|
-
} else if (url) {
|
|
56
|
-
this.push(url);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
router.beforeEach(function(to, from, next) {
|
|
61
|
-
if (to.oauth) {
|
|
62
|
-
var token = $.db.get("token");
|
|
63
|
-
if (to.oauth.signIn && !token) {
|
|
64
|
-
$.url_back = to.path + "?" + $.toUrl(to.query);
|
|
65
|
-
next("/login");
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
next();
|
|
70
|
-
});
|
|
71
|
-
return router;
|
|
72
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
state: function() {
|
|
3
|
-
return {
|
|
4
|
-
// 临时访问牌
|
|
5
|
-
"token": "",
|
|
6
|
-
// 用户名
|
|
7
|
-
"username": "",
|
|
8
|
-
// 推荐人ID
|
|
9
|
-
"referee_id": 0,
|
|
10
|
-
// 会员级别
|
|
11
|
-
"vip": 0,
|
|
12
|
-
// 管理员级别
|
|
13
|
-
"gm": 0,
|
|
14
|
-
// 商家级别
|
|
15
|
-
"mc": 0,
|
|
16
|
-
// 手机号码
|
|
17
|
-
"phone": "",
|
|
18
|
-
// 手机号码认证
|
|
19
|
-
"phone_state": 0,
|
|
20
|
-
// 邮箱
|
|
21
|
-
"email": "",
|
|
22
|
-
// 邮箱认证
|
|
23
|
-
"email_state": 0,
|
|
24
|
-
// 上次登录时的IP地址
|
|
25
|
-
"login_ip": "",
|
|
26
|
-
// 上次登录时间
|
|
27
|
-
"login_time": "",
|
|
28
|
-
// 所在用户组
|
|
29
|
-
"user_group": "",
|
|
30
|
-
// 所在管理组
|
|
31
|
-
"user_admin": "",
|
|
32
|
-
// 个性签名
|
|
33
|
-
"signature": "",
|
|
34
|
-
// 昵称
|
|
35
|
-
"nickname": "",
|
|
36
|
-
// 头像地址
|
|
37
|
-
"avatar": "/img/avatar.png",
|
|
38
|
-
// 邀请注册码
|
|
39
|
-
"invite_code": "",
|
|
40
|
-
// 好友
|
|
41
|
-
"friends": "",
|
|
42
|
-
// 账户状态
|
|
43
|
-
"state": 0
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
mutations: {
|
|
47
|
-
/**
|
|
48
|
-
* @description 设置用户信息
|
|
49
|
-
* @param {Object} state 缓存态
|
|
50
|
-
* @param {Object} obj 用户信息
|
|
51
|
-
*/
|
|
52
|
-
set_user(state, obj) {
|
|
53
|
-
$.push(state, obj);
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* @description 登录
|
|
57
|
-
* @param {Object} state 缓存态
|
|
58
|
-
* @param {String} token 临时访问牌
|
|
59
|
-
*/
|
|
60
|
-
login(state, token) {
|
|
61
|
-
state.token = token;
|
|
62
|
-
$.db.set("token", token, 120);
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* @description 退出
|
|
66
|
-
* @param {Object} state 缓存态
|
|
67
|
-
*/
|
|
68
|
-
logout(state) {
|
|
69
|
-
$.obj.clear(state);
|
|
70
|
-
$.db.del("token");
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
actions: {},
|
|
74
|
-
getters: {}
|
|
75
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
define(["nav"], function(nav) {
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
var web = {
|
|
5
|
-
state: function state() {
|
|
6
|
-
var n = Object.assign({}, nav);
|
|
7
|
-
delete n.routes;
|
|
8
|
-
return {
|
|
9
|
-
config: [],
|
|
10
|
-
nav: Object.assign({
|
|
11
|
-
cache: [{
|
|
12
|
-
title: "首页",
|
|
13
|
-
name: "index",
|
|
14
|
-
url: "/"
|
|
15
|
-
}]
|
|
16
|
-
}, n),
|
|
17
|
-
lang_now: "",
|
|
18
|
-
lang: []
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
mutations: {
|
|
22
|
-
set_web: function set_web(state, obj) {
|
|
23
|
-
$.push(state, obj);
|
|
24
|
-
},
|
|
25
|
-
set_config: function set_config(state, arr) {
|
|
26
|
-
state.config.clear();
|
|
27
|
-
state.config.addList(arr);
|
|
28
|
-
},
|
|
29
|
-
set_nav: function set_nav(state, obj) {
|
|
30
|
-
$.push(state.nav, obj);
|
|
31
|
-
},
|
|
32
|
-
set_nav_cache: function set_nav_cache(state, o) {
|
|
33
|
-
var list = state.nav.cache;
|
|
34
|
-
var bl = list.has({
|
|
35
|
-
url: o.url
|
|
36
|
-
});
|
|
37
|
-
if (!bl) {
|
|
38
|
-
list.push(o);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
del_nav_cache: function del_nav_cache(state, o) {
|
|
42
|
-
var list = state.nav.cache;
|
|
43
|
-
list.del({
|
|
44
|
-
url: o.url
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
return web;
|
|
50
|
-
});
|
|
Binary file
|
package/bin/static/w3c.html
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>W3C规范页面示例</title>
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<div id="app">
|
|
9
|
-
<!-- 页面框架 -->
|
|
10
|
-
<div class="page">
|
|
11
|
-
<!-- 页眉 -->
|
|
12
|
-
<div class="head">
|
|
13
|
-
<!-- 顶部导航模块 -->
|
|
14
|
-
<div class="block" id="nav_top">
|
|
15
|
-
<!-- 导航栏 (可封装成组件) -->
|
|
16
|
-
<div class="bar_nav">
|
|
17
|
-
<a href="/"><span>首页</span></a>
|
|
18
|
-
<a href="/news"><span>新闻</span></a>
|
|
19
|
-
<a href="/doc"><span>文档</span></a>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<!-- 页主体 -->
|
|
24
|
-
<div class="body">
|
|
25
|
-
<!-- 主要文章模块 -->
|
|
26
|
-
<div class="block" id="article_main">
|
|
27
|
-
<!-- 标题栏 -->
|
|
28
|
-
<div class="mm_title"><span class="h5">最新文章</span></div>
|
|
29
|
-
<div class="block_body">
|
|
30
|
-
<!-- 文章列表(可封装成组件) -->
|
|
31
|
-
<div class="list_article">
|
|
32
|
-
<!-- 列表项 -->
|
|
33
|
-
<a href="/article_view?article_id=1">
|
|
34
|
-
<div class="icon">
|
|
35
|
-
<img src="/static/img/logo.png" alt="对应标题" />
|
|
36
|
-
</div>
|
|
37
|
-
<div class="info">
|
|
38
|
-
<div class="title"><span>标题</span></div>
|
|
39
|
-
<div class="desc"><span>描述</span></div>
|
|
40
|
-
</div>
|
|
41
|
-
</a>
|
|
42
|
-
<a href="/article_view?article_id=2">
|
|
43
|
-
<div class="icon">
|
|
44
|
-
<img src="/static/img/logo.png" alt="对应标题" />
|
|
45
|
-
</div>
|
|
46
|
-
<div class="info">
|
|
47
|
-
<div class="title"><span>标题</span></div>
|
|
48
|
-
<div class="desc"><span>描述</span></div>
|
|
49
|
-
</div>
|
|
50
|
-
</a>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<!-- 页脚 -->
|
|
56
|
-
<div class="foot">
|
|
57
|
-
<!-- 底部标签栏模块 -->
|
|
58
|
-
<div class="block" id="tags_bottom">
|
|
59
|
-
<!-- 标签栏(可封装成组件) -->
|
|
60
|
-
<div class="bar_tags">
|
|
61
|
-
<!-- 标签项 -->
|
|
62
|
-
<a href="/article_view?article_id=1">
|
|
63
|
-
<div class="icon">
|
|
64
|
-
<img src="/static/img/logo.png" alt="首页" />
|
|
65
|
-
</div>
|
|
66
|
-
<div class="info">
|
|
67
|
-
<div class="title"><span>首页</span></div>
|
|
68
|
-
</div>
|
|
69
|
-
</a>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- 模态窗 -->
|
|
74
|
-
<div class="modal">
|
|
75
|
-
<!-- 账户登录模块 -->
|
|
76
|
-
<div class="block" id="account_login">
|
|
77
|
-
<!-- 账户表单(可封装成组件) -->
|
|
78
|
-
<div class="form_account">
|
|
79
|
-
<div class="item">
|
|
80
|
-
<label>用户名</label><input name="username" type="text" value="" />
|
|
81
|
-
</div>
|
|
82
|
-
<div class="item">
|
|
83
|
-
<label>密码</label><input name="password" type="text" value="" />
|
|
84
|
-
</div>
|
|
85
|
-
<div class="item">
|
|
86
|
-
<button name="login"><span>登录</span></button>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</body>
|
|
94
|
-
</html>
|
package/init.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
require("mm_expand");
|
|
2
|
-
require("mm_logs");
|
|
3
|
-
require('mm_tpl');
|
|
4
|
-
require("mm_https");
|
|
5
|
-
require('mm_crypto');
|
|
6
|
-
require('mm_matchs');
|
|
7
|
-
require("mm_timer");
|
|
8
|
-
$.Html = require('mm_html');
|
|
9
|
-
|
|
10
|
-
$.binPath = __dirname.fullname();
|
|
11
|
-
$.redis_admin = require("mm_redis").redis_admin;
|
|
12
|
-
$.mongodb_admin = require("mm_mongodb").mongodb_admin;
|
|
13
|
-
$.mysql_admin = require('mm_mysql').mysql_admin;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @param {Object} config
|
|
17
|
-
*/
|
|
18
|
-
module.exports = function(config) {
|
|
19
|
-
var sys = config.sys;
|
|
20
|
-
// 选择缓存方式,默认memory缓存
|
|
21
|
-
if (sys.cache == 'redis') {
|
|
22
|
-
// 将Api的缓存改为redis方式,如果不用redis可以将以下4行注释掉
|
|
23
|
-
var redis = $.redis_admin('sys');
|
|
24
|
-
redis.setConfig(config.redis);
|
|
25
|
-
redis.open();
|
|
26
|
-
$.cache = redis;
|
|
27
|
-
} else if (sys.cache == 'cache') {
|
|
28
|
-
// 将Api的缓存改为cache方式, 本地缓存方式
|
|
29
|
-
$.cache = $.cache_admin();
|
|
30
|
-
} else if (sys.cache == 'mongodb') {
|
|
31
|
-
// 将Api的缓存改为mongoDB方式
|
|
32
|
-
$.cache = $.mongodb_admin();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 选择数据库
|
|
36
|
-
if (sys.db == 'mysql') {
|
|
37
|
-
$.sql = $.mysql_admin('sys', __dirname);
|
|
38
|
-
$.sql.setConfig(config.mysql);
|
|
39
|
-
$.sql.open();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 引用公共库
|
|
43
|
-
if (sys.com == true) {
|
|
44
|
-
"/app".addDir();
|
|
45
|
-
var Com = require("./bin/com.js");
|
|
46
|
-
$.com = new Com(null, $);
|
|
47
|
-
$.com.run();
|
|
48
|
-
|
|
49
|
-
if(sys.db_admin){
|
|
50
|
-
$.db_admin('sys').update;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return config;
|
|
55
|
-
};
|
package/update.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm i mm_cache mm_cachebase mm_check mm_crypto mm_es6_to_amd mm_expand mm_html mm_https mm_logs mm_machine mm_matchs mm_mongodb mm_mysql mm_process mm_redis mm_ret mm_session mm_statics mm_timer mm_tpl mm_xml
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{bin/rps.bat → rps.bat}
RENAMED
|
File without changes
|
/package/{bin/tps.bat → tps.bat}
RENAMED
|
File without changes
|