shared/internal-pages
Type Aliases
Section titled “Type Aliases”TabPage
Section titled “TabPage”TabPage = typeof
tabPages[number]
Defined in: app/src/shared/internal-pages.ts:5
An internal page that opens in a tab.
Variables
Section titled “Variables”newTabUrl
Section titled “newTabUrl”
constnewTabUrl:"app://newtab/"='app://newtab/'
Defined in: app/src/shared/internal-pages.ts:8
Address of the new tab page.
sharedChannels
Section titled “sharedChannels”
constsharedChannels:Readonly<Record<TabPage, readonlyTabPage[]>>
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.
tabPages
Section titled “tabPages”
consttabPages: 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://.
Functions
Section titled “Functions”pageUrl()
Section titled “pageUrl()”pageUrl(
page):string
Defined in: app/src/shared/internal-pages.ts:26
The address of an internal page.
Parameters
Section titled “Parameters”"newtab" | "settings" | "setup" | "history" | "bookmarks"
The page.
Returns
Section titled “Returns”string
tabPageOf()
Section titled “tabPageOf()”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.
Parameters
Section titled “Parameters”string
Any URL.
Returns
Section titled “Returns”"newtab" | "settings" | "setup" | "history" | "bookmarks" | undefined
The page, or undefined for web addresses and other hosts.