diff options
| author | Clawd <ai@clawd.bot> | 2026-02-28 15:26:21 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-28 15:26:21 -0800 |
| commit | 5bd5da261732a1fce6a94ffa4d348dd6c80887cf (patch) | |
| tree | 7893aea50ba0d37ceff3ecddef4abc8b8784b822 /dist/main/index.js | |
| parent | 519d6b850e07a0387511a8f024dc394250b1a241 (diff) | |
Fix .gitignore: ignore dist/, .claude-flow/, and sync-conflict files
Remove accidentally committed build artifacts and working files.
Diffstat (limited to 'dist/main/index.js')
| -rw-r--r-- | dist/main/index.js | 54 |
1 files changed, 0 insertions, 54 deletions
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 @@ | |||
| 1 | "use strict"; | ||
| 2 | var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| 4 | }; | ||
| 5 | Object.defineProperty(exports, "__esModule", { value: true }); | ||
| 6 | const electron_1 = require("electron"); | ||
| 7 | const node_path_1 = __importDefault(require("node:path")); | ||
| 8 | const db_1 = require("./db"); | ||
| 9 | const handlers_1 = require("./ipc/handlers"); | ||
| 10 | const isDev = !electron_1.app.isPackaged; | ||
| 11 | let mainWindow = null; | ||
| 12 | function createWindow() { | ||
| 13 | mainWindow = new electron_1.BrowserWindow({ | ||
| 14 | width: 1400, | ||
| 15 | height: 900, | ||
| 16 | minWidth: 1000, | ||
| 17 | minHeight: 600, | ||
| 18 | show: false, | ||
| 19 | titleBarStyle: "hiddenInset", | ||
| 20 | webPreferences: { | ||
| 21 | contextIsolation: true, | ||
| 22 | nodeIntegration: false, | ||
| 23 | preload: node_path_1.default.join(__dirname, "preload.js"), | ||
| 24 | }, | ||
| 25 | }); | ||
| 26 | (0, handlers_1.registerIpcHandlers)(mainWindow); | ||
| 27 | if (isDev) { | ||
| 28 | const url = process.env.VITE_DEV_SERVER_URL ?? "http://localhost:5173"; | ||
| 29 | mainWindow.loadURL(url).finally(() => { | ||
| 30 | mainWindow.show(); | ||
| 31 | mainWindow.webContents.openDevTools({ mode: "detach" }); | ||
| 32 | }); | ||
| 33 | } | ||
| 34 | else { | ||
| 35 | const indexHtml = node_path_1.default.join(electron_1.app.getAppPath(), "renderer", "dist", "index.html"); | ||
| 36 | mainWindow.loadFile(indexHtml).finally(() => mainWindow.show()); | ||
| 37 | } | ||
| 38 | } | ||
| 39 | electron_1.app.whenReady().then(() => { | ||
| 40 | // Initialize database | ||
| 41 | (0, db_1.getDb)(); | ||
| 42 | createWindow(); | ||
| 43 | electron_1.app.on("activate", () => { | ||
| 44 | if (electron_1.BrowserWindow.getAllWindows().length === 0) { | ||
| 45 | createWindow(); | ||
| 46 | } | ||
| 47 | }); | ||
| 48 | }); | ||
| 49 | electron_1.app.on("window-all-closed", () => { | ||
| 50 | (0, db_1.closeDb)(); | ||
| 51 | if (process.platform !== "darwin") { | ||
| 52 | electron_1.app.quit(); | ||
| 53 | } | ||
| 54 | }); | ||
