feat(storage): embed local file previews for managed servers
This commit is contained in:
1 parent
c2f16a5c56
commit
b477737b0f
31 files changed
+5182
-8
No files matched your search
@@ -18,6 +18,9 @@ class StorageService{
|
||||
list(id,relative){return this.run(id,async server=>(await this.client.area(server)).list(relative));}
|
||||
mkdir(id,relative){return this.run(id,async server=>(await this.client.area(server)).mkdir(relative));}
|
||||
readPdf(id,relative){return this.run(id,async server=>(await this.client.area(server)).readPdf(relative));}
|
||||
previewInfo(id,relative){return this.run(id,async server=>(await this.client.area(server)).previewInfo(relative));}
|
||||
readPreview(id,relative){return this.run(id,async server=>(await this.client.area(server)).readPreview(relative));}
|
||||
readFile(id,relative){return this.run(id,async server=>(await this.client.area(server)).readFile(relative));}
|
||||
archive(id,jobId,directory='',actor='自动归档'){
|
||||
return this.run(id,async server=>{
|
||||
segments(directory);if(typeof jobId!=='string'||!jobId||jobId.length>200)throw fail('请选择已完成的 PDF 导出任务。');
|
||||
|
||||
Reference in new issue
Block a user