mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 21:30:59 +00:00
feat: webUI 优化流水线表单样式
1. 新增提交按钮 2. 优化按钮和表单项的样式
This commit is contained in:
+15
-15
@@ -211,9 +211,7 @@ export default function PipelineFormComponent({
|
|||||||
style={{ display: getNowFormLabel().name === "trigger" ? 'block' : 'none' }}
|
style={{ display: getNowFormLabel().name === "trigger" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
{/* 群响应规则块 */}
|
{/* 群响应规则块 */}
|
||||||
<Form.Item>
|
<div className={`${styles.formItemSubtitle}`}> 群响应规则 </div>
|
||||||
群响应规则
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={"是否在消息@机器人时触发"}
|
label={"是否在消息@机器人时触发"}
|
||||||
name={["group-respond-rules", "at"]}
|
name={["group-respond-rules", "at"]}
|
||||||
@@ -253,10 +251,7 @@ export default function PipelineFormComponent({
|
|||||||
step={0.05}
|
step={0.05}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<div className={`${styles.formItemSubtitle}`}> 访问控制 </div>
|
||||||
<Form.Item>
|
|
||||||
访问控制
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={"模式"}
|
label={"模式"}
|
||||||
name={["access-control", "mode"]}
|
name={["access-control", "mode"]}
|
||||||
@@ -293,10 +288,7 @@ export default function PipelineFormComponent({
|
|||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item
|
<div className={`${styles.formItemSubtitle}`}> 消息忽略规则 </div>
|
||||||
label={"消息忽略规则"}
|
|
||||||
>
|
|
||||||
</Form.Item>
|
|
||||||
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={"前缀"}
|
label={"前缀"}
|
||||||
@@ -329,6 +321,7 @@ export default function PipelineFormComponent({
|
|||||||
style={{ display: getNowFormLabel().name === "safety" ? 'block' : 'none' }}
|
style={{ display: getNowFormLabel().name === "safety" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
{/* 内容过滤块 content-filter */}
|
{/* 内容过滤块 content-filter */}
|
||||||
|
<div className={`${styles.formItemSubtitle}`}> 内容过滤 </div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={"检查范围"}
|
label={"检查范围"}
|
||||||
name={["content-filter", "scope"]}
|
name={["content-filter", "scope"]}
|
||||||
@@ -352,7 +345,7 @@ export default function PipelineFormComponent({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
{/* 速率限制块 rate-limit */}
|
{/* 速率限制块 rate-limit */}
|
||||||
|
<div className={`${styles.formItemSubtitle}`}> 速率限制 </div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={"窗口长度(秒)"}
|
label={"窗口长度(秒)"}
|
||||||
name={["rate-limit", "window-length"]}
|
name={["rate-limit", "window-length"]}
|
||||||
@@ -391,7 +384,7 @@ export default function PipelineFormComponent({
|
|||||||
style={{ display: getNowFormLabel().name === "output" ? 'block' : 'none' }}
|
style={{ display: getNowFormLabel().name === "output" ? 'block' : 'none' }}
|
||||||
>
|
>
|
||||||
{/* 长文本处理区块 */}
|
{/* 长文本处理区块 */}
|
||||||
<Form.Item label="长文本处理" />
|
<div className={`${styles.formItemSubtitle}`}> 长文本处理 </div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="阈值"
|
label="阈值"
|
||||||
name={["long-text-processing", "threshold"]}
|
name={["long-text-processing", "threshold"]}
|
||||||
@@ -420,7 +413,7 @@ export default function PipelineFormComponent({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
{/* 强制延迟区块 */}
|
{/* 强制延迟区块 */}
|
||||||
<Form.Item label="强制延迟" />
|
<div className={`${styles.formItemSubtitle}`}> 强制延迟 </div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="最小秒数"
|
label="最小秒数"
|
||||||
name={["force-delay", "min"]}
|
name={["force-delay", "min"]}
|
||||||
@@ -437,7 +430,7 @@ export default function PipelineFormComponent({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
{/* 杂项区块 */}
|
{/* 杂项区块 */}
|
||||||
<Form.Item label="杂项" />
|
<div className={`${styles.formItemSubtitle}`}> 杂项 </div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="不输出异常信息给用户"
|
label="不输出异常信息给用户"
|
||||||
name={["misc", "hide-exception"]}
|
name={["misc", "hide-exception"]}
|
||||||
@@ -490,6 +483,13 @@ export default function PipelineFormComponent({
|
|||||||
>
|
>
|
||||||
{getNextFormLabel()?.label || "暂无更多"}
|
{getNextFormLabel()?.label || "暂无更多"}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
onClick={addFormLabelIndex}
|
||||||
|
>
|
||||||
|
提交
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.changeFormButtonGroupContainer {
|
.changeFormButtonGroupContainer {
|
||||||
width: 250px;
|
width: 320px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
Reference in New Issue
Block a user