File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
2- <ServiceBases v-bind =" props " >
2+ <ServiceBase v-bind =" props " >
33 <template #description >
4- Server responded in <span class =" border-b border-dashed" >{{ ping?.time || 0 }}ms</span >
4+ <template v-if =" ping ?.time >= 0 " >
5+ {{ $t('service.ping.description') }} <span class =" border-b border-dashed" >{{ ping.time }} {{ $t('service.ping.units') }}</span >
6+ </template >
7+ <template v-else >
8+ {{ $t('service.ping.error') }}
9+ </template >
510 </template >
6- </ServiceBases >
11+ </ServiceBase >
712</template >
813
914<script setup lang="ts">
1015import type { PingService } from ' ~/types/services'
11- import ServiceBases from ' ~/components/service/Base.vue'
1216
1317const props = defineProps <PingService >()
1418
Original file line number Diff line number Diff line change 66 v-bind =" group "
77 />
88 </template >
9- <Message v-else title="Services not found">
9+ <Message v-else : title =" $t ( ' service. not- found.title ' ) " >
1010 <template #text >
1111 <p >
12- Oops! You did not specify a list of services in < span class = " border-b border-dashed " >config.yaml</ span >
12+ {{ $t('service. not-found.description') }}
1313 </p >
1414 <p class =" mt-1" >
15- <a href =" #" class =" text-sky-500 hover:text-sky-800" >Go to documentation </a >
15+ <a href =" #" class =" text-sky-500 hover:text-sky-800" >{{ $t('service.not-found.action') }} </a >
1616 </p >
1717 </template >
1818 </Message >
You can’t perform that action at this time.
0 commit comments