Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,39 +1,58 @@
import { Trans, useLingui } from "@lingui/react/macro";
import { COMPANY } from "@superset/shared/constants";
import { useRouter } from "expo-router";
import { CloudOff } from "lucide-react-native";
import { View } from "react-native";
import { Button } from "@/components/ui/button";
import { Icon } from "@/components/ui/icon";
import { Text } from "@/components/ui/text";
import { openUrl } from "@/lib/open-url";

const REMOTE_ACCESS_DOCS_URL = `${COMPANY.DOCS_URL}/remote-access`;

export function HostOfflineView({ hostName }: { hostName: string }) {
const { t } = useLingui();
const router = useRouter();
return (
<View className="flex-1 items-center justify-center gap-4 px-8">
<View className="flex-1 items-center justify-center gap-6 px-8">
<Icon
as={CloudOff}
className="text-muted-foreground size-12"
strokeWidth={1.25}
/>
<View className="items-center gap-1">
<Text className="text-lg font-semibold">
<View className="items-center gap-2">
<Text className="text-center text-lg font-semibold">
{t({
message: `${hostName} is offline`,
})}
</Text>
<Text className="text-center text-muted-foreground">
<Trans>Its workspaces will appear when it reconnects.</Trans>
</Text>
<View className="items-center gap-3">
<Text className="text-center text-sm leading-5 text-muted-foreground">
<Trans>Its workspaces will appear when it reconnects.</Trans>
</Text>
<Text className="text-center text-sm leading-5 text-muted-foreground">
<Trans>
First time here? Turn on Remote Access in the desktop app under
Settings → Remote Access.
</Trans>
</Text>
</View>
</View>
<View className="items-center gap-1">
<Button
variant="secondary"
onPress={() => router.push("/(authenticated)/(home)/filter/scope")}
>
<Text>
<Trans>Switch host</Trans>
</Text>
</Button>
<Button variant="link" onPress={() => openUrl(REMOTE_ACCESS_DOCS_URL)}>
<Text>
<Trans>Set up remote access</Trans>
</Text>
</Button>
</View>
<Button
variant="secondary"
onPress={() => router.push("/(authenticated)/(home)/filter/scope")}
>
<Text>
<Trans>Switch host</Trans>
</Text>
</Button>
</View>
);
}
6 changes: 6 additions & 0 deletions packages/i18n/locales/cs/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "hotovo · pracoval 7 s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "První zobrazení přihlášení → ověření → onboarding → skutečný pracovní prostor (posledních 7 d, okno 2 d)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Jste tu poprvé? Zapněte Vzdálený přístup v desktopové aplikaci v Nastavení → Vzdálený přístup."

msgid "First-ever pageview on superset.sh, daily"
msgstr "První zobrazení stránky na superset.sh vůbec, denně"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Nastavit projekt na {hostName}"
msgid "Set up project…"
msgstr "Nastavit projekt…"

msgid "Set up remote access"
msgstr "Nastavit vzdálený přístup"

msgid "Set up this project for Superset"
msgstr "Připravit tento projekt pro Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/de/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "fertig · 7 s gearbeitet"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Erste Anmeldeansicht → Auth → Onboarding → echter Arbeitsbereich (letzte 7 T., 2-T.-Fenster)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Zum ersten Mal hier? Aktiviere den Fernzugriff in der Desktop-App unter Einstellungen → Fernzugriff."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Allererster Seitenaufruf auf superset.sh, täglich"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Projekt auf {hostName} einrichten"
msgid "Set up project…"
msgstr "Projekt einrichten…"

msgid "Set up remote access"
msgstr "Fernzugriff einrichten"

msgid "Set up this project for Superset"
msgstr "Dieses Projekt für Superset einrichten"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "finished · worked for 7s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."

msgid "First-ever pageview on superset.sh, daily"
msgstr "First-ever pageview on superset.sh, daily"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Set up project on {hostName}"
msgid "Set up project…"
msgstr "Set up project…"

msgid "Set up remote access"
msgstr "Set up remote access"

msgid "Set up this project for Superset"
msgstr "Set up this project for Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/es/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "finalizado · trabajó 7 s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Primera vista de inicio de sesión → autenticación → introducción → espacio de trabajo real (últimos 7 d, ventana de 2 d)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "¿Primera vez aquí? Activa el acceso remoto en la app de escritorio, en Configuración → Acceso remoto."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Primera visita de página en superset.sh, a diario"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Configurar el proyecto en {hostName}"
msgid "Set up project…"
msgstr "Configurar el proyecto…"

msgid "Set up remote access"
msgstr "Configurar el acceso remoto"

msgid "Set up this project for Superset"
msgstr "Preparar este proyecto para Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "terminé · a travaillé 7 s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Première vue de connexion → auth → onboarding → espace de travail réel (7 derniers jours, fenêtre de 2 j)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Première fois ici ? Activez l'accès distant dans l'application de bureau, sous Paramètres → Accès distant."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Toute première page vue sur superset.sh, par jour"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Configurer le projet sur {hostName}"
msgid "Set up project…"
msgstr "Configurer le projet…"

msgid "Set up remote access"
msgstr "Configurer l'accès distant"

msgid "Set up this project for Superset"
msgstr "Configurer ce projet pour Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/id/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "selesai · bekerja 7 dtk"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Tampilan masuk pertama → auth → onboarding → workspace nyata (7h terakhir, jendela 2h)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Baru pertama kali? Aktifkan Akses Jarak Jauh di aplikasi desktop pada Pengaturan → Akses Jarak Jauh."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Tampilan halaman pertama kali di superset.sh, harian"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Siapkan proyek di {hostName}"
msgid "Set up project…"
msgstr "Siapkan proyek…"

msgid "Set up remote access"
msgstr "Siapkan akses jarak jauh"

msgid "Set up this project for Superset"
msgstr "Siapkan proyek ini untuk Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/it/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "terminato · ha lavorato per 7s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Prima schermata di accesso → autenticazione → onboarding → workspace reale (ultimi 7g, finestra 2g)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Prima volta qui? Attiva l'accesso remoto nell'app desktop in Impostazioni → Accesso remoto."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Prima visualizzazione in assoluto su superset.sh, giornaliero"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Configura il progetto su {hostName}"
msgid "Set up project…"
msgstr "Configura il progetto…"

msgid "Set up remote access"
msgstr "Configura l'accesso remoto"

msgid "Set up this project for Superset"
msgstr "Configura questo progetto per Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/ja/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "完了 · 7秒稼働"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "初回サインイン画面 → 認証 → オンボーディング → 実ワークスペース(直近7日、2日ウィンドウ)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "初めてですか?デスクトップアプリの設定 → リモートアクセスでリモートアクセスをオンにしてください。"

msgid "First-ever pageview on superset.sh, daily"
msgstr "superset.shでの初回ページビュー(日次)"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "{hostName}でプロジェクトをセットアップ"
msgid "Set up project…"
msgstr "プロジェクトをセットアップ…"

msgid "Set up remote access"
msgstr "リモートアクセスを設定"

msgid "Set up this project for Superset"
msgstr "このプロジェクトをSuperset向けにセットアップ"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/ko/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "완료 · 7초 작업"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "첫 로그인 화면 → 인증 → 온보딩 → 실제 워크스페이스 (최근 7일, 2일 윈도우)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "처음이신가요? 데스크톱 앱의 설정 → 원격 액세스에서 원격 액세스를 켜세요."

msgid "First-ever pageview on superset.sh, daily"
msgstr "superset.sh 최초 페이지뷰, 일별"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "{hostName}에 프로젝트 설정"
msgid "Set up project…"
msgstr "프로젝트 설정…"

msgid "Set up remote access"
msgstr "원격 액세스 설정"

msgid "Set up this project for Superset"
msgstr "이 프로젝트를 Superset에 맞게 설정하기"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/nl/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "klaar · 7s gewerkt"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Eerste weergave inlogscherm → auth → onboarding → echte werkruimte (laatste 7d, venster van 2d)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Voor het eerst hier? Zet externe toegang aan in de desktopapp onder Instellingen → Externe toegang."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Allereerste paginaweergave op superset.sh, dagelijks"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Project instellen op {hostName}"
msgid "Set up project…"
msgstr "Project instellen…"

msgid "Set up remote access"
msgstr "Externe toegang instellen"

msgid "Set up this project for Superset"
msgstr "Dit project instellen voor Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/pl/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "zakończono · pracował 7 s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Pierwsze wyświetlenie logowania → uwierzytelnienie → onboarding → prawdziwy obszar roboczy (ostatnie 7 dni, okno 2 dni)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Pierwszy raz tutaj? Włącz dostęp zdalny w aplikacji na komputerze w Ustawienia → Dostęp zdalny."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Pierwsza w historii odsłona na superset.sh, dziennie"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Skonfiguruj projekt na {hostName}"
msgid "Set up project…"
msgstr "Skonfiguruj projekt…"

msgid "Set up remote access"
msgstr "Skonfiguruj dostęp zdalny"

msgid "Set up this project for Superset"
msgstr "Skonfiguruj ten projekt pod Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/pt-BR/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "terminou · trabalhou por 7s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Primeira visualização de login → autenticação → introdução → área de trabalho real (últimos 7d, janela de 2d)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Primeira vez aqui? Ative o acesso remoto no app de desktop em Configurações → Acesso remoto."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Primeiro pageview no superset.sh, por dia"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Configurar o projeto em {hostName}"
msgid "Set up project…"
msgstr "Configurar projeto…"

msgid "Set up remote access"
msgstr "Configurar acesso remoto"

msgid "Set up this project for Superset"
msgstr "Configurar este projeto para o Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/ru/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "завершил · работал 7 с"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Первый показ экрана входа → аутентификация → онбординг → реальная рабочая область (за 7 дн., окно 2 дн.)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Впервые здесь? Включите удалённый доступ в десктопном приложении: Настройки → Удалённый доступ."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Первый в истории просмотр страницы на superset.sh, по дням"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Настроить проект на {hostName}"
msgid "Set up project…"
msgstr "Настроить проект…"

msgid "Set up remote access"
msgstr "Настроить удалённый доступ"

msgid "Set up this project for Superset"
msgstr "Настроить этот проект под Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/tr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "bitti · 7 sn çalıştı"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "İlk oturum açma görünümü → kimlik doğrulama → ilk kurulum → gerçek çalışma alanı (son 7g, 2g pencere)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "İlk kez mi buradasınız? Masaüstü uygulamasında Ayarlar → Uzaktan erişim bölümünden uzaktan erişimi açın."

msgid "First-ever pageview on superset.sh, daily"
msgstr "superset.sh üzerinde günlük ilk kez sayfa görüntüleme"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "{hostName} üzerinde projeyi kur"
msgid "Set up project…"
msgstr "Projeyi kur…"

msgid "Set up remote access"
msgstr "Uzaktan erişimi ayarla"

msgid "Set up this project for Superset"
msgstr "Bu projeyi Superset için kur"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/vi/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "đã xong · làm trong 7s"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "Lượt xem đăng nhập đầu tiên → xác thực → onboarding → workspace thực (7 ngày qua, cửa sổ 2 ngày)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "Lần đầu ở đây? Bật Truy cập từ xa trong ứng dụng trên máy tính tại Cài đặt → Truy cập từ xa."

msgid "First-ever pageview on superset.sh, daily"
msgstr "Lượt xem trang đầu tiên trên superset.sh, theo ngày"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "Thiết lập dự án trên {hostName}"
msgid "Set up project…"
msgstr "Thiết lập dự án…"

msgid "Set up remote access"
msgstr "Thiết lập truy cập từ xa"

msgid "Set up this project for Superset"
msgstr "Thiết lập dự án này cho Superset"

Expand Down
6 changes: 6 additions & 0 deletions packages/i18n/locales/zh-CN/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6645,6 +6645,9 @@ msgstr "已完成 · 用时7秒"
msgid "First sign-in view → auth → onboarding → real workspace (last 7d, 2d window)"
msgstr "首次登录页 → 认证 → 引导 → 真实工作区(最近7天,2天窗口)"

msgid "First time here? Turn on Remote Access in the desktop app under Settings → Remote Access."
msgstr "第一次使用?请在桌面应用的“设置 → 远程访问”中开启远程访问。"

msgid "First-ever pageview on superset.sh, daily"
msgstr "每日首次访问superset.sh的页面浏览数"

Expand Down Expand Up @@ -13262,6 +13265,9 @@ msgstr "在{hostName}上设置项目"
msgid "Set up project…"
msgstr "配置项目…"

msgid "Set up remote access"
msgstr "设置远程访问"

msgid "Set up this project for Superset"
msgstr "为Superset配置这个项目"

Expand Down
Loading
Loading