From 9fd8206e1fa8ffd12e878b0f41ff8f83f05a7d72 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 17 Jul 2021 13:07:59 -0700 Subject: [PATCH] Cleanup --- packages/webamp-modern-2/src/progress.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/webamp-modern-2/src/progress.ts b/packages/webamp-modern-2/src/progress.ts index dc77f254..07663400 100644 --- a/packages/webamp-modern-2/src/progress.ts +++ b/packages/webamp-modern-2/src/progress.ts @@ -1,7 +1,9 @@ // This module is imported early here in order to avoid a circular dependency. import { classResolver } from "./skin/resolver"; import { normalizedObjects, getFormattedId } from "./maki/objects"; -import BaseObject from "./skin/BaseObject"; +import BaseObject from "./skin/makiClasses/BaseObject"; +// import { addDropHandler } from "./dropTarget"; +// import JSZip from "jszip"; function hack() { // Without this Snowpack will try to treeshake out resolver causing a circular @@ -9,6 +11,20 @@ function hack() { classResolver("A funny joke about why this is needed."); } +/* +async function validateSkinMaki(file: Blob) { + const zip = await JSZip.loadAsync(file); + const maki = zip.filter((path) => path.endsWith(".maki")); + for (const zipFile of maki) { + console.log(zipFile.name); + const arraybuffer = await zip.loadAsync("arraybuffer"); + console.log(arraybuffer); + } +} + +addDropHandler(validateSkinMaki); +*/ + function getClass(guid: string): typeof BaseObject | null { try { return classResolver(guid);