Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/command visualizer ts #346

Merged
merged 28 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bd04bde
First implementation of command visualizer as typescript (ignoring ar…
JorelAli Sep 25, 2022
b4e06ec
Converts arguments.js -> arguments.ts
JorelAli Sep 26, 2022
bf94bab
Fix string reader parsing issues with block pos args
JorelAli Sep 26, 2022
dbd61e7
Remove ts-errors. Prevent unused locals/parameters
JorelAli Sep 26, 2022
2dd6580
Tidy up directory structure, with src/ for sources and dist/ for outputs
JorelAli Sep 26, 2022
2763dca
Update commandvisualizer readme with updated instructions
JorelAli Sep 26, 2022
ea05ce7
Adds potion effect argument. Fix issues with autocomplete
JorelAli Sep 26, 2022
2af31a9
Adds AngleArgument and UUIDArgument
JorelAli Sep 26, 2022
6d3b137
Work on implementing the entity selector argument
JorelAli Sep 26, 2022
5f359ff
Make use of webpack-dev-server instead of http-server
JorelAli Sep 26, 2022
71a5771
Adds NBT to entity selector argument type. Adds gamemode, sort and limit
JorelAli Sep 26, 2022
04e5a04
Adds better error message when NBT fails
JorelAli Sep 26, 2022
ff4935b
Adds scores, template for suggestions tags and ranged bounds to entit…
JorelAli Sep 27, 2022
bdb1e83
Add entity types, team and suggestions generator to entity selector a…
JorelAli Sep 27, 2022
2be11e5
Work on suggestions for entity argument. Adds scrolling suggestions +…
JorelAli Sep 28, 2022
dbb4380
Fix cursor placing bugs. Work on ensuring suggestions scroll into vie…
JorelAli Sep 28, 2022
8b9c211
Fix Firefox incompatibilities with command visualizer
JorelAli Sep 28, 2022
de67836
Fix player limits and implement other entity selector arguments
JorelAli Sep 28, 2022
8b9fbf2
Augment node-brigadier's StringReader with readLocationLiteral method
JorelAli Sep 28, 2022
7f77152
Move other StringReader extensions into brigadier_extensions
JorelAli Sep 28, 2022
fa301cd
Enable strict null checks
JorelAli Sep 28, 2022
63338da
Mess around with type predicates
JorelAli Sep 28, 2022
707841c
Move valid box below command entry. Add mousedown event for suggestio…
JorelAli Sep 29, 2022
7c429ef
Fix webpack not recognising brigadier extensions
JorelAli Sep 29, 2022
4892da4
Adds math operation argument. Simplify argument implementations
JorelAli Sep 29, 2022
11110aa
Make a dedicated box for displaying errors
JorelAli Sep 29, 2022
e0e4a92
Adds Enchantment, NBT, IntRange, FloatRange and Function arguments
JorelAli Sep 30, 2022
99a8563
Implementation Function, ItemSlot, ResourceLocation, Rotation, Scoreb…
JorelAli Sep 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ target
logs/latest.log
commandapi-plugin/dependency-reduced-pom.xml
commandapi-shade/dependency-reduced-pom.xml
.vscode/settings.json
.vscode
commandapi-plugin-test/command_registration.json
commandapi-plugin-test/logs/*
9 changes: 4 additions & 5 deletions docssrc/commandvisualizer/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# Command Visualizer

A JavaScript-based embedded Minecraft command viewing interface.
A TypeScript-based embedded Minecraft command viewing interface.

## Building

- Get [Node.js](https://nodejs.org/en/) if you don't already have it
- Run `npm install`
- Run `npx webpack ./commandvisualizer.js -o .`
- Run `npx webpack`

## Testing (e.g. how to use in your local browser)

- Run `npm install http-server`
- Run `npx http-server .`
- Run `npx webpack ./commandvisualizer.js -o . -d source-map` command above when necessary to update local JavaScript changes
- Run `npx webpack serve`
- Navigate to `http://localhost:8080`

## Acknowledgements

Expand Down
Loading