@keyueclaw/web-sdk 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -516,7 +516,7 @@ else:
|
|
|
516
516
|
@input=${e=>r.onUpdateHeader(t,{example:e.target.value})}
|
|
517
517
|
/>
|
|
518
518
|
</td>
|
|
519
|
-
<td style="${i}width:32px;">
|
|
519
|
+
<td style="${i}width:32px;vertical-align:middle;">
|
|
520
520
|
<button
|
|
521
521
|
type="button"
|
|
522
522
|
style="background:none;border:none;padding:4px;cursor:pointer;color:var(--keyueclaw-muted-foreground);display:flex;align-items:center;border-radius:4px;"
|
|
@@ -578,7 +578,7 @@ else:
|
|
|
578
578
|
@input=${e=>i.onUpdateInputParam(t,{example:e.target.value})}
|
|
579
579
|
/>
|
|
580
580
|
</td>
|
|
581
|
-
<td style="${a}width:32px;">
|
|
581
|
+
<td style="${a}width:32px;vertical-align:middle;">
|
|
582
582
|
<button type="button" style="background:none;border:none;padding:4px;cursor:pointer;color:var(--keyueclaw-muted-foreground);display:flex;align-items:center;border-radius:4px;" title="删除" @click=${()=>i.onRemoveInputParam(t)}>${_A}</button>
|
|
583
583
|
</td>
|
|
584
584
|
</tr>
|
|
@@ -630,7 +630,7 @@ else:
|
|
|
630
630
|
@input=${e=>i.onUpdateOutputParam(t,{example:e.target.value})}
|
|
631
631
|
/>
|
|
632
632
|
</td>
|
|
633
|
-
<td style="${a}width:32px;">
|
|
633
|
+
<td style="${a}width:32px;vertical-align:middle;">
|
|
634
634
|
<button type="button" style="background:none;border:none;padding:4px;cursor:pointer;color:var(--keyueclaw-muted-foreground);display:flex;align-items:center;border-radius:4px;" title="删除" @click=${()=>i.onRemoveOutputParam(t)}>${_A}</button>
|
|
635
635
|
</td>
|
|
636
636
|
</tr>
|
|
@@ -680,7 +680,7 @@ else:
|
|
|
680
680
|
></textarea>
|
|
681
681
|
${l?x`<span style="font-size:12px;color:var(--keyueclaw-danger);margin-top:2px;">JSON 格式错误:${l}</span>`:null}
|
|
682
682
|
</div>
|
|
683
|
-
`}function NA(e){let t=e.form,n=`display:flex;flex-direction:column;gap:5px;`,r=`font-size:13px;color:var(--keyueclaw-text);font-weight:500;`,a=e=>{e.target.style.borderColor=`var(--keyueclaw-border-hover)`},o=e=>{e.target.style.borderColor=`var(--keyueclaw-border-strong)`},s=t.url===``||SA.test(t.url),c=e.saveAttempted,l=c&&!t.name.trim()?`请填写接口名称`:null,u=c&&!t.url.trim()?`请填写请求地址`:s?null:`请输入合法的 URL(/path 或 https://...)`;return x`
|
|
683
|
+
`}function NA(e){let t=e.form,n=`display:flex;flex-direction:column;gap:5px;`,r=`font-size:13px;color:var(--keyueclaw-text);font-weight:500;`,a=e=>{e.target.style.borderColor=`var(--keyueclaw-border-hover)`},o=e=>{e.target.style.borderColor=`var(--keyueclaw-border-strong)`},s=t.url===``||SA.test(t.url),c=e.saveAttempted,l=c&&!t.name.trim()?`请填写接口名称`:null,u=c&&!t.url.trim()?`请填写请求地址`:s?null:`请输入合法的 URL(/path、http://... 或 https://...)`;return x`
|
|
684
684
|
<div style="height:100%;overflow:hidden;display:flex;flex-direction:column;">
|
|
685
685
|
<!-- 面包屑 + 操作栏 -->
|
|
686
686
|
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;">
|
|
@@ -718,7 +718,7 @@ else:
|
|
|
718
718
|
<label style=${n}>
|
|
719
719
|
<span style=${r}>请求地址<span style="color:var(--keyueclaw-accent);">*</span></span>
|
|
720
720
|
<input class="input" style="${yA}${u?`border-color:var(--keyueclaw-danger);`:``}"
|
|
721
|
-
.value=${t.url} placeholder="如:/api/v1/users 或 https://example.com/api"
|
|
721
|
+
.value=${t.url} placeholder="如:/api/v1/users、http://example.com/api 或 https://example.com/api"
|
|
722
722
|
@focus=${a}
|
|
723
723
|
@blur=${e=>{e.target.style.borderColor=u?`var(--keyueclaw-danger)`:`var(--keyueclaw-border-strong)`}}
|
|
724
724
|
@input=${t=>e.onFormPatch({url:t.target.value})} />
|