diff --git a/web/package-lock.json b/web/package-lock.json index e572f61..0c63f24 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8,11 +8,7 @@ "name": "flowsnap-web", "version": "0.0.1", "dependencies": { - "astro": "^7.3.1", - "three": "^0.185.1" - }, - "devDependencies": { - "@types/three": "^0.185.4" + "astro": "^7.3.1" }, "engines": { "node": ">=22.12.0" @@ -512,13 +508,6 @@ "node": ">= 20.12.0" } }, - "node_modules/@dimforge/rapier3d-compat": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz", - "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/@emnapi/core": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz", @@ -1923,13 +1912,6 @@ "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", "license": "MIT" }, - "node_modules/@tweenjs/tween.js": { - "version": "23.1.3", - "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", - "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", - "dev": true, - "license": "MIT" - }, "node_modules/@tybys/wasm-util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", @@ -1982,41 +1964,12 @@ "@types/unist": "*" } }, - "node_modules/@types/stats.js": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz", - "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/three": { - "version": "0.185.4", - "resolved": "https://registry.npmjs.org/@types/three/-/three-0.185.4.tgz", - "integrity": "sha512-gAsBIC07NIFrxjbf7tH2t71c38uulFfk/RFoC7FNBSjMRAQ8J1x/RBvusX0N5PJouaYFJawXQqfCQ0RKUx/1nA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@dimforge/rapier3d-compat": "~0.12.0", - "@tweenjs/tween.js": "~23.1.3", - "@types/stats.js": "*", - "@types/webxr": ">=0.5.17", - "fflate": "~0.8.2", - "meshoptimizer": "~1.1.1" - } - }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, - "node_modules/@types/webxr": { - "version": "0.5.24", - "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz", - "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==", - "dev": true, - "license": "MIT" - }, "node_modules/@ungap/structured-clone": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", @@ -2617,13 +2570,6 @@ } } }, - "node_modules/fflate": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", - "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", - "dev": true, - "license": "MIT" - }, "node_modules/find-proc": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/find-proc/-/find-proc-0.1.0.tgz", @@ -3154,13 +3100,6 @@ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "license": "CC0-1.0" }, - "node_modules/meshoptimizer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz", - "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==", - "dev": true, - "license": "MIT" - }, "node_modules/micromark-util-character": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", @@ -3797,12 +3736,6 @@ "url": "https://opencollective.com/svgo" } }, - "node_modules/three": { - "version": "0.185.1", - "resolved": "https://registry.npmjs.org/three/-/three-0.185.1.tgz", - "integrity": "sha512-5aojFCXKwnjBRZvUnt3WFfEcvUJgkN5LlijRFN95hMy8WVkG4I0QNcJE+OuWvuJ0bOdStrbfXn0pkd6/QyiAlg==", - "license": "MIT" - }, "node_modules/tiny-inflate": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", diff --git a/web/package.json b/web/package.json index efd528d..51e3634 100644 --- a/web/package.json +++ b/web/package.json @@ -14,13 +14,9 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.3.1", - "three": "^0.185.1" + "astro": "^7.3.1" }, "allowScripts": { "esbuild": true - }, - "devDependencies": { - "@types/three": "^0.185.4" } } diff --git a/web/src/components/DesktopSimulator.astro b/web/src/components/DesktopSimulator.astro index 50cbc9b..25aa557 100644 --- a/web/src/components/DesktopSimulator.astro +++ b/web/src/components/DesktopSimulator.astro @@ -6,9 +6,11 @@ * * Implements hardware-accelerated CSS 3D transforms, multi-window concurrency (VS Code & Terminal), * authentic FlowSnap Menu Bar popover, Windows 11-style top-edge layout picker with true 70/30 proportions, - * liquid glass HUD snap preview, and buttery 120 FPS pointer drag physics. + * liquid glass HUD snap preview, and 60 FPS pointer drag physics, paced by + * LiveResizeThrottler at ~16.6ms to match the shipped app. */ import { getI18n, type Locale } from '../i18n'; +import { RELEASE_METADATA } from '../data/distribution-data'; import '../styles/desktop-simulator.css'; interface Props { @@ -232,7 +234,7 @@ const t = getI18n(lang);
{t.simulator.menuTitle} - v1.3.1 + {RELEASE_METADATA.version}
{t.simulator.targetLabel} SnapEngine.swift
diff --git a/web/src/components/DistributionHub.astro b/web/src/components/DistributionHub.astro index 715afe9..52b3b34 100644 --- a/web/src/components/DistributionHub.astro +++ b/web/src/components/DistributionHub.astro @@ -33,7 +33,7 @@ const { lang = 'en' } = Astro.props; gap: 24px; } - /* Tier 1: Unified 3-Tab Hero Card Section */ + /* Tier 1: Unified 2-Tab Hero Card Section */ .hub-hero-section { width: 100%; display: flex; diff --git a/web/src/components/GatekeeperGuide.astro b/web/src/components/GatekeeperGuide.astro index f9d2f7c..03deaae 100644 --- a/web/src/components/GatekeeperGuide.astro +++ b/web/src/components/GatekeeperGuide.astro @@ -24,7 +24,7 @@ const t = getI18n(lang);
{t.distribution.gatekeeper.title} - Gatekeeper Help + {t.distribution.gatekeeper.badge}
{t.distribution.gatekeeper.hint}
diff --git a/web/src/components/Header.astro b/web/src/components/Header.astro index bdb0ec0..0520aae 100644 --- a/web/src/components/Header.astro +++ b/web/src/components/Header.astro @@ -1,6 +1,7 @@ --- import ThemeToggle from './ThemeToggle.astro'; import { getI18n, type Locale } from '../i18n'; +import { RELEASE_METADATA } from '../data/distribution-data'; interface Props { version?: string; @@ -9,7 +10,7 @@ interface Props { } const { - version = 'v1.3.1', + version = RELEASE_METADATA.version, githubUrl = 'https://github.com/ahauy/FlowSnap', lang = 'en', } = Astro.props; diff --git a/web/src/components/ShortcutMatrix.astro b/web/src/components/ShortcutMatrix.astro index d887ca4..24a4dfb 100644 --- a/web/src/components/ShortcutMatrix.astro +++ b/web/src/components/ShortcutMatrix.astro @@ -46,6 +46,7 @@ const counts = { aria-label="Interactive Keyboard Shortcuts Matrix" data-copy-label={t.shortcuts.controls.copyLabel} data-copied-label={t.shortcuts.controls.copiedLabel} + data-copy-fail-label={t.clipboard.copyFail} data-show-all-label={t.shortcuts.controls.showAll} data-show-fewer-label={t.shortcuts.controls.showFewer} > @@ -157,6 +158,7 @@ const counts = { +