From 5bd5da261732a1fce6a94ffa4d348dd6c80887cf Mon Sep 17 00:00:00 2001 From: Clawd Date: Sat, 28 Feb 2026 15:26:21 -0800 Subject: Fix .gitignore: ignore dist/, .claude-flow/, and sync-conflict files Remove accidentally committed build artifacts and working files. --- dist/main/index.js | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 dist/main/index.js (limited to 'dist/main/index.js') diff --git a/dist/main/index.js b/dist/main/index.js deleted file mode 100644 index a10a371..0000000 --- a/dist/main/index.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const electron_1 = require("electron"); -const node_path_1 = __importDefault(require("node:path")); -const db_1 = require("./db"); -const handlers_1 = require("./ipc/handlers"); -const isDev = !electron_1.app.isPackaged; -let mainWindow = null; -function createWindow() { - mainWindow = new electron_1.BrowserWindow({ - width: 1400, - height: 900, - minWidth: 1000, - minHeight: 600, - show: false, - titleBarStyle: "hiddenInset", - webPreferences: { - contextIsolation: true, - nodeIntegration: false, - preload: node_path_1.default.join(__dirname, "preload.js"), - }, - }); - (0, handlers_1.registerIpcHandlers)(mainWindow); - if (isDev) { - const url = process.env.VITE_DEV_SERVER_URL ?? "http://localhost:5173"; - mainWindow.loadURL(url).finally(() => { - mainWindow.show(); - mainWindow.webContents.openDevTools({ mode: "detach" }); - }); - } - else { - const indexHtml = node_path_1.default.join(electron_1.app.getAppPath(), "renderer", "dist", "index.html"); - mainWindow.loadFile(indexHtml).finally(() => mainWindow.show()); - } -} -electron_1.app.whenReady().then(() => { - // Initialize database - (0, db_1.getDb)(); - createWindow(); - electron_1.app.on("activate", () => { - if (electron_1.BrowserWindow.getAllWindows().length === 0) { - createWindow(); - } - }); -}); -electron_1.app.on("window-all-closed", () => { - (0, db_1.closeDb)(); - if (process.platform !== "darwin") { - electron_1.app.quit(); - } -}); -- cgit v1.2.3