File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,7 @@ npm run checkDocs
183183````
184184
185185でターミナルを埋め込む。
186- * ターミナル表示部は ./packages/runtime/terminal.tsx
187- * コマンド入力処理は ./packages/runtime/repl.tsx
188- * 各言語の実行環境は ./packages/runtime/言語名/ 内に書く。
189- * 実行結果はSectionContextにも送られ、section.tsxからアクセスできる
186+ * 実行結果はEmbedContextにも送られ、チャットフォームが参照できる
190187
191188````
192189` ` ` 言語名:ファイル名
@@ -195,13 +192,12 @@ npm run checkDocs
195192````
196193
197194でテキストエディターを埋め込む。
198- * ./packages/runtime/editor.tsx
199- * editor.tsx内で `import "ace-builds/src-min-noconflict/mode-言語名";` を追加すればその言語に対応した色付けがされる。
195+ * app/terminal/editor.tsx内で `import "ace-builds/src-min-noconflict/mode-言語名";` を追加し、packages/runtime/src/languages.tsにも追加すればその言語に対応した色付けがされる。
200196 * importできる言語の一覧は https://github.com/ajaxorg/ace-builds/tree/master/src-noconflict
201- * 編集した内容は ./packages/runtime /file.tsx のFileContextで管理される。
197+ * 編集した内容は app/terminal /file.tsx のFileContextで管理される。
202198 * 編集中のコードはFileContextに即時送られる
203199 * FileContextが書き換えられたら即時すべてのエディターに反映される
204- * 編集したファイルの一覧はSectionContextにも送られ、section.tsxからアクセスできる
200+ * 編集したファイルの一覧はEmbedContextにも送られ、チャットフォームが参照できる
205201
206202````
207203` ` ` 言語名-readonly:ファイル名
@@ -219,8 +215,7 @@ npm run checkDocs
219215
220216で実行ボタンを表示する
221217* 実行ボタンを押した際にFileContextからファイルを読み、実行し、結果を表示する
222- * ./packages/runtime/exec.tsx に各言語ごとの実装を書く (それぞれ ./packages/runtime/言語名/ 内に定義した関数を呼び出す)
223- * 実行結果はSectionContextにも送られ、section.tsxからアクセスできる
218+ * 実行結果はEmbedContextにも送られ、チャットフォームが参照できる
224219
225220
226221# # 技術スタック・ドキュメント・メモ
You can’t perform that action at this time.
0 commit comments