acsi-core 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/getImageUrl.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1019,6 +1019,21 @@ var firstCheckToken = function firstCheckToken() {
|
|
|
1019
1019
|
}));
|
|
1020
1020
|
};
|
|
1021
1021
|
|
|
1022
|
+
var getImageUrl = function getImageUrl(imageUrl) {
|
|
1023
|
+
try {
|
|
1024
|
+
if (!!imageUrl) {
|
|
1025
|
+
var imageTrimmed = imageUrl.trim();
|
|
1026
|
+
if (imageTrimmed.startsWith('http://') || imageTrimmed.startsWith('https://')) {
|
|
1027
|
+
return imageTrimmed;
|
|
1028
|
+
}
|
|
1029
|
+
return BASE_URL + "/images/" + imageTrimmed;
|
|
1030
|
+
}
|
|
1031
|
+
return "/images/avatar-default.png";
|
|
1032
|
+
} catch (err) {
|
|
1033
|
+
return "/images/avatar-default.png";
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1022
1037
|
var NotFound = function NotFound() {
|
|
1023
1038
|
return React.createElement("div", {
|
|
1024
1039
|
className: "not-found"
|
|
@@ -2611,5 +2626,5 @@ var utcToLocalTime = (function (time, FORMAT) {
|
|
|
2611
2626
|
|
|
2612
2627
|
var historyCore = createBrowserHistory();
|
|
2613
2628
|
|
|
2614
|
-
export { ACCESS_TOKEN, AmplitudeEvent, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CoreTooltip, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, NotFound, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, Role, api$1 as api, apiUpload$1 as apiUpload, firstCheckToken, getAccessToken$1 as getAccessToken, getErrorMessage, historyCore, initializeAmplitude, setAddTenant, setAlert, setIsRefetchSidebar, setLoading, setLoadingPage, setMenuCollapse, setTeam, setTenant, setUser, store, useAmplitude, useGoogleSignOut, utcToLocalTime };
|
|
2629
|
+
export { ACCESS_TOKEN, AmplitudeEvent, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CoreTooltip, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, NotFound, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, Role, api$1 as api, apiUpload$1 as apiUpload, firstCheckToken, getAccessToken$1 as getAccessToken, getErrorMessage, getImageUrl, historyCore, initializeAmplitude, setAddTenant, setAlert, setIsRefetchSidebar, setLoading, setLoadingPage, setMenuCollapse, setTeam, setTenant, setUser, store, useAmplitude, useGoogleSignOut, utcToLocalTime };
|
|
2615
2630
|
//# sourceMappingURL=index.modern.js.map
|