Frontend created and rewritten a few times, with some backend fixes #1
|
@ -70,7 +70,7 @@ async function uploadFileChangeHandler(event: Event) {
|
|||
const start = i * chunkSize
|
||||
const end = Math.min(file.size, start + chunkSize)
|
||||
const res = await sendChunk(file, start, end)
|
||||
documentStore.updateUploadingDocuments(document.key)
|
||||
documentStore.updateUploadingDocuments( document.key, (100*i) / numChunks)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,11 +82,11 @@ export const useDocumentStore = defineStore({
|
|||
this.document = this.document.filter(e => document.key !== e.key)
|
||||
this.selectedDocuments = this.selectedDocuments.filter(e => document.key !== e.key)
|
||||
},
|
||||
updateUploadingDocuments(key: number){
|
||||
updateUploadingDocuments(key: number, progress: number){
|
||||
this.uploadCount++;
|
||||
this.uploadingDocuments.forEach((document) => {
|
||||
if(document.key === key) {
|
||||
document.progress++
|
||||
document.progress = progress
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,8 +5,8 @@
|
|||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Vite Vasanko</title>
|
||||
<script type="module" crossorigin src="/assets/index-ba5ef1f0.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-280e5cf9.css">
|
||||
<script type="module" crossorigin src="/assets/index-ff8e56e8.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-23529f96.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user