Dawnline 0.12.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 portal's traffic charts show what came down and what went up apart. A device's last 7 days and "Data this month" draw each day both ways: downloads rise above a thin line, uploads hang below it, on one scale. Beside them "↓ 3.2 GB ↑ 557 MB" instead of one total; hover a day for its own, its date where "left" stands - Charts answer the pointer between their bars too, in the portal and in the admin's daily charts (a device's week, a device card's 30 days, the last 30 days): the figures no longer blink back to the total - The calendar under "Access until" plays its days in only when the row is opened, not again each time the page refreshes with it open - On a phone the page comes in from the top down: "Your access" first, then the devices - "Show key" on a router's set-up morphs to "Hide key" with its icon, and brings the keys themselves into focus (it blurred the field names)
This commit is contained in:
1 parent
2f2aaf6c34
commit
fb73ac3a9f
33 files changed
+396
-199
No files matched your search
@@ -41,6 +41,24 @@ export function toast(msg: string, bad = false) {
|
||||
}, 2400);
|
||||
}
|
||||
|
||||
/** An icon that changes in place: the new one pops in where the old one stood. */
|
||||
export function swapIcon(icon: Element, name: string): Element {
|
||||
const next = ic(name, icon.getAttribute('class') ?? 'i');
|
||||
icon.replaceWith(next);
|
||||
play(
|
||||
next,
|
||||
[
|
||||
{ opacity: 0, transform: 'scale(.6)', filter: 'blur(3px)' },
|
||||
{ opacity: 1, transform: 'none', filter: 'none' },
|
||||
],
|
||||
{
|
||||
duration: POP.duration,
|
||||
easing: POP.easing,
|
||||
},
|
||||
);
|
||||
return next;
|
||||
}
|
||||
|
||||
/**
|
||||
* The control that copied says so for a moment: its icon turns into a check
|
||||
* and its "Copy…" label (`.lbl`, a badge's main line) into "Copied". Every
|
||||
@@ -53,22 +71,7 @@ function copied(from: Element) {
|
||||
const label = from.querySelector<HTMLElement>('.lbl, .b-main');
|
||||
const was = label ? textOf(label) : '';
|
||||
from.classList.add('copied');
|
||||
let check: Element | null = null;
|
||||
if (icon) {
|
||||
check = ic('check', icon.getAttribute('class') ?? 'i');
|
||||
icon.replaceWith(check);
|
||||
play(
|
||||
check,
|
||||
[
|
||||
{ opacity: 0, transform: 'scale(.6)', filter: 'blur(3px)' },
|
||||
{ opacity: 1, transform: 'none', filter: 'none' },
|
||||
],
|
||||
{
|
||||
duration: POP.duration,
|
||||
easing: POP.easing,
|
||||
},
|
||||
);
|
||||
}
|
||||
const check = icon ? swapIcon(icon, 'check') : null;
|
||||
if (label) morphText(label, _('Copied'));
|
||||
setTimeout(() => {
|
||||
if (check && icon) check.replaceWith(icon);
|
||||
|
||||
Reference in new issue
Block a user