From f8fbdd176518775c1a7b69a58d9c4b423b56cdd8 Mon Sep 17 00:00:00 2001 From: Offroaders123 <65947371+Offroaders123@users.noreply.github.com> Date: Thu, 17 Aug 2023 15:08:33 -0700 Subject: [PATCH] Tree View in Stable (Almost) Merging this experimental branch for the Tree View logic into the main branch, as I want to start trying to use the new GUI in production itself, rather than just demoing it in my dev environment. Super stoked to see how it looks on mobile! Haven't tried it there yet. Note that it's currently not visible through the app yet, I rolled back the actual use of it to use SNBT like it currently does on the main branch. I just wanted to merge the branches before trying to enable something like an experimental toggle for the Tree View. The Tree View GUI isn't in a fully compatible state with what you can currently do with SNBT, so it isn't ready to be the sole editing experience yet either. I still have to add more GUI toggles and buttons for creating and editing tags, either like how NBTExplorer does it, or maybe how WebNBT does it. I think I'm gonna try the NBTExplorer way to start because that will have the best experience for mobile/touch devices, since context menus don't make as much ergonomic sense there (That's what WebNBT uses). --- public/service-worker.js | 2 +- src/app.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/service-worker.js b/public/service-worker.js index 59a65f8..8fdb16e 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -4,7 +4,7 @@ var self = /** @type { ServiceWorkerGlobalScope } */ (/** @type { unknown } */ (globalThis)); const NAME = "Dovetail"; -const VERSION = "v1.7.1"; +const VERSION = "v1.8.0"; const CACHE_NAME = /** @type { const } */ (`${NAME} ${VERSION}`); self.addEventListener("activate",event => { diff --git a/src/app.ts b/src/app.ts index e39a117..bcd6431 100644 --- a/src/app.ts +++ b/src/app.ts @@ -71,11 +71,11 @@ formatOpener.addEventListener("click",() => { formatDialog.showModal(); }); -const demo = fetch("./bigtest.nbt") - .then(response => response.blob()) - .then(blob => new File([blob],"bigtest.nbt")); -demo.then(console.log); -demo.then(openFile); +// const demo = fetch("./bigtest.nbt") +// .then(response => response.blob()) +// .then(blob => new File([blob],"bigtest.nbt")); +// demo.then(console.log); +// demo.then(openFile); /** * Attempts to read an NBT file, then open it in the editor.