Added pre-travel screen; added country polygons for maps

This commit is contained in:
2026-08-10 10:52:04 -04:00
parent 08b753f89e
commit e8c69d6558
16 changed files with 7842 additions and 4109 deletions
+12
View File
@@ -16,6 +16,10 @@ const ALLOWED_SEND_CHANNELS = [
'schedule:fetch',
'app:ready',
'pb:fetch-entries',
'pb:create-entry',
'pb:update-entry',
'pb:delete-entry',
'pb:fetch-vaccines',
]
const ALLOWED_RECEIVE_CHANNELS = [
@@ -24,6 +28,10 @@ const ALLOWED_RECEIVE_CHANNELS = [
'schedule:response',
'app:get-version',
'pb:fetch-entries',
'pb:create-entry',
'pb:update-entry',
'pb:delete-entry',
'pb:fetch-vaccines',
]
// ─── Exposed API ──────────────────────────────────────────────────────────
@@ -33,6 +41,10 @@ contextBridge.exposeInMainWorld('api', {
*/
pb: {
fetchEntries: () => ipcRenderer.invoke('pb:fetch-entries'),
createEntry: (trip) => ipcRenderer.invoke('pb:create-entry', trip),
updateEntry: (id, trip) => ipcRenderer.invoke('pb:update-entry', id, trip),
deleteEntry: (id) => ipcRenderer.invoke('pb:delete-entry', id),
fetchVaccines: () => ipcRenderer.invoke('pb:fetch-vaccines'),
},
/**