feat(storage): embed local file previews for managed servers

This commit is contained in:
阿白叔 committed 2026-10-17 11:38:41 +08:00
1 parent c2f16a5c56
commit b477737b0f
31 files changed
+5182 -8

No files matched your search

+3
View File
@@ -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 导出任务。');