Dawnline 0.15.0
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- The device menu (⋯) is an iOS-style menu on frosted glass: the copy actions show the address they copy, Rename, Reconnect and Remove sit under them, and one highlight glides from row to row - The language picker shows flags; pick a language with a click, or press the pill and slide onto one. The flag and the code change in place - The page's QR code opens as a small card under its button, with Copy link and Share - All dropdowns look and behave the same: frosted glass, one open at a time, and a press outside, Escape or the button again closes them - Setting a device up: when it can't finish connecting or connects but passes no data, the sheet keeps just the status and what it means. No data now says the router drops its traffic because the address doesn't match, and the device's card says "Connected, but no data" right away instead of "Connected" - Setting a phone up from another device: Download and Copy for the connection sit on its row, next to the arrow - On iPhone and iPad the caret shows as soon as a field is focused, the page no longer zooms on a pinch or a double tap, and sheets and their animations run smoother - A press near the edge of a button or a card always counts, even as it shrinks under the pointer - Animations settle without a jump at the end - New green, orange and red - The focus ring shows only while moving around with the keyboard
This commit is contained in:
1 parent
a1915f070b
commit
ba231e7187
51 files changed
+1713
-1062
No files matched your search
+18
-4
@@ -18,9 +18,10 @@ import { fillNotice, stateNotice } from './page/notices';
|
||||
import { devicesNow, devicesSection, fillDevices } from './page/devices';
|
||||
import { accessSection, fillAccess } from './page/access';
|
||||
import { glass, type Tone } from './ui/glass';
|
||||
import { closeMenu, menuOpen } from './ui/menu';
|
||||
import { closeDrop, dropOpen } from './ui/drop';
|
||||
import { closeSheet, sheetOpen } from './ui/sheet';
|
||||
import { renaming } from './flows/rename';
|
||||
import { keepPressFootprint } from './ui/press';
|
||||
import { startAdd } from './flows/add';
|
||||
import { openSetup } from './flows/setup-view';
|
||||
|
||||
@@ -191,7 +192,7 @@ async function refresh() {
|
||||
try {
|
||||
setState(await call<State>('state'));
|
||||
// Not under an open sheet or menu, nor a name being edited on its card.
|
||||
if (!sheetOpen() && !menuOpen() && !renaming()) render();
|
||||
if (!sheetOpen() && !dropOpen() && !renaming()) render();
|
||||
openFromLink();
|
||||
} catch (e) {
|
||||
if (gone(e)) linkGone();
|
||||
@@ -202,15 +203,28 @@ async function refresh() {
|
||||
|
||||
// Another language: everything is drawn again in it, the sections too (their headings are text).
|
||||
onLang(() => {
|
||||
closeMenu(true);
|
||||
closeDrop(true);
|
||||
parts = null;
|
||||
redraw();
|
||||
});
|
||||
|
||||
// A press that shrinks a control under the pointer still lands on it (ui/press.ts).
|
||||
keepPressFootprint();
|
||||
|
||||
// The focus ring only while the keyboard moves focus (base.css .kbd): on from Tab or an arrow, off at a press.
|
||||
const KEYS = new Set(['Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']);
|
||||
document.addEventListener('keydown', (e) => KEYS.has(e.key) && document.documentElement.classList.add('kbd'), true);
|
||||
document.addEventListener('pointerdown', () => document.documentElement.classList.remove('kbd'), true);
|
||||
|
||||
// The page keeps its scale, as an app does: Safari on iOS zooms on a pinch whatever the viewport says, its own
|
||||
// gesture events are the only way to stop it (the viewport and touch-action take care of the rest).
|
||||
for (const ev of ['gesturestart', 'gesturechange', 'gestureend'])
|
||||
document.addEventListener(ev, (e) => e.preventDefault(), { passive: false });
|
||||
|
||||
// What the keyboard does never animates.
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key !== 'Escape') return;
|
||||
if (menuOpen()) closeMenu(true);
|
||||
if (dropOpen()) closeDrop(true);
|
||||
else if (sheetOpen()) closeSheet(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user