Commit Graph
4 Commits
Author SHA1 Message Date
David Roberts ce6ab38a72 Initial stab at making the master server dole out resources more fairly when running a deficit. 2017-08-29 23:35:50 -07:00
David Roberts 49887012f7 Tweaked slaveDisplay.js to use 92% less data to draw a chart. This is projected to speed up chart loading significantly, from 3.4s to about 0.5s.
- Added copper-cable to the list of hidables on the chart, and removed copper-wire which isn't a thing.
- Don't display items as hidable that aren't being produced. It's confusing.
- Added /getTimelineStats, because /getStats is used by another view that I don't feel like converting to not require the 0-production data points.
2017-08-29 16:25:33 -07:00
David Roberts 000b2fc147 Added search functionality back in. It's much snappier now.
- Is now case-insensitive.
- And regex.
2017-08-29 13:57:13 -07:00
David Roberts bdf4225dec Clean up web interface storage tab.
- Use diffing algorithm so you can select text and images.
	- This uses textcontent, plugs a vulnerability where you could inject arbitrary javascript if you could upload a modded item with html in the name, eg, "iron-plate<img src=\"\" onerror=\"console.log('hi')\">".
- Fall back to transparent png if item image not found.
	- This stops the flashing box when the image does not exist.
- (internal) Simplify `sortByKey(array, key)`.
2017-08-29 13:25:15 -07:00