MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / updateProgress

Method updateProgress

frontend/src/services/uploadService.ts:448–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446 }
447
448 updateProgress() {
449 if (!this.current) {
450 this.uiData.value = {
451 files: [this.uploaded, this.uploaded + this.files.size],
452 suspending: this.status == "suspend"
453 };
454 return;
455 }
456 const currentFile = this.files.get(this.current)!;
457 let progress = currentFile.uploadedSize;
458
459 this.uiData.value = {
460 current: [progress, currentFile.file.size],
461 currentFile: currentFile.file.name,
462 files: [this.uploaded + (this.current ? 1 : 0), this.uploaded + this.files.size],
463 suspending: this.status == "suspend",
464 instanceInfo: currentFile.instanceInfo
465 };
466 }
467
468 getFileNth(id: string): number {
469 for (const string of this.files.keys()) {

Callers 4

updateMethod · 0.95
suspendMethod · 0.95
stopMethod · 0.95
onProgressMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected