Skip to content

Commit 87a9aff

Browse files
committed
clean warning
1 parent 607f05a commit 87a9aff

File tree

35 files changed

+446
-485
lines changed

35 files changed

+446
-485
lines changed

.eslintrc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ module.exports = {
99
extends: ['plugin:vue/recommended', 'eslint:recommended'],
1010
parserOptions: {
1111
parser: '@babel/eslint-parser',
12-
sourceType: 'module',
13-
requireConfigFile: false
12+
sourceType: 'module'
1413
},
1514
rules: {
15+
'vue/multi-word-component-names': 'off',
16+
'vue/max-attributes-per-line': 'off',
17+
'vue/html-self-closing': 'off',
18+
'vue/singleline-html-element-content-newline': 'off',
19+
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
1620
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
1721
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
1822
}

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
VER=2.1.2
2-
NODE_VER=10.17.0-stretch
2+
NODE_VER=18
33
DOCKER_IMG_NAME=appmesh-ui:${VER}
44

55
all:
@@ -31,8 +31,8 @@ run:
3131
appc reg -n appweb --perm 11 --exit restart -u root -e APP_DOCKER_OPTS="--net=host -v /opt/appmesh/ssl/server.pem:/etc/nginx/conf.d/server.crt:ro -v /opt/appmesh/ssl/server-key.pem:/etc/nginx/conf.d/server.key:ro" -d "laoshanxi/appmesh-ui:${VER}" -f
3232

3333
dev:
34-
nvm install 10.17.0
35-
nvm use 10.17.0
34+
nvm install 18
35+
nvm use 18
3636
npm install
3737
npm run dev
3838
#This will automatically open http://localhost:9528

jsconfig.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": "./",
4-
"paths": {
5-
"@/*": ["src/*"]
6-
},
7-
"target": "es6",
8-
"module": "commonjs",
9-
"allowSyntheticDefaultImports": true,
10-
"checkJs": false,
11-
"jsx": "preserve",
12-
"types": [
13-
"@babel/core",
14-
"node"
15-
]
3+
"typeRoots": ["node_modules/@types"],
4+
"types": ["@babel/core", "node"]
165
},
176
"exclude": ["node_modules", "dist"],
187
"include": [

mock/user.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
const tokens = {
32
admin: {
43
token: 'admin-token'
@@ -49,7 +48,7 @@ export default [
4948

5049
// get user info
5150
{
52-
url: '/user/info\.*',
51+
url: '/user/info.*',
5352
type: 'get',
5453
response: config => {
5554
const { token } = config.query

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,22 @@
2222
"element-ui": "^2.15.14",
2323
"js-base64": "^3.7.5",
2424
"js-cookie": "^3.0.5",
25+
"moment": "^2.30.1",
2526
"normalize.css": "^8.0.1",
2627
"nprogress": "^0.2.0",
2728
"path-browserify": "^1.0.1",
2829
"path-to-regexp": "^6.2.1",
2930
"qrcode.vue": "^1.7.0",
30-
"showdown": "^2.1.0",
3131
"vue": "^2.7.16",
3232
"vue-json-viewer": "^2.2.22",
33-
"vue-moment": "^4.1.0",
3433
"vue-router": "^3.6.5",
3534
"vuex": "^3.6.2"
3635
},
3736
"devDependencies": {
3837
"@babel/core": "^7.23.5",
38+
"@babel/eslint-parser": "^7.26.5",
3939
"@babel/register": "^7.22.15",
40+
"@types/babel__core": "^7.20.5",
4041
"@vue/cli-plugin-babel": "^5.0.8",
4142
"@vue/cli-plugin-eslint": "^5.0.8",
4243
"@vue/cli-plugin-unit-jest": "^5.0.8",
@@ -52,8 +53,8 @@
5253
"eslint-plugin-vue": "^9.19.2",
5354
"html-webpack-plugin": "^4",
5455
"mockjs": "^1.1.0",
55-
"sass": "^1.69.5",
56-
"sass-loader": "^13.3.2",
56+
"sass": "^1.83.4",
57+
"sass-loader": "^13.3.3",
5758
"script-loader": "^0.7.2",
5859
"serve-static": "^1.15.0",
5960
"svg-sprite-loader": "^6.0.11",

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import request from "@/utils/request";
1010
export default {
1111
name: "App",
1212
13-
mounted() {},
13+
mounted() { },
1414
};
1515
</script>

src/components/Breadcrumb/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import pathToRegexp from 'path-to-regexp'
13+
import { compile } from 'path-to-regexp'
1414
1515
export default {
1616
data() {
@@ -48,7 +48,7 @@ export default {
4848
pathCompile(path) {
4949
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
5050
const { params } = this.$route
51-
var toPath = pathToRegexp.compile(path)
51+
var toPath = compile(path)
5252
return toPath(params)
5353
},
5454
handleLink(item) {

src/components/Description/index.vue

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<template>
2-
<el-col :span="+col">
3-
<div class="term" :style="termStyle">{{term}}</div>
4-
<div class="detail">
5-
<slot></slot>
6-
</div>
7-
</el-col>
2+
<el-col :span="+col">
3+
<div class="term" :style="termStyle">{{ term }}</div>
4+
<div class="detail">
5+
<slot></slot>
6+
</div>
7+
</el-col>
88
</template>
99

1010
<script>
1111
1212
export default {
1313
name: "Description",
1414
props: {
15-
title: "",
16-
term: "",
17-
termStyle:"",
15+
title: String,
16+
term: String,
17+
termStyle: String,
1818
},
19-
computed:{
20-
col(){
19+
computed: {
20+
col() {
2121
return this.$parent.$parent.col;
2222
}
2323
}
@@ -26,14 +26,16 @@ export default {
2626

2727
<style lang="scss" scoped>
2828
.description_text {
29-
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
29+
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
30+
3031
.title {
3132
font-weight: 700;
3233
font-size: 16px;
3334
line-height: 1.5;
3435
margin-bottom: 20px;
3536
color: #303133;
3637
}
38+
3739
.term {
3840
color: #606266;
3941
font-weight: 400;
@@ -42,13 +44,15 @@ export default {
4244
margin-right: 8px;
4345
white-space: nowrap;
4446
display: table-cell;
47+
4548
&:after {
4649
content: ":";
4750
margin: 0 8px 0 2px;
4851
position: relative;
4952
top: -0.5px;
5053
}
5154
}
55+
5256
.detail {
5357
font-size: 14px;
5458
line-height: 35px;

src/components/Descriptions/index.vue

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div class="description_text">
3-
<div v-if="title" class="title">{{title}}</div>
4-
<el-row :gutter="gutter">
5-
<slot></slot>
6-
</el-row>
3+
<div v-if="title" class="title">{{ title }}</div>
4+
<el-row :gutter="gutter">
5+
<slot></slot>
6+
</el-row>
77
</div>
88
</template>
99

@@ -12,7 +12,10 @@
1212
export default {
1313
name: "DescriptionList",
1414
props: {
15-
title: "",
15+
title: {
16+
type: String,
17+
default: ""
18+
},
1619
gutter: {
1720
type: [Number, String],
1821
default: 20
@@ -34,14 +37,16 @@ export default {
3437

3538
<style lang="scss" scoped>
3639
.description_text {
37-
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
40+
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
41+
3842
.title {
3943
font-weight: 700;
4044
font-size: 16px;
4145
line-height: 1.5;
4246
margin-bottom: 20px;
4347
color: #303133;
4448
}
49+
4550
.term {
4651
color: #606266;
4752
font-weight: 400;
@@ -50,13 +55,15 @@ export default {
5055
margin-right: 8px;
5156
white-space: nowrap;
5257
display: table-cell;
58+
5359
&:after {
5460
content: ":";
5561
margin: 0 8px 0 2px;
5662
position: relative;
5763
top: -0.5px;
5864
}
5965
}
66+
6067
.detail {
6168
font-size: 14px;
6269
line-height: 1.5;

0 commit comments

Comments
 (0)