diff --git a/client/components/AddRemoveButton.jsx b/client/components/AddRemoveButton.jsx deleted file mode 100644 index 48be8664e7..0000000000 --- a/client/components/AddRemoveButton.jsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { useTranslation } from 'react-i18next'; - -import AddIcon from '../images/plus.svg'; -import RemoveIcon from '../images/minus.svg'; - -const AddRemoveButton = ({ type, onClick }) => { - const { t } = useTranslation(); - const alt = - type === 'add' - ? t('AddRemoveButton.AltAddARIA') - : t('AddRemoveButton.AltRemoveARIA'); - const Icon = type === 'add' ? AddIcon : RemoveIcon; - - return ( - - ); -}; - -AddRemoveButton.propTypes = { - type: PropTypes.oneOf(['add', 'remove']).isRequired, - onClick: PropTypes.func.isRequired -}; - -export default AddRemoveButton; diff --git a/client/components/NavBasic.jsx b/client/components/NavBasic.jsx deleted file mode 100644 index 2eda24dcf6..0000000000 --- a/client/components/NavBasic.jsx +++ /dev/null @@ -1,52 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import { withTranslation } from 'react-i18next'; - -import LogoIcon from '../images/p5js-logo-small.svg'; -import ArrowIcon from '../images/triangle-arrow-left.svg'; - -class NavBasic extends React.PureComponent { - static defaultProps = { - onBack: null - }; - - render() { - return ( - - ); - } -} - -NavBasic.propTypes = { - onBack: PropTypes.func, - t: PropTypes.func.isRequired -}; - -export default withTranslation()(NavBasic); diff --git a/client/components/OverlayManager.jsx b/client/components/OverlayManager.jsx deleted file mode 100644 index 86a956a407..0000000000 --- a/client/components/OverlayManager.jsx +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { createPortal } from 'react-dom'; - -const OverlayManager = ({ overlay, hideOverlay }) => { - // const [visible, trigger, setRef] = useModalBehavior(); - - const jsx = ( - - {/*
- {visible && } -
*/} -
- ); - - return jsx && createPortal(jsx, document.body); -}; - -OverlayManager.propTypes = { - overlay: PropTypes.string, - hideOverlay: PropTypes.func.isRequired -}; - -OverlayManager.defaultProps = { overlay: null }; - -export default OverlayManager; diff --git a/client/constants.js b/client/constants.js index 608a31a0f9..a3fa163fb6 100644 --- a/client/constants.js +++ b/client/constants.js @@ -2,7 +2,6 @@ // multiple files export const UPDATE_FILE_CONTENT = 'UPDATE_FILE_CONTENT'; export const TOGGLE_SKETCH = 'TOGGLE_SKETCH'; - export const START_SKETCH = 'START_SKETCH'; export const STOP_SKETCH = 'STOP_SKETCH'; diff --git a/client/i18n-test.js b/client/i18n-test.js index 7e496be29b..de012269a6 100644 --- a/client/i18n-test.js +++ b/client/i18n-test.js @@ -1,6 +1,5 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; - import translations from '../translations/locales/en-US/translations.json'; i18n.use(initReactI18next).init({ diff --git a/translations/locales/be/translations.json b/translations/locales/be/translations.json index 04bf51f10a..5e34d38ef5 100644 --- a/translations/locales/be/translations.json +++ b/translations/locales/be/translations.json @@ -558,10 +558,6 @@ "35Seconds": "35 সেকেন্ড আগে", "Ago": "{{timeAgo}} আগে" }, - "AddRemoveButton": { - "AltAddARIA": "সংগ্রহে যোগ করুন", - "AltRemoveARIA": "সংগ্রহ থেকে সরান" - }, "CopyableInput": { "CopiedARIA": "ক্লিপবোর্ডে কপি করা হয়েছে!", "OpenViewTabARIA": "{{label}} দেখুন নতুন ট্যাবে" @@ -597,14 +593,6 @@ "On": "চালু", "Off": "বন্ধ" }, - "MobileIDEView": { - "Preferences": "পছন্দ", - "MyStuff": "আমার জিনিসপত্র", - "Examples": "উদাহরণ", - "OriginalEditor": "মৌলিক এডিটর", - "Login": "লগইন", - "Logout": "লগআউট" - }, "MobileDashboardView": { "Examples": "উদাহরণ", "Sketches": "স্কেচগুলি", diff --git a/translations/locales/de/translations.json b/translations/locales/de/translations.json index 3de3152788..3af09022a8 100644 --- a/translations/locales/de/translations.json +++ b/translations/locales/de/translations.json @@ -552,10 +552,6 @@ "35Seconds": "vor 35 Sekunden", "Ago": "vor {{timeAgo}}" }, - "AddRemoveButton": { - "AltAddARIA": "Zur Sammlung hinzufügen", - "AltRemoveARIA": "Aus Sammlung entfernen" - }, "CopyableInput": { "CopiedARIA": "In die Zwischenablage kopiert", "OpenViewTabARIA": "Öffne {{label}} in neuem Tab" @@ -590,14 +586,6 @@ "On": "An", "Off": "Aus" }, - "MobileIDEView": { - "Preferences": "Einstellungen", - "MyStuff": "Mein Zeug", - "Examples": "Beispiele", - "OriginalEditor": "Original-Editor", - "Login": "Anmelden", - "Logout": "Abmelden" - }, "MobileDashboardView": { "Examples": "Beispiele", "Sketches": "Sketche", diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index d227418ba7..8de29d333c 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -563,10 +563,6 @@ "35Seconds": "35 seconds ago", "Ago": "{{timeAgo}} ago" }, - "AddRemoveButton": { - "AltAddARIA": "Add to collection", - "AltRemoveARIA": "Remove from collection" - }, "CopyableInput": { "CopiedARIA": "Copied to Clipboard!", "OpenViewTabARIA": "Open {{label}} view in new tab" @@ -602,14 +598,6 @@ "On": "On", "Off": "Off" }, - "MobileIDEView":{ - "Preferences": "Preferences", - "MyStuff": "My Stuff", - "Examples": "Examples", - "OriginalEditor": "Original Editor", - "Login": "Login", - "Logout": "Logout" - }, "MobileDashboardView": { "Examples": "Examples", "Sketches": "Sketches", diff --git a/translations/locales/es-419/translations.json b/translations/locales/es-419/translations.json index 778787d8cb..b8993276d7 100644 --- a/translations/locales/es-419/translations.json +++ b/translations/locales/es-419/translations.json @@ -551,10 +551,6 @@ "35Seconds": "hace 35 segundos", "Ago": "hace {{timeAgo}}" }, - "AddRemoveButton": { - "AltAddARIA": "Agregar a colección", - "AltRemoveARIA": "Remover de colección" - }, "CopyableInput": { "CopiedARIA": "¡Copiado en el portapapeles!", "OpenViewTabARIA": "Abrir la vista {{label}} en nueva pestaña" @@ -589,14 +585,6 @@ "On": "Activar", "Off": "Desactivar" }, - "MobileIDEView":{ - "Preferences": "Preferencias", - "MyStuff": "Mis cosas", - "Examples": "Ejemplos", - "OriginalEditor": "Editor Original", - "Login": "Ingresa", - "Logout": "Cerrar sesión" - }, "MobileDashboardView": { "Examples": "Ejemplos", "Sketches": "Bosquejos", diff --git a/translations/locales/fr-CA/translations.json b/translations/locales/fr-CA/translations.json index c0674490f0..89d5e0c6c9 100644 --- a/translations/locales/fr-CA/translations.json +++ b/translations/locales/fr-CA/translations.json @@ -554,10 +554,6 @@ "35Seconds": "Il y a 35 secondes", "Ago": "Il y a {{timeAgo}}" }, - "AddRemoveButton": { - "AltAddARIA": "Ajouter à la collection", - "AltRemoveARIA": "Supprimer de la collection" - }, "CopyableInput": { "CopiedARIA": "Copié dans le presse-papiers!", "OpenViewTabARIA": "Ouvrir la fenêtre {{label}} dans un nouvel onglet" @@ -592,14 +588,6 @@ "On": "Activé", "Off": "Désactivé" }, - "MobileIDEView":{ - "Preferences": "Préférences", - "MyStuff": "Mes trucs", - "Examples": "Exemples", - "OriginalEditor": "Éditeur original", - "Login": "Se connecter", - "Logout": "Se déconnecter" - }, "MobileDashboardView": { "Examples": "Exemples", "Sketches": "Croquis", diff --git a/translations/locales/hi/translations.json b/translations/locales/hi/translations.json index 195dad061e..b2d7fd59bd 100644 --- a/translations/locales/hi/translations.json +++ b/translations/locales/hi/translations.json @@ -563,10 +563,6 @@ "35Seconds": "३५ सेकंड पहले", "Ago": "{{timeAgo}} पहले" }, - "AddRemoveButton": { - "AltAddARIA": "संग्रह में जोड़ें", - "AltRemoveARIA": "संग्रह से हटाएं" - }, "CopyableInput": { "CopiedARIA": "क्लिपबोर्ड पर कॉपी किया!", "OpenViewTabARIA": "{{label}} व्यू नए टैब में खोलें" @@ -602,14 +598,6 @@ "On": "ऑन", "Off": "औफ" }, - "MobileIDEView":{ - "Preferences": "प्राथमिकता", - "MyStuff": "मेरे वस्तु", - "Examples": "उदाहरण", - "OriginalEditor": "ओरिजिनल एडिटर", - "Login": "लॉग इन", - "Logout": "लॉग आउट" - }, "MobileDashboardView": { "Examples": "उदाहरण", "Sketches": "स्केच", diff --git a/translations/locales/it/translations.json b/translations/locales/it/translations.json index 00f5c55dbc..54eeaeca8d 100644 --- a/translations/locales/it/translations.json +++ b/translations/locales/it/translations.json @@ -554,10 +554,6 @@ "35Seconds": "35 secondi fa", "Ago": "{{timeAgo}} fa" }, - "AddRemoveButton": { - "AltAddARIA": "Aggiungi alla collezione", - "AltRemoveARIA": "Remove from collezione" - }, "CopyableInput": { "CopiedARIA": "Copiato negli appunti!", "OpenViewTabARIA": "Apri {{label}} vista in nuova pagina" @@ -592,14 +588,6 @@ "On": "On", "Off": "Off" }, - "MobileIDEView":{ - "Preferences": "Preferenze", - "MyStuff": "Le mie cose", - "Examples": "Esempi", - "OriginalEditor": "Editor originale", - "Login": "Accedi", - "Logout": "Disconnetti" - }, "MobileDashboardView": { "Examples": "Esempi", "Sketches": "Sketch", diff --git a/translations/locales/ja/translations.json b/translations/locales/ja/translations.json index 9c531d2397..04ea7e5ce3 100644 --- a/translations/locales/ja/translations.json +++ b/translations/locales/ja/translations.json @@ -552,10 +552,6 @@ "35Seconds": "35秒前", "Ago": "{{timeAgo}}前" }, - "AddRemoveButton": { - "AltAddARIA": "コレクションへ追加", - "AltRemoveARIA": "コレクションから削除" - }, "CopyableInput": { "CopiedARIA": "クリップボードへコピーしました!", "OpenViewTabARIA": "新しいタブで {{label}} ビューを開く" @@ -590,14 +586,6 @@ "On": "オン", "Off": "オフ" }, - "MobileIDEView":{ - "Preferences": "設定", - "MyStuff": "マイスタッフ", - "Examples": "サンプル", - "OriginalEditor": "オリジナルエディター", - "Login": "ログイン", - "Logout": "ログアウト" - }, "MobileDashboardView": { "Examples": "サンプル", "Sketches": "スケッチ", diff --git a/translations/locales/ko/translations.json b/translations/locales/ko/translations.json index 10b08db43e..b1fe4c88d5 100644 --- a/translations/locales/ko/translations.json +++ b/translations/locales/ko/translations.json @@ -539,10 +539,6 @@ "35Seconds": "35 seconds ago", "Ago": "{{timeAgo}} ago" }, - "AddRemoveButton": { - "AltAddARIA": "Add to collection", - "AltRemoveARIA": "Remove from collection" - }, "CopyableInput": { "CopiedARIA": "Copied to Clipboard!", "OpenViewTabARIA": "Open {{label}} view in new tab" @@ -577,14 +573,6 @@ "On": "On", "Off": "Off" }, - "MobileIDEView":{ - "Preferences": "Preferences", - "MyStuff": "My Stuff", - "Examples": "Examples", - "OriginalEditor": "Original Editor", - "Login": "Login", - "Logout": "Logout" - }, "MobileDashboardView": { "Examples": "Examples", "Sketches": "Sketches", diff --git a/translations/locales/pt-BR/translations.json b/translations/locales/pt-BR/translations.json index 44c0f5053a..d5b4515c06 100644 --- a/translations/locales/pt-BR/translations.json +++ b/translations/locales/pt-BR/translations.json @@ -551,10 +551,6 @@ "35Seconds": "35 segundos atrás", "Ago": "{{timeAgo}} atrás" }, - "AddRemoveButton": { - "AltAddARIA": "Adicionar à coleção", - "AltRemoveARIA": "Remover da coleção" - }, "CopyableInput": { "CopiedARIA": "Copiado para a Área de Transferência!", "OpenViewTabARIA": "Abrir a vista {{label}} em nova aba" @@ -589,14 +585,6 @@ "On": "Ligado", "Off": "Desligado" }, - "MobileIDEView":{ - "Preferences": "Preferências", - "MyStuff": "Minhas Coisas", - "Examples": "Exemplos", - "OriginalEditor": "Editor Original", - "Login": "Entrar", - "Logout": "Sair" - }, "MobileDashboardView": { "Examples": "Exemplos", "Sketches": "Esboços", diff --git a/translations/locales/sv/translations.json b/translations/locales/sv/translations.json index a68b9aa7bf..d03c3d6522 100644 --- a/translations/locales/sv/translations.json +++ b/translations/locales/sv/translations.json @@ -551,10 +551,6 @@ "35Seconds": "för 35 sekunder sen", "Ago": "{{timeAgo}} sen" }, - "AddRemoveButton": { - "AltAddARIA": "Lägg till i samling", - "AltRemoveARIA": "Ta bort från samling" - }, "CopyableInput": { "CopiedARIA": "Kopierat till urklipp!", "OpenViewTabARIA": "Öppna {{label}}-vy i ny flik" @@ -589,14 +585,6 @@ "On": "På", "Off": "Av" }, - "MobileIDEView":{ - "Preferences": "Preferenser", - "MyStuff": "Mina saker", - "Examples": "Exempel", - "OriginalEditor": "Originaleditor", - "Login": "Logga in", - "Logout": "Logga ut" - }, "MobileDashboardView": { "Examples": "Exempel", "Sketches": "Sketcher", diff --git a/translations/locales/tr/translations.json b/translations/locales/tr/translations.json index 96183a0698..f846cc9072 100644 --- a/translations/locales/tr/translations.json +++ b/translations/locales/tr/translations.json @@ -555,10 +555,6 @@ "35Seconds": "35 saniye önce", "Ago": "{{timeAgo}} önce" }, - "AddRemoveButton": { - "AltAddARIA": "Koleksiyona ekle", - "AltRemoveARIA": "Koleksiyondan çıkar" - }, "CopyableInput": { "CopiedARIA": "Panoya kopyalandı!", "OpenViewTabARIA": "Yeni sekmede {{label}} görünümünü aç" @@ -593,14 +589,6 @@ "On": "Açık", "Off": "Kapalı" }, - "MobileIDEView": { - "Preferences": "Tercihler", - "MyStuff": "Benim Şeylerim", - "Examples": "Örnekler", - "OriginalEditor": "Orijinal Editör", - "Login": "Giriş Yap", - "Logout": "Çıkış Yap" - }, "MobileDashboardView": { "Examples": "Örnekler", "Sketches": "Eskizler", diff --git a/translations/locales/uk-UA/translations.json b/translations/locales/uk-UA/translations.json index 834c6867b4..56922c356c 100644 --- a/translations/locales/uk-UA/translations.json +++ b/translations/locales/uk-UA/translations.json @@ -553,10 +553,6 @@ "35Seconds": "35 секунд тому", "Ago": "{{timeAgo}} тому" }, - "AddRemoveButton": { - "AltAddARIA": "Додати в колекцію", - "AltRemoveARIA": "Видалити з колекції" - }, "CopyableInput": { "CopiedARIA": "Скопійовано в буфер обміну!", "OpenViewTabARIA": "Переглянути {{label}} у новій вкладці" @@ -591,14 +587,6 @@ "On": "Так", "Off": "Ні" }, - "MobileIDEView":{ - "Preferences": "Налаштування", - "MyStuff": "Мої матеріали", - "Examples": "Приклади", - "OriginalEditor": "Редактор", - "Login": "Увійти", - "Logout": "Вийти" - }, "MobileDashboardView": { "Examples": "Приклади", "Sketches": "Скетчі", diff --git a/translations/locales/ur/translations.json b/translations/locales/ur/translations.json index 289cc9fc29..07d79eef4d 100644 --- a/translations/locales/ur/translations.json +++ b/translations/locales/ur/translations.json @@ -552,10 +552,6 @@ "35Seconds": "35 سیکنڈ پہلے", "Ago": "{{timeAgo}} پہلے" }, - "AddRemoveButton": { - "AltAddARIA": "مجموعہ میں شامل کریں۔", - "AltRemoveARIA": "مجموعہ سے ہٹا دیں۔" - }, "CopyableInput": { "CopiedARIA": "کلپ بورڈ پر کاپی ہو گیا!", "OpenViewTabARIA": "کھولیں۔ {{label}} نئے ٹیب میں دیکھیں" @@ -591,14 +587,6 @@ "On": "پر", "Off": "بند" }, - "MobileIDEView": { - "Preferences": "ترجیحات", - "MyStuff": "میرا سامان", - "Examples": "مثالیں", - "OriginalEditor": "اصل ایڈیٹر", - "Login": "لاگ ان کریں", - "Logout": "لاگ آوٹ" - }, "MobileDashboardView": { "Examples": "مثالیں", "Sketches": "خاکے", diff --git a/translations/locales/zh-CN/translations.json b/translations/locales/zh-CN/translations.json index 2e4ef51eab..5c84680e65 100644 --- a/translations/locales/zh-CN/translations.json +++ b/translations/locales/zh-CN/translations.json @@ -554,10 +554,6 @@ "35Seconds": "35秒 以前", "Ago": "{{timeAgo}} 以前" }, - "AddRemoveButton": { - "AltAddARIA": "添加到集合", - "AltRemoveARIA": "从集合中移除" - }, "CopyableInput": { "CopiedARIA": "已复制到剪贴板!", "OpenViewTabARIA": "在新标签页中打开 {{label}} 视图" @@ -593,14 +589,6 @@ "On": "打开", "Off": "关闭" }, - "MobileIDEView":{ - "Preferences": "设置", - "MyStuff": "我的", - "Examples": "范例", - "OriginalEditor": "原编辑器", - "Login": "登陆", - "Logout": "登出" - }, "MobileDashboardView": { "Examples": "范例", "Sketches": "项目", diff --git a/translations/locales/zh-TW/translations.json b/translations/locales/zh-TW/translations.json index 14688d41c0..206e134911 100644 --- a/translations/locales/zh-TW/translations.json +++ b/translations/locales/zh-TW/translations.json @@ -554,10 +554,6 @@ "35Seconds": "35 秒前", "Ago": "{{timeAgo}} 前" }, - "AddRemoveButton": { - "AltAddARIA": "加入作品集", - "AltRemoveARIA": "從作品集中移除" - }, "CopyableInput": { "CopiedARIA": "複製到剪貼簿", "OpenViewTabARIA": "在新分頁中檢視 {{label}}" @@ -593,14 +589,6 @@ "On": "啟用", "Off": "停用" }, - "MobileIDEView":{ - "Preferences": "偏好設定", - "MyStuff": "我的資料", - "Examples": "範例", - "OriginalEditor": "原始的編輯器", - "Login": "登入", - "Logout": "登出" - }, "MobileDashboardView": { "Examples": "範例", "Sketches": "草稿",