chore: Manually fix lint issues in ui.

This commit is contained in:
cpojer
2026-02-02 15:15:30 +09:00
parent 5ba4586e58
commit e9a32b83c2
74 changed files with 1552 additions and 600 deletions
+10 -4
View File
@@ -6,13 +6,19 @@ const here = path.dirname(fileURLToPath(import.meta.url));
function normalizeBase(input: string): string {
const trimmed = input.trim();
if (!trimmed) {return "/";}
if (trimmed === "./") {return "./";}
if (trimmed.endsWith("/")) {return trimmed;}
if (!trimmed) {
return "/";
}
if (trimmed === "./") {
return "./";
}
if (trimmed.endsWith("/")) {
return trimmed;
}
return `${trimmed}/`;
}
export default defineConfig(({ command }) => {
export default defineConfig(() => {
const envBase = process.env.OPENCLAW_CONTROL_UI_BASE_PATH?.trim();
const base = envBase ? normalizeBase(envBase) : "./";
return {