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
@@ -114,3 +114,25 @@ describe('live meter', () => {
expect(m.speed('a', 4000).error).toBeNull();
});
});
describe('live meter, a person', () => {
it('adds up their devices; a device left out of a second moved nothing', () => {
const m = new LiveMeter();
const pts: MeterPoint[] = [
{ ts: 1001, servers: { a: [30, 60] }, dev: { d1: [10, 20], d2: [20, 40] } },
{ ts: 1002, servers: { a: [5, 5] }, dev: { d3: [5, 5] } },
// Server a was not read this second: no point for anyone on it.
{ ts: 1003, servers: {} },
{ ts: 1004, servers: { a: [7, 9] }, dev: { d1: [7, 9] } },
];
m.take({ meter: meter(pts) }, 0);
const s = m.speed('a', 0, ['d1', 'd2']);
expect(s.pts).toEqual([
[1001, 30, 60],
[1002, 0, 0],
[1004, 7, 9],
]);
expect(s).toMatchObject({ rx: 7, tx: 9 });
expect(m.speed('a', 0, []).pts.map((p) => p[1])).toEqual([0, 0, 0]);
});
});