mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-07 07:15:25 -04:00
almost working
This commit is contained in:
@@ -26,6 +26,7 @@ export * from './logger.mjs';
|
||||
export * from './time.mjs';
|
||||
export * from './ui.mjs';
|
||||
export * from './ui.mjs';
|
||||
export * from './idbutils.mjs'
|
||||
export { default as drawLine } from './drawLine.mjs';
|
||||
// below won't work with runtime.mjs (json import fails)
|
||||
/* import * as p from './package.json';
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from './repl-component.mjs';
|
||||
export * from './prebake.mjs';
|
||||
|
||||
|
||||
@@ -221,7 +221,8 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '', option
|
||||
const base = sampleMap.split('/').slice(0, -1).join('/');
|
||||
const savedJSON = localStorage.getItem(sampleMap)
|
||||
if (savedJSON) {
|
||||
samples(JSON.parse(savedJSON), baseUrl || json._base || base, options)
|
||||
const json = JSON.parse(savedJSON)
|
||||
samples(json, baseUrl || json._base || base, options)
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user