Closed YUDONGLING closed 1 week ago
For Cloudreve 3.X, you can directly change the static files as steps below, without building the frontend yourself:
In file ./static/js/pdf.________.chunk.js
, change i.pdfjs.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(i.pdfjs.version,"/pdf.worker.js");
to i.pdfjs.GlobalWorkerOptions.workerSrc="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/pdf.js/".concat(i.pdfjs.version,"/pdf.worker.js");
. The CDN host is provided by bytedance and you can get it from cdn.bytedance.com
.
In file ./static/js/6.________.chunk.js
, change https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0
to {yourCDNHost}/mitm.html?version=2.0.0
. You should download StreamSaver.js
and upload it.
In file ./static/js/main.________.chunk.js
, change p=u.a.createWriteStream("archive.zip")
to p=u.a.createWriteStream("{yourCustomStreamDownloadFilename}.zip")
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the solution you'd like
/static
, etc.https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/pdf.js/2.1.266/pdf.worker.js
) or just all it to cloudreve itself.