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": "Shfletoni më tepër rreth profilit origjinal",
"account.cancel_follow_request": "Anulo kërkesën e ndjekjes",
"account.direct": "Mesazh i drejtpërdrejtë për @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "Përkatësia u bllokua",
"account.edit_profile": "Përpunoni profilin",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "Pasqyrojeni në profil",
"account.follow": "Ndiqeni",
"account.followers": "Ndjekës",
@ -166,7 +168,9 @@
"empty_column.notifications": "Ende skeni ndonjë njoftim. Ndërveproni me të tjerët që të nisë biseda.",
"empty_column.public": "Ska gjë këtu! Shkruani diçka publikisht, ose ndiqni dorazi përdorues prej instancash të tjera, që ta mbushni këtë zonë",
"error.unexpected_crash.explanation": "Për shkak të një të mete në kodin tonë ose të një problemi përputhshmërie të shfletuesit, kjo faqe smund të shfaqet saktë.",
"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": "Provoni të freskoni faqen. Nëse kjo sbën punë, mundeni ende të jeni në gjendje të përdorni Mastodon-in që nga një shfletues tjetër ose nga ndonjë aplikacion origjinal prej projektit.",
"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": "Kopjo stacktrace-in në të papastër",
"errors.unexpected_crash.report_issue": "Raportoni problemin",
"follow_request.authorize": "Autorizoje",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "për heqjen e fokusit nga fusha e hartimit të mesazheve apo kërkimeve",
"keyboard_shortcuts.up": "për ngjitje sipër nëpër listë",
"lightbox.close": "Mbylle",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "Pasuesja",
"lightbox.previous": "E mëparshmja",
"lightbox.view_context": "Shihni kontekstin",
@ -260,6 +266,10 @@
"lists.edit.submit": "Ndryshoni titullin",
"lists.new.create": "Shtoni listë",
"lists.new.title_placeholder": "Titull liste të re",
"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": "Kërkoni mes personash që ndiqni",
"lists.subheading": "Listat tuaja",
"load_pending": "{count, plural,one {# objekt i ri }other {# objekte të rinj }}",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "Fshihni {number, plural, one {figurë} other {figura}}",
"missing_indicator.label": "Su gjet",
"missing_indicator.sublabel": "Ky burim su gjet dot",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "Të kalohen të fshehura njoftimet prej këtij përdoruesi?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Aplikacione për celular",
"navigation_bar.blocks": "Përdorues të bllokuar",
"navigation_bar.bookmarks": "Faqerojtës",
@ -298,6 +310,7 @@
"notification.own_poll": "Pyetësori juaj ka përfunduar",
"notification.poll": "Ka përfunduar një pyetësor ku keni votuar",
"notification.reblog": "{name} përforcoi mesazhin tuaj",
"notification.status": "{name} just posted",
"notifications.clear": "Spastroji njoftimet",
"notifications.clear_confirmation": "Jeni i sigurt se doni të spastrohen përgjithmonë krejt njoftimet tuaja?",
"notifications.column_settings.alert": "Njoftime desktopi",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "Përforcime:",
"notifications.column_settings.show": "Shfaq në shtylla",
"notifications.column_settings.sound": "Luaj një tingull",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "Krejt",
"notifications.filter.boosts": "Përforcime",
"notifications.filter.favourites": "Të parapëlqyer",
"notifications.filter.follows": "Ndjekje",
"notifications.filter.mentions": "Përmendje",
"notifications.filter.polls": "Përfundime pyetësori",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count}s njoftime",
"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": "I mbyllur",
"poll.refresh": "Rifreskoje",
"poll.total_people": "{count, plural,one {# person }other {# vetë }}",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "Pikase tekstin prej fotoje",
"upload_modal.edit_media": "Përpunoni media",
"upload_modal.hint": "Që të zgjidhni pikën vatrore e cila do të jetë përherë e dukshme në krejt miniaturat, klikojeni ose tërhiqeni rrethin te paraparja.",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "Paraparje ({ratio})",
"upload_progress.label": "Po ngarkohet…",
"video.close": "Mbylle videon",