Module renderer/services/base
Functions
findInRepository
Parameters
Returns void
getAllRepos
Returns Repo[]
getAttachmentURL
- getAttachmentURL(doc: Doc, opts?: { origin: boolean }): string
Parameters
opts: { origin: boolean } = ...
Returns string
getRepo
- getRepo(name: string): undefined | Repo
Parameters
Returns undefined | Repo
getServerTimestamp
- getServerTimestamp(): Promise<number>
Returns Promise<number>
inputPassword
- inputPassword(title: string, hint: string, throwError?: boolean): Promise<string>
Parameters
title: string
hint: string
throwError: boolean = false
Returns Promise<string>
openExternal
- openExternal(uri: string): Promise<void>
Parameters
Returns Promise<void>
openPath
- openPath(path: string): Promise<void>
Parameters
Returns Promise<void>
readFromClipboard
- readFromClipboard(): Promise<Record<string, any>>
- readFromClipboard(callback: (type: string, getType: (type: string) => Promise<Blob>) => Promise<void>): Promise<void>
Returns Promise<Record<string, any>>
Parameters
callback: (type: string, getType: (type: string) => Promise<Blob>) => Promise<void>
- (type: string, getType: (type: string) => Promise<Blob>): Promise<void>
Parameters
type: string
getType: (type: string) => Promise<Blob>
- (type: string): Promise<Blob>
Parameters
Returns Promise<Blob>
Returns Promise<void>
Returns Promise<void>
reloadMainWindow
- reloadMainWindow(): Promise<void>
Returns Promise<void>
showItemInFolder
- showItemInFolder(path: string): Promise<void>
Parameters
Returns Promise<void>
trashItem
- trashItem(path: string): Promise<void>
Parameters
Returns Promise<void>
triggerDeepLinkOpen
- triggerDeepLinkOpen(url: string): Promise<boolean>
Parameters
Returns Promise<boolean>
upload
- upload(file: File, belongDoc: Pick<Doc, "repo" | "path">, name?: string): Promise<string>
Parameters
file: File
belongDoc: Pick<Doc, "repo" | "path">
Optional name: string
Returns Promise<string>
writeToClipboard
- writeToClipboard(type: string, value: any): Promise<any>
Parameters
Returns Promise<any>
Find in current repository.