Skip to content

Commit 12a56d4

Browse files
committed
docs: document control ui sources
1 parent 39cc11a commit 12a56d4

317 files changed

Lines changed: 320 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ui/config/control-ui-chunking.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI config module wires control ui chunking behavior.
12
export function normalizeModuleId(id: string): string {
23
return id.replace(/\\/g, "/");
34
}

ui/src/css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// Control UI type declarations define css contracts.
12
declare module "*.css";

ui/src/i18n/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI i18n module implements index behavior.
12
export * from "./lib/types.ts";
23
export * from "./lib/translate.ts";
34
export * from "./lib/lit-controller.ts";

ui/src/i18n/lib/lit-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI i18n module implements lit controller behavior.
12
import type { ReactiveController, ReactiveControllerHost } from "lit";
23
import { i18n } from "./translate.ts";
34

ui/src/i18n/lib/registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI i18n module implements registry behavior.
12
import type { Locale, TranslationMap } from "./types.ts";
23

34
type LazyLocale = Exclude<Locale, "en">;

ui/src/i18n/lib/translate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI i18n module implements translate behavior.
12
import { getSafeLocalStorage } from "../../local-storage.ts";
23
import { en } from "../locales/en.ts";
34
import {

ui/src/i18n/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI type declarations define types contracts.
12
export type TranslationMap = { [key: string]: string | TranslationMap };
23

34
export type Locale =

ui/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI English locale strings are the i18n source bundle.
12
import type { TranslationMap } from "../lib/types.ts";
23

34
export const en: TranslationMap = {

ui/src/i18n/test/translate.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI tests cover translate behavior.
12
import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures";
23
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
34
import { createStorageMock } from "../../test-helpers/storage.ts";

ui/src/local-storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Control UI module implements local storage behavior.
12
function isStorage(value: unknown): value is Storage {
23
return (
34
Boolean(value) &&

0 commit comments

Comments
 (0)