Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
v0.5.2: splash mark glows; launch check is visible in all outcomes
nyblnete4afe1da2101
diff --git a/slides/index.html b/slides/index.htmlindex ce67fbeb..f731a17e 100644--- a/slides/index.html+++ b/slides/index.html@@ -57,7 +57,7 @@<style>#bento-splash{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;justify-items:center;gap:26px;background:radial-gradient(130% 90% at 50% 38%,#1c2c44 0%,#101c2c 58%,#0a1220 100%);pointer-events:none;transition:opacity .5s ease;animation:bsAuto .6s ease 9s both}#bento-splash.done{opacity:0}-.bs-mark{position:relative;width:104px;height:104px;border-radius:24px;background:#16273e;box-shadow:0 26px 70px -16px rgba(255,238,214,.30),0 10px 34px rgba(0,0,0,.55);overflow:hidden;animation:bsIn .7s cubic-bezier(.22,1.4,.36,1) both,bsFloat 3.4s ease-in-out .9s infinite}+.bs-mark{position:relative;width:104px;height:104px;border-radius:24px;background:#16273e;box-shadow:0 0 56px rgba(255,238,214,.26),0 10px 34px rgba(0,0,0,.55);overflow:hidden;animation:bsIn .7s cubic-bezier(.22,1.4,.36,1) both,bsFloat 3.4s ease-in-out .9s infinite}.bs-mark i{position:absolute;border-radius:9px;opacity:0;animation:bsTile .55s cubic-bezier(.25,1.5,.45,1) both}.bs-b{left:12px;top:12px;width:24px;height:80px;background:#5e7699;animation-delay:.18s}.bs-a{right:12px;top:12px;width:50px;height:37px;background:#ff9e8a;animation-delay:.3s}diff --git a/slides/package.json b/slides/package.jsonindex e2df50b1..8cf0dff1 100644--- a/slides/package.json+++ b/slides/package.json@@ -1,7 +1,7 @@{"name": "bento-slides","private": true,- "version": "0.5.1",+ "version": "0.5.2","type": "module","scripts": {"dev": "vite",diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex ffdd2f03..45194124 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -36,6 +36,7 @@ export class Editor {private presenting = falseprivate updatesB!: HTMLElementprivate updateFound: string | null = null+ private lastAutoCheck: import('../update').UpdateCheck | null = null/** side panel widths (px) — user-resizable, persisted per browser */private panelW = { left: 188, right: 236 }@@ -108,11 +109,16 @@ export class Editor {setTimeout(async () => {if (!autoCheckEnabled()) returnconst r = await checkForUpdates()+ this.lastAutoCheck = rif (r.status === 'update') {this.updateFound = r.release.versionthis.updatesB.classList.add('ed-btn-update')this.updatesB.innerHTML = `${ICONS.sync}<span>v${r.release.version}</span>`this.updatesB.title = `Version ${r.release.version} is available — click to update`+ } else if (r.status === 'current') {+ this.updatesB.title = `Up to date (v${APP_VERSION}) — checked at launch`+ } else {+ this.updatesB.title = `Update check failed: ${r.message} — click to retry`}}, 1500)const undoB = btn(ICONS.undo, '', () => this.store.undo(), 'Undo (⌘Z)')@@ -736,7 +742,12 @@ export class Editor {box.appendChild(head)const status = div('ed-about-status')- status.textContent = 'This file carries its own app — it works offline, forever, as is.'+ status.textContent =+ this.lastAutoCheck?.status === 'current'+ ? `Checked automatically at launch — you're on the latest version (v${APP_VERSION}).`+ : this.lastAutoCheck?.status === 'error'+ ? `Launch check couldn't reach the release server (${this.lastAutoCheck.message}). Check manually below.`+ : 'This file carries its own app — it works offline, forever, as is.'const row = div('ed-about-row')const checkB = document.createElement('button')