mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Improve log view
This commit is contained in:
parent
ae0dc96f83
commit
1a539c1261
2 changed files with 10 additions and 1 deletions
|
@ -235,6 +235,7 @@
|
|||
"vue-cropperjs": "3.0.0",
|
||||
"vue-i18n": "8.8.2",
|
||||
"vue-js-modal": "1.3.28",
|
||||
"vue-json-viewer": "2.0.6",
|
||||
"vue-loader": "15.7.0",
|
||||
"vue-marquee-text-component": "1.1.1",
|
||||
"vue-prism-component": "1.1.1",
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
|
||||
<div class="nqjzuvev">
|
||||
<code v-for="log in logs" :key="log._id" :class="log.level">
|
||||
<mk-time :time="log.createdAt"/> [{{ log.domain.join('.') }}] {{ log.message }}
|
||||
<details>
|
||||
<summary><mk-time :time="log.createdAt"/> [{{ log.domain.join('.') }}] {{ log.message }}</summary>
|
||||
<json-viewer v-if="log.data" :value="log.data"></json-viewer>
|
||||
</details>
|
||||
</code>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -32,10 +35,15 @@
|
|||
import Vue from 'vue';
|
||||
import i18n from '../../i18n';
|
||||
import { faStream } from '@fortawesome/free-solid-svg-icons';
|
||||
import JsonViewer from 'vue-json-viewer';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n: i18n('admin/views/logs.vue'),
|
||||
|
||||
components: {
|
||||
JsonViewer
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
logs: [],
|
||||
|
|
Loading…
Reference in a new issue