Remove specific imports and specific functionality

This commit is contained in:
CentreMetre
2026-06-14 16:29:24 +01:00
parent c8a1a69862
commit bc602c7bd8

View File

@@ -1,5 +1,3 @@
import {isIsoDateWithMs, padIsoMilliseconds} from "./util.js";
/**
* @template R A type that the shape of a row should be. E.g.
* ```
@@ -139,18 +137,8 @@ export abstract class Table<R extends Object> {
default:
const strValue = String(value)
if (isIsoDateWithMs(strValue))
{
const strValueDateTime = padIsoMilliseconds(strValue);
cell.classList.add("table-cell-datetime")
const date = strValueDateTime.split("T")[0]
const time = strValueDateTime.split("T")[1]
cellValue = `${date} ${time}`;
}
else {
cellValue = value != null ? String(value) : "";
}
}
cell.textContent = cellValue;
row.append(cell);
}