Skip to content

Commit 9dbb1ed

Browse files
authored
refactor(deadcode): localize control ui declarations (#101894)
1 parent ba7af36 commit 9dbb1ed

14 files changed

Lines changed: 31 additions & 31 deletions

File tree

ui/src/api/gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ type GatewayConnectTimingPhase =
330330
| "hello"
331331
| "failed";
332332

333-
export type GatewayConnectTiming = {
333+
type GatewayConnectTiming = {
334334
generation: number;
335335
phase: GatewayConnectTimingPhase;
336336
durationMs: number;

ui/src/app-route-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { normalizeRouteBasePath, normalizeRoutePath } from "@openclaw/uirouter";
22
import type { RouteLocation } from "@openclaw/uirouter";
33

4-
export const APP_ROUTE_DEFINITIONS = {
4+
const APP_ROUTE_DEFINITIONS = {
55
chat: { path: "/chat" },
66
overview: { path: "/overview" },
77
activity: { path: "/activity" },

ui/src/components/connection-banner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { property } from "lit/decorators.js";
55
import { t } from "../i18n/index.ts";
66
import { redactLoginFailureError } from "./login-gate.ts";
77

8-
export type ConnectionBannerProps = {
8+
type ConnectionBannerProps = {
99
lastError: string | null;
1010
onRetry: () => void;
1111
};

ui/src/components/exec-approval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_EXEC_APPROVAL_DECISIONS = [
1616
"deny",
1717
] as const satisfies readonly ExecApprovalDecision[];
1818

19-
export type ExecApprovalProps = {
19+
type ExecApprovalProps = {
2020
queue: readonly ExecApprovalRequest[];
2121
busy: boolean;
2222
error: string | null;

ui/src/components/file-preview-modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { property, query } from "lit/decorators.js";
44
import { renderCopyButton } from "./copy-button.ts";
55
import { icons } from "./icons.ts";
66

7-
export type FilePreviewModalFile = {
7+
type FilePreviewModalFile = {
88
path: string;
99
size: string;
1010
contents: string;

ui/src/components/gateway-url-confirmation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { property } from "lit/decorators.js";
44
import { t } from "../i18n/index.ts";
55
import "./modal-dialog.ts";
66

7-
export type GatewayUrlConfirmationProps = {
7+
type GatewayUrlConfirmationProps = {
88
pendingGatewayUrl: string | null;
99
onConfirm: () => void;
1010
onCancel: () => void;

ui/src/components/login-gate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type LoginFailureKind =
2525
| "protocol-mismatch"
2626
| "network";
2727

28-
export type LoginFailureFeedback = {
28+
type LoginFailureFeedback = {
2929
kind: LoginFailureKind;
3030
title: string;
3131
summary: string;
@@ -35,7 +35,7 @@ export type LoginFailureFeedback = {
3535
rawError: string;
3636
};
3737

38-
export type LoginGateProps = {
38+
type LoginGateProps = {
3939
basePath: string;
4040
connected: boolean;
4141
lastError: string | null;

ui/src/components/update-banner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function dismiss(updateAvailable: UpdateAvailable) {
5858
}
5959
}
6060

61-
export type UpdateBannerProps = {
61+
type UpdateBannerProps = {
6262
statusBanner: { tone: "danger" | "warn" | "info"; text: string } | null;
6363
updateAvailable: UpdateAvailable | null;
6464
updateRunning: boolean;

ui/src/lib/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export async function loadConfig(state: ConfigState, options: LoadConfigOptions
167167
}
168168
}
169169

170-
export async function loadConfigSchema(state: ConfigState) {
170+
async function loadConfigSchema(state: ConfigState) {
171171
const client = state.client;
172172
if (!client || !state.connected) {
173173
return;

ui/src/lib/nodes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export type ExecApprovalsSnapshot = FileExecApprovalsSnapshot | NativeExecApprov
118118

119119
export type ExecApprovalsTarget = { kind: "gateway" } | { kind: "node"; nodeId: string };
120120

121-
export type NodesState = {
121+
type NodesState = {
122122
client: GatewayRequestClient | null;
123123
connected: boolean;
124124
nodesLoading: boolean;
@@ -127,7 +127,7 @@ export type NodesState = {
127127
chatError?: string | null;
128128
};
129129

130-
export type DevicesState = {
130+
type DevicesState = {
131131
client: GatewayRequestClient | null;
132132
connected: boolean;
133133
devicesLoading: boolean;

0 commit comments

Comments
 (0)