|
@@ -9,7 +9,7 @@ import { cn } from '../lib/utils';
|
|
|
function KnowledgeItem({ label, content }: any) {
|
|
function KnowledgeItem({ label, content }: any) {
|
|
|
const [open, setOpen] = useState(false);
|
|
const [open, setOpen] = useState(false);
|
|
|
return (
|
|
return (
|
|
|
- <div className="bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm hover:border-indigo-300 transition-colors">
|
|
|
|
|
|
|
+ <div className="bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm hover:border-[#3b82f6] transition-colors">
|
|
|
<div
|
|
<div
|
|
|
className="flex items-center gap-2 text-[12px] text-slate-700 font-bold p-2.5 cursor-pointer hover:bg-slate-50 transition-colors"
|
|
className="flex items-center gap-2 text-[12px] text-slate-700 font-bold p-2.5 cursor-pointer hover:bg-slate-50 transition-colors"
|
|
|
onClick={() => setOpen(!open)}
|
|
onClick={() => setOpen(!open)}
|
|
@@ -105,10 +105,10 @@ function ToolDetails({ tool, allKnow, allCaps, onClose }: { tool: any, allKnow:
|
|
|
|
|
|
|
|
<div className="pt-4 border-t border-slate-100 mt-4">
|
|
<div className="pt-4 border-t border-slate-100 mt-4">
|
|
|
<h3 className="font-bold text-slate-800 mb-4 text-sm flex items-center gap-2">
|
|
<h3 className="font-bold text-slate-800 mb-4 text-sm flex items-center gap-2">
|
|
|
- <FileText size={16} className="text-violet-600" /> 沉淀知识图谱
|
|
|
|
|
|
|
+ <FileText size={16} className="text-[#3b82f6]" /> 沉淀知识图谱
|
|
|
</h3>
|
|
</h3>
|
|
|
<div className="bg-slate-50 p-4 rounded-2xl border border-slate-200">
|
|
<div className="bg-slate-50 p-4 rounded-2xl border border-slate-200">
|
|
|
- {renderExpandableKnowledgeList("关联知识", tool.knowledge_ids, "text-indigo-700")}
|
|
|
|
|
|
|
+ {renderExpandableKnowledgeList("关联知识", tool.knowledge_ids, "text-[#3b82f6]")}
|
|
|
|
|
|
|
|
{!(tool.knowledge_ids?.length) && (
|
|
{!(tool.knowledge_ids?.length) && (
|
|
|
<p className="text-xs text-slate-400 my-2">该工具暂未挂载知识点数据。</p>
|
|
<p className="text-xs text-slate-400 my-2">该工具暂未挂载知识点数据。</p>
|
|
@@ -209,9 +209,9 @@ export function Tools() {
|
|
|
value={searchInput}
|
|
value={searchInput}
|
|
|
onChange={e => setSearchInput(e.target.value)}
|
|
onChange={e => setSearchInput(e.target.value)}
|
|
|
placeholder="搜索特定功能点或参数设计..."
|
|
placeholder="搜索特定功能点或参数设计..."
|
|
|
- className="w-full bg-slate-50 border border-slate-200 text-sm rounded-xl pl-10 pr-24 py-2.5 focus:outline-none focus:ring-2 focus:ring-amber-500 transition-all font-medium text-slate-700 placeholder:font-normal"
|
|
|
|
|
|
|
+ className="w-full bg-slate-50 border border-slate-200 text-sm rounded-xl pl-10 pr-24 py-2.5 focus:outline-none focus:ring-2 focus:ring-[#3b82f6] transition-all font-medium text-slate-700 placeholder:font-normal"
|
|
|
/>
|
|
/>
|
|
|
- <button type="submit" className="absolute right-2 top-1/2 -translate-y-1/2 bg-[#3b82f6] text-white text-xs px-3 py-1.5 rounded-lg font-bold hover:bg-amber-700 transition-colors">
|
|
|
|
|
|
|
+ <button type="submit" className="absolute right-2 top-1/2 -translate-y-1/2 bg-[#3b82f6] text-white text-xs px-3 py-1.5 rounded-lg font-bold hover:bg-[#2563eb] transition-colors">
|
|
|
检索
|
|
检索
|
|
|
</button>
|
|
</button>
|
|
|
</form>
|
|
</form>
|