mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-25 14:59:26 +01:00
118 lines
7.1 KiB
Plaintext
118 lines
7.1 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`<ContainerEventSource /> > render html correctly > should render dates with 12 hour style 1`] = `
|
|
"<ul data-v-cf9ff940="" class="group pt-4 medium" data-logs="" show-container-name="false">
|
|
<li data-v-cf9ff940="" id="1560336942709" data-time="1560336942709" class="group/entry">
|
|
<div data-v-cf9ff940="" class="flex min-h-[1px] flex-1 content-center justify-center"><span class="loading loading-bars loading-md text-primary m-2" style="display: none;"></span></div>
|
|
</li>
|
|
<li data-v-cf9ff940="" id="1" data-time="1560336942459" class="group/entry">
|
|
<div data-v-cf9ff940="" class="relative flex w-full items-start gap-x-2 group-[.compact]:items-stretch">
|
|
<div class="dropdown dropdown-hover absolute -left-2 z-10 font-sans dropdown-right"><button tabindex="0" class="btn btn-square btn-xs border-base-content/20 bg-base-100 border opacity-0 shadow-sm group-hover/entry:opacity-90"><svg viewBox="0 0 512 512" width="1.2em" height="1.2em">
|
|
<circle cx="256" cy="256" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="416" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
|
|
</svg></button>
|
|
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 w-52 border p-1 text-sm shadow-sm">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</ul>
|
|
</div>
|
|
<!--v-if-->
|
|
<div class="flex gap-x-2 gap-y-1 group-[.compact]:gap-y-0 has-[>_*:nth-of-type(2)]:flex-col-reverse md:flex-row!">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<div class="tag bg-base-100 inline-flex items-center justify-center rounded-sm px-2 py-[0.2em] [[size='small']]:text-[0.8rem] items-start! shrink-0 select-none">
|
|
<div class="inline-flex gap-2 text-blue whitespace-nowrap"><time datetime="2019-06-12T10:55:42.459Z" class="max-md:hidden">06/12/2019</time><time datetime="2019-06-12T10:55:42.459Z">10:55:42 AM</time></div>
|
|
</div>
|
|
</div>
|
|
<div data-v-e625cddd="" class="mt-1.5 size-2.5 flex-none rounded-lg flex select-none"></div>
|
|
<div class="[word-break:break-word] whitespace-pre-wrap group-[.disable-wrap]:whitespace-nowrap">foo bar</div>
|
|
</div>
|
|
</li>
|
|
</ul>"
|
|
`;
|
|
|
|
exports[`<ContainerEventSource /> > render html correctly > should render dates with 24 hour style 1`] = `
|
|
"<ul data-v-cf9ff940="" class="group pt-4 medium" data-logs="" show-container-name="false">
|
|
<li data-v-cf9ff940="" id="1560336942709" data-time="1560336942709" class="group/entry">
|
|
<div data-v-cf9ff940="" class="flex min-h-[1px] flex-1 content-center justify-center"><span class="loading loading-bars loading-md text-primary m-2" style="display: none;"></span></div>
|
|
</li>
|
|
<li data-v-cf9ff940="" id="1" data-time="1560336942459" class="group/entry">
|
|
<div data-v-cf9ff940="" class="relative flex w-full items-start gap-x-2 group-[.compact]:items-stretch">
|
|
<div class="dropdown dropdown-hover absolute -left-2 z-10 font-sans dropdown-right"><button tabindex="0" class="btn btn-square btn-xs border-base-content/20 bg-base-100 border opacity-0 shadow-sm group-hover/entry:opacity-90"><svg viewBox="0 0 512 512" width="1.2em" height="1.2em">
|
|
<circle cx="256" cy="256" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="416" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
|
|
</svg></button>
|
|
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 w-52 border p-1 text-sm shadow-sm">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</ul>
|
|
</div>
|
|
<!--v-if-->
|
|
<div class="flex gap-x-2 gap-y-1 group-[.compact]:gap-y-0 has-[>_*:nth-of-type(2)]:flex-col-reverse md:flex-row!">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<div class="tag bg-base-100 inline-flex items-center justify-center rounded-sm px-2 py-[0.2em] [[size='small']]:text-[0.8rem] items-start! shrink-0 select-none">
|
|
<div class="inline-flex gap-2 text-blue whitespace-nowrap"><time datetime="2019-06-12T10:55:42.459Z" class="max-md:hidden">06/12/2019</time><time datetime="2019-06-12T10:55:42.459Z">10:55:42</time></div>
|
|
</div>
|
|
</div>
|
|
<div data-v-e625cddd="" class="mt-1.5 size-2.5 flex-none rounded-lg flex select-none"></div>
|
|
<div class="[word-break:break-word] whitespace-pre-wrap group-[.disable-wrap]:whitespace-nowrap">foo bar</div>
|
|
</div>
|
|
</li>
|
|
</ul>"
|
|
`;
|
|
|
|
exports[`<ContainerEventSource /> > render html correctly > should render messages 1`] = `
|
|
"<ul data-v-cf9ff940="" class="group pt-4 medium" data-logs="" show-container-name="false">
|
|
<li data-v-cf9ff940="" id="1560336942709" data-time="1560336942709" class="group/entry">
|
|
<div data-v-cf9ff940="" class="flex min-h-[1px] flex-1 content-center justify-center"><span class="loading loading-bars loading-md text-primary m-2" style="display: none;"></span></div>
|
|
</li>
|
|
<li data-v-cf9ff940="" id="1" data-time="1560336942459" class="group/entry">
|
|
<div data-v-cf9ff940="" class="relative flex w-full items-start gap-x-2 group-[.compact]:items-stretch">
|
|
<div class="dropdown dropdown-hover absolute -left-2 z-10 font-sans dropdown-right"><button tabindex="0" class="btn btn-square btn-xs border-base-content/20 bg-base-100 border opacity-0 shadow-sm group-hover/entry:opacity-90"><svg viewBox="0 0 512 512" width="1.2em" height="1.2em">
|
|
<circle cx="256" cy="256" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="416" r="48" fill="currentColor"></circle>
|
|
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
|
|
</svg></button>
|
|
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 w-52 border p-1 text-sm shadow-sm">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
</ul>
|
|
</div>
|
|
<!--v-if-->
|
|
<div class="flex gap-x-2 gap-y-1 group-[.compact]:gap-y-0 has-[>_*:nth-of-type(2)]:flex-col-reverse md:flex-row!">
|
|
<!--v-if-->
|
|
<!--v-if-->
|
|
<div class="tag bg-base-100 inline-flex items-center justify-center rounded-sm px-2 py-[0.2em] [[size='small']]:text-[0.8rem] items-start! shrink-0 select-none">
|
|
<div class="inline-flex gap-2 text-blue whitespace-nowrap"><time datetime="2019-06-12T10:55:42.459Z" class="max-md:hidden">06/12/2019</time><time datetime="2019-06-12T10:55:42.459Z">10:55:42 AM</time></div>
|
|
</div>
|
|
</div>
|
|
<div data-v-e625cddd="" class="mt-1.5 size-2.5 flex-none rounded-lg flex select-none"></div>
|
|
<div class="[word-break:break-word] whitespace-pre-wrap group-[.disable-wrap]:whitespace-nowrap">This is a message.</div>
|
|
</div>
|
|
</li>
|
|
</ul>"
|
|
`;
|
|
|
|
exports[`<ContainerEventSource /> > should parse messages 1`] = `
|
|
LoadMoreLogEntry {
|
|
"_message": "",
|
|
"containerID": "",
|
|
"date": 2019-06-12T10:55:42.709Z,
|
|
"id": 1560336942709,
|
|
"level": undefined,
|
|
"loader": [Function],
|
|
"rawMessage": "info",
|
|
"rememberScrollPosition": true,
|
|
"std": "stderr",
|
|
}
|
|
`;
|