sync update from LAN repo (source master @ 6e3f02a2)
This commit is contained in:
1 parent
66a443e915
commit
6c25c89d93
431 files changed
+68511
-2240
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useEffect, useLayoutEffect, useRef, useState, type ReactNode } from 'react';
|
||||
import { useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { ChevronsDown, CloudUpload, PanelRightClose, Pause, Play, Plus, RotateCcw, Settings2, Trash2 } from 'lucide-react';
|
||||
import { toast } from 'sonner';
|
||||
import { confirmAction, toast } from "@/core/ui/feedback";
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { cn } from '@/lib/utils';
|
||||
@@ -414,7 +414,11 @@ export function AIWritingPanel({
|
||||
// ai-writing-优化.md §阶段 7 删冗余代码时,本按钮 + 对应 api 一并删除。
|
||||
// 仅 admin 能成功调用(后端 _require_admin),普通用户调会拿到 403。
|
||||
const handleAdminCleanup = useCallback(async () => {
|
||||
if (!window.confirm('确认清理:retention_days=0 会清掉所有 done/error 的历史会话,正在跑的会跳过。继续?')) {
|
||||
if (!(await confirmAction('retention_days=0 会清掉所有 done/error 的历史会话,正在运行的会跳过。', {
|
||||
title: '清理全部历史会话?',
|
||||
confirmText: '确认清理',
|
||||
danger: true,
|
||||
}))) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import type { Message } from '@langchain/langgraph-sdk';
|
||||
import { FileText, Loader2, Sparkles, Upload, Zap } from 'lucide-react';
|
||||
import { toast } from 'sonner';
|
||||
import { toast } from "@/core/ui/feedback";
|
||||
|
||||
import {
|
||||
PromptInput,
|
||||
|
||||
Reference in new issue
Block a user