Variables resolved in the web live editor

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
sarahandClaude Opus 5.5 committed 2026-10-13 17:33:31 +02:00
1 parent 6d15fb1c53
commit eec8fd4b79
4 files changed
+187 -4

No files matched your search

+7
View File
@@ -262,6 +262,13 @@ export async function UploadFileChunked(RootName, RelativePath, File, OnProgress
return CompleteChunkedUpload(RootName, RelativePath, UploadId, TotalChunks, File.name);
}
// Where each variable (portal, definition, loop) is in Content, and what it
// resolves to: the live editor shows the results in place (LivePreview.js).
export function FetchSpans(RootName, RelativePath, Content) {
const Params = new URLSearchParams({ Root: RootName, Path: RelativePath });
return FetchJson(`/file/spans?${Params}`, { method: "POST", ...JsonBody({ Content }) });
}
export function SaveFile(RootName, RelativePath, Content) {
const Params = new URLSearchParams({ Root: RootName, Path: RelativePath });
return FetchJson(`/file?${Params}`, { method: "PUT", body: Content });