~starkingdoms/starkingdoms

8bcd0e0ccc4aaf75a482555c69e45297a871caf8 — core 2 years ago f721b03
make tsc happy while packet log is disabled
1 files changed, 5 insertions(+), 0 deletions(-)

M starkingdoms-client/src/packet_ui.ts
M starkingdoms-client/src/packet_ui.ts => starkingdoms-client/src/packet_ui.ts +5 -0
@@ 1,3 1,4 @@
// @ts-ignore
import {Direction, Packet, type_direction} from "./protocol.ts";
import createDebug from "debug";



@@ 107,12 108,16 @@ function generateTree(object: any, level: number): [indent: number, key: string,

export let packets: Packet[] = [];
export let selected_packet: number | null = null;
// @ts-ignore
let last_packet: Date | null = null;
// @ts-ignore
const log_body = document.getElementById("log_body")!;
// @ts-ignore

const up_arrow = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="log-icon log-leaving">
                <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18" />
            </svg>`;
// @ts-ignore
const down_arrow = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="log-icon log-arriving">
                <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3" />
            </svg>`;