Commit Graph

5149 Commits

Author SHA1 Message Date
Martin Fournier aae3851d59 Add webpack file-loader to handle images
It lets us bundle static files such as images.

Allows us to `imports img from "./img.png"` to retrieve an image's path.
Note that we'll have to add other entries in the global.d.ts file if we
want to handle other extensions than .png.

Adds mocks to Jest tests so that we don't fail tests when loading static
assets.
2022-01-20 18:41:48 -05:00
nickofolas a5ad97f47d Remove unnecessary editor code 2022-01-20 17:28:19 -06:00
nickofolas 99ef71de4a Update prompt message content 2022-01-20 17:14:38 -06:00
SagePtr 32ba81883f Force achievements recalculation on bitnode completion 2022-01-21 00:04:47 +02:00
nickofolas bc50f5180a Refactor 2022-01-20 15:48:17 -06:00
nickofolas b4a78c26f3 Implement editor tab actions 2022-01-20 15:48:16 -06:00
Olivier Gagnon f7d18efaf6 Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2022-01-20 16:14:35 -05:00
Olivier Gagnon 77f525c98c rm blob caching 2022-01-20 16:11:48 -05:00
hydroflame ca7b8068ea Merge pull request #2713 from JohnnyUrosevic/dev
Change "import" to "important" in hackers-starting-handbook.lit
2022-01-20 12:24:45 -05:00
Martin Fournier 6e908814db Add game version in document.title
Also add [dev] prefix when in development mode.
2022-01-20 09:26:07 -05:00
Xi-Lin Yeh 4a3ee95b63 Enhanced API Server interface
- Used restful patterns for handling server calls (GET/PUT/DELETE)

- Utilized Server interface for saves rather than reimplementing code

- Exposed operations for getting codebase of scripts on the home server and deleting files.

- Added a common response structure
2022-01-20 00:03:07 -08:00
Johnny Urosevic 81db1b0a97 Change "import" to "important" 2022-01-19 13:00:59 -08:00
smolgumball 1a6300b287 Cleanup @usage docs 2022-01-19 13:32:07 -07:00
pigalot 5c7ac9ab8e Fix for corp product cost 2022-01-19 18:44:48 +00:00
lethern 61cea12ca2 purchaseServer: improved error message for ram > maxRam 2022-01-19 19:09:33 +01:00
smolgumball 74e2acfa6f Add ns.getRecentScripts() 2022-01-19 00:04:48 -07:00
Sage Pointer 5fc7993dff Remove console spamming from CalculateShareMult 2022-01-19 02:47:51 +02:00
phyzical 71ac4aacf1 updated buyback and sells functions docs 2022-01-19 08:25:12 +08:00
Olivier Gagnon 53727f6222 typo 2022-01-18 19:20:16 -05:00
Olivier Gagnon 69cf98ff34 doc 2022-01-18 19:12:52 -05:00
Olivier Gagnon d2ec38753b Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2022-01-18 18:59:17 -05:00
Olivier Gagnon d0a44a6088 change asleep 2022-01-18 18:57:43 -05:00
hydroflame bb34d6b582 Merge pull request #2618 from pigalot/Corp-Api-Updates
Corp api updates
2022-01-18 18:05:23 -05:00
hydroflame b6f514dd4d Merge pull request #2693 from nickofolas/fix/body-background
Use background primary for `<body>`
2022-01-18 17:50:49 -05:00
hydroflame 7bebc86b11 Merge pull request #2684 from nickofolas/improvement/script-editor
Script Editor Improvements
2022-01-18 17:49:07 -05:00
nickofolas eb7a0ebace Use background primary before #000000 for body 2022-01-18 16:15:36 -06:00
hydroflame ae83eeacb7 Merge pull request #2689 from nickofolas/fix/singularity-focus
Fix Singularity focus arg issues
2022-01-18 17:00:12 -05:00
Olivier Gagnon 05cbc25a8f 1.4 2022-01-18 14:03:24 -05:00
lethern 1dcae1aeec Update NetscriptDefinitions.d.ts
grow/weaken/hack: removed threads part from example - confuses newbies
2022-01-18 16:15:40 +01:00
nickofolas 2d38ce8f72 Fix focus arg for sing functions 2022-01-18 08:49:06 -06:00
nickofolas 89fd54698b Fix ns.setFocus 2022-01-18 08:20:58 -06:00
nickofolas 258a1b262e Update options button 2022-01-17 17:20:38 -06:00
lethern bb6c2cd79e Update NetscriptFunctions.ts 2022-01-17 23:53:44 +01:00
nickofolas a9314f2447 Show N/A when editing a txt file 2022-01-17 16:44:55 -06:00
nickofolas c41cd68a8d Add modal to editor with RAM details 2022-01-17 16:32:45 -06:00
nickofolas c1b777733f Improve clarity of editor tabs 2022-01-17 15:14:07 -06: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
hydroflame 1d83247f8d Merge pull request #2671 from gianfun/fix_ns_tail_behavior
Fix ns.tail() behaviour for multiple calls
2022-01-17 16:01:34 -05:00
hydroflame 25112acefb Merge pull request #2654 from SlyCedix/bounded-logs
Bound log windows to screen
2022-01-17 16:01:16 -05:00
hydroflame 27a54217eb Merge pull request #2653 from nickofolas/fix/refactor-loops
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
hydroflame f591935757 Merge pull request #2655 from SagePtr/patch-1
Fix "travel" achievement icon
2022-01-17 15:56:44 -05:00
hydroflame 574c541b2e Merge pull request #2656 from SagePtr/patch-2
Minor fix to growth parameter description
2022-01-17 15:56:35 -05:00
hydroflame 8df950721c Merge pull request #2657 from theit8514/grandparent-script-cache
Remove dependents from cache when dependency updated
2022-01-17 15:56:06 -05:00
hydroflame ef89c2eb1d Merge pull request #2660 from nickofolas/fix/extraneous-br
Remove extraneous line breaks from buttons
2022-01-17 15:55:51 -05:00
hydroflame 247c02856a Merge pull request #2658 from smolgumball/clickable-ls-style-tweak
Fix issues with timestamps on same line as clickable script rows in `ls`
2022-01-17 15:55:22 -05:00
hydroflame b5357ec04e Merge pull request #2665 from MartinFournier/feature/ns-ui-getgameinfo
Add ns.ui.getGameInfo() to retrieve game version
2022-01-17 15:53:43 -05:00
hydroflame abef252547 Merge pull request #2666 from MartinFournier/fix/dupe-cost
Remove duplicated 'cost' keyword for RAM cost.
2022-01-17 15:53:31 -05:00
hydroflame 5344548740 Merge pull request #2668 from MartinFournier/fix/locked-shortcuts
Shortcuts now check to see if feature is unlocked
2022-01-17 15:53:18 -05:00
hydroflame 4e5f05d269 Merge pull request #2667 from MartinFournier/fix/hash-cache-achievement
Add check for hash capacity > 0 for MAX_CACHE
2022-01-17 15:52:42 -05:00
hydroflame b58a2c3cd5 Merge pull request #2674 from nickofolas/fix/help-format-fix-merge
Fix formatting lost in merge commit
2022-01-17 15:52:28 -05:00