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
@@ -1,21 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
BAND,
|
||||
FLAT,
|
||||
arrived,
|
||||
bandMiddle,
|
||||
moment,
|
||||
msAt,
|
||||
placeKey,
|
||||
replayStays,
|
||||
shares,
|
||||
shimmerOpacity,
|
||||
stays,
|
||||
stretches,
|
||||
ticks,
|
||||
timeline,
|
||||
visits,
|
||||
} from '../src/admin/places/model';
|
||||
import { moment, msAt, placeKey, replayStays, shares, stays, stretches, ticks, timeline, visits } from '../src/admin/places/model';
|
||||
import type { GeoPoint, LogEvent } from '../src/shared/types';
|
||||
|
||||
const D = 'd_1';
|
||||
@@ -148,16 +132,6 @@ describe('replay', () => {
|
||||
const ms = msAt(st, steps, 38000);
|
||||
expect(moment(st, steps, ms).t).toBeCloseTo(38000, -1);
|
||||
});
|
||||
|
||||
it('runs the shimmer from before the place it leaves to past the next', () => {
|
||||
expect(bandMiddle(0)).toBeCloseTo(-BAND / 2);
|
||||
expect(bandMiddle(1)).toBeCloseTo(1 + BAND / 2);
|
||||
expect(arrived(bandMiddle(0.3))).toBe(false);
|
||||
expect(arrived(1 - FLAT)).toBe(true);
|
||||
const ex = shimmerOpacity(0.5);
|
||||
expect(ex[0]).toBe('interpolate');
|
||||
expect(ex.slice(3)).toEqual([0, 1, FLAT, 1, BAND / 2, 0]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('ticks', () => {
|
||||
|
||||
Reference in new issue
Block a user