027c1305fd
- Ajout vue-pdf-embed@2.1.4 - DTO share.ts (FileEntry, Breadcrumb, ShareBrowseResult, ShareStatus, ShareSettings, ShareSettingsWrite, ShareTestResult) - Service share.ts (browse, getStatus, getDownloadUrl) - Service share-settings.ts (getSettings, saveSettings, testConnection)
49 lines
893 B
TypeScript
49 lines
893 B
TypeScript
export type FileEntry = {
|
|
name: string
|
|
path: string
|
|
isDir: boolean
|
|
size: number
|
|
modifiedAt: number | null
|
|
mimeType: string
|
|
}
|
|
|
|
export type Breadcrumb = {
|
|
name: string
|
|
path: string
|
|
}
|
|
|
|
export type ShareBrowseResult = {
|
|
path: string
|
|
breadcrumb: Breadcrumb[]
|
|
entries: FileEntry[]
|
|
}
|
|
|
|
export type ShareStatus = {
|
|
enabled: boolean
|
|
}
|
|
|
|
export type ShareSettings = {
|
|
host: string | null
|
|
shareName: string | null
|
|
basePath: string | null
|
|
domain: string | null
|
|
username: string | null
|
|
enabled: boolean
|
|
hasPassword: boolean
|
|
}
|
|
|
|
export type ShareSettingsWrite = {
|
|
host: string | null
|
|
shareName: string | null
|
|
basePath: string | null
|
|
domain: string | null
|
|
username: string | null
|
|
password?: string | null
|
|
enabled: boolean
|
|
}
|
|
|
|
export type ShareTestResult = {
|
|
success: boolean
|
|
message: string | null
|
|
}
|