수평 바 차트 구현

This commit is contained in:
dohyeons
2025-10-14 16:49:57 +09:00
parent 60090873b3
commit c896b2182c
8 changed files with 219 additions and 27 deletions

View File

@@ -220,7 +220,6 @@ ORDER BY Q4 DESC;`,
placeholder="SELECT * FROM your_table WHERE condition = 'value';"
className="h-40 resize-none font-mono text-sm"
/>
<div className="absolute right-3 bottom-3 text-xs text-gray-400">Ctrl+Enter로 </div>
</div>
</div>
@@ -318,19 +317,6 @@ ORDER BY Q4 DESC;`,
</Card>
</div>
);
// Ctrl+Enter로 쿼리 실행
React.useEffect(() => {
const handleKeyDown = (e: KeyboardEvent) => {
if (e.ctrlKey && e.key === "Enter") {
e.preventDefault();
executeQuery();
}
};
document.addEventListener("keydown", handleKeyDown);
return () => document.removeEventListener("keydown", handleKeyDown);
}, [executeQuery]);
}
/**