From e5c3ea869f4d9a3b1cc403555417adaf96073ea7 Mon Sep 17 00:00:00 2001 From: cplepage Date: Wed, 15 Jan 2025 10:57:00 -0500 Subject: [PATCH] version and fmt --- editor/views/project/index.ts | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/editor/views/project/index.ts b/editor/views/project/index.ts index 5768c26..9721b5e 100644 --- a/editor/views/project/index.ts +++ b/editor/views/project/index.ts @@ -161,8 +161,8 @@ function FileTreeAndEditor(project: ProjectType) { function RunButton(project: ProjectType) { const container = createElement("div"); const clearContainer = () => { - Array.from(container.children).find(c => c.remove()) - } + Array.from(container.children).find((c) => c.remove()); + }; const button = Button({ style: "icon-large", @@ -170,23 +170,23 @@ function RunButton(project: ProjectType) { }); button.id = RUN_PROJECT_ID; const showButton = () => { - if(Array.from(container.children).find(c => c === button)) { + if (Array.from(container.children).find((c) => c === button)) { return; } clearContainer(); container.append(button); - } + }; const loaderContainer = document.createElement("div"); loaderContainer.classList.add("loader-container"); loaderContainer.append(Loader()); const showLoader = () => { - if(Array.from(container.children).find(c => c === loaderContainer)) { + if (Array.from(container.children).find((c) => c === loaderContainer)) { return; } clearContainer(); container.append(loaderContainer); - } + }; const onBuild = (projectsBuild: Set) => { if (projectsBuild.has(project.id)) { @@ -198,7 +198,7 @@ function RunButton(project: ProjectType) { Store.projects.builds.subscribe(onBuild); button.onclick = async () => { - showLoader() + showLoader(); await saveAllViews(); Store.projects.build(project); }; diff --git a/package.json b/package.json index 3efef58..c77e33a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fullstacked-editor", - "version": "0.10.3", + "version": "0.10.4", "scripts": { "build": "esbuild build.ts --bundle --outfile=.cache/build.js --platform=node --format=esm --packages=external && node .cache/build.js", "start": "npm run build -- --no-zip && npm start -w platform/node",