Remove specific imports and specific functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user