Commit Graph

64 Commits

Author SHA1 Message Date
Olivier Gagnon
05fe14a5ed Fix some key not working 2022-03-20 23:11:26 -04:00
Master-Guy
9dd933ecee Changed .keyCode to .key for files in "src" 2022-03-18 10:43:56 +01:00
BB
4eb59ac70c Turned on no-useless-concat lint and fixed it in code 2022-03-16 20:44:52 +01:00
BB
5e2ccc71ec Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden 2022-03-11 16:32:48 +01:00
BB
2f4d879c16 Trailing whitespace and files not ending with \n are now illegal 2022-03-08 22:51:02 +01:00
Martin Fournier
974344545d Move import save functionality into SaveObject
Adds a lot of metadata to be able to easily compare the new save to the
current player.

- Adds lastSaved & identifier to the PlayerObject
- Includes a hash method used to generate an identifier
2022-01-26 03:42:52 -05:00
qcorradi
08314ed33e Fixed array comparison handling of NaN
Issue #2033 is fixed, not using Object.is as recommended by https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#when_to_use_object.is_versus_triple_equals
2022-01-23 20:33:32 +01:00
Olivier Gagnon
77f525c98c rm blob caching 2022-01-20 16:11:48 -05:00
hydroflame
c5089ab82a Merge pull request #2664 from MartinFournier/feature/recovery
Add information to the recovery page
2022-01-17 16:05:00 -05:00
theit8514
423efe19e1 Remove dependents from cache when dependency updated 2022-01-17 12:02:00 -05:00
Martin Fournier
65964c84b2 Add information to the recovery page
Adds error & environment information to the recovery page when
available. The info will be displayed when the error boundary catches an error only.

Otherwise, does a few minor tweaks to the UI of the page.

- Add DevPage button to throw an uncaught error to go into recovery
- Add "Delete Save" button in recovery from Game Options (refactored into its own
component)
- Use "Soft Reset" button from Game Options (refactored into its own
component)
- The "Soft Reset" & "Delete Save" buttons now have confirmations
- Add tooltip on "Disable Recovery Mode" button
- Add timestamp to the RECOVERY.json filename
- Add textarea containing markdown with the current error details, if
available
  - Error
  - Page
  - Version
  - Environment
  - Platform
  - UserAgent
  - Features
  - Source
  - Stack Trace
- Change GitHub new issue link to contain default body & title, if possible
- Change links to not take the full width (they were clickable by mistake)
- Fix "Disable Recovery Mode" not resetting the ErrorBoundary's state,
making going back to terminal impossible
2022-01-16 09:07:53 -05:00
TheMas3212
3da3a61e20 manMax, oneOf, subsetOf validators 2022-01-10 07:37:46 +11:00
TheMas3212
d9064b608f PoC for save validation on load via hooking the Reviver function and
static property validationData on classes

PoC/example implemented with HacknetNode:
  validates cores is a number in the range between 1 and HacknetNodeConstants.MaxCores
  validates level is a number in range between 1 and HacknetNodeConstants.MaxLevel
  validates ram is a number in range between 1 and HacknetNodeConstants.MaxRam
  validates onlineTimeSeconds in non negative number
  validates totalMoneyGenerated is a non negative number
2022-01-10 07:37:46 +11:00
Olivier Gagnon
c59a267437 change sf4 2022-01-04 19:09:34 -05:00
theit8514
fd93c6d338 Fix linting errors 2021-12-23 23:26:05 -05:00
theit8514
8f77f720e6 Cache the blobs generated by scripts 2021-12-23 23:06:01 -05:00
Olivier Gagnon
e6b263e6ec make infil reward more consistent. 2021-12-03 15:11:31 -05:00
Olivier Gagnon
b6279ac08c some api break stuff 2021-11-12 15:56:48 -05:00
Olivier Gagnon
3112dc60c0 few more bugfixes 2021-11-11 23:28:08 -05:00
hydroflame
70ffe25bb4
Revert "bunch of bugfixes" 2021-11-11 20:06:05 -05:00
Olivier Gagnon
d91d7c564e bunch of bugfixes 2021-11-11 19:56:09 -05:00
Olivier Gagnon
cf2efe7698 few bugdic 2021-11-11 17:00:36 -05:00
Olivier Gagnon
3f28b066b0 working on timestamps and make netscript function highlight more specific. 2021-11-11 10:07:16 -05:00
Olivier Gagnon
1e7da4c610 make timestamp with seconds 2021-11-10 19:50:21 -05:00
Olivier Gagnon
a3346719a0 rm console log 2021-11-10 12:37:40 -05:00
Olivier Gagnon
9fe817daf2 fix backup_ folder not working 2021-11-10 12:34:56 -05:00
Olivier Gagnon
c87e9bdf84 v1.0.0 changes 2021-11-09 23:42:36 -05:00
Olivier Gagnon
eb6f016ac1 fix corp softcap 2021-11-05 21:01:23 -04:00
Olivier Gagnon
37845c57c0 migrate some of formulas 2021-11-02 22:58:40 -04:00
Olivier Gagnon
0bee743b47 v1.0.0 migration guide 2021-11-02 22:49:46 -04:00
Olivier Gagnon
b2bf3fc21f v1 api breaks 2021-11-02 22:11:22 -04:00
Olivier Gagnon
55d1dca7b7 Add noodle power. 2021-11-02 20:30:19 -04:00
Olivier Gagnon
48988e228e track money more precisely. 2021-10-27 14:18:33 -04:00
Olivier Gagnon
d35bac1ace Build autocomplete 2021-10-15 13:15:42 -04:00
Olivier Gagnon
c1d4ced331 autocomplete 2021-10-15 13:12:18 -04:00
Olivier Gagnon
89a6bf175d nuke half the dependencies because they were unused. 2021-10-14 19:31:17 -04:00
Olivier Gagnon
6b114fab7d remove unused stuff 2021-10-14 18:45:50 -04:00
Olivier Gagnon
78d9c25671 fix error message with wrong reviver, refactor part of player 2021-10-11 23:14:15 -04:00
Olivier Gagnon
c47a5bc8cc added grow, weaken, and time compression 2021-10-04 19:58:34 -04:00
Olivier Gagnon
97c04a1037 logbox manager, alert manager and fix bitverse colors 2021-10-01 10:39:09 -04:00
Olivier Gagnon
06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon
0c932dd4d1 build bunch of fixes 2021-09-21 20:30:00 -04:00
Olivier Gagnon
3554da5a53 load a top level react node and everything else under it. 2021-09-19 18:22:52 -04:00
Olivier Gagnon
61e3959a25 Improve event emitter 2021-09-18 15:44:39 -04:00
Olivier Gagnon
2a13db39c7 fix sleeve memory bug 2021-09-08 23:47:34 -04:00
David Edmondson
cfbdae6def Switch ts and babel for swc-loader
Replace old <> assertion syntax
2021-09-04 16:57:49 -07:00
Olivier Gagnon
a18bdd6afc prettify, sorry for the big ass commit 2021-09-04 19:09:30 -04:00
Olivier Gagnon
218a9dd250 Sleeves earnings is now tracked in Character Stats Money 2021-05-17 22:03:48 -04:00
Olivier Gagnon
d745150c45 all the lints 2021-05-01 03:17:31 -04:00
Olivier Gagnon
3fad505096 run auto fix lint 2021-04-29 23:52:56 -04:00