mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:00:42 +00:00
chore: apply core lint cleanups
This commit is contained in:
@@ -7,7 +7,11 @@ function parseHexRgb(hex: string): [number, number, number] | null {
|
||||
if (!/^[0-9a-fA-F]{6}$/.test(h)) {
|
||||
return null;
|
||||
}
|
||||
return [parseInt(h.slice(0, 2), 16), parseInt(h.slice(2, 4), 16), parseInt(h.slice(4, 6), 16)];
|
||||
return [
|
||||
Number.parseInt(h.slice(0, 2), 16),
|
||||
Number.parseInt(h.slice(2, 4), 16),
|
||||
Number.parseInt(h.slice(4, 6), 16),
|
||||
];
|
||||
}
|
||||
|
||||
let cachedThemeNoticeColors: {
|
||||
|
||||
@@ -219,7 +219,8 @@ function renderDailyChartCompact(
|
||||
const isSelected = selectedDays.includes(d.date);
|
||||
const label = formatDayLabel(d.date);
|
||||
// Shorter label for many days (just day number)
|
||||
const shortLabel = daily.length > 20 ? String(parseInt(d.date.slice(8), 10)) : label;
|
||||
const shortLabel =
|
||||
daily.length > 20 ? String(Number.parseInt(d.date.slice(8), 10)) : label;
|
||||
const labelClass =
|
||||
daily.length > 20 ? "daily-bar-label daily-bar-label--compact" : "daily-bar-label";
|
||||
const segments =
|
||||
|
||||
Reference in New Issue
Block a user