mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
UI: Search and read NS API docs in editor tab and documentation tab (#2163)
This commit is contained in:
@@ -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 ?? "";
|
||||
|
||||
Reference in New Issue
Block a user