ui/dashboard #2

Open
evgeny wants to merge 325 commits from ui/dashboard into main
Showing only changes of commit 503f66e3ab - Show all commits

View File

@@ -29,19 +29,6 @@ export function renderLoginGate(state: AppViewState) {
placeholder="ws://127.0.0.1:18789"
/>
</label>
<label class="field">
<span>${t("overview.access.token")}</span>
<input
type="password"
autocomplete="off"
.value=${state.settings.token}
@input=${(e: Event) => {
const v = (e.target as HTMLInputElement).value;
state.applySettings({ ...state.settings, token: v });
}}
placeholder="OPENCLAW_GATEWAY_TOKEN"
/>
</label>
<label class="field">
<span>${t("overview.access.password")}</span>
<input
@@ -52,6 +39,11 @@ export function renderLoginGate(state: AppViewState) {
state.password = v;
}}
placeholder="${t("login.passwordPlaceholder")}"
@keydown=${(e: KeyboardEvent) => {
if (e.key === "Enter") {
state.connect();
}
}}
/>
</label>
<button