Laufzeit-Karte: Felder mit zugaenglichen Namen (#712)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4940fdefb0
commit
d37fe91b37
@@ -32,10 +32,13 @@ export function erstelleLaufzeitKarte(agent) {
|
|||||||
const ziele = erstelleElement("textarea", { rows: "2", placeholder: "api.example.com" });
|
const ziele = erstelleElement("textarea", { rows: "2", placeholder: "api.example.com" });
|
||||||
ziele.value = (laufzeit.egress || []).join("\n");
|
ziele.value = (laufzeit.egress || []).join("\n");
|
||||||
|
|
||||||
const feld = (schluessel, element, hinweis) => erstelleElement("div", { klasse: "laufzeit-feld", "data-feld": schluessel },
|
const feld = (schluessel, element, hinweis) => {
|
||||||
|
element.setAttribute("aria-label", t(`runtime.${schluessel}`));
|
||||||
|
return erstelleElement("div", { klasse: "laufzeit-feld", "data-feld": schluessel },
|
||||||
erstelleElement("label", { text: t(`runtime.${schluessel}`) }),
|
erstelleElement("label", { text: t(`runtime.${schluessel}`) }),
|
||||||
element,
|
element,
|
||||||
hinweis ? erstelleElement("div", { klasse: "gedaempft text-klein", text: hinweis }) : null);
|
hinweis ? erstelleElement("div", { klasse: "gedaempft text-klein", text: hinweis }) : null);
|
||||||
|
};
|
||||||
|
|
||||||
const felder = {
|
const felder = {
|
||||||
werkzeuge: feld("allowedTools", werkzeuge, t("runtime.allowedToolsHint")),
|
werkzeuge: feld("allowedTools", werkzeuge, t("runtime.allowedToolsHint")),
|
||||||
@@ -147,6 +150,10 @@ function bearbeiteKonto(claude, danach) {
|
|||||||
const schluessel = erstelleElement("input", { type: "password", autocomplete: "off", placeholder: claude.hasApiKey ? t("runtime.keepStored") : "" });
|
const schluessel = erstelleElement("input", { type: "password", autocomplete: "off", placeholder: claude.hasApiKey ? t("runtime.keepStored") : "" });
|
||||||
const token = erstelleElement("input", { type: "password", autocomplete: "off", placeholder: claude.hasOAuthToken ? t("runtime.keepStored") : "" });
|
const token = erstelleElement("input", { type: "password", autocomplete: "off", placeholder: claude.hasOAuthToken ? t("runtime.keepStored") : "" });
|
||||||
|
|
||||||
|
for (const [element, name] of [[programm, "executable"], [anmeldung, "auth"], [schluessel, "apiKey"], [token, "oauthToken"]]) {
|
||||||
|
element.setAttribute("aria-label", t(`runtime.${name}`));
|
||||||
|
}
|
||||||
|
|
||||||
const modal = erstelleModal(t("runtime.account"), erstelleElement("div", {},
|
const modal = erstelleModal(t("runtime.account"), erstelleElement("div", {},
|
||||||
erstelleElement("p", { klasse: "gedaempft text-klein", text: t("runtime.accountHint") }),
|
erstelleElement("p", { klasse: "gedaempft text-klein", text: t("runtime.accountHint") }),
|
||||||
erstelleElement("div", { klasse: "formular-raster" },
|
erstelleElement("div", { klasse: "formular-raster" },
|
||||||
|
|||||||
Reference in New Issue
Block a user