fix(web): time tool / cluster chat
This commit is contained in:
@@ -89,7 +89,7 @@ const Inner: React.FC<{ getStatusTag: (status: string) => ReactNode }> = ({ getS
|
||||
<List.Item key={item.id}>
|
||||
<RbCard
|
||||
className={clsx({
|
||||
'rb:h-82.5!': item.config_data.tool_class === 'DateTimeTool' || item.config_data.tool_class === 'JsonTool'
|
||||
'rb:h-85.5!': item.config_data.tool_class === 'DateTimeTool' || item.config_data.tool_class === 'JsonTool'
|
||||
})}
|
||||
// avatar={
|
||||
// <div className="rb:w-12 rb:h-12 rb:rounded-lg rb:mr-3.25 rb:bg-[#155eef] rb:flex rb:items-center rb:justify-center rb:text-[28px] rb:text-[#ffffff]">
|
||||
|
||||
@@ -9,12 +9,12 @@ const FormItem = Form.Item;
|
||||
|
||||
const tabKeys = ['currentTime', 'timestampConversion', 'timeFormat']
|
||||
const formatList = [
|
||||
{ label: '%Y-%m-%d %H:%M:%S', value: '%Y-%m-%d %H:%M:%S' },
|
||||
{ label: '%Y%m%d_%H%M%S', value: '%Y%m%d_%H%M%S' },
|
||||
{ label: '%Y年%m月%d日 %H:%M', value: '%Y年%m月%d日 %H:%M' },
|
||||
{ label: '%Y-%m-%d %H:%M:%S.%f', value: '%Y-%m-%d %H:%M:%S.%f' },
|
||||
{ label: '%d/%m/%Y', value: '%d/%m/%Y' },
|
||||
{ label: '%m/%d/%Y', value: '%m/%d/%Y' },
|
||||
{ label: 'YYYY-MM-DD HH:mm:ss', value: '%Y-%m-%d %H:%M:%S' },
|
||||
{ label: 'YYYYMMDD_HHmmss', value: '%Y%m%d_%H%M%S' },
|
||||
{ label: 'YYYY年MM月DD日 HH:mm', value: '%Y年%m月%d日 %H:%M' },
|
||||
{ label: 'YYYY-MM-DD HH:mm:ss.SS', value: '%Y-%m-%d %H:%M:%S.%f' },
|
||||
{ label: 'DD/MM/YYYY', value: '%d/%m/%Y' },
|
||||
{ label: 'MM/DD/YYYY', value: '%m/%d/%Y' },
|
||||
]
|
||||
interface CurrentTimeObj {
|
||||
datetime: string;
|
||||
@@ -79,7 +79,7 @@ const TimeToolModal = forwardRef<TimeToolModalRef>((_props, ref) => {
|
||||
execute({
|
||||
"tool_id": data.id,
|
||||
"parameters": {
|
||||
"operation": "now",
|
||||
"operation": "timestamp_to_datetime",
|
||||
"input_value": timestamp,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user