Skip to content

Commit 0c65ad1

Browse files
committed
update zscript playground
1 parent c18c4c3 commit 0c65ad1

File tree

7 files changed

+4251
-6799
lines changed

7 files changed

+4251
-6799
lines changed

dist/zscript/playground.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223761,6 +223761,8 @@ ffc script OldMan
223761223761
const params = new URLSearchParams(location.search);
223762223762
const gist = params.get("gist");
223763223763
const url = params.get("url");
223764+
const data = params.get("data");
223765+
const fname = params.get("fname") ?? "main.zs";
223764223766
if (gist) {
223765223767
const gistFiles = await loadFromGist(gist);
223766223768
if (gistFiles) return gistFiles;
@@ -223773,12 +223775,16 @@ ffc script OldMan
223773223775
return null;
223774223776
}
223775223777
const files2 = /* @__PURE__ */ new Map();
223776-
files2.set("main.zs", content);
223778+
files2.set(fname, content);
223777223779
contentUrl = url;
223778223780
return files2;
223781+
} else if (data) {
223782+
const files2 = /* @__PURE__ */ new Map();
223783+
files2.set(fname, data);
223784+
return files2;
223779223785
}
223780223786
const files = /* @__PURE__ */ new Map();
223781-
files.set("main.zs", defaultContent);
223787+
files.set(fname, defaultContent);
223782223788
return files;
223783223789
}
223784223790
function findIdentifierAndSymbol(metadata, position) {

dist/zscript/playground.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zscript/playground.worker.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zscript/playground.worker.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)