mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-25 18:55:19 +02:00
integrate knowledge sync with oauth
This commit is contained in:
parent
dfe940d0ba
commit
41eef3c1b5
3 changed files with 324 additions and 216 deletions
|
|
@ -3,6 +3,8 @@ import path from "node:path";
|
|||
import { setupIpcHandlers, startRunsWatcher, startWorkspaceWatcher, stopWorkspaceWatcher } from "./ipc.js";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { dirname } from "node:path";
|
||||
import { init as initGmailSync } from "@x/core/dist/knowledge/sync_gmail.js";
|
||||
import { init as initCalendarSync } from "@x/core/dist/knowledge/sync_calendar.js";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
|
@ -42,6 +44,12 @@ app.whenReady().then(() => {
|
|||
// start runs watcher
|
||||
startRunsWatcher();
|
||||
|
||||
// start gmail sync
|
||||
initGmailSync();
|
||||
|
||||
// start calendar sync
|
||||
initCalendarSync();
|
||||
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue