Commit Graph

2770 Commits

Author SHA1 Message Date
BuildTools
6d90025370 Adapted PR #2055 to the refacted script editor code 2021-12-20 01:40:01 -06:00
BuildTools
e5c4c8f64b Rebased
Added hostname to tab name
Removed -tas arg from the rm command
2021-12-20 01:40:01 -06:00
BuildTools
cbfdfa5753 Removed testing log statements 2021-12-20 01:40:01 -06:00
BuildTools
3120d97cfa Update 2021-12-20 01:40:01 -06:00
BuildTools
6dc7dc42c5 resolved merge issue 2021-12-20 01:39:20 -06:00
hydroflame
3255768259
Merge pull request #1993 from Nick-Colclasure/file-read-patch
Fix problems finding root files in cat and ns.read
2021-12-20 01:56:20 -05:00
hydroflame
7215e73f41
Merge pull request #2055 from hexnaught/s-key-editor-save-patch
Change editor save keybind to be CTRL/CMD + S
2021-12-20 01:50:05 -05:00
hydroflame
e4345ebf68
Merge pull request #2057 from hexnaught/remove-partial-exe-on-buy-patch
Remove any partially built/created .EXE files on buy from darknet
2021-12-20 01:08:07 -05:00
hydroflame
2267845e2d
Merge pull request #2049 from Kejikus/dev
Issue #2048 fix
2021-12-20 01:07:12 -05:00
Dan
b95261d905
fix(darkweb:buy) remove partial exe on buy
Remove any matching partial .exe item when buying it from the dark web.

Resolves danielyxie/bitburner#2024
2021-12-20 05:55:35 +00:00
Dan
6ec7fcb9fa
refactor(keybinds): change editor save keybind S
We need to stop the event from bubbling up to the browser and opening a
'save html' window to keep support in the browser, other than that,
straight forward change to swap keybinding to 'S' for saving in the
editor.

Resolves danielyxie/bitburner#2053
2021-12-20 04:34:27 +00:00
hydroflame
82f6bbee13
Merge pull request #2046 from MartinFournier/fix/tests
Fix jest unit tests & add a github action workflow to build, test & lint
2021-12-19 22:35:25 -05:00
hydroflame
565e7677f8
Merge pull request #2045 from 2PacIsAlive/dev
Fix typo for Neuregen Augmentation
2021-12-19 22:33:31 -05:00
hydroflame
d1abe27484
Merge pull request #2047 from TheCoderJT/nuke-github-clarity
Fix Docs: made it more clear what nuke exe does
2021-12-19 22:32:41 -05:00
MageKing17
e521415273
Update NetscriptFunctions.ts
Just a simple change to make `alert` and `toast` reuse `argsToString` instead of `toNative` and `JSON.stringify` directly.

Fixes #2015.
2021-12-19 16:58:49 -08:00
Nicholas Colclasure
61dde4cfac Fix issue introduced handling files in subdirectories ._. 2021-12-19 13:03:50 -08:00
Kejikus
fcbf8a3824
Fixed bug with limited height of terminal screen
Needs testing.
2021-12-20 00:03:13 +03:00
Jordan Turner
f678574a6c made it more clear what nuke exe does 2021-12-19 13:47:34 -07:00
Jared Jolton
06acccdfe1
Fix typo for Neuregen Augmentation 2021-12-19 13:42:09 -07:00
Martin Fournier
3b99da8474 Lint current problems & fix ignore paths 2021-12-19 13:17:44 -05:00
Martin Fournier
d1696148c4 Fix tests syntax for jest
Most tests could not run with jest because of syntax difference between
the old test runner.
2021-12-19 12:37:42 -05:00
hydroflame
890b1df593
Merge pull request #2041 from hexnaught/job-shortcut-key-patch
Only run job shortcut if the player has a job
2021-12-19 10:28:42 -05:00
hydroflame
3ed5aa8045
Merge pull request #2038 from MartinFournier/fix/skill-progress
Fix skills tooltip edge cases
2021-12-19 10:22:43 -05:00
Dan
2f9eb324b4
fix(shortcut): job shortcut only run when have job
The shortcut was always allowed to run, meaning when the player doesn't
have a job, they were sent to the job screen with no job and lost the
view context/sidebar.

- Add utility method to check if the player 'hasJob', being at least 1
job.
- Check if player has job when the key combination is pressed

Resolves danielyxie/bitburner#2013
2021-12-19 15:20:02 +00:00
Martin Fournier
05ed3f5461 Fix skills tooltip edge cases 2021-12-19 05:51:35 -05:00
millennIumAMbiguity
a9cf635a84
Improve the readability of text in the theme editor.
Copy the string above if you want to backup or share your theme with others. -> Backup your theme or share it with others by copying the string above.
Use the buttons below to replace the current theme with a pre-built template -> Replace the current theme with a pre-built template using the buttons below.
2021-12-19 11:14:16 +01:00
hydroflame
3a21beb708
Merge pull request #2003 from MartinFournier/feature/predetermined-themes
Add easily switchable predefined themes
2021-12-19 00:40:59 -05:00
hydroflame
a76f67ade5
Merge pull request #2010 from hexnaught/server-purchase-naming-patch
Fix issue of space in server name and server counting when made with same name
2021-12-19 00:35:24 -05:00
hydroflame
24f0c9e65d
Merge pull request #2007 from hexnaught/alias-hyphen-allowed-patch
Allow hyphens in command aliases
2021-12-19 00:28:11 -05:00
hydroflame
e6b84a73b2
Merge pull request #2031 from MageKing17/patch-1
Update ls.tsx
2021-12-19 00:24:58 -05:00
hydroflame
b6df183953
Merge pull request #2008 from hexnaught/lowercase-exe-call-patch
Allow `.exe` (programs) to be ran in a case-insensitive `run`
2021-12-19 00:23:52 -05:00
hydroflame
bc7f94ddda
Update check.ts 2021-12-19 00:23:01 -05:00
MageKing17
1dcc17c4fb
Update ls.tsx
`args[numArgs - 1]` is the last argument in the list, so correct usage was being flagged as incorrect, and incorrect usage wasn't working anyway because the filter was `"undefined"`.

Additionally, the function seemed confused as to whether or not `ls` counted as an argument (AFAICT, it isn't).

Fixes #1994.
2021-12-18 21:22:34 -08:00
Dan
6d79561859
fix(servers): fix issue of space in server name
Replace the space in a server name with a hyphen (-), also noticed some
interesting behaviour with the 'count up naming', so tweaked that.

Resolves danielyxie/bitburner#1999
2021-12-19 04:03:14 +00:00
Dan
b8b3897e64
fix(commands): tweak wording for consistency 2021-12-19 03:23:26 +00:00
Dan
b2add6c26b
fix(commands): error feedback, wording consistency
Found most (hopefully all) places where the error message wording
incorrectly was shown to the tune of 'no script exists', where it should
have been showing to the effect of 'script is not running'.
Also cleaned up some of the consistency in the wording and added a
'helper' export for knowing valid script extensions used in validation
of 'isScriptFilename', so we can have consistent error messaging.

Resolves danielyxie/bitburner#1966
2021-12-19 03:10:43 +00:00
Dan
24c7fb2b92
fix(cli:run) case insensitive calls to program run
Allow the user to run programs (.exe) in a case insensitive manor

Resolves danielyxie/bitburner#1958
2021-12-19 02:41:21 +00:00
Dan
1f6954b393
fix(command:alias) allow hyphen in aliases
- Allow hyphens in aliases
- Remove redundant underscore, covered by '\w'

Resolves danielyxie/bitburner#2000
2021-12-19 02:09:47 +00:00
Olivier Gagnon
790ffeb8a1 Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2021-12-18 18:15:19 -05:00
Olivier Gagnon
555216a39b Add confirmation to installing 2021-12-18 18:13:49 -05:00
hydroflame
aad4024e0f
Merge branch 'master' into dev 2021-12-18 16:29:22 -05:00
Martin Fournier
db64d9869c Add easily switchable predefined themes
Includes the default theme and a Monokai-ish variant
2021-12-18 16:28:15 -05:00
Olivier Gagnon
02605090df v1.2.0 2021-12-18 16:28:09 -05:00
hydroflame
853125009b
Merge pull request #1977 from Rez855/feature/multi-tab-script-editor
Added the ability to open multiple script files at a time
2021-12-18 14:53:35 -05:00
hydroflame
b739d60490
Merge pull request #1979 from MartinFournier/feature/skill-progress-bars
Fix #1889: Add skill progress to overview
2021-12-18 14:44:18 -05:00
hydroflame
d5201885aa
Merge pull request #1997 from pobiega/fix/nformat-return-type
ScriptEditor NetScriptDefinitions: nFormat should return string
2021-12-18 14:40:20 -05:00
hydroflame
0ff110492e
Merge pull request #1982 from wynro/add-ALL-to-enableLog
Add support for ALL argument in enableLog function
2021-12-18 14:39:44 -05:00
hydroflame
c723c7ecd2
Merge pull request #1957 from billyvg/feat/add-ctrl-u-clear-line
feat: Add `ctrl+u/k/w` hotkeys
2021-12-18 14:35:12 -05:00
hydroflame
a9b0dd0d3f
Merge pull request #1992 from 2PacIsAlive/dev
Fix typo in AutolinkProgram description
2021-12-18 10:56:33 -05:00
hydroflame
1dafa03a71
Merge pull request #1995 from Adraxas/dev
Fix NS.exec signature
2021-12-18 10:56:01 -05:00
BuildTools
59498f780a Small css tweaks 2021-12-18 07:11:59 -06:00
Martin Fournier
733f04c343 Add an option to suppress the 'Saved Game' toast 2021-12-18 08:01:15 -05:00
Robin Rexstedt
87d8f67df1 make nFormat return a string 2021-12-18 13:12:23 +01:00
BuildTools
2265f797c4 Added the ability to open multiple script files at a time
Fixed a bug where ram would stay the same when switching between scripts

Fixed bug where updating ram could cause the GUI to crash

The editor will now go to the last edited line when switching tabs.

Tidied up the script editor UI
2021-12-18 04:10:25 -06:00
Jared Jolton
5e5e2c60aa
Fix typo in AutolinkProgram description 2021-12-17 21:58:05 -07:00
Nicholas Colclasure
8ba5199e54 Fix problems finding root files in cat and ns.read
Cat ends up translating the path it receives from relative to absolute twice, which I fix by changing the filename to an absolute path before it's passed to getTextFile with a leading "/" so that it doesn't interpret the filename as being relative.

Read I fixed by causing getTextFile to remove the leading "/" from files that are in the root directory, since that is required to translate their name into the native "filesystem"s format.
2021-12-17 20:40:46 -08:00
Adraxas
069d76df25 Fix NS.exec signature 2021-12-17 18:40:00 -08:00
hydroflame
504a8a4be5
Merge pull request #1971 from MartinFournier/feature/hashes-upgrades
Fix #1863: Add getHashUpgrades hacknet function
2021-12-17 15:50:46 -05:00
Billy Vong
b3f9380ebd prettier 2021-12-17 12:56:48 -05:00
hydroflame
2b5cc03e79
Merge pull request #1968 from MageKing17/patch-1
Quickly fix silly typo mentioned on Discord.
2021-12-17 12:55:58 -05:00
hydroflame
5b79712817
Merge pull request #1985 from billyvg/fix/prevent-ctrl-alt-j-navigation
Prevent `ctrl+alt+j` from navigating to Jobs
2021-12-17 12:55:08 -05:00
Billy Vong
6fb5565b08 remove unused code 2021-12-17 12:48:50 -05:00
Martin Fournier
84c77c1d2c Fix #1889: Add skill progress to overview
Adds a progress bar for each stat to show how close to level up you are.
2021-12-17 12:44:18 -05:00
Billy Vong
f4ea1ae970 Merge branch 'dev' into fix/prevent-ctrl-alt-j-navigation 2021-12-17 12:39:57 -05:00
Billy Vong
cdd85c09e1 Merge branch 'dev' into feat/add-vim-mode 2021-12-17 12:38:16 -05:00
Billy Vong
659211e1ff Prevent ctrl+alt+j from navigating to Jobs
This is a browser hot key to open the Chrome Developer Tools.
2021-12-17 12:35:47 -05:00
Billy Vong
fb5d374279 feat: Add vim mode to script editor
This adds an option to turn on vim mode using the `monaco-vim` library.
2021-12-17 12:34:00 -05:00
Guillermo Robles
b14432329a Add support for ALL argument in enableLog function
- Fixes: #1928
2021-12-17 17:33:33 +01:00
Martin Fournier
da0cc6d8f1 Fix #1974: Change default input to deferred
The value does not change automatically now, there's a "Set" button in
the popup to trigger the onColorChange event.
2021-12-17 11:00:00 -05:00
Martin Fournier
217b94d0a0 Fix #1863: Add getHashUpgrades hacknet function
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00
MageKing17
e8b4d15078
Update TutorialRoot.tsx
Correct "NS1 vs NS1" typo.
2021-12-17 00:35:23 -08:00
Olivier Gagnon
ae6f8c5ee7 make tutorial better 2021-12-16 20:54:50 -05:00
Olivier Gagnon
81e291ef6a change color of terminal input 2021-12-16 20:20:07 -05:00
Olivier Gagnon
99f3566e52 bugfix 2021-12-16 20:09:19 -05:00
Billy Vong
9b64551197 Merge branch 'dev' into feat/add-ctrl-u-clear-line 2021-12-16 17:07:39 -05:00
Billy Vong
2e9a42d74c add comment 2021-12-16 17:03:49 -05:00
Billy Vong
2804b6ae56 remove console 2021-12-16 17:03:15 -05:00
Billy Vong
d4bf6100a3 feat: Add ctrl+u/k/w hotkeys
Adds the `ctrl+u/k/w` hotkeys to clear line before and after, as well as deleting word before cursor. I implemented deleting word after cursor, but I have not repod the functionality in bash, so I did not add the hotkey.
2021-12-16 16:59:24 -05:00
hydroflame
55d386a504
Merge pull request #1952 from MartinFournier/feature/git-commit-version
Fix #1880: Show git commit of bundled app
2021-12-16 15:45:25 -05:00
hydroflame
88666ec3fa
Merge pull request #1953 from danielyxie/dev
doc
2021-12-16 15:30:22 -05:00
Olivier Gagnon
33e918fc49 doc 2021-12-16 15:28:53 -05:00
Martin Fournier
e8e2760c73 Fix #1880: Show git commit of bundled app 2021-12-16 15:25:59 -05:00
Olivier Gagnon
e16fba2418 scan doc 2021-12-16 15:21:00 -05:00
hydroflame
c38992be8d
Merge pull request #1949 from danielyxie/dev
build
2021-12-16 12:58:30 -05:00
Olivier Gagnon
5718800b91 doc update 2021-12-16 12:41:18 -05:00
Olivier Gagnon
6ef99e138c fix BN exploit 2021-12-16 12:40:24 -05:00
Olivier Gagnon
3c67da02f3 typo 2021-12-16 12:33:44 -05:00
Olivier Gagnon
9292484ed0 minor tweak 2021-12-16 12:29:41 -05:00
Olivier Gagnon
a1af0318d8 minor error message tweak 2021-12-16 12:20:04 -05:00
hydroflame
b05645a61c
Merge pull request #1936 from TheCoderJT/issue1920
Issue1920
2021-12-16 12:19:23 -05:00
hydroflame
43aba18b77
Merge pull request #1933 from Saynt-Garmo/dev
Issue 1911
2021-12-16 12:18:16 -05:00
Olivier Gagnon
52f2e52456 minor tweak to scp error message 2021-12-16 12:14:48 -05:00
hydroflame
0a63de4539
Merge pull request #1932 from theit8514/cp-1922
Update cp and mv terminal commands #1922
2021-12-16 12:14:15 -05:00
Olivier Gagnon
16431f1031 minor tweak to doc 2021-12-16 12:13:00 -05:00
hydroflame
2da9f87031
Merge pull request #1895 from TheCoderJT/editingGitDocs
Editing git docs
2021-12-16 12:11:05 -05:00
Olivier Gagnon
91c7811a36 format 2021-12-16 12:04:09 -05:00
Olivier Gagnon
d7f9cb8cec make setFocus a little more robust 2021-12-16 12:02:46 -05:00
Hedrauta
9e9a1ca882 Update codingcontracttypes.ts 2021-12-16 16:05:46 +01:00
Jordan Turner
e1e032b61f added semi colons they were missing at the end of some examples 2021-12-15 22:15:29 -07:00
Jordan Turner
db9b0a8ec8 added await before the ns2 method calls 2021-12-15 22:01:44 -07:00