Add expand/compress image button on image view box (#15068)

* add zoom image button

* enhance zoom algorithm & add translation

* code structure

* code structure

* code structure

* enhance grab performance

* rm useless state

* fix behavior on Firefox & scroll lock & horizontal scroll with mousewheel

* remove scroll lock on MouseWheelEvent

* code structure

* enhance algorithm and code structure

* rm Gemfile.lock from tree

* codeclimate

* fix a stupid mistake
This commit is contained in:
Mashiro
2020-11-03 04:16:38 +08:00
committed by GitHub
parent 4b2ec4a2dc
commit 6a2db10f76
79 changed files with 2029 additions and 23 deletions

View File

@ -9,8 +9,10 @@
"account.browse_more_on_origin_server": "在原始个人资料页面上浏览详情",
"account.cancel_follow_request": "取消关注请求",
"account.direct": "发送私信给 @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "网站已屏蔽",
"account.edit_profile": "修改个人资料",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "在个人资料中推荐此用户",
"account.follow": "关注",
"account.followers": "关注者",
@ -166,7 +168,9 @@
"empty_column.notifications": "你还没有收到过任何通知,快和其他用户互动吧。",
"empty_column.public": "这里什么都没有!写一些公开的嘟文,或者关注其他服务器的用户后,这里就会有嘟文出现了",
"error.unexpected_crash.explanation": "此页面无法正确显示,这可能是因为我们的代码中有错误,也可能是因为浏览器兼容问题。",
"error.unexpected_crash.explanation_addons": "This page could not be displayed correctly. This error is likely caused by a browser add-on or automatic translation tools.",
"error.unexpected_crash.next_steps": "刷新一下页面试试。如果没用,您可以换个浏览器或者用本地应用。",
"error.unexpected_crash.next_steps_addons": "Try disabling them and refreshing the page. If that does not help, you may still be able to use Mastodon through a different browser or native app.",
"errors.unexpected_crash.copy_stacktrace": "把堆栈跟踪信息复制到剪贴板",
"errors.unexpected_crash.report_issue": "报告问题",
"follow_request.authorize": "同意",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "取消输入",
"keyboard_shortcuts.up": "在列表中让光标上移",
"lightbox.close": "关闭",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "下一个",
"lightbox.previous": "上一个",
"lightbox.view_context": "查看上下文",
@ -260,6 +266,10 @@
"lists.edit.submit": "更改标题",
"lists.new.create": "新建列表",
"lists.new.title_placeholder": "新列表的标题",
"lists.replies_policy.all_replies": "Any followed user",
"lists.replies_policy.list_replies": "Members of the list",
"lists.replies_policy.no_replies": "No one",
"lists.replies_policy.title": "Show replies to:",
"lists.search": "搜索你关注的人",
"lists.subheading": "你的列表",
"load_pending": "{count} 项",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "隐藏 {number} 张图片",
"missing_indicator.label": "找不到内容",
"missing_indicator.sublabel": "无法找到此资源",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "同时隐藏来自这个用户的通知?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "移动应用",
"navigation_bar.blocks": "已屏蔽的用户",
"navigation_bar.bookmarks": "书签",
@ -298,6 +310,7 @@
"notification.own_poll": "您的投票已经结束",
"notification.poll": "你参与的一个投票已经结束",
"notification.reblog": "{name} 转嘟了你的嘟文",
"notification.status": "{name} just posted",
"notifications.clear": "清空通知列表",
"notifications.clear_confirmation": "你确定要永久清空通知列表吗?",
"notifications.column_settings.alert": "桌面通知",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "当有人转嘟了你的嘟文时:",
"notifications.column_settings.show": "在通知栏显示",
"notifications.column_settings.sound": "播放音效",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "全部",
"notifications.filter.boosts": "转嘟",
"notifications.filter.favourites": "喜欢",
"notifications.filter.follows": "关注",
"notifications.filter.mentions": "提及",
"notifications.filter.polls": "投票结果",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} 条通知",
"notifications.mark_as_read": "Mark every notification as read",
"notifications.permission_denied": "Desktop notifications are unavailable due to previously denied browser permissions request",
"notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
"notifications_permission_banner.enable": "Enable desktop notifications",
"notifications_permission_banner.how_to_control": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
"notifications_permission_banner.title": "Never miss a thing",
"picture_in_picture.restore": "Put it back",
"poll.closed": "已关闭",
"poll.refresh": "刷新",
"poll.total_people": "{count}人",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "从图片中检测文本",
"upload_modal.edit_media": "编辑媒体",
"upload_modal.hint": "在预览图上点击或拖动圆圈,以选择缩略图的焦点。",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "预览 ({ratio})",
"upload_progress.label": "上传中……",
"video.close": "关闭视频",