Test frontend #only_compile

This commit is contained in:
Andy-Ruda 2023-10-25 23:55:50 -05:00
parent 47329ac04e
commit 7baf8b3f9b
5 changed files with 8 additions and 8 deletions

View File

@ -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)
}
}
}

View File

@ -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

View File

@ -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>