1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

feat: supports nested arrays and objects (#3979)

This commit is contained in:
Amir Raminfar
2025-06-16 09:07:36 -07:00
committed by GitHub
parent 3a4f0a6e79
commit c1955a3301
4 changed files with 62 additions and 24 deletions

View File

@@ -61,6 +61,7 @@
</template>
<script lang="ts" setup>
import stripAnsi from "strip-ansi";
import { Container } from "@/models/Container";
import { LogEntry, SimpleLogEntry, ComplexLogEntry, JSONObject } from "@/models/LogEntry";
import LogDetails from "./LogDetails.vue";
@@ -80,9 +81,9 @@ const { t } = useI18n();
async function copyLogMessage() {
if (logEntry instanceof ComplexLogEntry) {
await copy(logEntry.rawMessage);
await copy(stripAnsi(logEntry.rawMessage));
} else if (logEntry instanceof SimpleLogEntry) {
await copy(logEntry.message);
await copy(stripAnsi(logEntry.rawMessage));
}
if (copied.value) {