Commit Graph

162 Commits

Author SHA1 Message Date
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
4abd5761a0 Add implementation plan for SQL tabular data view
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:32:54 -06:00
5e38c5c796 Add design spec for tabular SQL data display
Replaces the raw-SQL-text preview/output with real data tables, and
fixes duplicate-output when a student's own SQL is itself a SELECT.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 00:29:20 -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
bc3308da51 Add implementation plan for SQL CRUD practice feature
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 23:43:15 -06:00
b7c19ed5d5 Add sqlparse-based formatting to the SQL CRUD practice design
Extends the existing language-agnostic /format endpoint with a sql
branch so the "整理" button works for the new SQL language too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 23:36:19 -06:00
c9eb5fa12f Add design spec for SQL CRUD practice feature
Lets students select a preset teaching table, write SQL against it,
and see the resulting table state via the existing Judge0 pipeline.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 23:34:24 -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
d3dfca2fe5 fix
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-06-01 05:48:02 -06:00
678d3d9abf update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-19 08:05:08 -06:00
a480bda71b disabled maxkb
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-10 23:03:47 +08:00
394ab43447 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-08 20:32:38 -06:00
73de911b72 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-08 20:30:34 -06:00
db807051cf rsbuild downgrade to v1
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-08 20:29:41 -06:00
8ba0f117ff update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-05-06 20:57:03 -06:00
79d5a2bab2 add icon url
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2026-03-10 17:39:05 +08: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
6eb7c1e07c fix 2026-01-04 00:02:34 +08:00
515cd1d05e update maxkb url 2026-01-03 23:17:30 +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
ec46928689 update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-12-20 22:24:14 +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