Skip to content

shared/internal-pages

TabPage = typeof tabPages[number]

Defined in: app/src/shared/internal-pages.ts:5

An internal page that opens in a tab.

const newTabUrl: "app://newtab/" = 'app://newtab/'

Defined in: app/src/shared/internal-pages.ts:8

Address of the new tab page.


const sharedChannels: Readonly<Record<TabPage, readonly TabPage[]>>

Defined in: app/src/shared/internal-pages.ts:14

Pages whose channels a page may use besides its own: the setup guide changes settings through the channels of the settings page.


const tabPages: readonly ["newtab", "settings", "setup", "history", "bookmarks"]

Defined in: app/src/shared/internal-pages.ts:2

Internal pages that open in tabs, by their host below app://.

pageUrl(page): string

Defined in: app/src/shared/internal-pages.ts:26

The address of an internal page.

"newtab" | "settings" | "setup" | "history" | "bookmarks"

The page.

string


tabPageOf(url): "newtab" | "settings" | "setup" | "history" | "bookmarks" | undefined

Defined in: app/src/shared/internal-pages.ts:36

Tells which internal page a URL opens in a tab. Other app:// hosts, such as the shell, never open in a tab; their URLs are treated like any web address and refused there.

string

Any URL.

"newtab" | "settings" | "setup" | "history" | "bookmarks" | undefined

The page, or undefined for web addresses and other hosts.