@seafile/comment-editor 1.0.3 → 1.0.4

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.
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/es
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactI18next = require("react-i18next");
11
11
  var _reactImageLightbox = _interopRequireDefault(require("@seafile/react-image-lightbox"));
12
- var _commonUtils = require("../../../../utils/common-utils");
13
12
  var _helpers = require("../helpers");
14
13
  require("@seafile/react-image-lightbox/style.css");
15
14
  class ImagePreviewer extends _react.default.Component {
@@ -63,7 +62,6 @@ class ImagePreviewer extends _react.default.Component {
63
62
  } = this.props;
64
63
  const imageItemsLength = this.images.length;
65
64
  const mainSrc = this.images[imageIndex] || '';
66
- const shortcutMain = (0, _commonUtils.isMac)() ? '⌘' : 'Ctrl';
67
65
  let imageTitle = '';
68
66
  try {
69
67
  imageTitle = mainSrc ? decodeURI(mainSrc.slice(mainSrc.lastIndexOf('/') + 1)) : '';
@@ -94,8 +92,8 @@ class ImagePreviewer extends _react.default.Component {
94
92
  reactModalProps: {
95
93
  shouldReturnFocusAfterClose: false
96
94
  },
97
- zoomInTip: t('Enlarge: {Ctrl} + Wheel').replace('{Ctrl}', shortcutMain),
98
- zoomOutTip: t('Shrink: {Ctrl} + Wheel').replace('{Ctrl}', shortcutMain)
95
+ zoomInTip: t('Zoom_in'),
96
+ zoomOutTip: t('Zoom_out')
99
97
  });
100
98
  }
101
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",
@@ -635,6 +635,6 @@
635
635
  "Property": "Property",
636
636
  "Comment_list": "Comment list",
637
637
  "Add_Comment": "Add Comment",
638
- "Enlarge: {Ctrl} + Wheel": "Enlarge: {Ctrl} + Wheel",
639
- "Shrink: {Ctrl} + Wheel": "Shrink: {Ctrl} + Wheel"
638
+ "Zoom_in": "Zoom in",
639
+ "Zoom_out": "Zoom out"
640
640
  }
@@ -636,6 +636,6 @@
636
636
  "Property": "属性",
637
637
  "Comment_list": "评论列表",
638
638
  "Add_Comment": "添加评论",
639
- "Enlarge: {Ctrl} + Wheel": "放大: {Ctrl} + 滚轮",
640
- "Shrink: {Ctrl} + Wheel": "缩小: {Ctrl} + 滚轮"
639
+ "Zoom_in": "放大",
640
+ "Zoom_out": "缩小"
641
641
  }
@@ -636,6 +636,6 @@
636
636
  "Property": "属性",
637
637
  "Comment_list": "评论列表",
638
638
  "Add_Comment": "添加评论",
639
- "Enlarge: {{Ctrl}} + Wheel": "放大: {Ctrl} + 滚轮",
640
- "Shrink: {Ctrl} + Wheel": "缩小: {Ctrl} + 滚轮"
639
+ "Zoom_in": "放大",
640
+ "Zoom_out": "缩小"
641
641
  }