Removed logs page in the app

now logs are saved to file in the logs folder
This commit is contained in:
RemixDev 2022-03-05 12:46:24 +01:00
parent b0f08ee196
commit 5565b979dc
6 changed files with 0 additions and 97 deletions

View File

@ -1,52 +0,0 @@
<template>
<div class="logs-container">
<h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.logs') }}</h1>
<table class="w-full text-center border-collapse">
<tr>
<th></th>
<th class="pr-5 h-12">{{ $t('logs.event') }}</th>
<th>{{ $t('logs.data') }}</th>
</tr>
<tr v-for="(message, i) of logMessages" :key="i" class="border-t border-solid border-foreground">
<td class="count"></td>
<td class="pr-5 w-1/3">{{ message.key }}</td>
<td class="w-2/3">{{ message.data || 'Empty' }}</td>
</tr>
</table>
</div>
</template>
<script>
import { useLogs } from '@/use/logs'
import { computed } from '@vue/composition-api'
export default {
name: 'Logs',
setup() {
const { messages } = useLogs()
const logMessages = computed(() => messages.value.slice(0, 50).reverse())
return {
logMessages
}
}
}
</script>
<style scoped>
.logs-container {
counter-reset: logs;
}
.count::before {
content: counter(logs);
counter-increment: logs;
}
tr > td {
height: 2rem;
vertical-align: middle;
text-align: center;
}
</style>

View File

@ -94,22 +94,6 @@
</ul>
</div>
<!--
<BaseAccordion class="settings-group">
<template #title>
<h3 class="settings-group__header">
<i class="material-icons">description</i>
{{ $t('settings.logs.title') }}
</h3>
</template>
<label class="with-checkbox">
<input v-model="areLogsActive" type="checkbox" />
<span class="checkbox-text">{{ $t('settings.logs.areLogsActive') }}</span>
</label>
</BaseAccordion>
-->
<BaseAccordion class="settings-group">
<template #title>
<h3 class="settings-group__header">

View File

@ -41,13 +41,6 @@ export const links = [
icon: 'settings',
label: 'sidebar.settings'
},
/* {
name: 'logs',
ariaLabel: 'logs',
routerName: 'Logs',
icon: 'description',
label: 'sidebar.logs'
}, */
{
name: 'about',
ariaLabel: 'info',

View File

@ -491,10 +491,6 @@ const en = {
update: 'Settings updated!',
reset: 'Settings reset to default!',
ARLcopied: 'ARL copied to clipboard'
},
logs: {
title: 'Logs',
areLogsActive: 'Active'
}
},
sidebar: {
@ -509,10 +505,6 @@ const en = {
},
tracklist: {
downloadSelection: 'Download selection'
},
logs: {
event: 'Event',
data: 'Data'
}
}

View File

@ -493,10 +493,6 @@ const it = {
update: 'Impostazioni aggiornate!',
reset: 'Impostazioni di default ripristinate!',
ARLcopied: 'ARL copiato negli appunti'
},
logs: {
title: 'Log',
areLogsActive: 'Attivi'
}
},
sidebar: {
@ -511,10 +507,6 @@ const it = {
},
tracklist: {
downloadSelection: 'Scarica selezionati'
},
logs: {
event: 'Evento',
data: 'Dati'
}
}

View File

@ -11,7 +11,6 @@ import Errors from '@components/pages/Errors.vue'
import Favorites from '@components/pages/Favorites.vue'
import Home from '@components/pages/Home.vue'
import LinkAnalyzer from '@components/pages/LinkAnalyzer.vue'
import Logs from '@components/pages/Logs.vue'
import Search from '@components/pages/Search.vue'
import Settings from '@components/pages/Settings.vue'
import Tracklist from '@components/pages/Tracklist.vue'
@ -79,11 +78,6 @@ const routes = [
name: 'Errors',
component: Errors
},
{
path: '/logs',
name: 'Logs',
component: Logs
},
{
path: '/link-analyzer',
name: 'Link Analyzer',