mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 03:01:34 +00:00
refactor(ui): trim private helper exports (#105663)
This commit is contained in:
@@ -5619,7 +5619,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"ui/src/app/overlays.ts: ApplicationOverlaySnapshot",
|
||||
"ui/src/app/settings.ts: isViteDevPage",
|
||||
"ui/src/app/settings.ts: NAV_WIDTH_DEFAULT",
|
||||
"ui/src/app/stale-chunk-reload.ts: reloadControlUiDocument",
|
||||
"ui/src/app/stale-chunk-reload.ts: resetStaleChunkReloadStateForTest",
|
||||
"ui/src/build-info.ts: deriveControlUiBuildId",
|
||||
"ui/src/build-info.ts: normalizeControlUiBranch",
|
||||
@@ -5630,7 +5629,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"ui/src/components/agent-select.ts: AgentSelect",
|
||||
"ui/src/components/browser/browser-annotation.ts: ANNOTATION_STROKE_COLOR",
|
||||
"ui/src/components/browser/browser-annotation.ts: AnnotationPoint",
|
||||
"ui/src/components/browser/browser-annotation.ts: annotationStrokeWidth",
|
||||
"ui/src/components/browser/browser-annotation.ts: describeInspectedNode",
|
||||
"ui/src/components/browser/browser-annotation.ts: strokeBoundingRegion",
|
||||
"ui/src/components/browser/browser-client.ts: BrowserScreenshotCapture",
|
||||
|
||||
@@ -38,7 +38,7 @@ export function isStaleChunkImportError(error: unknown): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
export function reloadControlUiDocument(): void {
|
||||
function reloadControlUiDocument(): void {
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ export function buildAnnotationPrompt(params: {
|
||||
|
||||
export const ANNOTATION_STROKE_COLOR = "#e0442d";
|
||||
|
||||
export function annotationStrokeWidth(imageWidth: number): number {
|
||||
function annotationStrokeWidth(imageWidth: number): number {
|
||||
return Math.max(4, Math.round(imageWidth * 0.005));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user