Skip to content

Allow cropping an avatar before setting it #32565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Nov 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
12bfbf7
Fixed #31990
kerwin612 Nov 19, 2024
6628d67
Update profile.tmpl
kerwin612 Nov 19, 2024
0e1bb40
Merge branch 'main' into patch-17
kerwin612 Nov 20, 2024
dca4bb1
Merge branch 'main' into patch-17
kerwin612 Nov 20, 2024
c715200
Merge branch 'main' into patch-17
kerwin612 Nov 20, 2024
8863e92
code optimization
kerwin612 Nov 20, 2024
bfdb076
code optimization
kerwin612 Nov 20, 2024
651ee60
merge remote
kerwin612 Nov 20, 2024
19791a4
code optimization
kerwin612 Nov 20, 2024
6124e0f
Update locale_en-US.ini
kerwin612 Nov 20, 2024
c6919bb
fixed lint error
kerwin612 Nov 20, 2024
0b3b900
Merge branch 'main' into patch-17
kerwin612 Nov 21, 2024
e6b3a3f
Update web_src/js/features/comp/Cropper.ts
kerwin612 Nov 21, 2024
36945d7
Update web_src/js/features/comp/Cropper.ts
kerwin612 Nov 21, 2024
692fcff
Update web_src/js/features/comp/Cropper.ts
kerwin612 Nov 21, 2024
cd598bf
code optimization
kerwin612 Nov 21, 2024
50a4ceb
Merge branch 'main' into patch-17
kerwin612 Nov 25, 2024
53e9c63
Merge branch 'main' into patch-17
kerwin612 Nov 26, 2024
b64b368
Merge branch 'main' into patch-17
kerwin612 Nov 27, 2024
4d81186
Merge branch 'main' into patch-17
kerwin612 Nov 27, 2024
36cf69a
Remove CSS nesting
kerwin612 Nov 27, 2024
132f1a4
Remove global init
kerwin612 Nov 27, 2024
ea2a23c
Optimize the styling for mobile devices
kerwin612 Nov 27, 2024
5f893c3
improve
wxiaoguang Nov 27, 2024
08d4c92
Update web_src/js/features/comp/Cropper.ts
kerwin612 Nov 27, 2024
4fc5a8d
Update web_src/js/features/comp/Cropper.ts
kerwin612 Nov 27, 2024
9d1513b
rename a repo init function by the way and fix ts error
wxiaoguang Nov 27, 2024
82d0e9d
Update options/locale/locale_en-US.ini
kerwin612 Nov 28, 2024
55e06c1
Update web_src/js/features/user-settings.ts
kerwin612 Nov 28, 2024
57aecec
Merge branch 'main' into patch-17
kerwin612 Nov 28, 2024
7f49bb9
Revert 55e06c19b0ddb6ab8310fb8fcc36c7ef50bcc8a1
kerwin612 Nov 28, 2024
bff1595
Merge branch 'main' into patch-17
GiteaBot Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update web_src/js/features/comp/Cropper.ts
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
kerwin612 and silverwind authored Nov 27, 2024
commit 4fc5a8d7ff0ab2d0667fdb03dda2959aa2e21452
3 changes: 2 additions & 1 deletion web_src/js/features/comp/Cropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ type CropperOpts = {

export async function initCompCropper({container, fileInput, imageSource}: CropperOpts) {
const {default: Cropper} = await import(/* webpackChunkName: "cropperjs" */'cropperjs');
let currentFileName = '', currentFileLastModified = 0;
let currentFileName = '';
let currentFileLastModified = 0;
const cropper = new Cropper(imageSource, {
aspectRatio: 1,
viewMode: 2,
Expand Down
Loading