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
-7
View File
@@ -1,5 +1,4 @@
import { Settings } from "../Settings/Settings";
import { CONSTANTS } from "../Constants";
import { pluralize } from "./I18nUtils";
/*
@@ -101,12 +100,6 @@ export function capitalizeEachWord(s: string): string {
.join(" ");
}
export function getNsApiDocumentationUrl(isDevBranch: boolean = CONSTANTS.isDevBranch): string {
return `https://github.com/bitburner-official/bitburner-src/blob/${
isDevBranch ? "dev" : "stable"
}/markdown/bitburner.ns.md`;
}
export function getKeyFromReactElements(a: string | React.JSX.Element, b: string | React.JSX.Element): string {
const keyOfA = typeof a === "string" ? a : a.key ?? "";
const keyOfb = typeof b === "string" ? b : b.key ?? "";