@seafile/seafile-editor 3.0.4 → 3.0.6
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.
|
@@ -11,7 +11,6 @@ var _slateReact = require("slate-react");
|
|
|
11
11
|
var _reactImageLightbox = _interopRequireDefault(require("@seafile/react-image-lightbox"));
|
|
12
12
|
var _helper = require("../helper");
|
|
13
13
|
var _reactI18next = require("react-i18next");
|
|
14
|
-
var _common = require("../../../../utils/common");
|
|
15
14
|
require("@seafile/react-image-lightbox/style.css");
|
|
16
15
|
require("./style.css");
|
|
17
16
|
const ImagePreviewer = _ref => {
|
|
@@ -24,7 +23,6 @@ const ImagePreviewer = _ref => {
|
|
|
24
23
|
const t = (0, _reactI18next.useTranslation)(TRANSLATE_NAMESPACE);
|
|
25
24
|
const [imageIndex, setImageIndex] = (0, _react.useState)(images.findIndex(item => item === imgUrl));
|
|
26
25
|
const mainSrc = images[imageIndex];
|
|
27
|
-
const shortcutMain = (0, _common.isMac)() ? '⌘' : 'Ctrl';
|
|
28
26
|
const moveToPrevImage = () => {
|
|
29
27
|
const currentImageIndex = (imageIndex + images.length - 1) % images.length;
|
|
30
28
|
setImageIndex(currentImageIndex);
|
|
@@ -60,8 +58,8 @@ const ImagePreviewer = _ref => {
|
|
|
60
58
|
zIndex: 1071
|
|
61
59
|
}
|
|
62
60
|
},
|
|
63
|
-
zoomInTip: t('
|
|
64
|
-
zoomOutTip: t('
|
|
61
|
+
zoomInTip: t('Zoom_in'),
|
|
62
|
+
zoomOutTip: t('Zoom_out')
|
|
65
63
|
});
|
|
66
64
|
};
|
|
67
65
|
var _default = exports.default = ImagePreviewer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@seafile/react-image-lightbox": "^5.0.
|
|
88
|
+
"@seafile/react-image-lightbox": "^5.0.4",
|
|
89
89
|
"classnames": "2.3.2",
|
|
90
90
|
"copy-to-clipboard": "3.3.1",
|
|
91
91
|
"deep-copy": "1.4.2",
|
|
@@ -239,6 +239,6 @@
|
|
|
239
239
|
"This_link_is_not_verified": "This link is not verified",
|
|
240
240
|
"This_link_is_not_verified_tip": "Before continuing, please ensure you trust this link. If you do not trust the URL, do not open the link to access the site.",
|
|
241
241
|
"Copy_link": "Copy link",
|
|
242
|
-
"
|
|
243
|
-
"
|
|
242
|
+
"Zoom_in": "Zoom in",
|
|
243
|
+
"Zoom_out": "Zoom out"
|
|
244
244
|
}
|