Skip to content

Commit

Permalink
Chore: Upgrade vue-css-donut-chart & related charts
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Sep 1, 2024
1 parent f95147f commit dc1a16e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/ui-src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import mitt from 'mitt';
import './assets/styles.scss'
import 'bootstrap-icons/font/bootstrap-icons.scss'
import 'bootstrap'
import 'vue-css-donut-chart/src/styles/main.css'

const app = createApp(App)

Expand Down
8 changes: 4 additions & 4 deletions server/ui-src/components/message/HTMLCheck.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Donut from 'vue-css-donut-chart/src/components/Donut.vue'
import { VcDonut } from 'vue-css-donut-chart'
import axios from 'axios'
import commonMixins from '../../mixins/CommonMixins'
import { Tooltip } from 'bootstrap'
Expand All @@ -10,7 +10,7 @@ export default {
},
components: {
Donut,
VcDonut,
},
emits: ["setHtmlScore", "setBadgeStyle"],
Expand Down Expand Up @@ -299,7 +299,7 @@ export default {
<div class="mt-5 mb-3">
<div class="row w-100">
<div class="col-md-8">
<Donut :sections="graphSections" background="var(--bs-body-bg)" :size="180" unit="px"
<vc-donut :sections="graphSections" background="var(--bs-body-bg)" :size="180" unit="px"
:thickness="20" has-legend legend-placement="bottom" :total="100" :start-angle="0"
:auto-adjust-text-size="true" @section-click="scrollToWarnings">
<h2 class="m-0" :class="scoreColor" @click="scrollToWarnings">
Expand Down Expand Up @@ -327,7 +327,7 @@ export default {
calculated from {{ formatNumber(check.Total.Tests) }} tests
</p>
</template>
</Donut>
</vc-donut>

<div class="input-group justify-content-center mb-3">
<button class="btn btn-outline-secondary" data-bs-toggle="modal"
Expand Down
8 changes: 4 additions & 4 deletions server/ui-src/components/message/SpamAssassin.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Donut from 'vue-css-donut-chart/src/components/Donut.vue'
import { VcDonut } from 'vue-css-donut-chart'
import axios from 'axios'
import commonMixins from '../../mixins/CommonMixins'
Expand All @@ -9,7 +9,7 @@ export default {
},
components: {
Donut,
VcDonut,
},
emits: ["setSpamScore", "setBadgeStyle"],
Expand Down Expand Up @@ -156,7 +156,7 @@ export default {
<template v-else-if="check">
<div class="row w-100 mt-5">
<div class="col-xl-5 mb-2">
<Donut :sections="graphSections" background="var(--bs-body-bg)" :size="230" unit="px" :thickness="20"
<vc-donut :sections="graphSections" background="var(--bs-body-bg)" :size="230" unit="px" :thickness="20"
:total="100" :start-angle="270" :auto-adjust-text-size="true" foreground="#198754">
<h2 class="m-0" :class="scoreColor" @click="scrollToWarnings">
{{ check.Score }} / 5
Expand All @@ -165,7 +165,7 @@ export default {
<span v-if="check.IsSpam" class="text-white badge rounded-pill bg-danger p-2">Spam</span>
<span v-else class="badge rounded-pill p-2" :class="badgeStyle()">Not spam</span>
</div>
</Donut>
</vc-donut>
</div>
<div class="col-xl-7">
<div class="row w-100 py-2 border-bottom">
Expand Down

0 comments on commit dc1a16e

Please sign in to comment.