From ad73d019861a6def98afa3a8696e56f5e978bf7b Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Wed, 7 Sep 2022 13:06:21 -0400 Subject: [PATCH] client: remove "Disable AiScript on Pages" setting In #49, the AiScript functionality was removed from pages as they've been simplified to a simple textarea. This setting now effectively does nothing as a result. Changelog: Removed --- locales/ar-SA.yml | 1 - locales/bn-BD.yml | 1 - locales/de-DE.yml | 1 - locales/en-US.yml | 1 - locales/es-ES.yml | 1 - locales/fr-FR.yml | 1 - locales/id-ID.yml | 1 - locales/it-IT.yml | 1 - locales/ja-JP.yml | 1 - locales/ja-KS.yml | 1 - locales/ko-KR.yml | 1 - locales/pl-PL.yml | 1 - locales/ro-RO.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 - packages/client/src/pages/settings/general.vue | 2 -- packages/client/src/store.ts | 4 ---- 21 files changed, 25 deletions(-) diff --git a/locales/ar-SA.yml b/locales/ar-SA.yml index 8e30b5d99..19b7833a0 100644 --- a/locales/ar-SA.yml +++ b/locales/ar-SA.yml @@ -504,7 +504,6 @@ sort: "ترتيب حسب" ascendingOrder: "تصاعدي" descendingOrder: "تنازلي" output: "الخارجة" -disablePagesScript: "عطّل AiScript في الصفحات" updateRemoteUser: "تحديث المعلومات عن المستخدم البعيد" deleteAllFiles: "حذف كافة الملفات" deleteAllFilesConfirm: "أتريد حذف كل الملفات؟" diff --git a/locales/bn-BD.yml b/locales/bn-BD.yml index 2d520a2e3..7229eac85 100644 --- a/locales/bn-BD.yml +++ b/locales/bn-BD.yml @@ -522,7 +522,6 @@ scratchpad: "স্ক্র্যাচপ্যাড" scratchpadDescription: "স্ক্র্যাচপ্যাড AiScript-এর জন্য একটি পরীক্ষামূলক পরিবেশ প্রদান করে। আপনি মিস্কির সাথে ইন্টারঅ্যাক্ট করে এমন কোড লিখতে, চালাতে এবং তার ফলাফল দেখতে পারেন।" output: "আউটপুট" script: "স্ক্রিপ্ট" -disablePagesScript: "পেজগুলোতে AiScript অক্ষম করুন" updateRemoteUser: "রিমোট ব্যবহারকারীর তথ্য আপডেট করুন" deleteAllFiles: "সকল ফাইল ডিলিট করুন" deleteAllFilesConfirm: "সকল ফাইল ডিলিট করতে চান?" diff --git a/locales/de-DE.yml b/locales/de-DE.yml index c84f6621f..1e10c5e98 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -523,7 +523,6 @@ scratchpad: "Testumgebung" scratchpadDescription: "Die Testumgebung bietet einen Bereich für AiScript-Experimente. Dort kannst du AiScript schreiben, ausführen sowie dessen Auswirkungen auf Misskey überprüfen." output: "Ausgabe" script: "Skript" -disablePagesScript: "AiScript auf Seiten deaktivieren" updateRemoteUser: "Benutzerinformationen aktualisieren" deleteAllFiles: "Alle Dateien löschen" deleteAllFilesConfirm: "Möchtest du wirklich alle Dateien löschen?" diff --git a/locales/en-US.yml b/locales/en-US.yml index 2c8734f87..ca99048bc 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -523,7 +523,6 @@ scratchpad: "Scratchpad" scratchpadDescription: "The Scratchpad provides an environment for AiScript experiments. You can write, execute, and check the results of it interacting with Misskey in it." output: "Output" script: "Script" -disablePagesScript: "Disable AiScript on Pages" updateRemoteUser: "Update remote user information" deleteAllFiles: "Delete all files" deleteAllFilesConfirm: "Are you sure that you want to delete all files?" diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 60d709ed6..002a3b305 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -522,7 +522,6 @@ scratchpad: "Scratch pad" scratchpadDescription: "Scratchpad proporciona un entorno experimental para AiScript. Puede escribir, ejecutar y verificar los resultados que interactúan con Misskey." output: "Salida" script: "Script" -disablePagesScript: "Deshabilitar AiScript en Páginas" updateRemoteUser: "Actualizar información de usuario remoto" deleteAllFiles: "Borrar todos los archivos" deleteAllFilesConfirm: "¿Desea borrar todos los archivos?" diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index f6835903f..0ae13945d 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -519,7 +519,6 @@ scratchpad: "ScratchPad" scratchpadDescription: "ScratchPad fournit un environnement expérimental pour AiScript. Vous pouvez vérifier la rédaction de votre code, sa bonne exécution et le résultat de son interaction avec Misskey." output: "Sortie" script: "Script" -disablePagesScript: "Désactiver AiScript sur les Pages" updateRemoteUser: "Mettre à jour les informations de l’utilisateur·rice distant·e" deleteAllFiles: "Supprimer tous les fichiers" deleteAllFilesConfirm: "Êtes-vous sûr·e de vouloir supprimer tous les fichiers ?" diff --git a/locales/id-ID.yml b/locales/id-ID.yml index 3f465e9b3..ff439ceb4 100644 --- a/locales/id-ID.yml +++ b/locales/id-ID.yml @@ -522,7 +522,6 @@ scratchpad: "Scratchpad" scratchpadDescription: "Scratchpad menyediakan lingkungan eksperimen untuk AiScript. Kamu bisa menulis, mengeksuksi, serta mengecek hasil yang berinteraksi dengan Misskey." output: "Keluaran" script: "Script" -disablePagesScript: "Nonaktifkan script pada halaman" updateRemoteUser: "Perbaharui informasi pengguna luar" deleteAllFiles: "Hapus semua berkas" deleteAllFilesConfirm: "Apakah kamu yakin ingin menghapus semua berkas?" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index a15660565..3da0d0fb4 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -518,7 +518,6 @@ scratchpad: "ScratchPad" scratchpadDescription: "Lo Scratchpad offre un ambiente per esperimenti di AiScript. È possibile scrivere, eseguire e confermare i risultati dell'interazione del codice con Misskey." output: "Uscita" script: "Script" -disablePagesScript: "Disabilita AiScript nelle pagine" updateRemoteUser: "Aggiornare le informazioni di utente remot@" deleteAllFiles: "Elimina tutti i file" deleteAllFilesConfirm: "Vuoi davvero eliminare tutti i file?" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 95d2868ed..acf0fff4f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -523,7 +523,6 @@ scratchpad: "スクラッチパッド" scratchpadDescription: "スクラッチパッドは、AiScriptの実験環境を提供します。Misskeyと対話するコードの記述、実行、結果の確認ができます。" output: "出力" script: "スクリプト" -disablePagesScript: "Pagesのスクリプトを無効にする" updateRemoteUser: "リモートユーザー情報の更新" deleteAllFiles: "すべてのファイルを削除" deleteAllFilesConfirm: "すべてのファイルを削除しますか?" diff --git a/locales/ja-KS.yml b/locales/ja-KS.yml index 384cc6d52..cc19369e5 100644 --- a/locales/ja-KS.yml +++ b/locales/ja-KS.yml @@ -507,7 +507,6 @@ scratchpad: "スクラッチパッド" scratchpadDescription: "スクラッチパッドではAiScriptを色々試すことができるんや。Misskeyに対して色々できるコードを書いて動かしてみたり、結果を見たりできるで。" output: "出力" script: "スクリプト" -disablePagesScript: "Pagesのスクリプトを無効にしてや" updateRemoteUser: "リモートユーザー情報の更新してくれん?" deleteAllFiles: "すべてのファイルを削除" deleteAllFilesConfirm: "ホンマにすべてのファイルを削除するん?消したもんはもう戻ってこんのやで?" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 3f8a46bba..da3977d91 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -522,7 +522,6 @@ scratchpad: "스크래치 패드" scratchpadDescription: "스크래치 패드는 AiScript 의 테스트 환경을 제공합니다. Misskey 와 상호 작용하는 코드를 작성, 실행 및 결과를 확인할 수 있습니다." output: "출력" script: "스크립트" -disablePagesScript: "Pages 에서 AiScript 를 사용하지 않음" updateRemoteUser: "리모트 유저 정보 갱신" deleteAllFiles: "모든 파일 삭제" deleteAllFilesConfirm: "모든 파일을 삭제하시겠습니까?" diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index a9945b481..79e64b055 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -513,7 +513,6 @@ scratchpad: "Brudnopis" scratchpadDescription: "Brudnopis zawiera eksperymentalne środowisko dla AiScript. Możesz pisać, wykonywać i sprawdzać wyniki w interakcji z Misskey." output: "Wyjście" script: "Skrypt" -disablePagesScript: "Wyłącz AiScript na Stronach" updateRemoteUser: "Aktualizuj zdalne dane o użytkowniku" deleteAllFiles: "Usuń wszystkie pliki" deleteAllFilesConfirm: "Czy na pewno chcesz usunąć wszystkie pliki?" diff --git a/locales/ro-RO.yml b/locales/ro-RO.yml index 1655185d8..3d4d0e727 100644 --- a/locales/ro-RO.yml +++ b/locales/ro-RO.yml @@ -522,7 +522,6 @@ scratchpad: "Scratchpad" scratchpadDescription: "Scratchpad-ul oferă un mediu de experimentare în AiScript. Poți scrie, executa și verifica rezultatele acestuia interacționând cu Misskey în el." output: "Ieșire" script: "Script" -disablePagesScript: "Dezactivează AiScript în Pagini" updateRemoteUser: "Actualizează informațiile utilizatorului extern" deleteAllFiles: "Șterge toate fișierele" deleteAllFilesConfirm: "Ești sigur că vrei să ștergi toate fișierele?" diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index 640500e2b..ac26d88ee 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -522,7 +522,6 @@ scratchpad: "Когтеточка" scratchpadDescription: "«Когтеточка» — это место для опытов с AiScript. Здесь можно писать программы, взаимодействующие с Misskey, запускать и смотреть что из этого получается." output: "Выходы" script: "Скрипт" -disablePagesScript: "Отключить скрипты на «Страницах»" updateRemoteUser: "Обновить данные пользователя с его сервера" deleteAllFiles: "Удалить все файлы" deleteAllFilesConfirm: "Вы хотите удалить все файлы?" diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml index b7f4aba5e..267e0967b 100644 --- a/locales/sk-SK.yml +++ b/locales/sk-SK.yml @@ -522,7 +522,6 @@ scratchpad: "Zápisník" scratchpadDescription: "Zápisník poskytuje prostredia pre experimenty s AiScriptom. Môžete písať, spúšťať a skúšať vysledky pri interakcii s Misskey." output: "Výstup" script: "Skript" -disablePagesScript: "Vypnúť AiScript na stránkach" updateRemoteUser: "Aktualizovať informácie o vzdialenom účte" deleteAllFiles: "Odstrániť všetky súbory" deleteAllFilesConfirm: "Naozaj chcete odstrániť všetky súbory" diff --git a/locales/uk-UA.yml b/locales/uk-UA.yml index 9bffdf5a7..309e114af 100644 --- a/locales/uk-UA.yml +++ b/locales/uk-UA.yml @@ -522,7 +522,6 @@ scratchpad: "Чернетка" scratchpadDescription: "Scratchpad надає середовище для експериментів з AiScript. Ви можете писати, виконувати його і тестувати взаємодію з Misskey." output: "Вихід" script: "Скрипт" -disablePagesScript: "Вимкнути AiScript на Сторінках" updateRemoteUser: "Оновити інформацію про віддаленого користувача" deleteAllFiles: "Видалити всі файли" deleteAllFilesConfirm: "Ви дійсно хочете видалити всі файли?" diff --git a/locales/vi-VN.yml b/locales/vi-VN.yml index 02ac99856..1b0b342e8 100644 --- a/locales/vi-VN.yml +++ b/locales/vi-VN.yml @@ -522,7 +522,6 @@ scratchpad: "Scratchpad" scratchpadDescription: "Scratchpad cung cấp môi trường cho các thử nghiệm AiScript. Bạn có thể viết, thực thi và kiểm tra kết quả tương tác với Misskey trong đó." output: "Nguồn ra" script: "Kịch bản" -disablePagesScript: "Tắt AiScript trên Trang" updateRemoteUser: "Cập nhật thông tin người dùng ở máy chủ khác" deleteAllFiles: "Xóa toàn bộ tập tin" deleteAllFilesConfirm: "Bạn có chắc xóa toàn bộ tập tin?" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index a85cee466..3a11ef032 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -522,7 +522,6 @@ scratchpad: "AiScript控制台" scratchpadDescription: "AiScript控制台为AiScript提供了实验环境。您可以编写代码以与Misskey交互,运行它并查看结果。" output: "输出" script: "脚本" -disablePagesScript: "禁用页面脚本" updateRemoteUser: "更新远程用户信息" deleteAllFiles: "删除所有文件" deleteAllFilesConfirm: "要删除所有文件吗?" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index dae242b3c..c0091bcfc 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -522,7 +522,6 @@ scratchpad: "暫存記憶體" scratchpadDescription: "AiScript控制台為AiScript提供了實驗環境。您可以在此編寫、執行和確認代碼與Misskey互動的结果。" output: "輸出" script: "腳本" -disablePagesScript: "停用頁面的AiScript腳本" updateRemoteUser: "更新遠端使用者資訊" deleteAllFiles: "刪除所有檔案" deleteAllFilesConfirm: "要删除所有檔案嗎?" diff --git a/packages/client/src/pages/settings/general.vue b/packages/client/src/pages/settings/general.vue index f97487f33..7400c6fd0 100644 --- a/packages/client/src/pages/settings/general.vue +++ b/packages/client/src/pages/settings/general.vue @@ -27,7 +27,6 @@ {{ i18n.ts.openImageInNewTab }} {{ i18n.ts.enableInfiniteScroll }} {{ i18n.ts.useReactionPickerForContextMenu }} - {{ i18n.ts.disablePagesScript }} @@ -146,7 +145,6 @@ const disableShowingAnimatedImages = computed(defaultStore.makeGetterSetter('dis const loadRawImages = computed(defaultStore.makeGetterSetter('loadRawImages')); const imageNewTab = computed(defaultStore.makeGetterSetter('imageNewTab')); const nsfw = computed(defaultStore.makeGetterSetter('nsfw')); -const disablePagesScript = computed(defaultStore.makeGetterSetter('disablePagesScript')); const showFixedPostForm = computed(defaultStore.makeGetterSetter('showFixedPostForm')); const numberOfPageCache = computed(defaultStore.makeGetterSetter('numberOfPageCache')); const instanceTicker = computed(defaultStore.makeGetterSetter('instanceTicker')); diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index a592184fe..7f0855c5b 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -140,10 +140,6 @@ export const defaultStore = markRaw(new Storage('base', { where: 'device', default: false, }, - disablePagesScript: { - where: 'device', - default: false, - }, useOsNativeEmojis: { where: 'device', default: false,