mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
feat(profile): add uploadable avatars with local/S3 storage
Users can upload and remove profile pictures on the profile page. Admins choose local or instance S3 storage in advanced settings. Avatars are compressed to JPEG and served via a private cached route.
This commit is contained in:
1 parent
e50108a905
commit
51561e4bee
23 files changed
+677
-44
No files matched your search
@@ -25,8 +25,15 @@ it('changes appearance from a submenu instead of navigating to a separate page',
|
||||
expect($menu)
|
||||
->toContain('appearanceOpen: false')
|
||||
->toContain('@click.outside="open = false; appearanceOpen = false"')
|
||||
->toContain("theme: localStorage.getItem('theme') || 'dark'")
|
||||
->toContain('setTheme(type)')
|
||||
->toContain("theme: localStorage.getItem('theme') === 'purple' ? 'custom' : (localStorage.getItem('theme') || 'dark')")
|
||||
->toContain('setTheme(type, closeMenu = true)')
|
||||
->toContain("this.setTheme('custom', false)")
|
||||
->not->toContain('@change="appearanceOpen = false; open = false"')
|
||||
->toContain('this.appearanceOpen = false;')
|
||||
->toContain('this.open = false;')
|
||||
->toContain('<template x-if="open">')
|
||||
->not->toContain('x-show.important="open"')
|
||||
->not->toContain('<div x-show="open" x-cloak x-transition.opacity.duration.120ms')
|
||||
->toContain("['value' => 'light', 'label' => 'Light'")
|
||||
->toContain("['value' => 'system', 'label' => 'System'")
|
||||
->toContain("['value' => 'dark', 'label' => 'Dark'")
|
||||
|
||||
Reference in new issue
Block a user