Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
chore: bump uppy version to fix crash on chrome browser (#900)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复在非安全情况下(非 HTTPS 环境或本地环境),在 [Chromium](https://www.chromium.org/) 内核的浏览器下拖拽文件上传出现浏览器崩溃的问题。

修复来源:

- https://github.com/transloadit/uppy/releases/tag/uppy%403.6.0
- transloadit/uppy#4310

#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#3017

#### Screenshots:

before:

![2023-03-08 10 59 02](https://user-images.githubusercontent.com/21301288/223609341-222f62d2-630a-4ee8-ba8f-2fb3c78fcca7.gif)

after:

![2023-03-08 11 00 06](https://user-images.githubusercontent.com/21301288/223609353-857f6559-cc9c-482f-9b46-713430621bb6.gif)

#### Special notes for your reviewer:

测试方式:

1. 需要先执行 `make -C console install` 以更新 Console 的依赖。
2. 使用非 localhost 或者 127.0.0.1 访问 Halo 后台,本地环境可以使用 192.168.x.x 访问。
3. 在 Console 的附件管理测试拖拽文件上传,观察浏览器是否崩溃。

#### Does this PR introduce a user-facing change?

```release-note
修复非 HTTPS 环境下,在 Chromium 内核浏览器拖拽上传文件时出现浏览器崩溃的问题。
```
  • Loading branch information
ruibaby authored Mar 8, 2023
1 parent 6143f5f commit 9c5b3d7
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 70 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
"@halo-dev/richtext-editor": "0.0.0-alpha.19",
"@tanstack/vue-query": "^4.24.10",
"@tiptap/extension-character-count": "^2.0.0-beta.202",
"@uppy/core": "^3.0.4",
"@uppy/dashboard": "^3.2.0",
"@uppy/core": "^3.1.1",
"@uppy/dashboard": "^3.3.1",
"@uppy/drag-drop": "^3.0.1",
"@uppy/file-input": "^3.0.1",
"@uppy/locales": "^3.0.4",
"@uppy/locales": "^3.0.7",
"@uppy/progress-bar": "^3.0.1",
"@uppy/status-bar": "^3.0.1",
"@uppy/vue": "^1.0.1",
"@uppy/xhr-upload": "^3.0.4",
"@uppy/xhr-upload": "^3.1.0",
"@vueuse/components": "^9.6.0",
"@vueuse/core": "^9.6.0",
"@vueuse/router": "^9.6.0",
Expand Down
132 changes: 66 additions & 66 deletions pnpm-lock.yaml

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

0 comments on commit 9c5b3d7

Please sign in to comment.