Skip to content

Commit

Permalink
Tree View in Stable (Almost)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Offroaders123 committed Aug 17, 2023
1 parent d4628b4 commit f8fbdd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
10 changes: 5 additions & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f8fbdd1

Please sign in to comment.