1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

fix: copy log ansi character parsing and html decode (#2621)

This commit is contained in:
Akash Ramaswamy
2023-12-23 20:18:22 +05:30
committed by GitHub
parent 9e5b6a88e2
commit 7a0fc84842
3 changed files with 7 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
></div>
<log-message-actions
class="duration-250 absolute -right-1 opacity-0 transition-opacity delay-150 group-hover/entry:opacity-100"
:message="logEntry.message"
:message="decodeXML(stripAnsi(logEntry.message))"
:log-entry="logEntry"
/>
</div>
@@ -17,6 +17,8 @@
<script lang="ts" setup>
import { SimpleLogEntry } from "@/models/LogEntry";
import AnsiConvertor from "ansi-to-html";
import stripAnsi from "strip-ansi";
import { decodeXML } from "entities";
const ansiConvertor = new AnsiConvertor({ escapeXML: false, fg: "var(--text-color)" });
defineProps<{