第一次运行实验时自动建好预置的数据库
- 运行时带上当前实验;实验有 database.sql 而学生还没有其中的库时,先建好这些库 (已有的库不动,保留学生的数据);建库失败不影响运行 - 教材项目 8 要"附加"现成的 WisdomCampus 库,学生不用先去数据库页面恢复 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5ae07b851d
commit
10c50265b2
5 files changed
+27
-8
No files matched your search
+2
-1
@@ -155,7 +155,8 @@ export type RunnerInput =
|
||||
|
||||
/** 浏览器发给服务器的消息 */
|
||||
export type ClientMessage =
|
||||
| { type: 'run'; files: SourceFile[] }
|
||||
/** sampleId:当前实验,第一次运行时自动建好实验预置的数据库(学生还没有这些库时) */
|
||||
| { type: 'run'; files: SourceFile[]; sampleId?: string }
|
||||
/** 调节实训台环境:拖动滑块、触发传感器 */
|
||||
/** clock:拨到某个时刻(time:yyyy-MM-ddTHH:mm:ss)、改倍速,或 null 恢复真实时间 */
|
||||
| { type: 'boardInput'; analog?: Partial<BoardState['analog']>; digital?: Partial<BoardState['digital']>; clock?: { time?: string; speed?: number } | null }
|
||||
|
||||
Reference in new issue
Block a user