dsh-aurorix-agentbook 1.8.2 → 1.8.3
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.
- package/lib/view.js +4 -4
- package/lib/web.js +11 -6
- package/package.json +1 -1
package/lib/view.js
CHANGED
|
@@ -126,13 +126,13 @@ export function memoryView(state, caps = {}) {
|
|
|
126
126
|
{ type: 'textField', label: w.writeBody, bind: 'data.draft.body', placeholder: w.writeBodyPlaceholder, multiline: true, maxLines: 6, maxLength: 2000, required: true, minLength: 1 },
|
|
127
127
|
{ type: 'textField', label: w.writeReadWhen, bind: 'data.draft.readWhen', placeholder: w.writeReadWhen, maxLength: 200 },
|
|
128
128
|
] },
|
|
129
|
+
{ type: 'text', text: b('draftNote'), tone: 'muted' },
|
|
129
130
|
] },
|
|
130
|
-
{ type: 'text', text: b('draftNote'), tone: 'muted' },
|
|
131
131
|
|
|
132
132
|
// 四、保险箱:独立平面,列表只带标识与用途,正文点开才解密
|
|
133
133
|
{ type: 'divider', size: 'S' },
|
|
134
|
-
|
|
135
|
-
{ type: 'text', text: w.vaultHint,
|
|
134
|
+
// 标题和说明原来各占一行,说的是同一件事:合成一行标题「保险箱 · 凭据单独存放」
|
|
135
|
+
{ type: 'text', text: `${w.vaultTitle} · ${w.vaultHint}`, style: { size: 'subtitle', weight: 'semibold' } },
|
|
136
136
|
{ type: 'form', submit: 'vault-filter', submitLabel: w.vaultFilterBtn, children: [
|
|
137
137
|
{ type: 'textField', label: w.vaultQueryLabel, bind: 'data.vaultQuery', placeholder: w.vaultQueryPlaceholder, maxLength: 120 },
|
|
138
138
|
] },
|
|
@@ -144,8 +144,8 @@ export function memoryView(state, caps = {}) {
|
|
|
144
144
|
{ type: 'textField', label: w.vaultPurpose, bind: 'data.vaultDraft.purpose', placeholder: w.vaultPurposePlaceholder, maxLength: 400, required: true, minLength: 1 },
|
|
145
145
|
{ type: 'textField', label: w.vaultBody, bind: 'data.vaultDraft.body', placeholder: w.vaultBodyPlaceholder, multiline: true, maxLines: 6, maxLength: 2000, required: true, minLength: 1 },
|
|
146
146
|
] },
|
|
147
|
+
{ type: 'text', text: b('vaultDraftNote'), tone: 'muted' },
|
|
147
148
|
] },
|
|
148
|
-
{ type: 'text', text: b('vaultDraftNote'), tone: 'muted' },
|
|
149
149
|
|
|
150
150
|
{ type: 'actions', items: [
|
|
151
151
|
{ label: w.retry, icon: 'refresh', action: 'reload', style: 'plain' },
|
package/lib/web.js
CHANGED
|
@@ -87,6 +87,9 @@ th:last-child,td:last-child{text-align:right}
|
|
|
87
87
|
td{padding:9px 0;border-bottom:1px solid var(--line);color:var(--ink)}
|
|
88
88
|
td:last-child{color:var(--muted);font-variant-numeric:tabular-nums}
|
|
89
89
|
tr:last-child td{border-bottom:0}
|
|
90
|
+
.fieldrow{display:flex;gap:9px;align-items:flex-start;margin-bottom:10px}
|
|
91
|
+
.fieldrow .fieldwrap{flex:1 1 auto;margin-bottom:0}
|
|
92
|
+
.fieldrow button{flex:0 0 auto;padding:9px 20px}
|
|
90
93
|
.fieldwrap{position:relative;margin-bottom:10px}
|
|
91
94
|
input,textarea,select{width:100%;background:var(--field);border:1px solid var(--line);border-radius:11px;padding:9px 12px;color:var(--ink);font:inherit;outline:none}
|
|
92
95
|
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
|
|
@@ -135,9 +138,10 @@ details .inner{padding:4px 0 16px;border-top:1px solid var(--line)}
|
|
|
135
138
|
|
|
136
139
|
<section>
|
|
137
140
|
<div class="sect">${t.recall}</div>
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
<div class="fieldrow">
|
|
142
|
+
<div class="fieldwrap"><input id="q" maxlength="120" placeholder="${t.keywordPh}" autocomplete="off"><span class="cnt" id="qcnt">0/120</span></div>
|
|
143
|
+
<button id="go">${t.go}</button>
|
|
144
|
+
</div>
|
|
141
145
|
<div id="results"><div class="hint">${t.none}</div></div>
|
|
142
146
|
</section>
|
|
143
147
|
|
|
@@ -154,9 +158,10 @@ details .inner{padding:4px 0 16px;border-top:1px solid var(--line)}
|
|
|
154
158
|
<section>
|
|
155
159
|
<div class="sect">${t.vault}</div>
|
|
156
160
|
<p class="sub">${t.vaultSub}</p>
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
<div class="fieldrow">
|
|
162
|
+
<div class="fieldwrap"><input id="vq" maxlength="120" placeholder="${t.filterPh}" autocomplete="off"><span class="cnt" id="vcnt">0/120</span></div>
|
|
163
|
+
<button class="ghost" id="vgo">${t.filterBtn}</button>
|
|
164
|
+
</div>
|
|
160
165
|
<div class="hint" id="vcount"></div>
|
|
161
166
|
<div id="vlist"></div>
|
|
162
167
|
</section>
|