diff --git a/.env.development b/.env.development index 002371a0..f68e3e06 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,5 @@ -VUE_APP_BASE_API = '/api-dev' +VUE_APP_BASE_API = '/api' +ENV = 'development' // With this configuration, vue-cli uses babel-plugin-dynamic-import-node // It only does one thing by converting all import() to require() diff --git a/.env.production b/.env.production index 6823bd93..8ea6337a 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ -VUE_APP_BASE_API = '/api-prod' +VUE_APP_BASE_API = '/api' +ENV = 'production' diff --git a/.env.sit b/.env.sit deleted file mode 100644 index 81839fe2..00000000 --- a/.env.sit +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV=production -VUE_APP_BASE_API = '/api-sit' diff --git a/.env.staging b/.env.staging new file mode 100644 index 00000000..2015f804 --- /dev/null +++ b/.env.staging @@ -0,0 +1,3 @@ +NODE_ENV=production +VUE_APP_BASE_API = '/api' +ENV = 'staging' diff --git a/package.json b/package.json index 0c2b1656..a18a8a33 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", - "build:sit": "vue-cli-service build --mode sit", + "build:stage": "vue-cli-service build --mode staging", "build:preview": "node build/index.js --preview", "build:report": "node build/index.js --report", "lint": "eslint --ext .js,.vue src", @@ -39,31 +39,31 @@ "dependencies": { "axios": "0.18.0", "clipboard": "1.7.1", - "codemirror": "5.42.0", - "driver.js": "0.8.1", + "codemirror": "5.44.0", + "driver.js": "0.9.5", "dropzone": "5.5.1", "echarts": "4.1.0", - "element-ui": "2.4.10", - "file-saver": "1.3.8", - "fuse.js": "3.4.2", + "element-ui": "2.6.1", + "file-saver": "2.0.1", + "fuse.js": "3.4.4", "js-cookie": "2.2.0", "jsonlint": "1.6.3", - "jszip": "3.1.5", + "jszip": "3.2.0", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", - "screenfull": "4.0.0", - "showdown": "1.8.6", - "sortablejs": "1.7.0", - "tui-editor": "1.2.7", - "vue": "2.5.17", + "screenfull": "4.0.1", + "showdown": "1.9.0", + "sortablejs": "1.8.3", + "tui-editor": "1.3.2", + "vue": "2.6.8", "vue-count-to": "1.0.13", "vue-i18n": "7.3.2", "vue-router": "3.0.2", "vue-splitpane": "1.0.2", "vuedraggable": "2.17.0", - "vuex": "3.0.1", - "xlsx": "^0.11.16" + "vuex": "3.1.0", + "xlsx": "0.14.1" }, "devDependencies": { "@babel/core": "7.0.0", @@ -76,8 +76,8 @@ "babel-core": "7.0.0-bridge.0", "babel-eslint": "10.0.1", "babel-jest": "23.6.0", - "chalk": "^2.4.1", - "connect": "^3.6.6", + "chalk": "2.4.2", + "connect": "3.6.6", "eslint": "5.15.1", "eslint-plugin-vue": "5.2.2", "husky": "0.14.3", @@ -90,8 +90,8 @@ "script-loader": "0.7.2", "serve-static": "^1.13.2", "svg-sprite-loader": "4.1.3", - "svgo": "1.1.1", - "vue-template-compiler": "2.5.17" + "svgo": "1.2.0", + "vue-template-compiler": "2.6.8" }, "engines": { "node": ">=8.9", diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue index d3acfb62..f3adb327 100644 --- a/src/components/HeaderSearch/index.vue +++ b/src/components/HeaderSearch/index.vue @@ -18,6 +18,8 @@