fix: lỗi cài đặt AI prompt
This commit is contained in:
@@ -8063,7 +8063,7 @@ const App = () => {
|
|||||||
}, /*#__PURE__*/React.createElement("i", {
|
}, /*#__PURE__*/React.createElement("i", {
|
||||||
"data-lucide": "sparkles",
|
"data-lucide": "sparkles",
|
||||||
className: "w-3 h-3"
|
className: "w-3 h-3"
|
||||||
})), " Loop"))), /*#__PURE__*/React.createElement("div", {
|
})), " Loop")), /*#__PURE__*/React.createElement("div", {
|
||||||
className: "border-t border-zinc-800 pt-1.5 mt-1"
|
className: "border-t border-zinc-800 pt-1.5 mt-1"
|
||||||
}, /*#__PURE__*/React.createElement("div", {
|
}, /*#__PURE__*/React.createElement("div", {
|
||||||
className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1"
|
className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1"
|
||||||
@@ -8081,13 +8081,13 @@ const App = () => {
|
|||||||
onKeyDown: e => {
|
onKeyDown: e => {
|
||||||
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
executeAIPrompt();
|
window.executeAIPrompt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}), /*#__PURE__*/React.createElement("div", {
|
}), /*#__PURE__*/React.createElement("div", {
|
||||||
className: "flex items-center gap-1 mt-1"
|
className: "flex items-center gap-1 mt-1"
|
||||||
}, /*#__PURE__*/React.createElement("button", {
|
}, /*#__PURE__*/React.createElement("button", {
|
||||||
onClick: executeAIPrompt,
|
onClick: () => window.executeAIPrompt(),
|
||||||
disabled: aiProcessing,
|
disabled: aiProcessing,
|
||||||
className: "flex-1 py-1 bg-purple-700 hover:bg-purple-600 text-white font-bold rounded text-[10px] border border-purple-500 flex items-center justify-center gap-1"
|
className: "flex-1 py-1 bg-purple-700 hover:bg-purple-600 text-white font-bold rounded text-[10px] border border-purple-500 flex items-center justify-center gap-1"
|
||||||
}, aiProcessing ? 'Đang suy luận...' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
}, aiProcessing ? 'Đang suy luận...' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
||||||
@@ -8133,8 +8133,7 @@ const App = () => {
|
|||||||
}, "Chưa có hành động nào.") : aiActionLog.map((entry, i) => /*#__PURE__*/React.createElement("div", {
|
}, "Chưa có hành động nào.") : aiActionLog.map((entry, i) => /*#__PURE__*/React.createElement("div", {
|
||||||
key: i,
|
key: i,
|
||||||
className: `text-[9px] font-mono py-0.5 border-b border-zinc-900 last:border-0 ${entry.type === 'error' ? 'text-red-400' : entry.type === 'status' ? 'text-zinc-400 italic' : entry.type === 'undo' ? 'text-amber-400' : 'text-zinc-300'}`
|
className: `text-[9px] font-mono py-0.5 border-b border-zinc-900 last:border-0 ${entry.type === 'error' ? 'text-red-400' : entry.type === 'status' ? 'text-zinc-400 italic' : entry.type === 'undo' ? 'text-amber-400' : 'text-zinc-300'}`
|
||||||
}, new Date(entry.time).toLocaleTimeString(), entry.text)));
|
}, new Date(entry.time).toLocaleTimeString(), entry.text)))); return /*#__PURE__*/React.createElement("div", {
|
||||||
if (panelId === 'python_tools') return /*#__PURE__*/React.createElement("div", {
|
|
||||||
className: "flex flex-col h-full gap-1.5"
|
className: "flex flex-col h-full gap-1.5"
|
||||||
}, /*#__PURE__*/React.createElement("div", {
|
}, /*#__PURE__*/React.createElement("div", {
|
||||||
className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none",
|
className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none",
|
||||||
|
|||||||
@@ -8157,7 +8157,7 @@ const App = () => {
|
|||||||
}, /*#__PURE__*/React.createElement("i", {
|
}, /*#__PURE__*/React.createElement("i", {
|
||||||
"data-lucide": "sparkles",
|
"data-lucide": "sparkles",
|
||||||
className: "w-3 h-3"
|
className: "w-3 h-3"
|
||||||
})), " Loop"))), /*#__PURE__*/React.createElement("div", {
|
})), " Loop")), /*#__PURE__*/React.createElement("div", {
|
||||||
className: "border-t border-zinc-800 pt-1.5 mt-1"
|
className: "border-t border-zinc-800 pt-1.5 mt-1"
|
||||||
}, /*#__PURE__*/React.createElement("div", {
|
}, /*#__PURE__*/React.createElement("div", {
|
||||||
className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1"
|
className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1"
|
||||||
@@ -8175,13 +8175,13 @@ const App = () => {
|
|||||||
onKeyDown: e => {
|
onKeyDown: e => {
|
||||||
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
executeAIPrompt();
|
window.executeAIPrompt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}), /*#__PURE__*/React.createElement("div", {
|
}), /*#__PURE__*/React.createElement("div", {
|
||||||
className: "flex items-center gap-1 mt-1"
|
className: "flex items-center gap-1 mt-1"
|
||||||
}, /*#__PURE__*/React.createElement("button", {
|
}, /*#__PURE__*/React.createElement("button", {
|
||||||
onClick: executeAIPrompt,
|
onClick: () => window.executeAIPrompt(),
|
||||||
disabled: aiProcessing,
|
disabled: aiProcessing,
|
||||||
className: "flex-1 py-1 bg-purple-700 hover:bg-purple-600 text-white font-bold rounded text-[10px] border border-purple-500 flex items-center justify-center gap-1"
|
className: "flex-1 py-1 bg-purple-700 hover:bg-purple-600 text-white font-bold rounded text-[10px] border border-purple-500 flex items-center justify-center gap-1"
|
||||||
}, aiProcessing ? 'Đang suy luận...' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
}, aiProcessing ? 'Đang suy luận...' : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
||||||
@@ -8235,8 +8235,8 @@ const App = () => {
|
|||||||
}, "Chưa có hành động nào.") : aiActionLog.map((entry, i) => /*#__PURE__*/React.createElement("div", {
|
}, "Chưa có hành động nào.") : aiActionLog.map((entry, i) => /*#__PURE__*/React.createElement("div", {
|
||||||
key: i,
|
key: i,
|
||||||
className: `text-[9px] font-mono py-0.5 border-b border-zinc-900 last:border-0 ${entry.type === 'error' ? 'text-red-400' : entry.type === 'status' ? 'text-zinc-400 italic' : entry.type === 'undo' ? 'text-amber-400' : 'text-zinc-300'}`
|
className: `text-[9px] font-mono py-0.5 border-b border-zinc-900 last:border-0 ${entry.type === 'error' ? 'text-red-400' : entry.type === 'status' ? 'text-zinc-400 italic' : entry.type === 'undo' ? 'text-amber-400' : 'text-zinc-300'}`
|
||||||
}, new Date(entry.time).toLocaleTimeString(), entry.text)));
|
}, new Date(entry.time).toLocaleTimeString(), entry.text))));
|
||||||
if (panelId === 'python_tools') return /*#__PURE__*/React.createElement("div", {
|
return /*#__PURE__*/React.createElement("div", {
|
||||||
className: "flex flex-col h-full gap-1.5"
|
className: "flex flex-col h-full gap-1.5"
|
||||||
}, /*#__PURE__*/React.createElement("div", {
|
}, /*#__PURE__*/React.createElement("div", {
|
||||||
className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none",
|
className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none",
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user