From a99835c0c547442424e53580b84daea2b7e12e99 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 4 Jun 2021 17:57:07 +0200 Subject: [PATCH 1/4] Unlocked version --- Models/Constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Constants.ts b/Models/Constants.ts index 0c6a19e8d1..1aa033ec78 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -14,7 +14,7 @@ export default class Constants { mapCompleteHelpUnlock: 50, tagsVisibleAndWikiLinked: 30, themeGeneratorReadOnlyUnlock: 50, - themeGeneratorFullUnlock: 500, + themeGeneratorFullUnlock: 1, addNewPointWithUnreadMessagesUnlock: 500, minZoomLevelToAddNewPoints: (Constants.isRetina() ? 18 : 19), From e5c31110948426732c7d77817aa291fa064bd6ef Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 18 Jun 2021 15:49:23 +0200 Subject: [PATCH 2/4] Setup legacy branch with the custom code generator --- UI/CustomGenerator/CustomGeneratorPanel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/CustomGenerator/CustomGeneratorPanel.ts b/UI/CustomGenerator/CustomGeneratorPanel.ts index e1a1592ed2..618f90f214 100644 --- a/UI/CustomGenerator/CustomGeneratorPanel.ts +++ b/UI/CustomGenerator/CustomGeneratorPanel.ts @@ -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 => ``); const currentSetting = new UIEventSource>(undefined) const generalSettings = new GeneralSettings(es, currentSetting); From 1fd91613a9de308d8c4b62a4de96c8ba53292aee Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 5 Jul 2021 13:20:13 +0200 Subject: [PATCH 3/4] Fix access restrictions --- Models/Constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/Constants.ts b/Models/Constants.ts index 1aa033ec78..07fdc7b4b0 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -13,8 +13,8 @@ export default class Constants { tagsVisibleAt: 25, mapCompleteHelpUnlock: 50, tagsVisibleAndWikiLinked: 30, - themeGeneratorReadOnlyUnlock: 50, - themeGeneratorFullUnlock: 1, + themeGeneratorReadOnlyUnlock: 1, + themeGeneratorFullUnlock: 50, addNewPointWithUnreadMessagesUnlock: 500, minZoomLevelToAddNewPoints: (Constants.isRetina() ? 18 : 19), From b05a81c0fe01008aa3f8f71dcb472dc3ab8f455f Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 5 Jul 2021 13:20:20 +0200 Subject: [PATCH 4/4] Fix access restrictions --- Models/Constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Constants.ts b/Models/Constants.ts index 07fdc7b4b0..b3cbdbced2 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -14,7 +14,7 @@ export default class Constants { mapCompleteHelpUnlock: 50, tagsVisibleAndWikiLinked: 30, themeGeneratorReadOnlyUnlock: 1, - themeGeneratorFullUnlock: 50, + themeGeneratorFullUnlock: 1, addNewPointWithUnreadMessagesUnlock: 500, minZoomLevelToAddNewPoints: (Constants.isRetina() ? 18 : 19),