8000 chore(client addon): update deps · Akryum/vue-cli-plugin-apollo@c1d7214 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1d7214

Browse files
author
Guillaume Chau
committed
chore(client addon): update deps
1 parent aabcf78 commit c1d7214

11 files changed

+695
-429
lines changed

client-addon/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
'@vue/standard',
99
],
1010
rules: {
11-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
11+
'no-console': process.env.NODE_ENV === 'production' ? 'warning' : 'off',
1212
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1313
'comma-dangle': ['error', 'always-multiline'],
1414
},

client-addon/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/app',
3+
'@vue/cli-plugin-babel/preset',
44
],
55
}

client-addon/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@
1010
"dependencies": {
1111
"@vue/cli-ui": "^3.0.0",
1212
"@vue/ui": "^0.5.6",
13+
"core-js": "^3.1.2",
1314
"d3": "^5.7.0",
1415
"vue": "^2.5.16"
1516
},
1617
"devDependencies": {
17-
"@vue/cli-plugin-babel": "^3.0.0",
18-
"@vue/cli-plugin-eslint": "^3.0.0",
19-
"@vue/cli-service": "^3.0.0",
18+
"@vue/cli-plugin-babel": "^4.0.4",
19+
"@vue/cli-plugin-eslint": "^4.0.4",
20+
"@vue/cli-service": "^4.0.4",
2021
"@vue/cli-ui": "^3.0.0",
2122
"@vue/eslint-config-standard": "^4.0.0",
23+
"eslint": "^4.19.1",
24+
"eslint-plugin-vue": "^5.2.3",
2225
"stylus": "^0.54.5",
2326
"stylus-loader": "^3.0.2",
2427
"vue-template-compiler": "^2.5.16"

client-addon/src/components/SimpleGraph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
const l = points.length
4747
for (const point of points) {
4848
const operator = path ? 'L' : 'M'
49-
const position = `${index / l * 100},${100 - this.scale(point.value)}`
49+
const position = `${index / l * 100},${100 - scale(point.value)}`
5050
path += `${operator}${position}`
5151
index++
5252
}

client-addon/src/components/widgets/EngineKeyMetrics.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/>
2626
<div>No available data</div>
2727
</div>
28-
28+
2929
<component
3030
v-else
3131
:is="component"
@@ -51,7 +51,7 @@ const bus = new Vue()
5151
5252
export default {
5353
inject: [
54-
'widget'
54+
'widget',
5555
],
5656
5757
sharedData () {
@@ -71,7 +71,7 @@ export default {
7171
computed: {
7272
component () {
7373
return COMPONENTS[this.widget.data.config.type]
74-
}
74+
},
7575
},
7676
7777
watch: {
@@ -89,7 +89,7 @@ export default {
8989
disabled: () => this.loading,
9090
onCalled: () => {
9191
bus.$emit('refresh')
92-
}
92+
},
9393
})
9494
9595
this.widget.addHeaderAction({
@@ -98,7 +98,7 @@ export default {
9898
tooltip: 'Open Apollo Engine',
9999
onCalled: () => {
100100
window.open(`${this.engineFrontend}/service/${this.widget.data.config.service}/metrics`, '_blank')
101-
}
101+
},
102102
})
103103
104104
bus.$on('refresh', this.fetchMetrics)
@@ -127,7 +127,7 @@ export default {
127127
}
128128
129129
this.loading = false
130-
}
130+
},
131131
},
132132
}
133133
</script>

client-addon/src/components/widgets/EngineKeyMetricsErrorPercentage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
methods: {
4848
getErrorRate (metrics) {
4949
if (metrics.requestsWithErrorsCount === 0) return 0
50-
return metrics.requestsWithErrorsCount /
50+
return metrics.requestsWithErrorsCount /
5151
(metrics.uncachedRequestsCount +
5252
metrics.cachedRequestsCount)
5353
},
@@ -65,7 +65,7 @@ export default {
6565
queries={this.queries}
6666
rawData={this.data}
6767
/>
68-
}
68+
},
6969
}
7070
</script>
7171

client-addon/src/components/widgets/EngineKeyMetricsP95Time.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
queries={this.queries}
5757
rawData={this.data}
5858
/>
59-
}
59+
},
6060
}
6161
</script>
6262

client-addon/src/components/widgets/EngineKeyMetricsRequestRate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969
queries={this.queries}
7070
rawData={this.data}
7171
/>
72-
}
72+
},
7373
}
7474
</script>
7575

< D87B /div>

client-addon/src/components/widgets/EngineKeyMetricsView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ export default {
177177
&.small-width
178178
.top
179179
flex-direction column
180-
180+
181181
.infos
182182
display flex
183183
.title
184184
flex 1
185-
185+
186186
.secondary-infos
187187
display none
188188

client-addon/src/utils/math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export function formatNumber (value) {
1515
}
1616
}
1717
return round(result)
18-
}
18+
}

0 commit comments

Comments
 (0)
0