diff --git a/meshmap_frontend/src/api.ts b/meshmap_frontend/src/api.ts index 9bacdf4..3f987a6 100644 --- a/meshmap_frontend/src/api.ts +++ b/meshmap_frontend/src/api.ts @@ -40,6 +40,7 @@ import type { PositionRecord, PublicMapTileSourceResponse, PublicMapTileSourcesResponse, + SignDayCount, SignRecord, SignRecordPayload, TelemetryRecord, @@ -173,6 +174,10 @@ export function getSignRecords(limit = 100, offset = 0, nodeIdOrOptions: string return getJSON>(listPath('/api/signs', limit, offset, nodeIdOrOptions)) } +export function getSignDailyCounts(nodeIdOrOptions: string | ListQueryOptions = ''): Promise> { + return getJSON>(listPath('/api/signs/daily', 500, 0, nodeIdOrOptions)) +} + export function getAdminSignRecords(limit = 100, offset = 0, nodeIdOrOptions: string | ListQueryOptions = ''): Promise> { return getJSON>(listPath('/api/admin/signs', limit, offset, nodeIdOrOptions)) } diff --git a/meshmap_frontend/src/components/SignedPage.vue b/meshmap_frontend/src/components/SignedPage.vue index 9cd3e79..a2e2baa 100644 --- a/meshmap_frontend/src/components/SignedPage.vue +++ b/meshmap_frontend/src/components/SignedPage.vue @@ -1,19 +1,61 @@