Skip to content

Commit

Permalink
Disable color-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
adb-sh committed Sep 12, 2024
1 parent 7266071 commit a419ee8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/routes/cloud/apps/[app]/logs.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { k8sCore, k8sApps, knative } from "~/k8s";
import { k8sCore, knative } from "~/k8s";
import { getUser } from "~/lib/server";
import { RouteDefinition } from "@solidjs/router";
import { createAsync } from "@solidjs/router";
import { useParams } from "@solidjs/router";
import { cache } from "@solidjs/router";
import { For, Show, createSignal } from "solid-js";
import ColorHash from "color-hash";
// import ColorHash from "color-hash";

const colorHash = new ColorHash();
// const colorHash = new ColorHash();

const getLogs = cache(async (app: string) => {
"use server";
Expand Down Expand Up @@ -127,11 +127,11 @@ export default () => {
{(logItem) => (
<tr>
<th>{logItem.date.toLocaleString()}</th>
<Show when={select() === "all"}>
<td class={`text-[${colorHash.hex(logItem.pod)}]`}>
{/* <Show when={select() === "all"}>
<td class={`text-[${colorHash.hex(logItem.pod ?? "")}]`}>
{logItem.pod}
</td>
</Show>
</Show> */}
<td>{logItem.log}</td>
</tr>
)}
Expand Down

0 comments on commit a419ee8

Please sign in to comment.