This pull request includes several changes to the assets/js/src/core/app/api/pimcore/route.ts file and related files to streamline URL handling and update localization, as well as updates to various build configuration files.
API and URL Handling:
assets/js/src/core/app/api/pimcore/route.ts: Removed the getDomain and getDomainWithPrefix functions, leaving only the getPrefix function. This simplifies URL handling by using a relative prefix instead of a hardcoded domain.
Changes in this pull request
Resolves #601
Additional info
This pull request includes several changes to the
assets/js/src/core/app/api/pimcore/route.ts
file and related files to streamline URL handling and update localization, as well as updates to various build configuration files.API and URL Handling:
assets/js/src/core/app/api/pimcore/route.ts
: Removed thegetDomain
andgetDomainWithPrefix
functions, leaving only thegetPrefix
function. This simplifies URL handling by using a relative prefix instead of a hardcoded domain.assets/js/src/core/modules/asset/editor/types/image/tab-manager/tabs/preview/sidebar/tabs/details/details-container.tsx
: Updated imports and fetch calls to usegetPrefix
instead ofgetDomainWithPrefix
, ensuring URLs are constructed using the relative prefix. [1] [2] [3]Localization:
assets/js/src/core/modules/asset/editor/types/image/tab-manager/tabs/preview/sidebar/tabs/details/details-view.tsx
: Updated the custom download option title to use a localized string.Build Configuration:
public/build/20c3a352-4f49-448e-ab48-5af98013c34e/entrypoints.json
: Added new entry points for the main bundle.public/build/20c3a352-4f49-448e-ab48-5af98013c34e/manifest.json
: Added the main bundle to the manifest.public/build/23b8db53-d155-4b0c-813f-2f538f0dc6e9/entrypoints.json
: Added new entry points for the vendor bundle.public/build/23b8db53-d155-4b0c-813f-2f538f0dc6e9/manifest.json
: Added the vendor bundle to the manifest.