Skip to content

Commit 120be23

Browse files
author
Guillaume Chau
committed
feat(ui): webpack: build status emphasize errors/warnings
1 parent 7e8ed6a commit 120be23

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

packages/@vue/cli-ui-addon-webpack/src/components/BuildStatus.vue

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@
77
</div>
88
<div class="value">{{ $t(`org.vue.vue-webpack.dashboard.webpack-status.${status || 'Idle'}`) }}</div>
99
</div>
10-
<div class="info-block errors">
10+
<div
11+
class="info-block errors"
12+
:class="{
13+
emphasize: errors.length
14+
}"
15+
>
1116
<div class="label">
1217
{{ $t('org.vue.vue-webpack.dashboard.build-status.labels.errors') }}
1318
</div>
1419
<div class="value">{{ errors.length }}</div>
1520
</div>
16-
<div class="info-block warnings">
21+
<div
22+
class="info-block warnings"
23+
:class="{
24+
emphasize: warnings.length
25+
}"
26+
>
1727
<div class="label">
1828
{{ $t('org.vue.vue-webpack.dashboard.build-status.labels.warnings') }}
1929
</div>
@@ -103,4 +113,13 @@ export default {
103113
display grid
104114
grid-template-columns repeat(3, 1fr)
105115
grid-gap $padding-item
116+
117+
.info-block
118+
&.emphasize
119+
.value
120+
font-weight bold
121+
&.errors .value
122+
color $vue-ui-color-danger !important
123+
&.warnings .value
124+
color $vue-ui-color-warning !important
106125
</style>

0 commit comments

Comments
 (0)