Added pre-travel screen; added country polygons for maps
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user