diff --git a/pages/logging.vue b/pages/logging.vue index c97e948a..a8ff857d 100644 --- a/pages/logging.vue +++ b/pages/logging.vue @@ -6,43 +6,15 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -69,6 +41,9 @@ export default { .replace(/\[WARNING\]/g, '[WARNING]') .replace(/\[ERROR\]/g, '[ERROR]') .replace(/\[DEBUG\]/g, '[DEBUG]') + .replace(/\[Decoder\]/g, '[Decoder]') + .replace(/\[Encoder\]/g, '[Encoder]') + .replace(/\[Server\]/g, '[Server]') } }, @@ -76,7 +51,6 @@ export default { data () { return { - logName: 'ffplayout', currentLog: null, listDate: this.$dayjs().tz(this.timezone).format('YYYY-MM-DD'), scrollOP: { @@ -92,23 +66,22 @@ export default { watch: { listDate () { - this.getLog(this.logName) + this.getLog() }, configID () { - this.getLog(this.logName) + this.getLog() } }, async created () { - await this.getLog('ffplayout') + await this.getLog() }, methods: { - async getLog (type) { - this.logName = type + async getLog () { const response = await this.$axios.get( - `api/player/log/?type=${type}&date=${this.listDate}&channel=${this.$store.state.config.configGui[this.$store.state.config.configID].id}`) + `api/player/log/?date=${this.listDate}&channel=${this.$store.state.config.configGui[this.$store.state.config.configID].id}`) if (response.data.log) { this.currentLog = response.data.log @@ -125,31 +98,11 @@ export default { display: inherit !important; } -.col-auto { - width: 122px; - height: 100%; -} - -.card-container { - height: calc(100% - 90px); - width: 100%; -} - -.card-container > div, .tab-content > .active { - height: 100%; - width: 100%; -} - -.tab-content { - width: calc(100% - 122px); - height: 100%; -} - .log-container { background: #1d2024; - max-width: 100%; - width: 100%; - height: 100%; + max-width: 99%; + width: 99%; + height: calc(100% - 90px); padding: 1em; overflow: hidden } @@ -183,6 +136,18 @@ export default { color: #23e493; } +.log-decoder { + color: #56efff; +} + +.log-encoder { + color: #45ccee; +} + +.log-server { + color: #23cbdd; +} + .log-path { color: #e366cf; }