Ghost/apps
Ronald Langeveld 9339364dce
Added Unsplash selector to AdminX (#18216)
no issue

- Copied over the Unsplash Component from Koenig to AdminX and converted
it to Typescript.
- Changed the business logic to follow a bit of dependency injection to
make it more testable and easier to maintain.
- Ideally we move this out of Admin X Settings and perhaps into it's own
library so we don't need to deal with a duplicate code between Koenig
and Admin X.

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at a40bf5b</samp>

This pull request adds support for selecting images from Unsplash in the
admin settings UI. It introduces a new `UnsplashService` class that
handles the Unsplash API requests and a new `MasonryService` class that
handles the masonry layout of the images. It also adds several new
custom components, such as `UnsplashButton`, `UnsplashGallery`,
`UnsplashImage`, `UnsplashSelector`, `UnsplashZoomed`, and
`UnsplashSearchModal`, that render the Unsplash modal and its elements.
It modifies the existing `ImageUpload`, `App`, `ServicesProvider`, and
`BrandSettings` components to integrate the Unsplash feature and pass
the necessary props. It also adds some new types, constants, and assets
related to the Unsplash data and UI. Finally, it adds some unit tests
for the `UnsplashService` and `MasonryService` classes.
2023-09-21 02:23:45 +00:00
..
admin-x-settings Added Unsplash selector to AdminX (#18216) 2023-09-21 02:23:45 +00:00
announcement-bar Update dependency vite-plugin-svgr to v3.3.0 2023-09-20 08:41:57 +02:00
comments-ui Update dependency vite-plugin-svgr to v3.3.0 2023-09-20 08:41:57 +02:00
portal Updated recommendations design 2023-09-20 14:46:26 +01:00
signup-form Update dependency vite-plugin-svgr to v3.3.0 2023-09-20 08:41:57 +02:00
sodo-search 🐛 Fixed escaping search terms that contain special characters (#18151) 2023-09-20 10:17:21 +02:00