UI: Search and read NS API docs in editor tab and documentation tab (#2163)

This commit is contained in:
catloversg
2025-06-01 13:53:20 +07:00
committed by GitHub
parent 98f6cc9554
commit 6a23c85e12
41 changed files with 3602 additions and 130 deletions

View File

@@ -334,14 +334,14 @@ export function InteractiveTutorialRoot(): React.ReactElement {
),
canNext: false,
},
[iTutorialSteps.TerminalTypeScript as number]: {
[iTutorialSteps.TerminalEditScript as number]: {
content: (
<>
<Typography>
This is the script editor. You can use it to program your scripts. Click this text to copy it and paste it
into the text editor: <br />
into the text editor:
</Typography>
<br />
<Typography component="div" classes={{ root: classes.code }}>
{
<CopyableText
@@ -354,11 +354,15 @@ export async function main(ns) {
/>
}
</Typography>
<br />
<Typography>
For anyone with basic programming experience, this code should be straightforward. This script will
continuously hack the n00dles server.
<br />
<br />
Use the search tool at the bottom to find and have a quick glance at documentation of any NS APIs.
<br />
<br />
To access <NsApiDocumentationLink />, press the link at the bottom.
<br />
<br />
@@ -542,6 +546,10 @@ export async function main(ns) {
inaccessible at the start and will be unlocked later.
<br />
<br />
If you click a link in these pages while holding Ctrl key (Control key on Mac keyboard), it will be opened in
a new tab. If you play the Steam version, that link will be opened in your default browser.
<br />
<br />
You should at least check these pages:
<ul>
<li>