feat: Add browser documentation
This commit is contained in:
@@ -124,6 +124,7 @@ export interface LocalApiSettings {
|
||||
port: number;
|
||||
exposeOnLan: boolean;
|
||||
scalarEnabled: boolean;
|
||||
docusaurusEnabled: boolean;
|
||||
allowedSignalingServers: string[];
|
||||
}
|
||||
|
||||
@@ -137,6 +138,7 @@ export interface LocalApiSnapshot {
|
||||
error: string | null;
|
||||
exposeOnLan: boolean;
|
||||
scalarEnabled: boolean;
|
||||
docusaurusEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface LocalPluginDiscoveryError {
|
||||
@@ -275,6 +277,7 @@ export interface ElectronAPI {
|
||||
}>;
|
||||
getLocalApiStatus: () => Promise<LocalApiSnapshot>;
|
||||
openLocalApiDocs: () => Promise<{ opened: boolean; reason?: string }>;
|
||||
openDocusaurusDocs: () => Promise<{ opened: boolean; reason?: string }>;
|
||||
relaunchApp: () => Promise<boolean>;
|
||||
onDeepLinkReceived: (listener: (url: string) => void) => () => void;
|
||||
readClipboardFiles: () => Promise<ClipboardFilePayload[]>;
|
||||
@@ -386,6 +389,7 @@ const electronAPI: ElectronAPI = {
|
||||
setDesktopSettings: (patch) => ipcRenderer.invoke('set-desktop-settings', patch),
|
||||
getLocalApiStatus: () => ipcRenderer.invoke('get-local-api-status'),
|
||||
openLocalApiDocs: () => ipcRenderer.invoke('open-local-api-docs'),
|
||||
openDocusaurusDocs: () => ipcRenderer.invoke('open-docusaurus-docs'),
|
||||
relaunchApp: () => ipcRenderer.invoke('relaunch-app'),
|
||||
onDeepLinkReceived: (listener) => {
|
||||
const wrappedListener = (_event: Electron.IpcRendererEvent, url: string) => {
|
||||
|
||||
Reference in New Issue
Block a user