This commit is contained in:
Pan 2019-03-11 16:56:27 +08:00
parent 653de1f31e
commit 66e8ca9cec
6 changed files with 27 additions and 22 deletions

View File

@ -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()

View File

@ -1 +1,2 @@
VUE_APP_BASE_API = '/api-prod'
VUE_APP_BASE_API = '/api'
ENV = 'production'

View File

@ -1,2 +0,0 @@
NODE_ENV=production
VUE_APP_BASE_API = '/api-sit'

3
.env.staging Normal file
View File

@ -0,0 +1,3 @@
NODE_ENV=production
VUE_APP_BASE_API = '/api'
ENV = 'staging'

View File

@ -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",

View File

@ -18,6 +18,8 @@
</template>
<script>
// fuse is a lightweight fuzzy-search module
// make search results more in line with expectations
import Fuse from 'fuse.js'
import path from 'path'
import i18n from '@/lang'