feat: New one-click Home Server, now in Labs. Launch your own self-hosted server instance with just 1 click from the Preferences window. (#2341)
This commit is contained in:
@@ -17,21 +17,8 @@ export interface FileBackupsDevice
|
||||
LegacyBackupsMethods,
|
||||
PlaintextBackupsMethods,
|
||||
TextBackupsMethods {
|
||||
openLocation(path: string): Promise<void>
|
||||
|
||||
joinPaths(...paths: string[]): Promise<string>
|
||||
|
||||
/**
|
||||
* The reason we combine presenting a directory picker and transfering old files to the new location
|
||||
* in one function is so we don't have to expose a general `transferDirectories` function to the web app,
|
||||
* which would give it too much power.
|
||||
* @param appendPath The path to append to the selected directory.
|
||||
*/
|
||||
presentDirectoryPickerForLocationChangeAndTransferOld(
|
||||
appendPath: string,
|
||||
oldLocation?: string,
|
||||
): Promise<string | undefined>
|
||||
|
||||
monitorPlaintextBackupsLocationForChanges(backupsDirectory: string): Promise<void>
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
export interface DirectoryManagerInterface {
|
||||
/**
|
||||
* The reason we combine presenting a directory picker and transfering old files to the new location
|
||||
* in one function is so we don't have to expose a general `transferDirectories` function to the web app,
|
||||
* which would give it too much power.
|
||||
*
|
||||
* @param appendPath The path to append to the selected directory.
|
||||
*/
|
||||
presentDirectoryPickerForLocationChangeAndTransferOld(
|
||||
appendPath: string,
|
||||
oldLocation?: string,
|
||||
): Promise<string | undefined>
|
||||
|
||||
openLocation(path: string): Promise<void>
|
||||
|
||||
getDirectoryManagerLastErrorMessage(): Promise<string | undefined>
|
||||
}
|
||||
@@ -17,6 +17,7 @@ export * from './Device/FileBackupMetadataFile'
|
||||
export * from './Device/FileBackupsConstantsV1'
|
||||
export * from './Device/FileBackupsDevice'
|
||||
export * from './Device/FileBackupsMapping'
|
||||
export * from './Directory/DirectoryManagerInterface'
|
||||
export * from './Operations/DownloadAndDecrypt'
|
||||
export * from './Operations/EncryptAndUpload'
|
||||
export * from './Service/BackupServiceInterface'
|
||||
|
||||
Reference in New Issue
Block a user