feat: move acme certificate automation into a plugin (C7)

This commit is contained in:
LukeGus committed 2026-09-24 21:19:27 -05:00
1 parent 4dbce08379
commit 8c1e02af89
123 files changed
+4808 -1912

No files matched your search

@@ -14,12 +14,12 @@ const manifest = manifestJson as unknown as PluginManifest;
let rendered: RenderedPluginApp | null = null;
type ElectronWindow = Window & { electronAPI?: unknown };
type ElectronWindow = { electronAPI?: unknown };
afterEach(async () => {
await rendered?.deactivate();
rendered = null;
delete (window as ElectronWindow).electronAPI;
delete (window as unknown as ElectronWindow).electronAPI;
});
const IDENTITY = {
@@ -95,7 +95,7 @@ describe(`${manifest.id} activate`, () => {
});
it("hides the rail item in a standalone desktop app", async () => {
(window as ElectronWindow).electronAPI = {
(window as unknown as ElectronWindow).electronAPI = {
isElectron: true,
invoke: vi.fn(async () => null),
onRemoteSyncStatusChanged: () => () => {},
@@ -111,7 +111,7 @@ describe(`${manifest.id} activate`, () => {
it("shows the rail item once the desktop app has a remote server", async () => {
let notify = () => {};
let serverUrl: string | null = null;
(window as ElectronWindow).electronAPI = {
(window as unknown as ElectronWindow).electronAPI = {
isElectron: true,
invoke: vi.fn(async () => (serverUrl ? { serverUrl } : null)),
onRemoteSyncStatusChanged: (callback: () => void) => {