fix: widen the endpoint list editor (0.1.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
大阔andClaude Opus 5.5 committed 2026-10-15 00:58:27 +08:00
1 parent ed5154c042
commit 86b8e4d24f
5 files changed
+9 -3

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.1.1
- Fixed the endpoint list editor in Settings → Geek2API → Endpoints being only about 20 characters wide: it now spans the card, grows with the list, and resizes vertically.
## 0.1.0 ## 0.1.0
First release. Derived from [dsh-packycode-api](https://github.com/BaronCyrus/dsh-packycode-api) 1.1.7 (MIT) and rebuilt for the Geek2API gateway (sub2api). First release. Derived from [dsh-packycode-api](https://github.com/BaronCyrus/dsh-packycode-api) 1.1.7 (MIT) and rebuilt for the Geek2API gateway (sub2api).
+2 -1
View File
@@ -381,6 +381,7 @@ window.__ModuleLoader__.load({
.pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)} .pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)}
.pkc-input::placeholder{color:var(--dsw-alias-label-caption)} .pkc-input::placeholder{color:var(--dsw-alias-label-caption)}
.pkc-input:disabled{opacity:.5} .pkc-input:disabled{opacity:.5}
.pkc-textarea{display:block;width:100%;height:auto;min-height:96px;padding:8px 10px;line-height:1.6;resize:vertical;white-space:pre;overflow-x:auto}
.pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap} .pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap}
@@ -1141,7 +1142,7 @@ window.__ModuleLoader__.load({
children: t("hostsEditHint") children: t("hostsEditHint")
}), }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", { /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
className: "pkc-input pkc-mono", className: "pkc-input pkc-textarea pkc-mono",
rows: Math.max(4, hosts.length + 1), rows: Math.max(4, hosts.length + 1),
disabled: status?.writable !== true || busy, disabled: status?.writable !== true || busy,
value: draft ?? "", value: draft ?? "",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dsh-geek2api", "name": "dsh-geek2api",
"version": "0.1.0", "version": "0.1.1",
"packageManager": "pnpm@10.32.1", "packageManager": "pnpm@10.32.1",
"description": "Use Geek2API API keys in DeepSeek Harness: a built-in multi-protocol model route with key rotation, multi-endpoint failover, and balance display", "description": "Use Geek2API API keys in DeepSeek Harness: a built-in multi-protocol model route with key rotation, multi-endpoint failover, and balance display",
"type": "module", "type": "module",
+1
View File
@@ -35,6 +35,7 @@ export const STYLE = `
.pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)} .pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)}
.pkc-input::placeholder{color:var(--dsw-alias-label-caption)} .pkc-input::placeholder{color:var(--dsw-alias-label-caption)}
.pkc-input:disabled{opacity:.5} .pkc-input:disabled{opacity:.5}
.pkc-textarea{display:block;width:100%;height:auto;min-height:96px;padding:8px 10px;line-height:1.6;resize:vertical;white-space:pre;overflow-x:auto}
.pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap} .pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap}
+1 -1
View File
@@ -484,7 +484,7 @@ function HostsCard({ call, t }) {
<summary>{t('hostsEdit')}</summary> <summary>{t('hostsEdit')}</summary>
<p className="pkc-note">{t('hostsEditHint')}</p> <p className="pkc-note">{t('hostsEditHint')}</p>
<textarea <textarea
className="pkc-input pkc-mono" className="pkc-input pkc-textarea pkc-mono"
rows={Math.max(4, hosts.length + 1)} rows={Math.max(4, hosts.length + 1)}
disabled={status?.writable !== true || busy} disabled={status?.writable !== true || busy}
value={draft ?? ''} value={draft ?? ''}