diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-20 23:22:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 23:22:59 +0900 |
| commit | 11349561d697b11df7bcaa3d57ed3498eb4dd3c5 (patch) | |
| tree | 8dfe96ed7c9b695872b7d416383920355621d3c3 /src/client/components/instance-stats.vue | |
| parent | Tweak style (diff) | |
| download | sharkey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.tar.gz sharkey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.tar.bz2 sharkey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.zip | |
Use FontAwesome as web font instead of vue component (#7469)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update yarn.lock
* wip
* wip
Diffstat (limited to 'src/client/components/instance-stats.vue')
| -rw-r--r-- | src/client/components/instance-stats.vue | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/client/components/instance-stats.vue b/src/client/components/instance-stats.vue index 75abefc2fe..aa01f1c806 100644 --- a/src/client/components/instance-stats.vue +++ b/src/client/components/instance-stats.vue @@ -3,7 +3,7 @@ <div class="stats" v-if="info"> <div class="_panel"> <div> - <b><Fa :icon="faUser"/>{{ $ts.users }}</b> + <b><i class="fas fa-user"></i>{{ $ts.users }}</b> <small>{{ $ts.local }}</small> </div> <div> @@ -23,7 +23,7 @@ </div> <div class="_panel"> <div> - <b><Fa :icon="faUser"/>{{ $ts.users }}</b> + <b><i class="fas fa-user"></i>{{ $ts.users }}</b> <small>{{ $ts.remote }}</small> </div> <div> @@ -43,7 +43,7 @@ </div> <div class="_panel"> <div> - <b><Fa :icon="faPencilAlt"/>{{ $ts.notes }}</b> + <b><i class="fas fa-pencil-alt"></i>{{ $ts.notes }}</b> <small>{{ $ts.local }}</small> </div> <div> @@ -63,7 +63,7 @@ </div> <div class="_panel"> <div> - <b><Fa :icon="faPencilAlt"/>{{ $ts.notes }}</b> + <b><i class="fas fa-pencil-alt"></i>{{ $ts.notes }}</b> <small>{{ $ts.remote }}</small> </div> <div> @@ -84,7 +84,7 @@ </div> <section class="_card"> - <div class="_title" style="position: relative;"><Fa :icon="faChartBar"/> {{ $ts.statistics }}<button @click="fetchChart" class="_button" style="position: absolute; right: 0; bottom: 0; top: 0; padding: inherit;"><Fa :icon="faSync"/></button></div> + <div class="_title" style="position: relative;"><i class="fas fa-chart-bar"></i> {{ $ts.statistics }}<button @click="fetchChart" class="_button" style="position: absolute; right: 0; bottom: 0; top: 0; padding: inherit;"><i class="fas fa-sync"></i></button></div> <div class="_content" style="margin-top: -8px;"> <div class="selects" style="display: flex;"> <MkSelect v-model:value="chartSrc" style="margin: 0; flex: 1;"> @@ -123,7 +123,6 @@ <script lang="ts"> import { defineComponent, markRaw } from 'vue'; -import { faChartBar, faUser, faPencilAlt, faSync } from '@fortawesome/free-solid-svg-icons'; import Chart from 'chart.js'; import MkSelect from './ui/select.vue'; import number from '@client/filters/number'; @@ -173,7 +172,6 @@ export default defineComponent({ chartInstance: null, chartSrc: 'notes', chartSpan: 'hour', - faChartBar, faUser, faPencilAlt, faSync } }, @@ -666,7 +664,7 @@ export default defineComponent({ > b { display: block; - > [data-icon] { + > i { width: 16px; margin-right: 8px; } |