Commit Graph

109 Commits

Author SHA1 Message Date
9b79cddfa6 Adjust SQL layout default split ratio
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
Give the two data tables more default vertical space (1/4 for the
code editor instead of 3/5).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:55:27 -06:00
edd2f706ac feat: render SQL initial/result data as tables in a two-pane layout
Rewrites Content.vue to give the SQL language its own top/bottom split
(code editor over data tables) instead of sharing the horizontal
left/right layout used by other languages. SqlSection.vue now renders
the preset data and the post-run result as two side-by-side
n-data-tables, falling back to the existing error UI when a run fails.

Also registers NDataTable globally in main.ts (naive-ui components must
be explicitly registered via create()); without it n-data-table was an
inert unresolved custom element and no rows rendered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:47:53 -06:00
436f39d424 feat: isolate student SQL output and add result-row parsing 2026-07-05 00:37:56 -06:00
9a01d0e972 feat: structure candidate SQL table data as columns/rows
- Replace literal setupSql strings with structured columns/rows model
- Add SqlColumn interface and updated SqlTablePreset with columns/rows arrays
- Implement toSqlLiteral() for value escaping and buildSetupSql() for SQL generation
- Update sqlTable.ts to call buildSetupSql() instead of accessing setupSql field
- Maintains data parity with existing tables (students, employees, products)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:34:39 -06:00
f8e59e9850 fix: address SQL feature code review findings
- Normalize student SQL to end with exactly one semicolon before
  appending the trailing SELECT, so a missing trailing ; no longer
  produces a confusing parse error (sqlTable.ts)
- Remove unused description field from SqlTablePreset and all presets
  (dead data, nothing in the UI reads it)
- Clear output when the candidate table selection changes, so stale
  results from the previous table don't linger (SqlSection.vue)
- Remove stray console.log(props.language) debug statement
  (CodeEditor.vue)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:16:26 -06:00
62ef50fb76 Move SQL table picker next to the language selector
Previously the candidate-table dropdown lived inside SqlSection's
content pane; moved it into the header alongside SelectLanguage so
table selection is visible regardless of scroll position.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:15:02 -06:00
b30e8c9ee6 feat: add SqlSection UI wired into the desktop editor layout
Selecting SQL now shows a table picker, read-only setup-SQL preview,
and results panel instead of the Input/Output split, mirroring how
Turtle already replaces that pane with its own canvas.
2026-07-05 00:02:57 -06:00
e5b2852fd1 feat: make SQL selectable as a language with syntax highlighting 2026-07-04 23:54:16 -06:00
89d42b8d0f feat: add candidate SQL table presets and script-building composable 2026-07-04 23:48:48 -06:00
fbe98c455b feat: add sql to LANGUAGE type, Judge0 mapping, and code cache 2026-07-04 23:45:54 -06:00
d798d56dbe fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-06-14 07:18:50 -06:00
504af39ff6 feat: add format code button to editor toolbar 2026-06-14 07:04:38 -06:00
dde90adb46 feat: add format action to code composable 2026-06-14 07:02:23 -06:00
1fd2025fe1 feat: add formatCode API client 2026-06-14 07:00:52 -06:00
678d3d9abf update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-19 08:05:08 -06:00
f31b2afcb1 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-14 08:56:22 +08:00
8260aa197d 使用 skulpt 作为 Python 执行器
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-13 20:19:50 +08:00
ff170ae2ce update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-06 22:32:00 +08:00
fbb4882780 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-06 22:29:12 +08:00
dc039bfa16 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-06 22:15:58 +08:00
d6eb666a83 新增中文补全
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-01-06 21:41:57 +08:00
f31f1abaef fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-25 11:16:21 +08:00
ddeeb413ed fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-25 11:10:49 +08:00
611336a375 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-25 10:45:27 +08:00
11c275fd01 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-25 10:43:38 +08:00
2ad9d73c6e refactor debug panel
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-25 10:40:46 +08:00
5a77902750 fix style
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-20 22:28:09 +08:00
727dc0a8e8 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-27 19:27:21 +08:00
475a09298d remove url
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 18:46:04 +08:00
9b1abd7a25 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 13:21:58 +08:00
953ca3720f update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 12:41:06 +08:00
9470614588 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 12:29:27 +08:00
bc2db54575 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 11:17:12 +08:00
4306e555bb update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 02:33:08 +08:00
0d600382d3 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 00:23:05 +08:00
9164fff6c2 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-22 00:18:27 +08:00
64eeffd041 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-21 23:03:25 +08:00
cfeac2cdaa markdown style
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-21 22:38:16 +08:00
53ae1a8ef8 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-10-21 21:54:59 +08:00
9758322f27 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-28 15:30:48 +08:00
c6d2e17476 添加AI分析
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-28 10:51:04 +08:00
0f0312529b fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-26 10:25:50 +08:00
dea523cb15 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-16 18:08:46 +08:00
4b59d1cf17 add turtle
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-16 17:37:43 +08:00
80d279365c add cpp
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-10 13:46:12 +08:00
5240e029c5 update 2025-05-13 12:01:14 +08:00
b91d7405fc update 2025-05-09 10:47:29 +08:00
aa6854b6ab fix 2025-05-08 20:33:58 +08:00
30b7df3544 fix 2025-05-08 18:34:14 +08:00
f21c9f95d0 添加图标 2025-05-08 18:12:33 +08:00