Skip to content

Commit

Permalink
Merge pull request #1 from superconsensus/dev
Browse files Browse the repository at this point in the history
xuper scan v1
  • Loading branch information
qizheng09 authored Sep 23, 2021
2 parents 7382eec + 79fdcfd commit 794f200
Show file tree
Hide file tree
Showing 36 changed files with 33,866 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
root: true, //此项是用来告诉eslint找当前配置文件不能往父级查找
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:vue/essential"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"process": true
},
parserOptions: {
parser: "babel-eslint"
},
"plugins": [
"vue"
],
rules: {
/*这里是eslint规则*/
"no-console":"off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
}
}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
19 changes: 19 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
plugins: {
autoprefixer: {}, // 用来给不同的浏览器自动添加相应前缀,如-webkit-,-moz-等等
"postcss-px-to-viewport": {
unitToConvert: "px", // 要转化的单位
viewportWidth: 750, // UI设计稿的宽度
unitPrecision: 6, // 转换后的精度,即小数点位数
propList: ["*"], // 指定转换的css属性的单位,*代表全部css属性的单位都进行转换
viewportUnit: "vw", // 指定需要转换成的视窗单位,默认vw
fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位,默认vw
selectorBlackList: ["wrap"], // 指定不转换为视窗单位的类名,
minPixelValue: 1, // 默认值1,小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/node_modules/], // 设置忽略文件,用正则做目录名匹配
landscape: false // 是否处理横屏情况
}
}
};
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# xuperscan
# my-vue-template

## 下载依赖
```
npm install
```

### 启动项目
```
npm run serve
```

### 打包项目
```
npm run bulid
```

### 项目所需安装包以及版本
"ant-design-vue": "^1.7.5",
"antd": "^4.16.1",
"axios": "^0.21.1",
"clipboard": "^2.0.8",
"core-js": "^3.6.5",
"echarts": "^5.1.2",
"install": "^0.13.0",
"lib-flexible": "^0.3.2",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"npm": "^7.15.1",
"postcss": "^8.3.0",
"vue": "^2.6.11",
"vue-json-viewer": "^2.2.19",
"vue-json-views": "^1.3.0",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"]
};
Loading

0 comments on commit 794f200

Please sign in to comment.