feat: i18n for logs; style: logs

This commit is contained in:
Roberto Tonino 2021-06-04 22:56:26 +02:00
parent 2ab0620e02
commit d12d18874e
4 changed files with 28 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,13 +2,13 @@
<div class="logs-container"> <div class="logs-container">
<h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.logs') }}</h1> <h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.logs') }}</h1>
<table class="w-full text-center"> <table class="w-full text-center border-collapse">
<tr> <tr>
<th></th> <th></th>
<th class="pr-5 h-12">Event</th> <th class="pr-5 h-12">{{ $t('logs.event') }}</th>
<th>Data</th> <th>{{ $t('logs.data') }}</th>
</tr> </tr>
<tr v-for="(message, i) of logMessages" :key="i"> <tr v-for="(message, i) of logMessages" :key="i" class="border-t border-solid border-foreground">
<td class="count"></td> <td class="count"></td>
<td class="pr-5 w-1/3">{{ message.key }}</td> <td class="pr-5 w-1/3">{{ message.key }}</td>
<td class="w-2/3">{{ message.data || 'Empty' }}</td> <td class="w-2/3">{{ message.data || 'Empty' }}</td>
@ -43,4 +43,10 @@ export default {
content: counter(logs); content: counter(logs);
counter-increment: logs; counter-increment: logs;
} }
tr > td {
height: 2rem;
vertical-align: middle;
text-align: center;
}
</style> </style>

View File

@ -404,6 +404,10 @@ const en = {
}, },
tracklist: { tracklist: {
downloadSelection: 'Download selection' downloadSelection: 'Download selection'
},
logs: {
event: 'Event',
data: 'Data'
} }
} }

View File

@ -407,6 +407,10 @@ const it = {
}, },
tracklist: { tracklist: {
downloadSelection: 'Scarica selezionati' downloadSelection: 'Scarica selezionati'
},
logs: {
event: 'Evento',
data: 'Dati'
} }
} }