Commit Graph

1195 Commits

Author SHA1 Message Date
danielyxie
e97861f42b Bladeburner API Improvements: Added getCurrentAction(). getSkillLevel() now fails if no argument is passed 2018-07-12 00:01:52 -05:00
danielyxie
3ffc820519 Fixed new Netscript1 Interpreter to work for functions returning Arrays/Objets. Untested. Also still needs new Hacknet Node implementation 2018-07-10 23:41:26 -05:00
Steven Evans
65082d4e0b [chore] Enabled Stylelint 'declaration-bang-space-before' rule 2018-07-10 09:50:04 -04:00
Steven Evans
afb2571941 [chore] Enabled Stylelint 'selector-attribute-operator-space-*' rules. 2018-07-10 09:49:45 -04:00
Steven Evans
420b6e9fb9 [style] Enabled Stylelint 'selector-combinator-space-*' rules 2018-07-10 09:49:45 -04:00
Steven Evans
2851424392 [style] Enabled Stylelint 'no-missing-end-of-source-newline' rule 2018-07-10 09:49:44 -04:00
Steven Evans
e74b31e313 [style] Enabled Stylelint "comment-whitespace-inside" rule 2018-07-10 09:49:44 -04:00
Steven Evans
f2b703d94c [style] Enabled Stylelint 'max-empty-lines' rule 2018-07-10 09:49:43 -04:00
Steven Evans
17c91b83d1 [style] Enabled Stylelint 'indentation' rule 2018-07-10 09:49:43 -04:00
Steven Evans
30de15efb7 [refactor] Enabled Stylelint 'function-comma-space-after' rule 2018-07-10 09:49:43 -04:00
Steven Evans
877a276542 [refactor] Enabled Stylelint 'length-zero-no-unit' rule 2018-07-10 09:49:42 -04:00
Steven Evans
bfa2c3d4f9 [refactor] Enabled Stylelint 'no-extra-semicolons' rule 2018-07-10 09:49:42 -04:00
Steven Evans
d563d9624a [refactor] Enabled Stylelint 'declaration-colon-space-after' rule 2018-07-10 09:49:41 -04:00
Steven Evans
71d80ae5a4 [refactor] Enabled Stylelint 'color-hex-length' 2018-07-10 09:49:41 -04:00
Steven Evans
1eee47dd3e [refactor] Enabled Stylelint "color-hex-case" rule 2018-07-10 09:49:41 -04:00
Steven Evans
9f3459a46f [refactor] Enabled Stylelint rule "color-named"
Going with no named colors for consistency.
2018-07-10 09:49:40 -04:00
danielyxie
dcd6292ed2 Fixed bugs with new HelperFunctions 2018-07-10 00:11:18 -05:00
danielyxie
79a489d7a9
Merge pull request #351 from kopelli/webpack-optimization
Webpack optimization
2018-07-09 15:37:48 -05:00
danielyxie
8080e28b64
Merge pull request #352 from kopelli/helper-functions
Helper functions
2018-07-09 15:37:23 -05:00
Steven Evans
41fbf63f0d [chore] TSLint cleanup 2018-07-09 13:58:05 -04:00
Steven Evans
28bebeb144 [refactor] Moved 'createAccordionElement' to its own TS file 2018-07-09 13:58:04 -04:00
Steven Evans
af40252ee9 [refactor] Moved 'clearSelector' to its own TS file. 2018-07-09 13:57:21 -04:00
Steven Evans
a82ed16c34 [chore, doc] Split out the "vendor"/3rd party code to its own bundle
Included 'vendor.bundle.js' as it is referenced. So this will give a
baseline to compare against future builds. But ideally this will only
change when updating dependency versions.
2018-07-09 12:50:57 -04:00
Steven Evans
16c8d6f38c [chore] Minimize bundle for production builds.
Although the files are GZIP'd when served up, this cuts their raw size to
under half.
2018-07-09 12:50:57 -04:00
Steven Evans
0e2cb9b189 [chore] Enabled Webpack "usedExports" optimization 2018-07-09 12:50:57 -04:00
Steven Evans
7b0b0de8ea [chore] Enabling Webpack 'providedExports' optimization 2018-07-09 12:50:56 -04:00
Steven Evans
9e26ee7858 [refactor] Moved 'removeChildrenFromElements' to its own TS file 2018-07-08 21:18:44 -04:00
Steven Evans
95939a8818 [refactor] Moved 'removeElement' to its own TS file; deduped logic 2018-07-08 21:18:43 -04:00
Steven Evans
3a20809943 [refactor] Removed 'clearEventListenersEl' as it was never called 2018-07-08 21:18:42 -04:00
Steven Evans
8016321bfb [refactor] Moved 'clearEventListeners' to its own TS file 2018-07-08 21:18:10 -04:00
Steven Evans
7edf5b5f1a [refactor] Moved 'clearObject' to its own TS file 2018-07-08 20:17:53 -04:00
Steven Evans
bcc6d39b10 [refactor] Removed unused imports/exports 2018-07-08 20:17:53 -04:00
Steven Evans
6701503c78 [refactor] Moved 'compareArrays' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans
1f7ed8f791 [refactor] Moved 'appendLineBreaks' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans
015524f049 [refactor] Moved 'powerOfTwo' to 'isPowerOfTwo' TS file 2018-07-08 20:17:52 -04:00
Steven Evans
1a5208f78f [refactor] Moved 'printArray' to 'arrayToString' TS file 2018-07-08 20:17:51 -04:00
Steven Evans
d20516b03c [refactor] Moved 'addOffset' to its own TS file 2018-07-08 20:17:51 -04:00
Steven Evans
875f7b4438 [refactor] Moved 'removeElementById' to its own TS file 2018-07-08 20:17:50 -04:00
Steven Evans
488f947a5b [refactor] Moved 'getElementById' to its own TS file. 2018-07-08 20:17:50 -04:00
Steven Evans
8c25684fe1 [refactor] Moved 'createPopup' to its own TS file. 2018-07-08 20:17:50 -04:00
Steven Evans
107f1de18d [refactor] Moved createElement into its own TS file
This is the start at separating out UI related work from potentially backend
related work. This distinction will help when Web Workers can be
introduced to get around the background tab limitation for scripts.
2018-07-08 20:17:49 -04:00
Steven Evans
bdb935d104 [refactor] Moved isValidIPAddress to its own TS file 2018-07-08 20:17:49 -04:00
Steven Evans
8b98321b9c [refactor] Moved getRandombyte to its own TS file
Also made use of `getRandomInt`
2018-07-08 20:17:49 -04:00
Steven Evans
be9891d93b [refactor] Moved 'getRandomInt' to its own TS file 2018-07-08 20:17:49 -04:00
Steven Evans
39c9488768 [refactor] Moved 'roundToTwo' to its own TS file 2018-07-08 20:17:48 -04:00
Steven Evans
e16ca2abb5 [refactor] Removed "numNetscriptOperators" as it is not used. 2018-07-08 20:15:07 -04:00
Steven Evans
15e3b751da [refactor] Moved "exceptionAlert" to its own TS file
Since this is a UI only function, when Web Workers are introduced this
call chain will not be allowed on the backend.
2018-07-08 20:15:07 -04:00
Steven Evans
be577164e3 [refactor] Removed export of "numOccurrences"
Does not appear to actually be used outside of StringHelperFunctions.ts
2018-07-08 20:15:07 -04:00
Steven Evans
a6293474a9 [refactor] Moved "isString()" to its own TS file 2018-07-08 20:15:06 -04:00
Steven Evans
187b5051b9 [refactor] Moved "createProgressBarText" to its own TS file 2018-07-08 20:15:06 -04:00