Move all builder js files into their own folder (#208)
* Move all builder js files into their own folder * Minify index.html * Fix comment in atree constants readme Co-authored-by: hppeng <hppeng>
This commit is contained in:
parent
86b2a62b9a
commit
974b9ee0d8
17 changed files with 27 additions and 1028 deletions
|
@ -1305,7 +1305,6 @@
|
||||||
<script type="text/javascript" src="../js/powders.js"></script>
|
<script type="text/javascript" src="../js/powders.js"></script>
|
||||||
<script type="text/javascript" src="../js/skillpoints.js"></script>
|
<script type="text/javascript" src="../js/skillpoints.js"></script>
|
||||||
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
||||||
<script type="text/javascript" src="../js/atree_constants_min.js"></script>
|
|
||||||
<script type="text/javascript" src="../js/display_constants.js"></script>
|
<script type="text/javascript" src="../js/display_constants.js"></script>
|
||||||
<script type="text/javascript" src="../js/display.js"></script>
|
<script type="text/javascript" src="../js/display.js"></script>
|
||||||
<script type="text/javascript" src="../js/load.js"></script>
|
<script type="text/javascript" src="../js/load.js"></script>
|
||||||
|
@ -1313,13 +1312,14 @@
|
||||||
<script type="text/javascript" src="../js/load_tome.js"></script>
|
<script type="text/javascript" src="../js/load_tome.js"></script>
|
||||||
<script type="text/javascript" src="../js/custom.js"></script>
|
<script type="text/javascript" src="../js/custom.js"></script>
|
||||||
<script type="text/javascript" src="../js/craft.js"></script>
|
<script type="text/javascript" src="../js/craft.js"></script>
|
||||||
<script type="text/javascript" src="../js/build.js"></script>
|
<script type="text/javascript" src="../js/builder/atree_constants_min.js"></script>
|
||||||
<script type="text/javascript" src="../js/build_constants.js"></script>
|
<script type="text/javascript" src="../js/builder/build.js"></script>
|
||||||
<script type="text/javascript" src="../js/build_encode_decode.js"></script>
|
<script type="text/javascript" src="../js/builder/builder_constants.js"></script>
|
||||||
<script type="text/javascript" src="../js/atree.js"></script>
|
<script type="text/javascript" src="../js/builder/build_encode_decode.js"></script>
|
||||||
<script type="text/javascript" src="../js/builder.js"></script>
|
<script type="text/javascript" src="../js/builder/atree.js"></script>
|
||||||
<script type="text/javascript" src="../js/builder_graph.js"></script>
|
<script type="text/javascript" src="../js/builder/builder.js"></script>
|
||||||
<script type="text/javascript" src="../js/optimize.js"></script>
|
<script type="text/javascript" src="../js/builder/builder_graph.js"></script>
|
||||||
|
<!--script type="text/javascript" src="../js/builder/optimize.js"></script-->
|
||||||
|
|
||||||
<div id="graph_body" style="max-width: 100%; height: 100vh">
|
<div id="graph_body" style="max-width: 100%; height: 100vh">
|
||||||
<button id="saveButton">JANKY Export SVG</button>
|
<button id="saveButton">JANKY Export SVG</button>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1303,7 +1303,6 @@
|
||||||
<script type="text/javascript" src="../js/powders.js"></script>
|
<script type="text/javascript" src="../js/powders.js"></script>
|
||||||
<script type="text/javascript" src="../js/skillpoints.js"></script>
|
<script type="text/javascript" src="../js/skillpoints.js"></script>
|
||||||
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
||||||
<script type="text/javascript" src="../js/atree_constants_min.js"></script>
|
|
||||||
<script type="text/javascript" src="../js/display_constants.js"></script>
|
<script type="text/javascript" src="../js/display_constants.js"></script>
|
||||||
<script type="text/javascript" src="../js/display.js"></script>
|
<script type="text/javascript" src="../js/display.js"></script>
|
||||||
<script type="text/javascript" src="../js/load.js"></script>
|
<script type="text/javascript" src="../js/load.js"></script>
|
||||||
|
@ -1311,13 +1310,13 @@
|
||||||
<script type="text/javascript" src="../js/load_tome.js"></script>
|
<script type="text/javascript" src="../js/load_tome.js"></script>
|
||||||
<script type="text/javascript" src="../js/custom.js"></script>
|
<script type="text/javascript" src="../js/custom.js"></script>
|
||||||
<script type="text/javascript" src="../js/craft.js"></script>
|
<script type="text/javascript" src="../js/craft.js"></script>
|
||||||
<script type="text/javascript" src="../js/build.js"></script>
|
<script type="text/javascript" src="../js/builder/atree_constants_min.js"></script>
|
||||||
<script type="text/javascript" src="../js/build_constants.js"></script>
|
<script type="text/javascript" src="../js/builder/build.js"></script>
|
||||||
<script type="text/javascript" src="../js/build_encode_decode.js"></script>
|
<script type="text/javascript" src="../js/builder/builder_constants.js"></script>
|
||||||
<script type="text/javascript" src="../js/atree.js"></script>
|
<script type="text/javascript" src="../js/builder/build_encode_decode.js"></script>
|
||||||
<script type="text/javascript" src="../js/builder.js"></script>
|
<script type="text/javascript" src="../js/builder/atree.js"></script>
|
||||||
<script type="text/javascript" src="../js/builder_graph.js"></script>
|
<script type="text/javascript" src="../js/builder/builder.js"></script>
|
||||||
<script type="text/javascript" src="../js/optimize.js"></script>
|
<script type="text/javascript" src="../js/builder/builder_graph.js"></script>
|
||||||
|
<!--script type="text/javascript" src="../js/builder/optimize.js"></script-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
1001
builder2.html
1001
builder2.html
File diff suppressed because it is too large
Load diff
|
@ -1,6 +0,0 @@
|
||||||
How to convert:
|
|
||||||
|
|
||||||
0. start in the `js` directory
|
|
||||||
1. edit `atree_constants.js`
|
|
||||||
2. run `python3 ../py_script/atree-generateID.py
|
|
||||||
3. check that the site still works
|
|
6
js/builder/README_atree_constants.md
Normal file
6
js/builder/README_atree_constants.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
How to convert:
|
||||||
|
|
||||||
|
0. start in the `builder/js` directory
|
||||||
|
1. edit `atree_constants.js`
|
||||||
|
2. run `python3 ../../py_script/atree-generateID.py
|
||||||
|
3. check that the site still works
|
|
@ -1078,7 +1078,7 @@ function builder_graph_init() {
|
||||||
// Phase 3/3: Set up atree stuff.
|
// Phase 3/3: Set up atree stuff.
|
||||||
|
|
||||||
let class_node = new PlayerClassNode('builder-class').link_to(build_node);
|
let class_node = new PlayerClassNode('builder-class').link_to(build_node);
|
||||||
// These two are defined in `atree.js`
|
// These two are defined in `builder/atree.js`
|
||||||
atree_node.link_to(class_node, 'player-class');
|
atree_node.link_to(class_node, 'player-class');
|
||||||
atree_merge.link_to(class_node, 'player-class');
|
atree_merge.link_to(class_node, 'player-class');
|
||||||
pre_scale_agg_node.link_to(atree_raw_stats, 'atree-raw-stats');
|
pre_scale_agg_node.link_to(atree_raw_stats, 'atree-raw-stats');
|
|
@ -188,7 +188,7 @@ function getCustomFromHash(hash) {
|
||||||
|
|
||||||
/** An object representing a Custom Item. Mostly for vanity purposes.
|
/** An object representing a Custom Item. Mostly for vanity purposes.
|
||||||
* @dep Requires the use of nonRolledIDs and rolledIDs from display_constants.js.
|
* @dep Requires the use of nonRolledIDs and rolledIDs from display_constants.js.
|
||||||
* @dep Requires the use of attackSpeeds from build.js.
|
* @dep Requires the use of attackSpeeds from `builder/build.js`.
|
||||||
*/
|
*/
|
||||||
class Custom {
|
class Custom {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -72,7 +72,8 @@ function displayBuildStats(parent_id,build,command_group,stats){
|
||||||
let active_elem;
|
let active_elem;
|
||||||
let elemental_format = false;
|
let elemental_format = false;
|
||||||
|
|
||||||
//TODO this is put here for readability, consolidate with definition in build.js
|
//TODO this is put here for readability, consolidate with definition in `builder/build.js`
|
||||||
|
// TODO amend: uuhhhhh these two constants have diverged too far...
|
||||||
let staticIDs = ["hp", "eDef", "tDef", "wDef", "fDef", "aDef"];
|
let staticIDs = ["hp", "eDef", "tDef", "wDef", "fDef", "aDef"];
|
||||||
|
|
||||||
for (const command of display_commands) {
|
for (const command of display_commands) {
|
||||||
|
|
Loading…
Reference in a new issue