Skip to content
This repository was archived by the owner on Mar 23, 2018. It is now read-only.

Commit d2b00c0

Browse files
committed
bump dependencies
1 parent 665d80c commit d2b00c0

File tree

5 files changed

+242
-104
lines changed

5 files changed

+242
-104
lines changed

build/webpack/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const webpackConfig = {
4848
// ------------------------------------
4949
// Entry Points
5050
// ------------------------------------
51-
const APP_ENTRY_PATH = ['regenerator-runtime/runtime', paths.src('index.js')]
51+
const APP_ENTRY_PATH = ['babel-polyfill', paths.src('index.js')]
5252

5353
webpackConfig.entry = {
5454
app: __DEV__

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@
5050
"lint"
5151
],
5252
"dependencies": {
53-
"axios": "^0.16.0",
53+
"axios": "^0.16.1",
5454
"bootstrap-styl": "^5.0.8",
55-
"core-js": "^2.4.1",
56-
"echarts": "^3.5.1",
55+
"echarts": "^3.5.2",
5756
"fonts.css": "^1.5.0",
5857
"moment": "^2.18.1",
58+
"qrious": "^2.2.0",
5959
"qs": "^6.4.0",
60-
"v-touch": "^1.1.1",
60+
"v-touch": "^1.2.0",
6161
"vue": "^2.2.6",
62-
"vue-qrious": "^0.1.0",
63-
"vue-router": "^2.3.1",
62+
"vue-qrious": "^0.1.1",
63+
"vue-router": "^2.4.0",
6464
"vuex": "^2.2.1",
6565
"weixin-js-sdk": "^1.2.0"
6666
},
6767
"devDependencies": {
68-
"babel-core": "^7.0.0-alpha.6",
68+
"babel-core": "^7.0.0-alpha.7",
6969
"babel-eslint": "^7.2.1",
7070
"babel-helper-vue-jsx-merge-props": "^2.0.2",
7171
"babel-loader": "^7.0.0-beta.1",
@@ -75,10 +75,10 @@
7575
"babel-plugin-flow-runtime": "^0.10.0",
7676
"babel-plugin-syntax-flow": "^7.0.0-alpha.3",
7777
"babel-plugin-syntax-jsx": "^7.0.0-alpha.3",
78-
"babel-plugin-transform-flow-strip-types": "^7.0.0-alpha.3",
78+
"babel-plugin-transform-flow-strip-types": "^7.0.0-alpha.7",
7979
"babel-plugin-transform-vue-jsx": "^3.4.2",
80-
"babel-polyfill": "^7.0.0-alpha.3",
81-
"babel-preset-env": "^2.0.0-alpha.3",
80+
"babel-polyfill": "^7.0.0-alpha.7",
81+
"babel-preset-env": "2.0.0-alpha.3",
8282
"babel-preset-stage-0": "^7.0.0-alpha.3",
8383
"babel-register": "^7.0.0-alpha.6",
8484
"chai": "^3.5.0",

src/entry.js

-47
This file was deleted.

src/index.js

+46-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,52 @@
11
import 'styles/bootstrap'
22
import 'styles/app'
33

4-
const resolveEntry = () => import('./entry')
4+
import Vue from 'vue'
55

6-
typeof Object.entries === 'function' ? resolveEntry() : import('core-js/shim').then(resolveEntry)
6+
import 'plugins'
7+
8+
import store, {dispatch, getters} from 'store'
9+
import router from 'router'
10+
import App from 'views/App'
11+
12+
import utils, {on, throttle} from 'utils'
13+
14+
Object.defineProperty(Vue.prototype, '$util', {
15+
value: utils,
16+
readable: true,
17+
writable: __DEV__
18+
})
19+
20+
const {documentElement: docEl} = document
21+
22+
const resize = () => {
23+
const winHeight = docEl.clientHeight
24+
store.dispatch('setSize', {winHeight, winWidth: docEl.clientWidth})
25+
docEl.style.fontSize = store.getters.fontSize + 'px'
26+
}
27+
28+
on(window, {
29+
resize: throttle(resize),
30+
click: () => getters.menuOpen && dispatch('toggleMenuOpen', false)
31+
})
32+
33+
resize()
34+
35+
if (!__PROD__) {
36+
utils.logout = () => {
37+
store.dispatch('resetRole')
38+
location.reload()
39+
}
40+
}
41+
42+
if (module.hot) module.hot.accept()
43+
44+
// eslint-disable-next-line no-new
45+
new Vue({
46+
...App,
47+
el: '#app',
48+
store,
49+
router
50+
})
751

852
location.protocol === 'https:' && navigator.serviceWorker && navigator.serviceWorker.register('/service-worker.js')

0 commit comments

Comments
 (0)