diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index e1809d169..5e89d3daf 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -9,7 +9,6 @@ jobs: strategy: fail-fast: false matrix: - backend: [go] shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] shardTotal: [10] steps: @@ -40,8 +39,8 @@ jobs: - name: Run test build run: npm run test:build - - name: Run E2E against ${{ matrix.backend }}-ipfs - run: E2E_IPFSD_TYPE=${{ matrix.backend }} npm run test:e2e -- --repeat-each 10 --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} # run each test 10 times to ensure no flakiness + - name: Run E2E against Kubo + run: npm run test:e2e -- --repeat-each 10 --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} # run each test 10 times to ensure no flakiness - name: Generate nyc coverage report id: coverage diff --git a/README.md b/README.md index af73266b0..26f102b64 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The [latest release version](https://github.com/ipfs/ipfs-webui/releases/latest) The IPFS WebUI is a **work-in-progress**. Help us make it better! We use the issues on this repo to track the work. -The app uses [`ipfs-http-client`](https://github.com/ipfs/js-ipfs-http-client) to communicate with your local IPFS node. +The app uses [`kubo-rpc-client`](https://github.com/ipfs/js-kubo-rpc-client) to communicate with your local IPFS node. The app is built with [`create-react-app`](https://github.com/facebook/create-react-app). Please read the [docs](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents). @@ -147,27 +147,14 @@ Make sure `npm run build` is run before starting E2E tests: Default behavior can be tweaked via env variables below. -#### `E2E_IPFSD_TYPE` +#### `IPFS_GO_EXEC` -Variable named `E2E_IPFSD_TYPE` defines which IPFS backend should be used for end-to-end tests. +It is possible to test against arbitrary versions by tweaking `go-ipfs` in `devDependencies` section of `package.json` and applying the change via `npm i`. -CI setup of ipfs-webui repo runs tests against both JS and GO implementations: - -```sh -> E2E_IPFSD_TYPE=go npm run test:e2e # 'go' is the default if missing -> E2E_IPFSD_TYPE=js npm run test:e2e -``` - -##### Overriding versions - -It is possible to test against arbitrary versions by tweaking `ipfs` (js-ipfs) - and `go-ipfs` in `devDependencies` section of `package.json` and applying the change via `npm i` - -One can also override the binary used in e2e tests by providing a path to an alternative one via `IPFS_GO_EXEC` (or `IPFS_JS_EXEC`): +One can also override the binary used in e2e tests by providing a path to an alternative one via `IPFS_GO_EXEC`: ```sh > IPFS_GO_EXEC=$GOPATH/bin/ipfs npm run test:e2e -> E2E_IPFSD_TYPE=js IPFS_JS_EXEC=/path/to/jsipfs npm run test:e2e ``` #### `E2E_API_URL` @@ -265,8 +252,6 @@ You can read more on how we use Transifex and i18next in this app at [`docs/LOCA 1. If UI is materially different, update screenshots in `README.md` and on docs.ipfs.io [here](https://docs.ipfs.io/how-to/command-line-quick-start/#web-console) 1. Manually dispatch [ci.yml](https://github.com/ipfs/ipfs-webui/actions/workflows/ci.yml) workflow on `main` branch. This will create a new release. 1. If release is good enough for LTS, update the CID at projects that use ipfs-webui by submitting PR against below lines: - - ~js-ipfs: https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs-http-server/src/api/routes/webui.js#L5~ - - currently blocked by https://github.com/ipfs/ipfs-webui/issues/1730 - Kubo: https://github.com/ipfs/kubo/blob/master/core/corehttp/webui.go#L4 - IPFS Desktop: https://github.com/ipfs/ipfs-desktop/blob/main/package.json#L20 @@ -279,8 +264,6 @@ You can read more on how we use Transifex and i18next in this app at [`docs/LOCA 1. Wait for `vN.N.N` to [build on CI](https://github.com/ipfs/ipfs-webui/actions), and grab the CID produced from the tagged commit 1. Add release notes to https://github.com/ipfs/ipfs-webui/releases, use the tag and CID you created 1. If release is good enough for LTS, update the CID at projects that use ipfs-webui by submitting PR against below lines: - - ~js-ipfs: https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs-http-server/src/api/routes/webui.js#L5~ - - currently blocked by https://github.com/ipfs/ipfs-webui/issues/1730 - Kubo: https://github.com/ipfs/kubo/blob/master/core/corehttp/webui.go#L4 - IPFS Desktop: https://github.com/ipfs/ipfs-desktop/blob/master/package.json#L18 --> diff --git a/public/locales/ar/settings.json b/public/locales/ar/settings.json index 3c9842653..9c05dc37a 100644 --- a/public/locales/ar/settings.json +++ b/public/locales/ar/settings.json @@ -80,7 +80,6 @@ "false": "إيقاف" }, "fetchingSettings": "جارٍ جلب الإعدادات ...", - "configApiNotAvailable": "API تكوين IPFS غير متوفر. الرجاء تعطيل ملحق الويب \"IPFS Companion\" وإعادة المحاولة.", "ipfsDaemonOffline": "البرنامج الخفي لـ IPFS غير متصل. يرجى تشغيله وإعادة المحاولة.", "settingsUnavailable": "الإعدادات غير متاحة. يرجى التحقق من تشغيل البرنامج الخفي الخاص بـ IPFS.", "settingsHaveChanged": "تم تغيير الإعدادات ؛ يرجى النقر فوق <1> إعادة تعيين لتحديث محتويات المحرر.", diff --git a/public/locales/cs/settings.json b/public/locales/cs/settings.json index 4add2e316..ef07ca390 100644 --- a/public/locales/cs/settings.json +++ b/public/locales/cs/settings.json @@ -80,7 +80,6 @@ "false": "Vypnout" }, "fetchingSettings": "Získávání nastavení...", - "configApiNotAvailable": "IPFS API nastavení není dostupný. Prosím vypněte rozšíření \"IFPS Companion\" a zkuste to znovu.", "ipfsDaemonOffline": "Démon IPFS je offline. Zapněte jej a zkuste to znovu.", "settingsUnavailable": "Nastavení není dostupný. Prosím zkontrolujte zdali běží IPFS služba.", "settingsHaveChanged": "Nastavení se změnilo; kliknutím na <1>Obnovit aktualizujte obsah editoru.", diff --git a/public/locales/da/settings.json b/public/locales/da/settings.json index 4085a1c67..144fdc64f 100644 --- a/public/locales/da/settings.json +++ b/public/locales/da/settings.json @@ -15,7 +15,6 @@ "close": "Luk" }, "fetchingSettings": "Henter indstillinger...", - "configApiNotAvailable": "API'et til konfiguration af IPFS er utilgængelig. Venligst, fjern \"IPFS Kompagnon\" web-udvidelsen og prøv igen.", "ipfsDaemonOffline": "IPFS baggrunds-processen er offline. Forsøg at starte den og prøv igen.", "settingsUnavailable": "Indstillinger er ikke tilgængelige. Venligst, tjek at IPFS baggrunds-processen kører.", "settingsHaveChanged": "Indstillingerne er opdateret, venligst klik på <1>Nulstil for at opdatere editorens indhold.", diff --git a/public/locales/de/settings.json b/public/locales/de/settings.json index edac52e38..bb5609a81 100644 --- a/public/locales/de/settings.json +++ b/public/locales/de/settings.json @@ -80,7 +80,6 @@ "false": "Aus" }, "fetchingSettings": "Einstellungen werden geladen...", - "configApiNotAvailable": "Die API zur IPFS-Konfigurations ist nicht verfügbar. Bitte deaktiviere die Browser-Erweiterung \"IPFS Companion\" und versuche es erneut.", "ipfsDaemonOffline": "Der IPFS Daemon ist offline. Bitte starten Sie ihn und versuchen es erneut.", "settingsUnavailable": "Einstellungen nicht verfügbar. Bitte überprüfe, ob Dein IPFS-Daemon läuft.", "settingsHaveChanged": "Die Einstellungen haben sich geändert. Bitte klicke auf <1>Zurücksetzen, um den Inhalt des Editors zu aktualisieren.", diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json index 41f1245e9..b879cb417 100644 --- a/public/locales/en/settings.json +++ b/public/locales/en/settings.json @@ -80,7 +80,6 @@ "false": "Off" }, "fetchingSettings": "Fetching settings...", - "configApiNotAvailable": "The IPFS config API is not available. Please disable the \"IPFS Companion\" Web Extension and try again.", "ipfsDaemonOffline": "The IPFS daemon is offline. Please turn it on and try again.", "settingsUnavailable": "Settings not available. Please check your IPFS daemon is running.", "settingsHaveChanged": "The settings have changed; please click <1>Reset to update the editor contents.", diff --git a/public/locales/es/settings.json b/public/locales/es/settings.json index fd2112370..03bcd99b3 100644 --- a/public/locales/es/settings.json +++ b/public/locales/es/settings.json @@ -13,7 +13,6 @@ "apiDescription": "<0>If your node is configured with a <1>custom API address, including a port other than the default 5001, enter it here.", "cliDescription": "<0>Enable this option to display a \"view code\" <1> icon next to common IPFS commands. Clicking it opens a modal with that command's CLI code, so you can paste it into the IPFS command-line interface in your terminal.", "fetchingSettings": "Recuperando ajustes...", - "configApiNotAvailable": "La API de configuración de IPFS no está disponible. Desactive la Extensión Web \"IPFS Companion\" e inténtelo de nuevo.", "ipfsDaemonOffline": "El demonio IPFS está fuera de línea. Enciéndalo e intente nuevamente.", "settingsUnavailable": "Configuración no disponible. Por favor, compruebe que su servicio IPFS se está ejecutando.", "settingsHaveChanged": "La configuración ha cambiado; haga clic en <1>Restablecer para actualizar el contenido del editor. ", diff --git a/public/locales/fr/settings.json b/public/locales/fr/settings.json index cbc405b39..84a3ff4bf 100644 --- a/public/locales/fr/settings.json +++ b/public/locales/fr/settings.json @@ -80,7 +80,6 @@ "false": "Éteint" }, "fetchingSettings": "Récupération des paramètres...", - "configApiNotAvailable": "L'API de configuration IPFS n'est pas disponible. Merci de désactiver l'extension IPFS Companion et de réessayer.", "ipfsDaemonOffline": "Le daemon IPFS est hors-ligne. Merci de le relancer.", "settingsUnavailable": "Paramètres non disponibles. Merci de vérifier que votre daemon IPFS est en cours d'exécution.", "settingsHaveChanged": "Les paramètres ont changé. Cliquez sur <1>Réinitialiser pour mettre à jour l'éditeur de contenu.", diff --git a/public/locales/id/settings.json b/public/locales/id/settings.json index 0843dfaf3..63e771d79 100644 --- a/public/locales/id/settings.json +++ b/public/locales/id/settings.json @@ -80,7 +80,6 @@ "false": "Mati" }, "fetchingSettings": "Mengambil setelan...", - "configApiNotAvailable": "API konfigurasi IPFS tidak tersedia. Harap nonaktifkan Ekstensi Web \"Sahabat IPFS\" dan coba lagi.", "ipfsDaemonOffline": "Daemon IPFS sedang offline. Harap aktifkan dan coba lagi.", "settingsUnavailable": "Pengaturan tidak tersedia. Silakan periksa daemon IPFS Anda sedang berjalan.", "settingsHaveChanged": "Pengaturan telah berubah; silakan klik <1>Reset untuk memperbarui konten editor.", diff --git a/public/locales/it/settings.json b/public/locales/it/settings.json index 00d5b39c8..e022a6945 100644 --- a/public/locales/it/settings.json +++ b/public/locales/it/settings.json @@ -80,7 +80,6 @@ "false": "Off" }, "fetchingSettings": "Recupero delle impostazioni...", - "configApiNotAvailable": "L'IPFS config API non è disponibile. Per favore, disabilita l'estensione web \"IPFS Companion\" e riprova.", "ipfsDaemonOffline": "Il demone IPFS è offline. Per favore, avvialo e riprova.", "settingsUnavailable": "Impostazioni non disponibili. Per favore, controlla che il tuo demone IPFS sia attivo.", "settingsHaveChanged": "Le impostazioni sono cambiate; per favore, clicca <1>Ripristina per aggiornare il contenuto dell'editor.", diff --git a/public/locales/ja-JP/settings.json b/public/locales/ja-JP/settings.json index 303a1d2f4..1fbf838ce 100644 --- a/public/locales/ja-JP/settings.json +++ b/public/locales/ja-JP/settings.json @@ -80,7 +80,6 @@ "false": "オフ" }, "fetchingSettings": "設定を読み込んでいます…", - "configApiNotAvailable": "IPFS設定APIが利用できません。拡張機能「IPFS Companion」を無効にして再度接続を試してください。", "ipfsDaemonOffline": "IPFSデーモンが起動していないようです。デーモンを起動して再度接続を試してください。", "settingsUnavailable": "設定を読み込めません。IPFSデーモンが起動していることを確認してください。", "settingsHaveChanged": "設定が変更されました。<1>リセットをクリックして編集しているファイルを再読み込みしてください。", diff --git a/public/locales/nl/settings.json b/public/locales/nl/settings.json index 3946a42db..41216c1f7 100644 --- a/public/locales/nl/settings.json +++ b/public/locales/nl/settings.json @@ -14,7 +14,6 @@ "close": "Sluiten" }, "fetchingSettings": "Bezig met ophalen van instellingen....", - "configApiNotAvailable": "De IPFS configuratie API is niet beschikbaar. Schakel de \"IPFS Compantion\" extensie uit en probeer opnieuw.", "settingsUnavailable": "Instellingen niet beschikbaar. Check of de IPFS daemon draait.", "settingsHaveChanged": "De instellingen zijn gewijzigd, klik <1>reset om de inhoud te verversen", "errorOccured": "Er is een fout opgereden tijdens het opslaan van de wijzigingen", diff --git a/public/locales/no/settings.json b/public/locales/no/settings.json index d5a0fc603..2ca00bb9f 100644 --- a/public/locales/no/settings.json +++ b/public/locales/no/settings.json @@ -15,7 +15,6 @@ "close": "Lukk" }, "fetchingSettings": "Henter innstillinger...", - "configApiNotAvailable": "IPFS sitt konfigurasjons API er ikke tilgjengelig. Vennligst deaktiver \"IPFS Companion\" Web extension, og prøv på nytt.", "ipfsDaemonOffline": "IPFS-daemon er offline. Vennligst skru den på og prøv på nytt.", "settingsUnavailable": "Innstillinger ikke tilgjengelig. Vennligst sjekk at din IPFS daemon kjører.", "settingsHaveChanged": "Innstillingene er endret, vennligst klikk <1>Tilbakestill for å oppdatere editor innholdet", diff --git a/public/locales/pl/settings.json b/public/locales/pl/settings.json index 4dd3f280d..2833bcd2a 100644 --- a/public/locales/pl/settings.json +++ b/public/locales/pl/settings.json @@ -80,7 +80,6 @@ "false": "Wyłączone" }, "fetchingSettings": "Pobieranie ustawień... \n", - "configApiNotAvailable": "API konfiguracji IPFS nie jest dostępne. Proszę wyłączyć rozszerzenie \"IPFS Companion\" i spróbować ponownie.", "ipfsDaemonOffline": "Demon IPFS jest w trybie offline. Proszę włączyć go i spróbować ponownie. ", "settingsUnavailable": "Ustawienia nie są dostępne. Proszę sprawdzić, czy demon IPFS jest uruchomiony.", "settingsHaveChanged": "Ustawienia uległy zmianie; proszę kliknąć <1>Resetuj t aby zaktualizować zawartość edytora.", diff --git a/public/locales/pt/settings.json b/public/locales/pt/settings.json index 7b08c2ad5..d4bc4fbbd 100644 --- a/public/locales/pt/settings.json +++ b/public/locales/pt/settings.json @@ -15,7 +15,6 @@ "close": "Fechar" }, "fetchingSettings": "A obter as configurações...", - "configApiNotAvailable": "A API de configuração do IPFS não está disponível. Por favor desative a extensão \"IPFS Companion\" e tente novamente.", "ipfsDaemonOffline": "O nó IPFS está offline. Por favor ative-o e tente novamente,", "settingsUnavailable": "As configurações não estão disponíveis. Confira, por favor, se o seu nó IPFS está em execução.", "settingsHaveChanged": "As configurações foram alteradas, por favor clique em <1>Começar de novo para atualizar os conteúdos do editor.", diff --git a/public/locales/ru/settings.json b/public/locales/ru/settings.json index 5126508b1..3d0431662 100644 --- a/public/locales/ru/settings.json +++ b/public/locales/ru/settings.json @@ -80,7 +80,6 @@ "false": "Выкл" }, "fetchingSettings": "Получение настроек...", - "configApiNotAvailable": "API настройки IPFS недоступно. Пожалуйста, отключите веб-расширение \"IPFS-компаньон\" и попробуйте снова.", "ipfsDaemonOffline": "Служба IPFS отключена. Пожалуйста, включите ее и попробуйте снова.", "settingsUnavailable": "Настройки недоступны. Убедитесь, что у вас запущена IPFS - служба.", "settingsHaveChanged": "Настройки были изменены; пожалуйста, нажмите <1>Сброс, чтобы обновить измененный контент.", diff --git a/public/locales/tr/settings.json b/public/locales/tr/settings.json index fda68143e..de90f8536 100644 --- a/public/locales/tr/settings.json +++ b/public/locales/tr/settings.json @@ -80,7 +80,6 @@ "false": "Kapalı" }, "fetchingSettings": "Ayarlar getiriliyor ...", - "configApiNotAvailable": "IPFS yapılandırma UPA'sı mevcut değildir. Lütfen \"IPFS Companion\" Web Uzantısını devre dışı bırakın ve tekrar deneyin.", "ipfsDaemonOffline": "IPFS arka plan programı çevrimdışı. Lütfen açın ve tekrar deneyin.", "settingsUnavailable": "Ayarlar mevcut değil. Lütfen IPFS daemonunuzun çalışıp çalışmadığını kontrol edin.", "settingsHaveChanged": "Ayarlar değişti; editör içeriğini güncellemek için lütfen <1>Sıfırla'yı tıklayın.", diff --git a/public/locales/zh-CN/settings.json b/public/locales/zh-CN/settings.json index 0aa7d9e53..f609b582d 100644 --- a/public/locales/zh-CN/settings.json +++ b/public/locales/zh-CN/settings.json @@ -80,7 +80,6 @@ "false": "关" }, "fetchingSettings": "拉取配置中 ...", - "configApiNotAvailable": "IPFS 配置 API 不可用。请禁用 \"IPFS 伴侣\" 浏览器插件并重试。", "ipfsDaemonOffline": "IPFS 守护进程处于离线状态,请使其在线并重试。", "settingsUnavailable": "配置不可用,请检查你的 IPFS 守护进程是否还在运行。", "settingsHaveChanged": "配置已经改变,请单击 <1>重置 按钮刷新编辑器中的内容。", diff --git a/public/locales/zh-TW/settings.json b/public/locales/zh-TW/settings.json index 055708373..c5896b8e4 100644 --- a/public/locales/zh-TW/settings.json +++ b/public/locales/zh-TW/settings.json @@ -80,7 +80,6 @@ "false": "關閉" }, "fetchingSettings": "正在擷取設定...", - "configApiNotAvailable": "IPFS 設定 API 無法使用。請停用「IPFS 小幫手」網頁擴充功能並再試一次。", "ipfsDaemonOffline": "IPFS Daemon 已離線。請開啟並再試一次。", "settingsUnavailable": "設定無法使用。請檢查你的 IPFS Daemon 是否正在執行。", "settingsHaveChanged": "設定已經變更,請按<1>重設 更新編輯器內容。", diff --git a/src/bundles/config.js b/src/bundles/config.js index 16274940c..ce40cff20 100644 --- a/src/bundles/config.js +++ b/src/bundles/config.js @@ -76,13 +76,6 @@ bundle.selectBootstrapPeers = createSelector( (config) => config && config.Bootstrap ) -// TODO: this is a work-around for IPFS companion blocking the config API -// see: https://github.com/ipfs-shipyard/ipfs-companion/issues/454 -bundle.selectIsConfigBlocked = createSelector( - 'selectConfigRaw', - ({ errorType }) => errorType === 'Access to config.get API is globally blocked for window.ipfs' -) - // Fetch the config if we don't have it or it's more than `staleAfter` ms old bundle.reactConfigFetch = createSelector( 'selectConfigShouldUpdate', diff --git a/src/bundles/notify.js b/src/bundles/notify.js index 2df4d5339..7bd7ca256 100644 --- a/src/bundles/notify.js +++ b/src/bundles/notify.js @@ -139,7 +139,7 @@ const notify = { const { eventId, code } = notify if (eventId === 'STATS_FETCH_FAILED') { - return provider === 'window.ipfs' ? 'windowIpfsRequestFailed' : 'ipfsApiRequestFailed' + return 'ipfsApiRequestFailed' } if (eventId === 'IPFS_CONNECT_FAILED') { return 'ipfsConnectFail' diff --git a/src/bundles/notify.test.js b/src/bundles/notify.test.js index 00eda5c3b..f879a09b9 100644 --- a/src/bundles/notify.test.js +++ b/src/bundles/notify.test.js @@ -9,7 +9,7 @@ const appTimeBundle = { selectAppTime: state => state.appTime } -const ipfsBundle = (provider = 'js-ipfs-api', opts) => { +const ipfsBundle = (provider = 'kubo', opts) => { return Object.assign({}, { name: 'ipfs', selectIpfsProvider: () => provider @@ -29,19 +29,6 @@ it('should notify about api stats fetch errors', async () => { expect(store.selectNotifyI18nKey()).toEqual('ipfsApiRequestFailed') }) -it('should notify about window.ipfs fetch errors', async () => { - const store = composeBundlesRaw( - appTimeBundle, - ipfsBundle('window.ipfs'), - notifyBundle - )() - expect(store.selectNotify().show).toEqual(false) - store.dispatch({ type: 'STATS_FETCH_FAILED' }) - expect(store.selectNotify().show).toEqual(true) - expect(store.selectNotify().error).toEqual(true) - expect(store.selectNotifyI18nKey()).toEqual('windowIpfsRequestFailed') -}) - it('should notify about connection returning after a previous error', async () => { const store = composeBundlesRaw( appTimeBundle, diff --git a/src/components/provider-link/ProviderLink.js b/src/components/provider-link/ProviderLink.js index e7141f3fe..31b4b95c0 100644 --- a/src/components/provider-link/ProviderLink.js +++ b/src/components/provider-link/ProviderLink.js @@ -1,17 +1,11 @@ import React from 'react' const providers = { - 'js-ipfs-api': { - url: 'https://github.com/ipfs/js-ipfs-api' - }, - 'js-ipfs': { - url: 'https://github.com/ipfs/js-ipfs' - }, - 'window.ipfs': { - url: 'https://github.com/ipfs-shipyard/ipfs-companion' - }, 'ipfs-companion': { - url: 'https://github.com/ipfs-shipyard/ipfs-companion' + url: 'https://github.com/ipfs/ipfs-companion' + }, + kubo: { + url: 'https://github.com/ipfs/kubo' } } diff --git a/src/components/version-link/VersionLink.js b/src/components/version-link/VersionLink.js index a394cac22..719be8a69 100644 --- a/src/components/version-link/VersionLink.js +++ b/src/components/version-link/VersionLink.js @@ -3,9 +3,6 @@ import React from 'react' const providers = { kubo: { url: 'https://github.com/ipfs/kubo' - }, - 'js-ipfs': { - url: 'https://github.com/ipfs/js-ipfs' } } diff --git a/src/files/FilesPage.js b/src/files/FilesPage.js index 9ccfd6f5f..bd8b547ee 100644 --- a/src/files/FilesPage.js +++ b/src/files/FilesPage.js @@ -217,7 +217,7 @@ const FilesPage = ({ { - if (isConfigBlocked) { - return ( -

- {t('configApiNotAvailable')} -

- ) - } else if (!isIpfsConnected) { +const SettingsInfo = ({ t, isIpfsConnected, hasExternalChanges, hasSaveFailed, hasSaveSucceded, isLoading, config }) => { + if (!isIpfsConnected) { return (

{t('ipfsDaemonOffline')} @@ -329,7 +322,7 @@ export class SettingsPageContainer extends React.Component { render () { const { - t, tReady, isConfigBlocked, ipfsConnected, configIsLoading, configLastError, configIsSaving, arePinningServicesSupported, + t, tReady, ipfsConnected, configIsLoading, configLastError, configIsSaving, arePinningServicesSupported, configSaveLastSuccess, configSaveLastError, isIpfsDesktop, analyticsEnabled, doToggleAnalytics, toursEnabled, handleJoyrideCallback, isCliTutorModeEnabled, doToggleCliTutorMode, ipfsPendingFirstConnection } = this.props @@ -344,7 +337,6 @@ export class SettingsPageContainer extends React.Component { tReady={tReady} isIpfsConnected={ipfsConnected} ipfsPendingFirstConnection={ipfsPendingFirstConnection} - isConfigBlocked={isConfigBlocked} isLoading={isLoading} isSaving={configIsSaving} arePinningServicesSupported={arePinningServicesSupported} @@ -377,7 +369,6 @@ export default connect( 'selectConfig', 'selectIpfsConnected', 'selectIpfsPendingFirstConnection', - 'selectIsConfigBlocked', 'selectConfigLastError', 'selectConfigIsLoading', 'selectConfigIsSaving', diff --git a/test/e2e/setup/ipfs-backend.js b/test/e2e/setup/ipfs-backend.js index 5fcf09028..68aeb8847 100644 --- a/test/e2e/setup/ipfs-backend.js +++ b/test/e2e/setup/ipfs-backend.js @@ -21,7 +21,7 @@ async function run (rpcPort) { ipfs = kuboRpcModule.create(endpoint) } else { // use ipfds-ctl to spawn daemon to expose http api used for e2e tests - const type = process.env.E2E_IPFSD_TYPE || 'go' + const type = 'go' const factory = Ctl.createFactory({ kuboRpcModule, type,