Commit Graph

335 Commits

Author SHA1 Message Date
Douwe Schulte
934a72b94c
Fix Nitpick: scan-analyze description displays with an html tag when doing help #3843 2022-06-22 14:06:05 +02:00
Undeemiss
f8f3c099e0 Formatted/linted (There are some errors, but they aren't mine afaik) 2022-05-28 21:35:20 -05:00
Olivier Gagnon
76ccb0ba36 lint 2022-05-25 11:43:43 -04:00
Olivier Gagnon
bd6705419c lint 2022-05-25 11:15:34 -04:00
Olivier Gagnon
63b0b22f92 Fix tor router from anywhere 2022-05-25 11:14:06 -04:00
phyzical
bc5377ba74
fix tests
bugfix/fix-tests

File List:
src/Terminal/determineAllPossibilitiesForTabCompletion.ts
test/jest/Terminal/Directory.test.js
2022-05-25 19:03:58 +08:00
borisflagell
12ec35823e MISC: FIX #2555 ManualHackMoney Bitnode multiplier being orphaned
Apply the BitnodeMultipliers.ManualHackMoney to money gained via Terminal's hack program.
2022-05-21 22:53:31 +02:00
Olivier Gagnon
3699b3aa25 allbuild commit b71418b0 2022-05-20 23:50:28 -04:00
hydroflame
084a29dfe4
Merge pull request #3474 from Hoekstraa/mvfix
UI: FIX #3473 'mv' now says destination script is running instead of returning an error
2022-05-19 02:16:33 -04:00
Dane Horn
1a9d3ee998 clean up regex and adjust tests to new criteria 2022-05-15 09:43:40 +02:00
Dane Horn
0988ec8226 adjust regex for directory name
new regex allows for more flexible folder names, while still disallowing '.' and '..'
2022-05-15 09:43:40 +02:00
RevanProdigalKnight
8e092939ce Fix indentation 2022-05-13 21:44:32 -06:00
RevanProdigalKnight
7a6809f66c
Simplify quoted string argument parsing 2022-05-13 21:39:20 -06:00
hydroflame
386dac4be2
Merge pull request #3619 from Snarling/usedRamFix
MISC: FIX #3593 Float errors can no longer prevent full usage of a server's available ram.
2022-05-13 11:06:49 -04:00
Undeemiss
831b2262de Reran format and lint 2022-05-11 16:06:05 -05:00
Undeemiss
a23c55c760 Added a check to prevent doubling coding contract rewards 2022-05-11 15:51:54 -05:00
Snarling
fe1dd11269 Only mention number of threads if != 1
Fixes confusion mentioned here: https://discord.com/channels/415207508303544321/921120989000114257/971233305020231722
2022-05-06 09:15:48 -04:00
Snarling
99a0337a14 Dirty fix for available ram float errors
1MB added to available ram when checking if available is sufficient. All actual ram values in game are a multiple of 50MB so an extra 1MB can't ever allow additional script load to be ran.
2022-05-06 08:56:19 -04:00
Olivier Gagnon
36c7ef1ad7 support ASNI 2022-05-04 12:21:16 -04:00
hydroflame
be9f67b38a
Merge pull request #3605 from Hoekstraa/key-to-keycode
UI: FIX #3592 Sidebar and bash shortcuts now work on MacOS with US-like layouts
2022-05-04 11:49:17 -04:00
RevanProdigalKnight
286ab64d67 Ran formatter 2022-05-04 08:32:55 -06:00
RevanProdigalKnight
8d5f80de26 Fixes linter/build errors from editing last night in GitHub 2022-05-04 08:27:52 -06:00
RevanProdigalKnight
36db849ff1
Upgrade terminal ParseCommand function
Adds ability to parse arbitrarily-nested strings into single arguments (see comments on lines 48, 64, 76)
Adds ability to parse additional number formats, e.g.: hexadecimal (0x0A), octal (018), and binary (0b1101)
Combines arguments separated with escaped spaces into single string arguments, e.g.: "echo Hello\ World!" -> ["echo", "Hello World!"]
2022-05-04 00:46:15 -06:00
Zoë Hoekstra
016a9a873f
Add keycode table and switch to event.code in select places 2022-05-03 15:59:46 +02:00
Olivier Gagnon
f10de908d4 Make tutorial explain ns1 vs ns2 better 2022-04-29 17:54:59 -04:00
hydroflame
307ec7961a
Merge pull request #3524 from Snarling/realignAutocomplete
UI: FIX #3522 realigned autocomplete popup
2022-04-20 13:05:27 -04:00
Snarling
3f53a1f090 Format+lint 2022-04-20 10:05:55 -04:00
Snarling
16e507127a Allow cd .. into empty directories 2022-04-20 10:03:51 -04:00
Snarling
5898e27529 Change alignment of autocomplete popper 2022-04-20 09:19:33 -04:00
JP Sugarbroad
01d7ac6967 make jQuery use explicit 2022-04-19 16:14:16 -07:00
Snarling
f466a880eb Fix style + Format/Lint 2022-04-18 07:55:59 -04:00
Snarling
02ccda197c WIP 2022-04-18 07:41:09 -04:00
Zoë Hoekstra
43807fb757
Add code for handling when dest. script is running 2022-04-15 19:44:08 +02:00
Chris380
bfa19eb7ba Make .lit and .msg files clickable 2022-04-14 16:23:45 +02:00
hydroflame
0d11a18ca9
Merge pull request #3428 from Chris380/bugfix/2367_reject_cd_to_invalid_folders
Reject cd to invalid folders
2022-04-13 11:27:35 -04:00
Olivier Gagnon
501b69bbc2 tighten messages types wth enums 2022-04-13 11:10:56 -04:00
chris380
d93ab92f69 Reject cd to invalid folders 2022-04-13 16:07:41 +02:00
Olivier Gagnon
8958046421 fix test 2022-04-12 14:06:24 -04:00
chris380
93f59f0df2 formatting updated 2022-04-12 15:11:38 +02:00
chris380
16720ec3b7 update connect help text 2022-04-12 15:08:04 +02:00
chris380
6a941d57ed Add backdoored servers to connect autocompletion 2022-04-12 15:03:45 +02:00
Olivier Gagnon
48f80f25d6 fmt and lint 2022-04-06 19:30:08 -04:00
phyzical
61fc815a6b added apr1 terminal command
* just opens the rickroll modal
2022-04-02 20:08:57 +08:00
Heinous Tugboat
9b0422f9ee Removes extra asterisk in template 2022-03-30 10:18:07 -04:00
hydroflame
0e89017794
Merge pull request #3246 from phyzical/refactor-more-key-codes
slice out event key constant refactors
2022-03-30 00:12:36 -04:00
hydroflame
3456acc6a8
Update connect.ts 2022-03-29 11:27:34 -04:00
Thomas B
0a9bded0d8
Clarify Error Message
Co-authored-by: ApamNapat <ApamNapat@users.noreply.github.com>
2022-03-28 08:33:05 -04:00
Thomas B
fe0b6d5982
Clarified error message 2022-03-25 09:41:23 -04:00
phyzical
c681828ec1 few more event key. constant refactors 2022-03-24 23:09:24 +08:00
Olivier Gagnon
05fe14a5ed Fix some key not working 2022-03-20 23:11:26 -04:00
BB
9c9550ad42 Removed unreachable code 2022-03-20 19:33:10 +01:00
hydroflame
9922ffb3c2
Merge branch 'dev' into issues/2308 2022-03-20 14:22:32 -04:00
hydroflame
d2dedace2e
Merge pull request #3152 from Master-Guy/issues/1944
Issues/1944
2022-03-20 14:21:28 -04:00
hydroflame
8faacfc4ef
Merge pull request #3158 from Master-Guy/features/2462
Tabelize linked output of `ls`
2022-03-20 14:20:53 -04:00
Master-Guy
9373d65a16
Merge branch 'danielyxie:dev' into issues/2308 2022-03-18 11:12:21 +01:00
Master-Guy
9dd933ecee Changed .keyCode to .key for files in "src" 2022-03-18 10:43:56 +01:00
Master-Guy
2871bba379 Review comments by ApamNapat 2022-03-17 22:25:30 +01:00
Master-Guy
e0377980a5
Merge branch 'dev' into issues/1944 2022-03-17 18:29:18 +01:00
Master-Guy
a575c0cfe3 Tabelize linked output of ls 2022-03-17 17:50:39 +01:00
hydroflame
561219a0ab
Merge branch 'dev' into bugfix/2877-2 2022-03-17 12:05:38 -04:00
hydroflame
9453537af4
Merge pull request #3151 from Master-Guy/issues/2877
Remove IP option from connect helptext
2022-03-17 12:04:53 -04:00
Master-Guy
93f4c499d4 Quick fix to prevent division by 0 2022-03-17 16:56:32 +01:00
phyzical
9949cc9a1e removed ip references 2022-03-17 21:50:23 +08:00
Master-Guy
59ec6213b9 Processed review comments 2022-03-17 13:17:43 +01:00
Master-Guy
01776bffac remove IP option from connect helptext 2022-03-17 13:00:07 +01:00
BB
5e2ccc71ec Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden 2022-03-11 16:32:48 +01:00
hydroflame
b7ffdeb5e2
Merge pull request #3076 from ApamNapat/turned_two_eslint_rules_on
Trailing whitespace and files not ending with \n are now illegal
2022-03-10 22:12:17 -05:00
hydroflame
2dfecc8ad0
Merge pull request #3093 from mbrannen/expr-remainder-fix
updated regex sanitization
2022-03-10 21:39:59 -05:00
mbrannen
9602dbda2e
Update src/Terminal/commands/expr.ts
Updated to ApamNapat's suggestion

Co-authored-by: ApamNapat <ApamNapat@users.noreply.github.com>
2022-03-08 18:02:54 -07:00
BB
2f4d879c16 Trailing whitespace and files not ending with \n are now illegal 2022-03-08 22:51:02 +01:00
hydroflame
92909689b3
Merge pull request #2891 from tigercat2000/autocomplete_documentation
Terminal: There is now an interface definition for the autocomplete() 'data' argument.
2022-03-08 16:34:57 -05:00
mbrannen
bb6d90fb41 updated expression.
-removed escaping and reverted back for /
2022-03-07 23:50:05 -07:00
mbrannen
31ea56084e updated regex sanitization
-allows %
-updated escape characters to \
2022-03-07 23:15:55 -07:00
BB
2c3e0985c4 Simplified some relative imports 2022-03-06 05:05:55 +01:00
citrusmunch
cc3452a766 FIX: old name netstat/scan to just scan
seems like an old/deprecated name not used anywhere else
2022-02-14 00:47:37 -05:00
phyzical
26df6fd39c doc updates 2022-02-06 00:12:28 +08:00
phyzical
d41b19bced added support for ls -l 2022-02-06 00:05:48 +08:00
phyzical
9a3731cf18 updated grep for ls
* implemented flags logic for grep
* added --grep and -g
* updated docs
2022-02-05 23:27:08 +08:00
tigercat2000
f0557eadf7
Terminal: There is now an interface definition for the autocomplete() 'data' argument. 2022-01-31 20:47:15 -08:00
SagePtr
40f2d16f44 Show "Can run scripts" to "NO" for zero-RAM servers in "analyze" command 2022-01-29 18:10:59 +02:00
Martin Fournier
588c3e42d7 Refactor download.ts (export "download *" command)
Export the "download *" helper to be able to be called from Electron.
2022-01-26 03:40:22 -05:00
hydroflame
ea9871fef0
Merge pull request #2641 from MartinFournier/feature/save-command-history
Copy terminal command history into game save
2022-01-26 00:47:02 -05:00
Martin Fournier
e7aa977eb0 Persist terminal command history in game save
Copy the terminal commands into the player object so that they are saved
between game reloads.

Adds a 'history' command to display history, and a 'history -c' command
to clear it from both the current terminal & the player's save.
2022-01-23 17:09:54 -05:00
zeddrak
4ffe5508dc
HacknetServer Grow/Weaken error messages
It may be intentional to use hack for all 3 (ie, assume the player makes the connection that can't hack, also means can't grow or weaken), in which case, disregard.
On the other hand, it could've easily been a copy/paste artifact, and this would be more explicitly clear, so thought it was worth bringing up.
2022-01-22 14:47:33 -08: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
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
nickofolas
7a31b19c88 Fix formatting lost in merge commit 2022-01-16 20:40:11 -06:00
smolgumball
cb82907817 Fix issues with timestamps on same line as clickable script rows in ls 2022-01-15 21:29:12 -07:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
hydroflame
0c7070ad32
Merge pull request #2548 from smolgumball/ls-clickable-scripts
feat: add clickable script links to `ls` command
2022-01-15 17:49:23 -05:00
hydroflame
6bf6d1f217
Merge branch 'dev' into add-simple-globs-nano-vim 2022-01-15 17:38:25 -05:00
nickofolas
d136198738 Add autocomplete to help command 2022-01-14 15:25:30 -06:00
Martin Fournier
aa3a253b14 Cancel debounced events on terminal unmount 2022-01-14 14:32:30 -05:00
nickofolas
c7b3b9918e Update help text formatting 2022-01-13 18:47:21 -06:00
hydroflame
979d785af6
Merge pull request #2572 from nickofolas/fix-relative-autocomplete
Fix autocomplete in directories
2022-01-11 18:20:45 -05:00
nickofolas
5764b783de Fix autocomplete in directories 2022-01-11 17:04:14 -06:00
Jeffrey A. Robinson
b5392df7a9 Analyze now outputs if a server has a backdoor installed or not 2022-01-11 13:03:23 -08:00
Russell Stringer
26ef94b062 Fixes autocomplete when running script in a directory without using leading slash
Fixes #1681
2022-01-11 12:05:32 -05:00
hydroflame
9da46668c7
Merge pull request #2544 from nickofolas/autocomplete-partial-executable
Autocomplete partial executables
2022-01-11 11:13:45 -05:00
hydroflame
923dbdc9d1
Merge pull request #2549 from markusariliu/patch-1
clarify error
2022-01-11 11:13:17 -05:00