Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeMirror でクエリー組み立てて実行できるようにする #2

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

voluntas
Copy link
Owner

@voluntas voluntas commented Nov 25, 2024

This pull request includes several changes to integrate CodeMirror for SQL editing and improve the overall functionality of the project. The most important changes include adding new dependencies, updating the main script to initialize the editor, and modifying the HTML structure to include the editor.

Integration of CodeMirror:

  • package.json: Added new dependencies for CodeMirror packages, including @codemirror/commands, @codemirror/lang-sql, @codemirror/language, @codemirror/search, @codemirror/state, @codemirror/view, and @replit/codemirror-vim.
  • pnpm-lock.yaml: Updated the lock file to include the new CodeMirror dependencies and their versions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Initialization and Configuration:

  • src/main.mts: Imported CodeMirror modules and initialized the editor with SQL syntax highlighting, Vim mode support, and a default SQL query. Added event listeners for toggling Vim mode and executing SQL queries. [1] [2] [3]

HTML Structure Update:

  • index.html: Added a new div element with the id editor to host the CodeMirror editor.

@voluntas voluntas merged commit 303d2d6 into main Nov 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant