dtable-ui-component 6.0.15 → 6.0.17
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/lib/utils/url.js +1 -1
- package/package.json +2 -2
package/lib/utils/url.js
CHANGED
|
@@ -107,11 +107,11 @@ const getImageThumbnailUrl = function (url) {
|
|
|
107
107
|
size = 256
|
|
108
108
|
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
109
109
|
if (!url || typeof url !== 'string') return '';
|
|
110
|
-
if (isAIUrl(url) || checkSVGImage(url) || !isInternalImg(url) || isBase64(url)) return url;
|
|
111
110
|
if (server && dtableUuid && isCustomAssetUrl(url)) {
|
|
112
111
|
const assetUuid = url.slice(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));
|
|
113
112
|
return server + '/dtable/' + dtableUuid + '/custom-asset-thumbnail/' + assetUuid + '?size=' + size;
|
|
114
113
|
}
|
|
114
|
+
if (isAIUrl(url) || checkSVGImage(url) || !isInternalImg(url) || isBase64(url)) return url;
|
|
115
115
|
if (server && workspaceID && dtableUuid && isDigitalSignsUrl(url)) {
|
|
116
116
|
return generateCurrentBaseImageThumbnailUrl({
|
|
117
117
|
server,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.17",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "4.0.2",
|
|
7
7
|
"@seafile/seafile-calendar": "0.0.24",
|
|
8
|
-
"@seafile/seafile-editor": "2.0.
|
|
8
|
+
"@seafile/seafile-editor": "2.0.5",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
10
|
"classnames": "2.3.2",
|
|
11
11
|
"dayjs": "1.10.7",
|