Skip to content

Commit

Permalink
apply review comments
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin committed Mar 7, 2025
1 parent 024f07e commit ef28fec
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 244 deletions.
216 changes: 0 additions & 216 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions models/recorder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@hcengineering/core": "^0.6.32",
"@hcengineering/model": "^0.6.11",
"@hcengineering/model-core": "^0.6.0",
"@hcengineering/model-presentation": "^0.6.0",
"@hcengineering/model-workbench": "^0.6.1",
"@hcengineering/platform": "^0.6.11",
"@hcengineering/ui": "^0.6.15",
"@hcengineering/uploader": "^0.6.0",
"@hcengineering/uploader-resources": "^0.6.0",
"@hcengineering/recorder": "^0.6.0",
"@hcengineering/recorder-resources": "^0.6.0"
}
Expand Down
9 changes: 0 additions & 9 deletions plugins/recorder-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@
"@hcengineering/uploader": "^0.6.0",
"@hcengineering/view": "^0.6.13",
"@hcengineering/view-resources": "^0.6.0",
"@uppy/core": "^3.13.1",
"@uppy/dashboard": "^3.9.1",
"@uppy/drag-drop": "^3.1.1",
"@uppy/locales": "^4.0.3",
"@uppy/progress-bar": "^3.1.1",
"@uppy/screen-capture": "^3.2.0",
"@uppy/status-bar": "^3.3.3",
"@uppy/webcam": "^3.4.2",
"@uppy/xhr-upload": "^3.6.8",
"install": "^0.13.0",
"stream-browserify": "^3.0.0",
"svelte": "^4.2.19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,16 @@
function handleCancelAll (): void {
upload?.files.forEach((element) => {
if (element.cancel !== undefined) {
element.cancel()
}
element.cancel?.()
})
}
function handleCancelFile (file: FileUpload): void {
if (file.cancel === undefined) {
return
}
file.cancel()
file.cancel?.()
}
function handleRetryFile (file: FileUpload): void {
if (file.retry === undefined) {
return
}
void file.retry()
void file.retry?.()
}
onMount(() => {
return uploads.subscribe(updateState)
Expand Down
4 changes: 1 addition & 3 deletions plugins/uploader-resources/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ export async function uploadFile (
progress: 0
}
fileUpload.retry = async () => {
if (fileUpload.cancel !== undefined) {
fileUpload.cancel()
}
fileUpload.cancel?.()
await uploadFile(file, metadata, upload, options)
}

Expand Down

0 comments on commit ef28fec

Please sign in to comment.