hydroflame
7260d5fe35
Merge pull request #2100 from mikomyazaki/empty-editor-to-terminal
...
Closing the final script in your editor will take you to the terminal
2021-12-22 12:17:32 -05:00
Hedrauta
7f3f5c7648
commitCrime will return milliseconds 😉
2021-12-22 02:00:22 +01:00
Andrew Cooper
f2bdf00aba
Closing the final script in your editor will take you to the terminal.
2021-12-22 00:26:01 +00:00
Olivier Gagnon
b2b682fa04
fix editor not loading files
2021-12-21 13:44:18 -05:00
Olivier Gagnon
41593e0dce
fix editor not loading
2021-12-21 12:02:06 -05:00
hydroflame
79eb2f7e0b
Merge pull request #2092 from theit8514/script-focus-v2
...
Add focus parameter to workForCompany/workForFaction
2021-12-21 11:02:26 -05:00
hydroflame
c1c7131545
Merge branch 'dev' into feat/open-multiple-files-from-cli
2021-12-21 11:02:06 -05:00
hydroflame
81e3f2afd1
Merge pull request #1986 from billyvg/feat/add-vim-command
...
feat: add `vim` terminal command
2021-12-21 11:00:33 -05:00
hydroflame
26106fa71d
Merge pull request #2077 from MartinFournier/feature/get-theme
...
Add ns.ui.getTheme() api function
2021-12-21 10:57:58 -05:00
hydroflame
4be5e45740
Merge pull request #2073 from billyvg/fix/window-resizing
...
fix: Update editor height when resizing window
2021-12-21 10:56:51 -05:00
hydroflame
7a9e8936ee
Merge pull request #2083 from 65-7a/txt-file-editor-patch
...
Script editor fixes for .txt files
2021-12-21 10:49:08 -05:00
theit8514
d873f7279b
Add focus parameter to workForCompany/workForFaction
...
Defaults to true to keep previous behavior.
2021-12-21 08:13:18 -05:00
Dan
8ccb128e6f
docs(ns.getPlayer): update doc to have ram cost
...
Resolves danielyxie/bitburner#2084
2021-12-21 01:44:32 +00:00
65-7a
a6aebd4a29
Change model to plaintext for txt files
2021-12-21 10:35:03 +11:00
65-7a
56e540802b
Disable RAM calculation for txt files
2021-12-21 10:21:22 +11:00
Billy Vong
bb2f8e883c
feat: Support opening multiple files from command line
2021-12-20 16:55:17 -05:00
Billy Vong
d30edc7f59
feat: Add vim
terminal command
2021-12-20 16:20:50 -05:00
Olivier Gagnon
b57ac45698
doc
2021-12-20 15:59:46 -05:00
Olivier Gagnon
41a7109baa
fix
2021-12-20 15:48:26 -05:00
Martin Fournier
65d0877edc
Add ns.ui.getTheme() api function
2021-12-20 14:37:10 -05:00
Billy Vong
63891351be
remove TODO
2021-12-20 14:05:59 -05:00
Billy Vong
60749eefa7
remove console + format
2021-12-20 14:05:22 -05:00
Billy Vong
ee177393fa
fix: Update editor height when resizing window
2021-12-20 14:04:42 -05:00
Olivier Gagnon
5dc9ac040a
toast time config
2021-12-20 13:29:04 -05:00
Billy Vong
3fd904ff87
format
2021-12-20 10:48:32 -05:00
Billy Vong
6641ca9c73
fix ts
2021-12-20 10:45:44 -05:00
Billy Vong
517066a710
fix missed conflicts
2021-12-20 10:44:17 -05:00
Billy Vong
d372166c8b
Merge branch 'dev' into feat/add-vim-mode
2021-12-20 10:36:58 -05:00
Martin Fournier
e60996b86c
Focus editor when opening or changing tabs
2021-12-20 07:15:53 -05:00
Martin Fournier
08a4a1649f
Linting ScriptEditor
2021-12-20 07:01:34 -05:00
BuildTools
302af48be4
Fixed merge conflict
2021-12-20 01:44:51 -06:00
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
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
Jordan Turner
f678574a6c
made it more clear what nuke exe does
2021-12-19 13:47:34 -07:00
Martin Fournier
3b99da8474
Lint current problems & fix ignore paths
2021-12-19 13:17:44 -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
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
BuildTools
59498f780a
Small css tweaks
2021-12-18 07:11:59 -06: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
Adraxas
069d76df25
Fix NS.exec signature
2021-12-17 18:40:00 -08:00
Billy Vong
b3f9380ebd
prettier
2021-12-17 12:56:48 -05:00
Billy Vong
6fb5565b08
remove unused code
2021-12-17 12:48:50 -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
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
Olivier Gagnon
33e918fc49
doc
2021-12-16 15:28:53 -05:00
Olivier Gagnon
e16fba2418
scan doc
2021-12-16 15:21:00 -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
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
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
Jordan Turner
3926913790
updated appearach of example sections based on alainbryden suggestion
2021-12-15 21:47:18 -07:00
theit8514
2e133bcf0a
Fix return type of isFocused
2021-12-15 20:55:47 -05:00
theit8514
d59601f848
Add return value and code style cleanup
2021-12-15 20:48:19 -05:00
theit8514
ad57f3dc73
Work functions do not take focus
...
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Jordan Turner
632e1f70f3
added rs to backricks to color code syntax
2021-12-15 10:25:54 -07:00
Jordan Turner
687682fcbd
added syntax useage to github ns page
2021-12-15 10:10:32 -07:00
Olivier Gagnon
e5b4dd8e90
Files should be saved on the server that opened them.
2021-12-13 20:08:58 -05:00
Olivier Gagnon
7b8e486e3a
fix typo in doc
2021-12-13 15:50:01 -05:00
Olivier Gagnon
11ba8c91be
getServer of hacknet doesn't return undefined
2021-12-12 13:47:05 -05:00
Olivier Gagnon
394a286646
formulas for ascension
2021-12-09 12:52:51 -05:00
Olivier Gagnon
c915cd06d8
corp doc
2021-12-08 20:03:22 -05:00
Olivier Gagnon
14317628e6
formulas doc
2021-12-08 19:19:07 -05:00
Olivier Gagnon
5a15df9ce7
rename the functions I created 2 minutes ago.
2021-12-08 19:03:33 -05:00
Olivier Gagnon
6eba92b36c
rename the functions I created 2 minutes ago.
2021-12-08 18:41:49 -05:00
Olivier Gagnon
2af57cb01e
formulas for gang stuff
2021-12-08 18:19:30 -05:00
Olivier Gagnon
d01d75606a
few bugfix
2021-12-08 17:39:01 -05:00
Olivier Gagnon
737276e855
corp api
2021-12-03 23:06:04 -05:00
Olivier Gagnon
3c27893aa3
v1.1.0
2021-12-03 16:14:13 -05:00
hydroflame
ceb008c9fe
Merge pull request #1816 from cvr-119/netscript
...
Add missing properties of Server interface
2021-12-03 16:09:56 -05:00
Olivier Gagnon
647ccd6a7b
BN13
2021-12-03 16:09:13 -05:00
corver
118fddb1bb
Add missing properties of Server interface
2021-12-03 16:00:49 -05:00
Olivier Gagnon
d4ebc46a19
merge dev
2021-12-03 15:35:45 -05:00
Olivier Gagnon
49a545f00e
many bugfix
2021-12-03 14:12:32 -05:00
Olivier Gagnon
773f50ba67
doc n steam copypaste
2021-12-02 18:42:30 -05:00
theit8514
cb1aa452a1
Move getOwnedSourceFiles to NetscriptFunctions
2021-12-02 12:17:33 -05:00
Olivier Gagnon
f0a004e75b
Fix a bunch of scripting related stuff.
2021-11-25 11:47:31 -05:00
Olivier Gagnon
f035457efc
build part pr
2021-11-20 15:01:04 -05:00
Olivier Gagnon
60d34c3cc6
rebuild
2021-11-19 23:45:34 -05:00
Olivier Gagnon
c88dade19a
fix tprintf catching errors
2021-11-19 22:58:41 -05:00
Olivier Gagnon
a4a931dad7
v1.0.2 part 1
2021-11-19 14:39:38 -05:00
Olivier Gagnon
632de50a73
convert BN13 to a more conventional one.
2021-11-18 15:38:19 -05:00
Olivier Gagnon
fc4c0fd8fd
rebuild
2021-11-18 11:32:22 -05:00
Olivier Gagnon
c69eb34341
v1.0.1
2021-11-17 19:56:17 -05:00
Olivier Gagnon
ef781a0627
plenty of bf
2021-11-15 23:49:33 -05:00
Olivier Gagnon
43a6521403
more work on bn13
2021-11-13 23:45:26 -05:00
Olivier Gagnon
56ddcd9a45
more work on bn13
2021-11-13 22:44:17 -05:00
Olivier Gagnon
3cbf2e8e7d
fix doc
2021-11-13 09:35:13 -05:00
Olivier Gagnon
6bd6b3061e
rename some stuff and close some exploits
2021-11-12 15:42:57 -05:00
Olivier Gagnon
7059bdf08a
added ramUsed to getNodeStats
2021-11-12 10:10:33 -05:00
Olivier Gagnon
cf2efe7698
few bugdic
2021-11-11 17:00:36 -05:00
Olivier Gagnon
3fe25d64e5
ns function token even more precise.
2021-11-11 11:21:21 -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
15b3a82a41
plenty of bug fix.
2021-11-10 19:28:20 -05:00
Olivier Gagnon
7cc2a1b49a
fix mc
2021-11-09 23:57:44 -05:00
Olivier Gagnon
b692bb90b9
fix ns1 blue colors
2021-11-06 17:46:55 -04:00
Olivier Gagnon
88b4a7d862
bugfix
2021-11-05 17:12:52 -04:00
Olivier Gagnon
14150d3e33
work on making the netscript api tighter
2021-11-03 20:19:52 -04:00
Olivier Gagnon
c5fb5155f3
work on making sure all the functions are accounted for
2021-11-03 18:16:10 -04:00
Olivier Gagnon
d82f3e7ad7
more doc
2021-11-03 00:33:14 -04:00
Olivier Gagnon
2b79871c02
doc
2021-11-03 00:27:21 -04:00
Olivier Gagnon
3633134a69
doc changes
2021-11-02 20:10:30 -04:00
Olivier Gagnon
40cd679be5
few doc update
2021-11-02 17:48:02 -04:00
Olivier Gagnon
d7c23b975c
fix code not saving
2021-11-02 16:10:01 -04:00
Olivier Gagnon
9b0726ca9a
documentation
2021-10-30 16:03:34 -04:00
Olivier Gagnon
feb0430aff
work on doc
2021-10-30 15:46:34 -04:00
Olivier Gagnon
43fc5dfd48
work on doc
2021-10-30 12:34:14 -04:00
Olivier Gagnon
d99d3fc222
dont run inf loop check on ns1 scripts
2021-10-29 01:23:15 -04:00
Olivier Gagnon
d1d0ccf345
added possible infinite loop checker
2021-10-28 23:04:26 -04:00
Olivier Gagnon
2e8cdc23d9
use NetscriptDefinitions as source of truth
2021-10-27 23:58:07 -04:00
Olivier Gagnon
91877dc172
netscript def is raw loaded
2021-10-27 23:19:19 -04:00
Olivier Gagnon
53cb37a9fd
added some funcions
2021-10-27 21:07:58 -04:00
Olivier Gagnon
8f097ebb32
v0.58.0
2021-10-27 15:16:16 -04:00
Olivier Gagnon
080b5a4a1f
merge dev
2021-10-26 23:11:47 -04:00
Olivier Gagnon
c69888f66d
Added one definition to NetscritpDefinitions
2021-10-25 10:05:19 -04:00
Olivier Gagnon
65ac7ff6e3
fix sleeve in netscript def
2021-10-24 12:19:01 -04:00
Olivier Gagnon
0afb2e5f5d
remove comments
2021-10-23 14:40:57 -04:00
Olivier Gagnon
a0039d9667
beautify using monaco
2021-10-23 14:40:46 -04:00
Olivier Gagnon
f5b23262f6
fix react error
2021-10-23 14:36:07 -04:00
hydroflame
5e4934615f
Merge pull request #1554 from CalvinTrop/dev
...
Added "solarish-dark" and "solarish-light" themes to script editor based on Solarized
2021-10-22 14:30:52 -04:00
Snarling
14c41d2aab
Add script editor documentation for getServer
2021-10-19 10:27:53 -04:00
Snarling
d035a4099f
Streamlining for NetscriptFunctions
...
* Functions that used GetServer and then threw an error on null now use safeGetServer to do that for them.
* Parameter names for ip have been changed to hostname.
* Functionality of getPurchasedServers(false) to return an array of IPs was restored (it was broken by the change to hostnames as primary key).
* Dynamic ram message was updated to omit the part about modifying imported scripts, since this is no longer an issue.
* Dynamic ram violation samples were updated so that they would actually avoid using the variable name 'scan' (which would not subvert ram calculations).
* Included a fix for getServer to default to script's current server if no hostname is specified (per doc page).
2021-10-19 10:13:19 -04:00
Jeff Baars
ab60b411ca
Bracket highlighting per Solarized example js images
2021-10-18 16:58:23 -07:00
Jeff Baars
fd9d8d5c8a
Added solarish-dark and solarish-light themes to code editor based on Solarized: https://ethanschoonover.com/solarized/
2021-10-18 16:20:41 -07:00
Jeff Baars
7103601403
Added Solarized dark and light themes to code editor.
2021-10-18 13:41:26 -07:00
Olivier Gagnon
c96c7e3d2e
v0.57.0
2021-10-16 22:32:48 -04:00
Olivier Gagnon
371d41b7c3
added placeholder for filename
2021-10-15 21:28:17 -04:00
Olivier Gagnon
02b085cc75
script editor now saves on server that opened the file and displays server name
2021-10-15 21:27:02 -04:00
Olivier Gagnon
762e7f127c
improve monokai again
2021-10-15 18:58:10 -04:00
Olivier Gagnon
34fa906013
save some text editor notes
2021-10-15 18:27:02 -04:00
Olivier Gagnon
80d197652d
improve monokai by making the language a superset of javascript
2021-10-15 18:25:22 -04:00
Olivier Gagnon
b5a8ed1d9d
improve script editor display
2021-10-15 16:16:11 -04:00
Olivier Gagnon
e047653ed7
improve text editor scaling
2021-10-15 16:14:27 -04:00
Olivier Gagnon
f645d08a50
small screen script editor
2021-10-15 15:47:17 -04:00
Olivier Gagnon
89a6bf175d
nuke half the dependencies because they were unused.
2021-10-14 19:31:17 -04:00
Olivier Gagnon
a90575aea9
load monokai
2021-10-12 10:56:19 -04:00
Olivier Gagnon
faad0ae8a7
Try to make an error message more helpful
2021-10-11 18:47:05 -04:00
Olivier Gagnon
06775b20fa
saving file now saves game
2021-10-11 17:57:17 -04:00
Olivier Gagnon
b126bd01ee
ram check is debounced
2021-10-11 16:59:37 -04:00
Olivier Gagnon
8f13363466
prettier
2021-10-11 16:38:50 -04:00