Simplify file handling: give up trying to execute examples in their folders, just copy all files to /. Breaks autocomplete
This commit is contained in:
parent
bcebd5ae00
commit
51b481866f
8 changed files with 90 additions and 52 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue