-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.jac
More file actions
66 lines (54 loc) · 1.44 KB
/
Copy pathmain.jac
File metadata and controls
66 lines (54 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"""SafeRelay full-stack entry point."""
import from saferelay.store {
CloudRelayReceipt,
DisasterEventView,
DisasterFeedView,
MobileRelayFeedView,
cloud_relay_health as _cloud_relay_health,
get_disaster_feed as _get_disaster_feed,
get_mobile_signal_feed as _get_mobile_signal_feed,
ingest_mobile_signal as _ingest_mobile_signal,
refresh_disaster_feed as _refresh_disaster_feed,
}
def:pub cloud_relay_health -> dict[str, object] {
return _cloud_relay_health();
}
def:pub ingest_mobile_signal( # jac:ignore[W3030]
message_id: str,
origin_device_id: str,
latitude: float,
longitude: float,
status_code: int,
packet_timestamp: int,
rssi: int,
delivered_by: str,
hop_count: int,
) -> CloudRelayReceipt {
return _ingest_mobile_signal(
message_id,
origin_device_id,
latitude,
longitude,
status_code,
packet_timestamp,
rssi,
delivered_by,
hop_count,
);
}
def:pub get_mobile_signal_feed(limit: int = 50) -> MobileRelayFeedView {
return _get_mobile_signal_feed(limit);
}
def:pub get_disaster_feed -> DisasterFeedView {
return _get_disaster_feed();
}
def:pub refresh_disaster_feed -> DisasterFeedView {
return _refresh_disaster_feed();
}
cl {
import ".styles.global.css";
import from .saferelay.AppShell { SafeRelayApp }
def:pub app -> JsxElement {
return <SafeRelayApp />;
}
}