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": "Caută mai multe în profilul original",
"account.cancel_follow_request": "Anulați cererea de urmărire",
"account.direct": "Mesaj direct @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "Domeniu blocat",
"account.edit_profile": "Editați profilul",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "Promovați pe profil",
"account.follow": "Urmărește",
"account.followers": "Urmăritori",
@ -166,7 +168,9 @@
"empty_column.notifications": "Nu ai nici o notificare încă. Interacționează cu alții pentru a începe o conversație.",
"empty_column.public": "Nu este nimic aici! Scrie ceva public, sau urmărește alți utilizatori din alte instanțe pentru a porni fluxul",
"error.unexpected_crash.explanation": "Din cauza unei erori în codul nostru sau a unei probleme de compatibilitate cu navigatorul, această pagină nu a putut fi afișată corect.",
"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": "Încercați să reîmprospătați pagina. Dacă acest lucru nu ajută, este posibil să mai puteți folosi site-ul printr-un navigator diferit sau o aplicație nativă.",
"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": "Copiați stiva în clipboard",
"errors.unexpected_crash.report_issue": "Raportați o problemă",
"follow_request.authorize": "Autorizează",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "să dezactiveze zona de compunere/căutare",
"keyboard_shortcuts.up": "să mute mai sus în listă",
"lightbox.close": "Închide",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "Următorul",
"lightbox.previous": "Precedentul",
"lightbox.view_context": "Vizualizați contextul",
@ -260,6 +266,10 @@
"lists.edit.submit": "Schimbă titlul",
"lists.new.create": "Adaugă listă",
"lists.new.title_placeholder": "Titlu pentru noua listă",
"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": "Caută printre persoanele pe care le urmărești",
"lists.subheading": "Listele tale",
"load_pending": "{count, plural, one {# element nou} other {# elemente noi}}",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "Ascunde media",
"missing_indicator.label": "Nu a fost găsit",
"missing_indicator.sublabel": "Această resursă nu a putut fi găsită",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "Ascunzi notificările de la acest utilizator?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Aplicații mobile",
"navigation_bar.blocks": "Utilizatori blocați",
"navigation_bar.bookmarks": "Marcaje",
@ -298,6 +310,7 @@
"notification.own_poll": "Sondajul tău s-a sfârșit",
"notification.poll": "Un sondaj la care ai votat s-a sfârșit",
"notification.reblog": "{name} a impulsionat postarea ta",
"notification.status": "{name} just posted",
"notifications.clear": "Șterge notificările",
"notifications.clear_confirmation": "Ești sigur că vrei să ștergi permanent toate notificările?",
"notifications.column_settings.alert": "Notificări pe desktop",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "Impulsuri:",
"notifications.column_settings.show": "Arată în coloană",
"notifications.column_settings.sound": "Redă sunet",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "Toate",
"notifications.filter.boosts": "Impulsuri",
"notifications.filter.favourites": "Favorite",
"notifications.filter.follows": "Urmărește",
"notifications.filter.mentions": "Menționări",
"notifications.filter.polls": "Rezultate sondaj",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} notificări",
"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": "Închis",
"poll.refresh": "Reîmprospătează",
"poll.total_people": "{count, plural, one {# persoană} other {# persoane}}",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "Detectare text din imagine",
"upload_modal.edit_media": "Editați media",
"upload_modal.hint": "Faceţi clic sau trageţi cercul pe previzualizare pentru a alege punctul focal care va fi întotdeauna vizualizat pe toate miniaturile.",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "Previzualizare ({ratio})",
"upload_progress.label": "Se Încarcă...",
"video.close": "Închide video",