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
+15 -1
View File
@@ -1,7 +1,7 @@
import { app, BrowserWindow, shell, ipcMain } from 'electron'
import { fileURLToPath } from 'node:url'
import path from 'node:path'
import { fetchEntries } from './pocketbase.js'
import { fetchEntries, createEntry, updateEntry, deleteEntry, fetchVaccines } from './pocketbase.js'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -90,3 +90,17 @@ ipcMain.handle('app:get-version', () => app.getVersion())
ipcMain.handle('pb:fetch-entries', async () => {
return await fetchEntries()
})
ipcMain.handle('pb:create-entry', async (_event, trip) => {
return await createEntry(trip)
})
ipcMain.handle('pb:update-entry', async (_event, id, trip) => {
return await updateEntry(id, trip)
})
ipcMain.handle('pb:delete-entry', async (_event, id) => {
return await deleteEntry(id)
})
ipcMain.handle('pb:fetch-vaccines', async () => {
return await fetchVaccines()
})