From ef24e3ea1a546c039d0d2f9745079a5a093abea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efruz=20Y=C4=B1ld=C4=B1r=C4=B1r?= <30903352+yldrefruz@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:26:01 +0300 Subject: [PATCH] Adding gzip compression for improving storage use and backward compatibility. (#984) * Basic gzip an gunzip on load and save. * refactor file save type to .gz and update the data in ui. --------- Co-authored-by: Azgaar --- index.html | 39 +++++++++++----------- main.js | 10 +++--- modules/dynamic/auto-update.js | 2 +- modules/io/load.js | 59 ++++++++++++++++++++++------------ modules/io/save.js | 39 +++++++++++++--------- modules/ui/heightmap-editor.js | 2 +- modules/ui/hotkeys.js | 2 +- modules/ui/options.js | 4 +-- utils/polyfills.js | 17 ++++++++++ versioning.js | 5 +-- 10 files changed, 111 insertions(+), 68 deletions(-) diff --git a/index.html b/index.html index 373bb7b0..ba9f8e6e 100644 --- a/index.html +++ b/index.html @@ -2329,8 +2329,8 @@
- - + +
@@ -5884,10 +5884,10 @@ @@ -5908,8 +5908,8 @@