diff --git a/.editorconfig b/.editorconfig index 3454886..998a803 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -# https://editorconfig.org + root = true [*] diff --git a/.env.development b/.env.development index d9a2132..c2b274a 100644 --- a/.env.development +++ b/.env.development @@ -4,5 +4,6 @@ ENV = 'development' VUE_APP_BASE_API = 'http://localhost:8000' VUE_APP_WS_API = 'ws://localhost:8000' + # 是否启用 babel-plugin-dynamic-import-node插件 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production index 3556336..b458d18 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,6 @@ ENV = 'production' + # 接口地址 VUE_APP_BASE_API = 'https://yshopapi.dayouqiantu.cn' VUE_APP_WS_API = 'ws://yshopapi.dayouqiantu.cn' diff --git a/.eslintignore b/.eslintignore index 4fb3810..486493c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,5 @@ src/assets public dist src/views + + diff --git a/.eslintrc.js b/.eslintrc.js index c977505..3fda555 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,6 @@ module.exports = { }, extends: ['plugin:vue/recommended', 'eslint:recommended'], - // add your custom rules here //it is base on https://github.com/vuejs/eslint-config-vue rules: { "vue/max-attributes-per-line": [2, { diff --git a/.gitignore b/.gitignore index 78a752d..eec9ba5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ tests/**/coverage/ tests/e2e/reports selenium-debug.log -# Editor directories and files +# directories and files .idea .vscode *.suo diff --git a/.travis.yml b/.travis.yml index f4be7a0..030c6e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ node_js: 10 script: npm run test notifications: email: false + diff --git a/LICENSE b/LICENSE index 78a36cb..02e627a 100644 --- a/LICENSE +++ b/LICENSE @@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 Zheng Jie + Copyright 2019 Zheng Jie, hu peng Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/babel.config.js b/babel.config.js index 804632a..fc18456 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ const plugins = ['@vue/babel-plugin-transform-vue-jsx'] -// 生产环境移除console +// 生产环境移除 console if (process.env.NODE_ENV === 'production') { plugins.push('transform-remove-console') } diff --git a/jest.config.js b/jest.config.js index 143cdc8..f5dd736 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,7 +15,7 @@ module.exports = { ], collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'], coverageDirectory: '/tests/unit/coverage', - // 'collectCoverage': true, + // 'collectCoverage': true, 'coverageReporters': [ 'lcov', 'text-summary' diff --git a/package.json b/package.json index 148d1ab..c6d7161 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "yshop-web", "version": "2.4.0", - "description": "yshop 前端源码", + "description": "yshop2.0 前端源码", "author": "Zheng Jie", "license": "Apache-2.0", "scripts": { diff --git a/plopfile.js b/plopfile.js index 9f3147e..26eda24 100644 --- a/plopfile.js +++ b/plopfile.js @@ -5,3 +5,4 @@ module.exports = function(plop) { plop.setGenerator('view', viewGenerator) plop.setGenerator('component', componentGenerator) } + diff --git a/postcss.config.js b/postcss.config.js index 961986e..c4f8e98 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,3 +3,4 @@ module.exports = { autoprefixer: {} } } + diff --git a/src/components/material/index.vue b/src/components/material/index.vue index 7ac92f7..0f0de5e 100644 --- a/src/components/material/index.vue +++ b/src/components/material/index.vue @@ -103,6 +103,7 @@ :src="item.url" fit="contain" :preview-src-list="[item.url]" + z-index="999" />
@@ -458,6 +459,9 @@ export default {