Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
e5c3111094 Setup legacy branch with the custom code generator 2021-06-18 15:49:23 +02:00

View file

@ -43,8 +43,8 @@ export default class CustomGeneratorPanel extends UIElement {
const es = new UIEventSource(layout);
const encoded = es.map(config => LZString.compressToBase64(Utils.MinifyJSON(JSON.stringify(config, null, 0))));
encoded.addCallback(encoded => LocalStorageSource.Get("last-custom-theme"))
const liveUrl = encoded.map(encoded => `./index.html?userlayout=${es.data.id}#${encoded}`)
const testUrl = encoded.map(encoded => `./index.html?test=true&userlayout=${es.data.id}#${encoded}`)
const liveUrl = encoded.map(encoded => `https://mapcomplete.osm.be/index.html?userlayout=${es.data.id}#${encoded}`)
const testUrl = encoded.map(encoded => `https://mapcomplete.osm.be/index.html?test=true&userlayout=${es.data.id}#${encoded}`)
const iframe = testUrl.map(url => `<iframe src='${url}' width='100%' height='99%' style="box-sizing: border-box" title='Theme Preview'></iframe>`);
const currentSetting = new UIEventSource<SingleSetting<any>>(undefined)
const generalSettings = new GeneralSettings(es, currentSetting);