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