mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: move acme certificate automation into a plugin (C7)
This commit is contained in:
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) => {
|
||||
|
||||
Reference in new issue
Block a user