community templates (#691)

This commit is contained in:
Will Chen
2025-07-23 10:11:16 -07:00
committed by GitHub
parent 9edd0fa80f
commit e947eede7a
37 changed files with 544 additions and 135 deletions

View File

@@ -5,6 +5,7 @@ import { UserSettingsSchema, type UserSettings, Secret } from "../lib/schemas";
import { safeStorage } from "electron";
import { v4 as uuidv4 } from "uuid";
import log from "electron-log";
import { DEFAULT_TEMPLATE_ID } from "@/shared/templates";
const logger = log.scope("settings");
@@ -26,6 +27,7 @@ const DEFAULT_SETTINGS: UserSettings = {
enableAutoFixProblems: false,
enableAutoUpdate: true,
releaseChannel: "stable",
selectedTemplateId: DEFAULT_TEMPLATE_ID,
};
const SETTINGS_FILE = "user-settings.json";