This commit is contained in:
@@ -4,8 +4,9 @@ export interface ArticleTab {
|
||||
/** the article this page is of — its canonical slug, and the page's key */
|
||||
identity: string
|
||||
/** set when the page is one of the wiki's own pages — the link map, the
|
||||
* graphing calculator — laid on the book instead of an article: the page
|
||||
* draws that live surface, at its own address, for as long as it is open */
|
||||
* graphing calculator, the Lean editor — laid on the book instead of an
|
||||
* article: the page draws that live surface, at its own address, for as
|
||||
* long as it is open */
|
||||
tool?: ToolPage
|
||||
/** the language this page is turned to */
|
||||
lang: string
|
||||
@@ -24,6 +25,8 @@ const MAX_TABS = 10
|
||||
export const TOOL_LABEL_KEYS: Record<ToolPage, string> = {
|
||||
graph: 'sidebar.graph',
|
||||
calculator: 'sidebar.calculator',
|
||||
calculator3d: 'sidebar.calculator3d',
|
||||
lean: 'sidebar.lean',
|
||||
}
|
||||
|
||||
/** The key of the book page holding one of the wiki's own pages. No article
|
||||
@@ -123,9 +126,10 @@ export function useArticleTabs() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Lay one of the wiki's own pages — the link map, the graphing calculator —
|
||||
* on the book beside the articles. One surface is one page however many
|
||||
* times it is asked for: asking again just finds the page already there.
|
||||
* Lay one of the wiki's own pages — the link map, the graphing calculator,
|
||||
* the Lean editor — on the book beside the articles. One surface is one
|
||||
* page however many times it is asked for: asking again just finds the
|
||||
* page already there.
|
||||
*/
|
||||
function openTool(page: ToolPage) {
|
||||
const identity = toolPageIdentity(page)
|
||||
|
||||
Reference in New Issue
Block a user