feat(common): add loaders for Cloudinary and ImageKit providers#46277
Conversation
dab8867 to
5bcbdcd
Compare
pkozlowski-opensource
left a comment
There was a problem hiding this comment.
The change LGTM overall but we start to have code duplication between various loaders and I would love to see the common logic extracted before this PR gets merged.
packages/common/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.ts
Outdated
Show resolved
Hide resolved
packages/common/src/directives/ng_optimized_image/image_loaders/imagekit_loader.ts
Outdated
Show resolved
Hide resolved
5bcbdcd to
4dc26b4
Compare
packages/common/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.ts
Outdated
Show resolved
Hide resolved
packages/common/src/directives/ng_optimized_image/image_loaders/imagekit_loader.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Nit: path error seems like it can be shared if the name of the loader is also passed as an arg
There was a problem hiding this comment.
I wrote slightly different error messages for the Cloudinary & Imgix loaders (which is why I didn't move more of this into loader_utils). I considered passing the whole error message as an argument but that felt awkward IMO.
4dc26b4 to
ea0076e
Compare
This commit adds loaders for cloudinary and imagekit.
…e ensurePreconnect option This commit modifies the provideCloudinaryLoader and provideImageKitLoader functions to support an additional ensurePreconnect option, similar to the Imgix loader functions.
ea0076e to
ba630fb
Compare
This commit refactors the code to avoid an extra utils file and instead, all extra helpers are moved to a common location.
ba630fb to
80637b4
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?