mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
CODEBASE: update dependencies (#852)
This commit is contained in:
parent
79cfbb5f2e
commit
269a74d5c0
20337
package-lock.json
generated
20337
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
||||
"@emotion/styled": "^11.10.5",
|
||||
"@material-ui/core": "^4.12.4",
|
||||
"@mui/icons-material": "^5.11.0",
|
||||
"@mui/material": "~5.10.15",
|
||||
"@mui/material": "^5.14.12",
|
||||
"@mui/styles": "^5.11.2",
|
||||
"@mui/system": "^5.0.3",
|
||||
"@types/estree": "^1.0.0",
|
||||
|
@ -53,4 +53,4 @@ export const StockSymbol = {
|
||||
["Microdyne Technologies"]: "MDYN",
|
||||
["Titan Laboratories"]: "TITN",
|
||||
} as const;
|
||||
export type StockSymbol = typeof StockSymbol[keyof typeof StockSymbol];
|
||||
export type StockSymbol = (typeof StockSymbol)[keyof typeof StockSymbol];
|
||||
|
@ -1,11 +1,7 @@
|
||||
import React, { useState, useEffect, useRef } from "react";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { Theme } from "@mui/material/styles";
|
||||
import makeStyles from "@mui/styles/makeStyles";
|
||||
import createStyles from "@mui/styles/createStyles";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Popper from "@mui/material/Popper";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import { createStyles, makeStyles } from "@mui/styles";
|
||||
import { Paper, Popper, TextField, Typography } from "@mui/material";
|
||||
|
||||
import { KEY, KEYCODE } from "../../utils/helpers/keyCodes";
|
||||
import { Terminal } from "../../Terminal";
|
||||
|
@ -10,7 +10,7 @@ export const A = (props: React.PropsWithChildren<{ href?: string }>): React.Reac
|
||||
const navigator = useNavigator();
|
||||
const ref = props.href ?? "";
|
||||
|
||||
const onClick = (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => {
|
||||
const onClick = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
|
||||
navigator.navigate(ref, event.ctrlKey);
|
||||
};
|
||||
if (ref.startsWith("http"))
|
||||
|
@ -72,11 +72,11 @@ Object.entries(allEnums).forEach(([enumName, enumObj]) => {
|
||||
});
|
||||
|
||||
// This function is just adding types to enumHelpers.get, and is all that gets exposed for use in other files.
|
||||
export const getEnumHelper: <Name extends EnumName, Enum extends typeof allEnums[Name]>(
|
||||
export const getEnumHelper: <Name extends EnumName, Enum extends (typeof allEnums)[Name]>(
|
||||
name: Name,
|
||||
) => EnumHelper<Enum, Member<Enum>> = enumHelpers.get.bind(enumHelpers);
|
||||
|
||||
export const isMember = <Name extends EnumName, Enum extends typeof allEnums[Name]>(
|
||||
export const isMember = <Name extends EnumName, Enum extends (typeof allEnums)[Name]>(
|
||||
name: Name,
|
||||
value: unknown,
|
||||
): value is Member<Enum> => getEnumHelper(name).isMember(value);
|
||||
|
@ -8,7 +8,7 @@ import { RunningScript } from "../../../src/Script/RunningScript";
|
||||
import { AddToAllServers, DeleteServer } from "../../../src/Server/AllServers";
|
||||
import { AlertEvents } from "../../../src/ui/React/AlertManager";
|
||||
|
||||
declare const importActual: typeof EvaluatorConfig["doImport"];
|
||||
declare const importActual: (typeof EvaluatorConfig)["doImport"];
|
||||
|
||||
// Replace Blob/ObjectURL functions, because they don't work natively in Jest
|
||||
global.Blob = class extends Blob {
|
||||
|
Loading…
Reference in New Issue
Block a user