Dawnline 0.17.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

- Redraw the admin's charts in the connection map's style: the live speed as lines, the last 30 days and a device's week as stacked download and upload bars, a device's days as a strip, data use as meters.
- Read any chart point by point with the pointer, a tap or the arrow keys; a day's tooltip compares it with the average and shows its download and upload.
- Show where a data limit leads at the recent pace: the week ahead on the meter, and when the limit fills or what a monthly one reaches by the reset.
- Make Speed now live, one point a second, on a person's page, in the People list and in an online person's card.
- Name every place an online person's devices connect from, and the city each device connects from now.
- Portal: read the month and the week by tap or arrow keys, see how a day compares with the others, the pace toward the data limit and how long the allowed hours still run.
- Send VPN clients' DNS to the LAN's DNS after its interceptors, so transparent proxies such as forkop also handle their lookups.
This commit is contained in:
Aemeath committed 2026-11-02 09:48:31 +03:00
1 parent b0d9982796
commit 18e3013047
50 files changed
+1683 -425

No files matched your search

+22
View File
@@ -7,6 +7,7 @@
import type { Pair } from '../../shared/types';
import { bytes } from '../../shared/format';
import { scrub } from '../../shared/scrub';
import { h, ic } from '../dom';
import { setText } from './morph';
@@ -57,6 +58,27 @@ export function bars(days: Pair[], cls: string, height: number, future = 0): Bar
return { el, cols };
}
/**
* Read the bars a day at a time (shared/scrub.ts): the pointer, a tap that stays
* until a tap elsewhere, ← → with the chart focused. The picked column looks as
* under the pointer (.on); `pick` gets its index, -1 when let go.
*/
export function readBars(b: Bars, label: string, pick: (i: number) => void): void {
b.el.removeAttribute('aria-hidden');
scrub(
b.el,
{
indexAt: (x) =>
b.cols.findIndex((c) => {
const r = c.getBoundingClientRect();
return x >= r.left && x < r.right;
}),
mark: (i) => b.cols.forEach((c, k) => c.classList.toggle('on', k === i)),
},
{ count: () => b.cols.length, pick, label },
);
}
export interface UpDown {
el: HTMLElement;
/** Show these, at once (a repaint morphs them by their keys). */