You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Image upload component wip
* update cropping component
* add circle config
* move eventlisteners to canvas
* explicit use of constrainToArea
* further refactor image upload component
* add common utils for draw and handlecrop functions + variable viewport (#3657)
* add common utils for draw and handlecrop functions + variable viewportsimplify mouse dragging and support touch dragging (#3656)
* extract functions to utils (#3663)
* implement cropAsConfig prop into viewport config (#3662)
* prevent scrolling (#3658)
* Feat/refine image upload buttons according to design (#3660)
* reuse dropzonecomponent and display only when imgsrc is not defined
* bring back the reset button
* move controller section to its own file
* Move the image cropper into a card (#3665)
* move image cropper into card wip
* working cropping component in card
* conforrm to styling naming in repo
* canvas height adjustment
---------
Co-authored-by: lassopicasso <[email protected]>
* clean up css and style closer to figma design (#3669)
* clean up css and style closer to figma design
* added save and cancel buttons with functionality (some left for save fn) (#3668)
* added save and cancel buttons with functionality (some left for save fn)
* Adding AttachmentsPlugin to ImageUpload component (it needs to be defined as a form component for this to work, which is more fitting)
* save cropped image to backend
* feedback
* small fix
---------
Co-authored-by: Ole Martin Handeland <[email protected]>
* Redesign slider + buttons in img controller (#3671)
* added save and cancel buttons with functionality (some left for save fn)
* Adding AttachmentsPlugin to ImageUpload component (it needs to be defined as a form component for this to work, which is more fitting)
* save cropped image to backend
* redesign slider + buttons
---------
Co-authored-by: Ole Martin Handeland <[email protected]>
* Extract canvas and effects into its own component (#3674)
* wip
* revert unneccesary change
* clean up
* feat/ handle saved image and new display when image is saved (#3675)
* add hook that handles the saved image and controllers buttons when saved
* add check at higher level for stored image (#3680)
* zoom to the center of viewport (#3681)
* Feat/custom crop area config + renaming (#3682)
* support custom config
* support mismatch of height and width if type is circle
* Feat/remove-dropzone-icon-and-change-background (#3679)
* remove dropzone icon and refactor css
* replace look of placeholder
* remove unused css
* remove focus for now
* fix zooming limits (#3684)
* fix: active pointer canvas and keyboard support on change image (#3683)
* cursor change to grabbing when active in canvas
* make change image button support keyboard
* update icons
* Add validationmessages for imageupload size and types (#3687)
* add validationmessages for imageupload size and types
* clear validationmessages on cancel
* Feat/use-language-for-component-texts (#3689)
* add language texts and use them throughout the component
* change wording slightly and remove unused text
* make file-endings the same
* Display uploaded image+more (#3690)
* push branch
* utilize storedImage
* adjustments
* refactor: calculations (#3697)
* remove imageSrc, imageRef takes its place
* add handle cancel function
* add new utilities
* move validation to a utility and connect better the logic for image state
* feat: Support config (#3700)
* support config
* remove rendudant useEffect
* small adjustment
* change config from one object to 3 props
* New dropzone using the new figma design (#3708)
* rename imagecropper to match filename
* merge dropzone with placeholder wip
* add border to placeholder
* create image dropzone with new design
* Update src/layout/ImageUpload/ImageDropzone.module.css
Co-authored-by: Lars <[email protected]>
---------
Co-authored-by: Lars <[email protected]>
* clean up comment, fix text-alignment
* remove redundant css class
* fix cropped preview
* feat: Handle canvas size based on grid or mobile viewport and use filename (#3706)
* handle canvas on mobile viewport
* save filename
* canvas width is decided by container, so it supports grid behavior as well
* add unit tests and fix validation (#3714)
* add unit tests and fix validation
* feedback
* Add displaydata expression test to ImageUpload (#3719)
* adjust to equal height and width if circle and they are uneven
* fix duplicate ids and use ref instead of getElementById
* clean up css
* fix sizing
* use unique id, remove preventDefault for dropzone
* remove a type-casting
* add accesible title to reset zoom button
* remove redundant css
* fix change image button
* add cypress tests for image upload component (#3721)
* make filetypes the same
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* make filetypes match
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* support summary2 (#3725)
* support summary2
* small adjustments
* support validFileEndings config
* replace chess background when image is saved
* fix edge case where canvas gets too low between 1160-1200px when grid is used half of width
* simplify responsivness and keep fixed size of the canvas
* set min zoom as default
* remove error message when save
* add tests for imageupload in summary2
* reverse validfileendings config support
* add cypress test where replacing image
* react recommendations
* add utility tests
* remove some comments
* add specific image types to be allowed
* small adjustment
* new summary of image upload, show image
* some text changes
* update tests for new summary of image upload
* check for possible animation file type and inform user that only first frame is used
* support readOnly config
* fix test
* rabbit feedback
* rename config from square to rectangle
* make useFileUploaderDataBindingsValidation support ImageUpload as well
* Better error message for imageUpload is not supported in summary component
* check that allowedContentTypes in app meta data is valid when rendering image upload
* remove emojis in css comments
* move logic out of jsx into a function
* rename css class
* text resource to aria-label
* move existing canvas files into own folder
* refactor image canvas
* move zoom calculation to a utility helper
* refactor imageCropper
* --ds-color-neutral-background-tinted
* adjust zoom behavior
* reverse change in fileTable, not needed anymore
* update config to use oneOf and update code related to this
* rabbit feedback - ensure draw after image is completly uploaded to browser
* rabbit feedback - !!readOnly is redudant - keep only readOnly
* rabbit feedback - ensure better quality on saved image with imageSmoothing from canvas
* rabbit feedback - not necessary, but adding a fallback to imageType
* move useImageFile to hooks folder
* move imageUploadSummary2 into a folder
* rabbit feedback - naming type
* small adjustment
* adjust the size of slider
---------
Co-authored-by: Lars <[email protected]>
Co-authored-by: lassopicasso <[email protected]>
Co-authored-by: Ole Martin Handeland <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/language/texts/en.ts
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,17 @@ export function en() {
208
208
'iframe_component.unsupported_browser_title': 'Your browser is unsupported',
209
209
'iframe_component.unsupported_browser':
210
210
'Your browser does not support iframes that use srcdoc. This may result in not being able to see all the content intended to be displayed here. We recommend trying a different browser.',
211
+
'image_upload_component.animated_warning': 'If the image is animated, only the first frame will be shown.',
'iframe_component.unsupported_browser_title': 'Nettleseren din støttes ikke',
210
210
'iframe_component.unsupported_browser':
211
211
'Nettleseren du bruker støtter ikke iframes som benytter seg av srcdoc. Dette kan føre til at du ikke ser all innholdet som er ment å vises her. Vi anbefaler deg å prøve en annen nettleser.',
212
+
'image_upload_component.animated_warning': 'Hvis bildet er animert, vises bare det første bildet.',
'iframe_component.unsupported_browser_title': 'Nettlesaren din støttas ikkje',
210
210
'iframe_component.unsupported_browser':
211
211
'Nettlesaren di støttar ikkje iframes som brukar srcdoc. Dette kan føre til at du ikkje ser all innhaldet som er meint å visast her. Vi anbefalar deg å prøve ein annan nettlesar.',
212
+
'image_upload_component.animated_warning': 'Hvis bildet er animert, vises bare det første bildet.',
0 commit comments