Dawnline 0.16.3
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
- Move Dawnline to Services in LuCI and update links and documentation. - Make activity messages clearer, including device renames and person-specific history. - Prune redundant frontend tests.
This commit is contained in:
1 parent
f2b5ba101b
commit
b0d9982796
37 files changed
+452
-243
No files matched your search
@@ -10,11 +10,6 @@ const days: Pair[] = [
|
||||
];
|
||||
|
||||
describe('mirrored bars', () => {
|
||||
it('splits the height between the two directions around the hairline', () => {
|
||||
const m = mirror(days, 64);
|
||||
expect(m.top + m.bottom + 3).toBe(64);
|
||||
});
|
||||
|
||||
it('fits both peaks on one scale, the tighter one filling its half', () => {
|
||||
const m = mirror(days, 64);
|
||||
expect(120 * m.scale).toBeLessThanOrEqual(m.top);
|
||||
@@ -22,11 +17,6 @@ describe('mirrored bars', () => {
|
||||
expect(Math.max(120 * m.scale - m.top, 40 * m.scale - m.bottom)).toBeCloseTo(0);
|
||||
});
|
||||
|
||||
it('keeps 55–80% of the height for downloads, however lopsided the days', () => {
|
||||
expect(mirror([[0, 100]], 64).top).toBe(Math.round(61 * 0.8));
|
||||
expect(mirror([[100, 1]], 64).top).toBe(Math.round(61 * 0.55));
|
||||
});
|
||||
|
||||
it('draws a month without traffic', () => {
|
||||
const m = mirror([[0, 0]], 34);
|
||||
expect(Number.isFinite(m.scale)).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user