Feature: create a new page and components to help build the json necessary to add a new command
vwalsh opened this issue · comments
Vance Walsh commented
this is very much a feature to help improve the commands available, as fast as possible.
- all local state, nothing needs to preserve in localstorage for this feature
- test if the VALUE the user has added already exists in the commands.json to help stop from shooting yourself in the foot from replacing values in other places that don't make sense. it also makes sense to keep certain values the same so it could guide them towards what might already exist?
- new route with button added to the header of the site
- textarea to enter the command and edit it's parameters
- show a second textfield that's not editable which shows the 'compiled' version of the command
- show a list of global values and description so that the user can choose things like the attacker host value and replacement code easily
- components to select what config options are needed for the command
- number input config component
- string input config component
- checkox input config component
- select input config component
- textfield with copy button that shows the json necessary to add to the commands.json
- add help buttons and text so the user knows what each option does
Vance Walsh commented
f76d5f1 mostly implemented here, ready for testing
Vance Walsh commented
d251ae2 small bugfix
Vance Walsh commented
7db7b65 parity updates to this for latest features
Vance Walsh commented
closing as the final issue hasn't yet been too much of an issue while testing. future improvements can still be made