diff --git a/app/static/js/app.jsx b/app/static/js/app.jsx index ea49814..b1a465f 100644 --- a/app/static/js/app.jsx +++ b/app/static/js/app.jsx @@ -8063,7 +8063,7 @@ const App = () => { }, /*#__PURE__*/React.createElement("i", { "data-lucide": "sparkles", 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" }, /*#__PURE__*/React.createElement("div", { className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1" @@ -8081,13 +8081,13 @@ const App = () => { onKeyDown: e => { if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) { e.preventDefault(); - executeAIPrompt(); + window.executeAIPrompt(); } } }), /*#__PURE__*/React.createElement("div", { className: "flex items-center gap-1 mt-1" }, /*#__PURE__*/React.createElement("button", { - onClick: executeAIPrompt, + onClick: () => window.executeAIPrompt(), 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" }, 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", { 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'}` - }, new Date(entry.time).toLocaleTimeString(), entry.text))); - if (panelId === 'python_tools') return /*#__PURE__*/React.createElement("div", { + }, new Date(entry.time).toLocaleTimeString(), entry.text)))); return /*#__PURE__*/React.createElement("div", { className: "flex flex-col h-full gap-1.5" }, /*#__PURE__*/React.createElement("div", { className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none", diff --git a/app/static/js/app.precompiled.js b/app/static/js/app.precompiled.js index 0ae0981..e1df5ce 100644 --- a/app/static/js/app.precompiled.js +++ b/app/static/js/app.precompiled.js @@ -8157,7 +8157,7 @@ const App = () => { }, /*#__PURE__*/React.createElement("i", { "data-lucide": "sparkles", 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" }, /*#__PURE__*/React.createElement("div", { className: "text-[9px] font-bold text-zinc-400 uppercase mb-1 flex items-center gap-1" @@ -8175,13 +8175,13 @@ const App = () => { onKeyDown: e => { if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) { e.preventDefault(); - executeAIPrompt(); + window.executeAIPrompt(); } } }), /*#__PURE__*/React.createElement("div", { className: "flex items-center gap-1 mt-1" }, /*#__PURE__*/React.createElement("button", { - onClick: executeAIPrompt, + onClick: () => window.executeAIPrompt(), 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" }, 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", { 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'}` - }, new Date(entry.time).toLocaleTimeString(), entry.text))); - if (panelId === 'python_tools') return /*#__PURE__*/React.createElement("div", { + }, new Date(entry.time).toLocaleTimeString(), entry.text)))); + return /*#__PURE__*/React.createElement("div", { className: "flex flex-col h-full gap-1.5" }, /*#__PURE__*/React.createElement("div", { className: "flex items-center justify-between shrink-0 cursor-grab active:cursor-grabbing select-none", diff --git a/app/storage/sonicforge.db b/app/storage/sonicforge.db index 0ef2a79..d7c66d8 100644 Binary files a/app/storage/sonicforge.db and b/app/storage/sonicforge.db differ