From f53ff2089b6e9deb55691875c038684360ce9c4d Mon Sep 17 00:00:00 2001 From: Michcio Date: Tue, 9 Aug 2022 14:36:46 +0200 Subject: [PATCH] Remove all right click context menu functionality The context menus provided by Misskey, overriding the browser context menus on right click, were driving me very angry. This makes it much easier to copy image URLs or even just do a quick "Inspect element". Side victims: the reaction picker context menu feature. I never used it, so I am only guessing what it was doing, but since I removed the whole underlying mechanic, it only felt right to yeet the feature too. --- locales/ar-SA.yml | 1 - locales/bn-BD.yml | 1 - locales/de-DE.yml | 1 - locales/en-US.yml | 1 - locales/es-ES.yml | 2 - locales/fr-FR.yml | 1 - locales/id-ID.yml | 1 - locales/it-IT.yml | 2 - locales/ja-JP.yml | 1 - locales/ja-KS.yml | 1 - locales/ko-KR.yml | 1 - locales/pl-PL.yml | 1 - locales/ru-RU.yml | 1 - locales/sk-SK.yml | 1 - locales/uk-UA.yml | 1 - locales/vi-VN.yml | 1 - locales/zh-CN.yml | 1 - locales/zh-TW.yml | 1 - .../client/src/components/autocomplete.vue | 2 +- packages/client/src/components/drive.file.vue | 5 -- .../client/src/components/drive.folder.vue | 22 ----- packages/client/src/components/drive.vue | 7 +- packages/client/src/components/global/a.vue | 35 +------- packages/client/src/components/global/url.vue | 1 - .../client/src/components/media-video.vue | 1 - .../src/components/modal-page-window.vue | 33 +------ .../client/src/components/note-detailed.vue | 20 +---- packages/client/src/components/note.vue | 20 +---- .../client/src/components/page-window.vue | 23 ----- .../src/components/post-form-attaches.vue | 2 +- .../client/src/components/ui/context-menu.vue | 85 ------------------- packages/client/src/components/ui/menu.vue | 1 - packages/client/src/components/ui/modal.vue | 2 +- packages/client/src/components/ui/window.vue | 13 +-- packages/client/src/os.ts | 18 ---- .../client/src/pages/settings/general.vue | 2 - packages/client/src/store.ts | 4 - packages/client/src/ui/classic.vue | 35 +------- packages/client/src/ui/deck.vue | 8 -- packages/client/src/ui/deck/column.vue | 5 -- packages/client/src/ui/deck/main-column.vue | 26 +----- packages/client/src/ui/universal.vue | 25 +----- 42 files changed, 12 insertions(+), 403 deletions(-) delete mode 100644 packages/client/src/components/ui/context-menu.vue diff --git a/locales/ar-SA.yml b/locales/ar-SA.yml index 7197eb885..d8759c437 100644 --- a/locales/ar-SA.yml +++ b/locales/ar-SA.yml @@ -711,7 +711,6 @@ apply: "تطبيق" receiveAnnouncementFromInstance: "استلم إشعارات من هذا المثيل" emailNotification: "إشعارات البريد الكتروني" inChannelSearch: "ابحث عن قناة" -useReactionPickerForContextMenu: "افتح منتقي التفاعلات عند النقر بالزر الأيمن" typingUsers: "{users} يكتب(ون)..." jumpToSpecifiedDate: "انتقل إلى تاريخ محدد" showingPastTimeline: "أنت تستعرض حاليًا خيطًا زمنيًا قديمًا" diff --git a/locales/bn-BD.yml b/locales/bn-BD.yml index 09dcebc3d..f9c790b38 100644 --- a/locales/bn-BD.yml +++ b/locales/bn-BD.yml @@ -773,7 +773,6 @@ receiveAnnouncementFromInstance: "এই ইন্সট্যান্স থ emailNotification: "ইমেইল বিজ্ঞপ্তি" publish: "প্রকাশ" inChannelSearch: "চ্যানেলে খুঁজুন" -useReactionPickerForContextMenu: "রাইট ক্লিকের মাধ্যমে রিঅ্যাকশন পিকার খুলুন" typingUsers: "{users} লেখছে" jumpToSpecifiedDate: "একটি নির্দিষ্ট তারিখে যান" showingPastTimeline: "অতীতের টাইমলাইন দেখানো হচ্ছে" diff --git a/locales/de-DE.yml b/locales/de-DE.yml index e257b5bea..9041d9b28 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -793,7 +793,6 @@ receiveAnnouncementFromInstance: "Benachrichtigungen von dieser Instanz empfange emailNotification: "Email-Benachrichtigungen" publish: "Veröffentlichen" inChannelSearch: "In Kanal suchen" -useReactionPickerForContextMenu: "Reaktionsauswahl durch Rechtsklick öffnen" typingUsers: "{users} ist/sind am schreiben …" jumpToSpecifiedDate: "Zu bestimmtem Datum springen" showingPastTimeline: "Es wird eine alte Chronik angezeigt" diff --git a/locales/en-US.yml b/locales/en-US.yml index 8fa7acf9a..4c3ffed33 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -775,7 +775,6 @@ receiveAnnouncementFromInstance: "Receive notifications from this instance" emailNotification: "Email notifications" publish: "Publish" inChannelSearch: "Search in channel" -useReactionPickerForContextMenu: "Open reaction picker on right-click" typingUsers: "{users} is/are typing..." jumpToSpecifiedDate: "Jump to specific date" showingPastTimeline: "Currently displaying an old timeline" diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 2f34e08b1..7efdebf3d 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -776,8 +776,6 @@ receiveAnnouncementFromInstance: "Recibir notificaciones de la instancia" emailNotification: "Notificaciones por correo electrónico" publish: "Publicar" inChannelSearch: "Buscar en el canal" -useReactionPickerForContextMenu: "Haga clic con el botón derecho para abrir el menu\ - \ de reacciones" typingUsers: "{users} está escribiendo" jumpToSpecifiedDate: "Saltar a una fecha específica" showingPastTimeline: "Mostrar líneas de tiempo antiguas" diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index a86196ff4..3d81cb906 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -785,7 +785,6 @@ receiveAnnouncementFromInstance: "Recevoir les messages d'information de l'insta emailNotification: "Notifications par mail" publish: "Public" inChannelSearch: "Chercher dans le canal" -useReactionPickerForContextMenu: "Clic-droit pour ouvrir le panneau de réactions" typingUsers: "{users} est en train d'écrire" jumpToSpecifiedDate: "Se rendre à la date" showingPastTimeline: "Un fil ancien est affiché" diff --git a/locales/id-ID.yml b/locales/id-ID.yml index b6460cf45..0ead58b62 100644 --- a/locales/id-ID.yml +++ b/locales/id-ID.yml @@ -780,7 +780,6 @@ receiveAnnouncementFromInstance: "Terima pemberitahuan surel dari instansi ini" emailNotification: "Pemberitahuan surel" publish: "Terbitkan" inChannelSearch: "Cari di kanal" -useReactionPickerForContextMenu: "Buka pemilih reaksi dengan klik-kanan" typingUsers: "{users} sedang mengetik..." jumpToSpecifiedDate: "Loncat ke tanggal spesifik" showingPastTimeline: "Sedang menampilkan linimasa lama" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index 99c0a732f..4811ef947 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -762,8 +762,6 @@ receiveAnnouncementFromInstance: "Ricevi i messaggi informativi dall'istanza" emailNotification: "Eventi per notifiche via mail" publish: "Pubblico" inChannelSearch: "Cerca in canale" -useReactionPickerForContextMenu: "Cliccare sul tasto destro per aprire il pannello\ - \ di reazioni" typingUsers: "{users} sta(nno) scrivendo" jumpToSpecifiedDate: "Vai alla data " showingPastTimeline: "Stai visualizzando una vecchia timeline" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 6e821d051..49643928f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -721,7 +721,6 @@ receiveAnnouncementFromInstance: "インスタンスからのお知らせを受 emailNotification: "メール通知" publish: "公開" inChannelSearch: "チャンネル内検索" -useReactionPickerForContextMenu: "右クリックでリアクションピッカーを開く" typingUsers: "{users}が入力中" jumpToSpecifiedDate: "特定の日付にジャンプ" showingPastTimeline: "過去のタイムラインを表示しています" diff --git a/locales/ja-KS.yml b/locales/ja-KS.yml index 6da97b8f3..85af63c68 100644 --- a/locales/ja-KS.yml +++ b/locales/ja-KS.yml @@ -633,7 +633,6 @@ apply: "適用" receiveAnnouncementFromInstance: "インスタンスからのお知らせを受け取る" emailNotification: "メール通知" inChannelSearch: "チャンネル内検索" -useReactionPickerForContextMenu: "右クリックでリアクションピッカーを開くようにする" typingUsers: "{users}が今書きよるで" jumpToSpecifiedDate: "特定の日付にジャンプ" showingPastTimeline: "過去のタイムラインを表示してるで" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 4f8cac7cb..d1ad35d96 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -716,7 +716,6 @@ receiveAnnouncementFromInstance: "이 인스턴스의 알림을 이메일로 수 emailNotification: "메일 알림" publish: "게시" inChannelSearch: "채널에서 검색" -useReactionPickerForContextMenu: "우클릭하여 리액션 선택기 열기" typingUsers: "{users} 님이 입력하고 있어요.." jumpToSpecifiedDate: "특정 날짜로 이동" showingPastTimeline: "과거의 타임라인을 표시하고 있어요" diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index f6992463f..1812dbabd 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -737,7 +737,6 @@ receiveAnnouncementFromInstance: "Otrzymuj powiadomienia e-mail z tej instancji" emailNotification: "Powiadomienia e-mail" publish: "Publikuj" inChannelSearch: "Szukaj na kanale" -useReactionPickerForContextMenu: "Otwórz wybornik reakcji prawym kliknięciem" typingUsers: "{users} pisze(-ą)..." jumpToSpecifiedDate: "Przejdź do określonej daty" showingPastTimeline: "Obecnie wyświetla starą oś czasu" diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index 29046051a..13c8a9ef2 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -770,7 +770,6 @@ receiveAnnouncementFromInstance: "Получать оповещения с ин emailNotification: "Уведомления по электронной почте" publish: "Опубликовать" inChannelSearch: "Поиск по каналу" -useReactionPickerForContextMenu: "Открывать палитру реакций правой кнопкой" typingUsers: "Стук клавиш. Это {users}…" jumpToSpecifiedDate: "Перейти к заданной дате" showingPastTimeline: "Отображается старая лента" diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml index b8d7010ac..b079a8876 100644 --- a/locales/sk-SK.yml +++ b/locales/sk-SK.yml @@ -761,7 +761,6 @@ receiveAnnouncementFromInstance: "Prijať notifikácie z tohoto servera" emailNotification: "Emailové upozornenia" publish: "Zverejniť" inChannelSearch: "Hľadať v kanáli" -useReactionPickerForContextMenu: "Otvoriť výber reakcií na pravý klik" typingUsers: "{users} píše/u" jumpToSpecifiedDate: "Skočiť na konkrétny dátum" showingPastTimeline: "Práve vidíte starú časovú os" diff --git a/locales/uk-UA.yml b/locales/uk-UA.yml index 05dd7526a..95d29a969 100644 --- a/locales/uk-UA.yml +++ b/locales/uk-UA.yml @@ -768,7 +768,6 @@ receiveAnnouncementFromInstance: "Отримувати оповіщення з emailNotification: "Сповіщення електронною поштою" publish: "Опублікувати" inChannelSearch: "Пошук за каналом" -useReactionPickerForContextMenu: "Відкривати палітру реакцій правою кнопкою" typingUsers: "Стук клавіш. Це {users}…" goBack: "Назад" info: "Інформація" diff --git a/locales/vi-VN.yml b/locales/vi-VN.yml index dea9d3e07..77f94f523 100644 --- a/locales/vi-VN.yml +++ b/locales/vi-VN.yml @@ -767,7 +767,6 @@ receiveAnnouncementFromInstance: "Nhận thông báo từ máy chủ này" emailNotification: "Thông báo email" publish: "Đăng" inChannelSearch: "Tìm trong kênh" -useReactionPickerForContextMenu: "Nhấn chuột phải để mở bộ chọn biểu cảm" typingUsers: "{users} đang nhập…" jumpToSpecifiedDate: "Đến một ngày cụ thể" showingPastTimeline: "Hiện đang hiển thị dòng thời gian cũ" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index 7c6f6add3..fcd0308d4 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -717,7 +717,6 @@ receiveAnnouncementFromInstance: "从实例接收通知" emailNotification: "邮件通知" publish: "发布" inChannelSearch: "频道内搜索" -useReactionPickerForContextMenu: "单击右键打开回应工具栏" typingUsers: "{users}正在输入" jumpToSpecifiedDate: "跳转到特定日期" showingPastTimeline: "显示过去的时间线" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index 5edf676bd..2c17fca36 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -716,7 +716,6 @@ receiveAnnouncementFromInstance: "接收由本實例發出的電郵通知" emailNotification: "郵件通知" publish: "發佈" inChannelSearch: "頻道内搜尋" -useReactionPickerForContextMenu: "點擊右鍵開啟回應工具欄" typingUsers: "{users}輸入中..." jumpToSpecifiedDate: "跳轉到特定日期" showingPastTimeline: "顯示過往的時間線" diff --git a/packages/client/src/components/autocomplete.vue b/packages/client/src/components/autocomplete.vue index e1fd5693b..3e39eaa89 100644 --- a/packages/client/src/components/autocomplete.vue +++ b/packages/client/src/components/autocomplete.vue @@ -1,5 +1,5 @@