Show the engine setup until the browser engine is installed
A browser tab shows the download size, Download the engine, Install from file, and Open in default browser until the engine can start. It shows progress, Cancel, the cause of a failure, and Retry, and then opens the page. Settings -> Browser shows the engine state and Remove engine. Web links open in the system browser until the engine is installed. Open link in app browser always opens a browser tab.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import { showActionMenu } from '$lib/ui/managedActionMenu';
|
||||
import { WheelQueue } from './inputQueue';
|
||||
import { TabSession, type TabStatus } from './tabSession';
|
||||
import { engine } from './engine';
|
||||
import { AutoScroll } from './autoScroll';
|
||||
let { initial, onSessionChange, newTab }: { initial: { tabId?: string; profileId?: string; url?: string }; onSessionChange: (value: TabStatus) => void; newTab: (profileId: string, url?: string) => Promise<void> } = $props();
|
||||
let status = $state<TabStatus>({ tabId: '', phase: 'connecting', message: $t('Opening browser…') });
|
||||
@@ -269,7 +270,7 @@
|
||||
<details class="diagnostics"><summary>{$t("Browser error details")}</summary><dl>
|
||||
<dt>{$t("Operation")}</dt><dd>{status.detail.operation}</dd><dt>{$t("Reason")}</dt><dd>{status.detail.reason}</dd>
|
||||
<dt>{$t("Tab")}</dt><dd>{status.detail.tabId || $t('Not created')}</dd><dt>{$t("Time")}</dt><dd>{status.detail.time}</dd>
|
||||
<dt>{$t("Browser")}</dt><dd>{$t("Included with RuneStone")}</dd>
|
||||
<dt>{$t("Engine")}</dt><dd>{$engine?.version ?? ''}</dd>
|
||||
</dl></details>
|
||||
{/if}
|
||||
{#if openingError || $pageErrors[tabId]}<p class="error" role="alert">{openingError || $pageErrors[tabId]}</p>{/if}
|
||||
|
||||
Reference in New Issue
Block a user