Test frontend #only_compile
This commit is contained in:
parent
f4013d1196
commit
47329ac04e
|
@ -167,7 +167,7 @@
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
}
|
}
|
||||||
.edit-action{
|
.edit-action{
|
||||||
min-width: 10%;
|
min-width: 5%;
|
||||||
}
|
}
|
||||||
.carousel-container{
|
.carousel-container{
|
||||||
height: inherit;
|
height: inherit;
|
||||||
|
|
|
@ -69,7 +69,8 @@ async function uploadFileChangeHandler(event: Event) {
|
||||||
for (let i = 0; i < numChunks; i++) {
|
for (let i = 0; i < numChunks; i++) {
|
||||||
const start = i * chunkSize
|
const start = i * chunkSize
|
||||||
const end = Math.min(file.size, start + chunkSize)
|
const end = Math.min(file.size, start + chunkSize)
|
||||||
// const res = await sendChunk(file, start, end)
|
const res = await sendChunk(file, start, end)
|
||||||
|
documentStore.updateUploadingDocuments(document.key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,14 @@ export const useDocumentStore = defineStore({
|
||||||
this.document = this.document.filter(e => document.key !== e.key)
|
this.document = this.document.filter(e => document.key !== e.key)
|
||||||
this.selectedDocuments = this.selectedDocuments.filter(e => document.key !== e.key)
|
this.selectedDocuments = this.selectedDocuments.filter(e => document.key !== e.key)
|
||||||
},
|
},
|
||||||
|
updateUploadingDocuments(key: number){
|
||||||
|
this.uploadCount++;
|
||||||
|
this.uploadingDocuments.forEach((document) => {
|
||||||
|
if(document.key === key) {
|
||||||
|
document.progress++
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
pushUploadingDocuments(name: string){
|
pushUploadingDocuments(name: string){
|
||||||
this.uploadCount++;
|
this.uploadCount++;
|
||||||
const document = {
|
const document = {
|
||||||
|
|
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">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>Vite Vasanko</title>
|
<title>Vite Vasanko</title>
|
||||||
<script type="module" crossorigin src="/assets/index-fd0a73dd.js"></script>
|
<script type="module" crossorigin src="/assets/index-ba5ef1f0.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-ad040315.css">
|
<link rel="stylesheet" href="/assets/index-280e5cf9.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user