mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-14 18:38:11 +02:00
Variables resolved in the web live editor
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
6d15fb1c53
commit
eec8fd4b79
4 files changed
+187
-4
No files matched your search
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user