docs(website): add worked guides and keep Pages publishing manual (#925)
* fix(pages): reserve publishing for the REA website * docs(website): add worked guides and agent prompt examples * ci(website): check relevant PRs and publish only on demand * docs(website): clarify IDA coverage and analysis session lifetime
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const { app, BrowserWindow, ipcMain } = require("electron");
|
||||
const { writeFileSync } = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const { toCsv } = require("./csv.js");
|
||||
|
||||
const notes = [{ id: 1, title: "First note" }];
|
||||
|
||||
ipcMain.handle("notes:export", () => {
|
||||
const destination = path.join(app.getPath("downloads"), "notes.csv");
|
||||
writeFileSync(destination, toCsv(notes), "utf8");
|
||||
return destination;
|
||||
});
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const window = new BrowserWindow({
|
||||
webPreferences: { preload: path.join(__dirname, "preload.js") },
|
||||
});
|
||||
window.loadFile("index.html");
|
||||
});
|
||||
Reference in New Issue
Block a user