Simplify file handling: give up trying to execute examples in their folders, just copy all files to /. Breaks autocomplete

This commit is contained in:
ochafik 2023-03-26 23:39:41 +01:00
commit 51b481866f
8 changed files with 90 additions and 52 deletions

View file

@ -22,13 +22,8 @@ if (process.env.NODE_ENV !== 'production') {
(async () => {
const workingDir = '/home';
const fs = await createEditorFS(workingDir)!;
await registerOpenSCADLanguage(fs, workingDir, zipArchives);
// type Mode = State['view']['layout']['mode'];
// const mode: Mode = window.matchMedia("(min-width: 768px)").matches
// ? 'multi' : 'single';
const fs = await createEditorFS('/libraries/');
await registerOpenSCADLanguage(fs, '/', zipArchives);
const initialState = createInitialState(fs, readStateFromFragment());