mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: add http params focus & ui (#2611)
This commit is contained in:
@@ -10,6 +10,7 @@ type Props<ValueType = string> = Omit<GridProps, 'onChange'> & {
|
||||
size?: 'sm' | 'md' | 'lg';
|
||||
inlineStyles?: FlexProps;
|
||||
activeColor?: string;
|
||||
defaultColor?: string;
|
||||
onChange: (value: ValueType) => void;
|
||||
};
|
||||
|
||||
@@ -18,6 +19,7 @@ const LightRowTabs = <ValueType = string,>({
|
||||
size = 'md',
|
||||
value,
|
||||
activeColor = 'primary.600',
|
||||
defaultColor = 'transparent',
|
||||
onChange,
|
||||
inlineStyles,
|
||||
...props
|
||||
@@ -63,7 +65,8 @@ const LightRowTabs = <ValueType = string,>({
|
||||
py={sizeMap.inlineP}
|
||||
alignItems={'center'}
|
||||
justifyContent={'center'}
|
||||
borderBottom={'2px solid transparent'}
|
||||
borderBottom={'2px solid'}
|
||||
borderColor={defaultColor}
|
||||
px={3}
|
||||
whiteSpace={'nowrap'}
|
||||
{...(value === item.value
|
||||
|
@@ -106,6 +106,7 @@ export default function Editor({
|
||||
cursor={'text'}
|
||||
color={'myGray.700'}
|
||||
bg={focus ? 'white' : bg}
|
||||
borderRadius={'md'}
|
||||
>
|
||||
<LexicalComposer initialConfig={initialConfig} key={key}>
|
||||
<PlainTextPlugin
|
||||
|
@@ -77,10 +77,7 @@ export default function VariableLabelPickerPlugin({
|
||||
onSelectOption={onSelectOption}
|
||||
triggerFn={checkForTriggerMatch}
|
||||
options={variableFilter(variables, queryString || '')}
|
||||
menuRenderFn={(
|
||||
anchorElementRef,
|
||||
{ selectedIndex, selectOptionAndCleanUp, setHighlightedIndex }
|
||||
) => {
|
||||
menuRenderFn={(anchorElementRef, { selectedIndex, selectOptionAndCleanUp }) => {
|
||||
if (anchorElementRef.current == null) {
|
||||
return null;
|
||||
}
|
||||
|
@@ -858,6 +858,7 @@
|
||||
},
|
||||
"http": {
|
||||
"Add props": "Add parameters",
|
||||
"Add props_and_tips": "Add parameter, enter \"/\" to call variable list",
|
||||
"AppId": "Application ID",
|
||||
"AppSecret": "AppSecret",
|
||||
"ChatId": "Current chat ID",
|
||||
@@ -866,8 +867,10 @@
|
||||
"Key already exists": "Key already exists",
|
||||
"Key cannot be empty": "Parameter name cannot be empty",
|
||||
"Props name": "Parameter name",
|
||||
"Props name_and_tips": "Parameter name, enter \"/\" to call variables list",
|
||||
"Props tip": "Can set HTTP request related parameters\nCan use / to call variables, currently available variables:\n{{variable}}",
|
||||
"Props value": "Parameter value",
|
||||
"Props value_and_tips": "Parameter value, enter \"/\" to call variables list",
|
||||
"ResponseChatItemId": "AI response ID",
|
||||
"Url and params have been split": "Path parameters have been automatically added to Params",
|
||||
"curl import": "curl import",
|
||||
|
@@ -58,9 +58,6 @@
|
||||
"greater_than": "greater than",
|
||||
"greater_than_or_equal_to": "Greater than or equal to",
|
||||
"greeting": "greet",
|
||||
"http": {
|
||||
"body_none": "This request has no body parameters."
|
||||
},
|
||||
"http_raw_response_description": "The raw response of the HTTP request. \nOnly string or JSON type response data can be accepted.",
|
||||
"http_request": "HTTP request",
|
||||
"http_request_error_info": "HTTP request error information, returns empty when successful",
|
||||
|
@@ -858,6 +858,7 @@
|
||||
},
|
||||
"http": {
|
||||
"Add props": "添加参数",
|
||||
"Add props_and_tips": "添加参数,输入“/”唤起变量列表",
|
||||
"AppId": "应用 ID",
|
||||
"AppSecret": "AppSecret",
|
||||
"ChatId": "当前对话 ID",
|
||||
@@ -866,8 +867,10 @@
|
||||
"Key already exists": "Key 已经存在",
|
||||
"Key cannot be empty": "参数名不能为空",
|
||||
"Props name": "参数名",
|
||||
"Props name_and_tips": "参数名,输入”/“唤起变量列表",
|
||||
"Props tip": "可以设置 HTTP 请求的相关参数\n可通过输入 / 来调用变量,当前可使用变量:\n{{variable}}",
|
||||
"Props value": "参数值",
|
||||
"Props value_and_tips": "参数值,输入“/”唤起变量列表",
|
||||
"ResponseChatItemId": "AI 回复的 ID",
|
||||
"Url and params have been split": "路径参数已被自动加入 Params 中",
|
||||
"curl import": "cURL 导入",
|
||||
|
@@ -58,9 +58,6 @@
|
||||
"greater_than": "大于",
|
||||
"greater_than_or_equal_to": "大于等于",
|
||||
"greeting": "打招呼",
|
||||
"http": {
|
||||
"body_none": "该请求没有 Body 体"
|
||||
},
|
||||
"http_raw_response_description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。",
|
||||
"http_request": "HTTP 请求",
|
||||
"http_request_error_info": "HTTP请求错误信息,成功时返回空",
|
||||
|
Reference in New Issue
Block a user