feat: add NoLog prompt for log component (#10135)

This commit is contained in:
CityFun 2025-08-25 18:56:43 +08:00 committed by GitHub
parent f45af6e0cc
commit 261cb2061b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 0 deletions

View file

@ -37,6 +37,7 @@
> >
<hightlight :log="log" :type="config.colorMode ?? 'nginx'"></hightlight> <hightlight :log="log" :type="config.colorMode ?? 'nginx'"></hightlight>
</div> </div>
<hightlight v-if="visibleLogs.length === 0" :log="$t('commons.log.noLog')" type="system"></hightlight>
</div> </div>
</div> </div>
</template> </template>

View file

@ -348,6 +348,9 @@ const message = {
hourUnit: 'h', hourUnit: 'h',
dayUnit: 'd', dayUnit: 'd',
}, },
log: {
noLog: 'No logs available',
},
}, },
menu: { menu: {
home: 'Overview', home: 'Overview',

View file

@ -337,6 +337,9 @@ const message = {
dayUnit: 'd', dayUnit: 'd',
millisecond: 'ミリ秒', millisecond: 'ミリ秒',
}, },
log: {
noLog: 'ログはありません',
},
}, },
menu: { menu: {
home: '概要', home: '概要',

View file

@ -339,6 +339,9 @@ const message = {
dayUnit: '일', dayUnit: '일',
millisecond: '밀리초', millisecond: '밀리초',
}, },
log: {
noLog: '로그 없음',
},
}, },
menu: { menu: {
home: '개요', home: '개요',

View file

@ -345,6 +345,9 @@ const message = {
dayUnit: 'd', dayUnit: 'd',
millisecond: 'Milisaat', millisecond: 'Milisaat',
}, },
log: {
noLog: 'Tiada log sedia ada',
},
}, },
menu: { menu: {
home: 'Overview', home: 'Overview',

View file

@ -343,6 +343,9 @@ const message = {
dayUnit: 'd', dayUnit: 'd',
millisecond: 'Milissegundo', millisecond: 'Milissegundo',
}, },
log: {
noLog: 'Nenhum log disponível',
},
}, },
menu: { menu: {
home: 'Visão Geral', home: 'Visão Geral',

View file

@ -340,6 +340,9 @@ const message = {
dayUnit: 'д', dayUnit: 'д',
millisecond: 'Миллисекунда', millisecond: 'Миллисекунда',
}, },
log: {
noLog: 'Нет доступных логов',
},
}, },
menu: { menu: {
home: 'Обзор', home: 'Обзор',

View file

@ -352,6 +352,9 @@ const message = {
hourUnit: 'sa', hourUnit: 'sa',
dayUnit: 'g', dayUnit: 'g',
}, },
log: {
noLog: 'Günlük yok',
},
}, },
menu: { menu: {
home: 'Genel Bakış', home: 'Genel Bakış',

View file

@ -339,6 +339,9 @@ const message = {
dayUnit: '天', dayUnit: '天',
millisecond: '毫秒', millisecond: '毫秒',
}, },
log: {
noLog: '暫無日志',
},
}, },
menu: { menu: {
home: '概覽', home: '概覽',

View file

@ -337,6 +337,9 @@ const message = {
dayUnit: '天', dayUnit: '天',
millisecond: '毫秒', millisecond: '毫秒',
}, },
log: {
noLog: '暂无日志',
},
}, },
menu: { menu: {
home: '概览', home: '概览',