DCC-EX / WebThrottle-EX

WebThrottle-EX is a web based (html,jQuery,JavaScript) Controller/Throttle for DCC-EX EX-CommandStations
https://dcc-ex.com/WebThrottle-EX
GNU General Public License v3.0
21 stars 14 forks source link

Seperate .js files by resposibility #37

Open ManiAkasapu opened 3 years ago

ManiAkasapu commented 3 years ago

Currently all functions/functionality scattered across js files. This is the task to bring all of them together and put them in meaningful way. This includes moving function to different .js file, Creating & renaming .js file if needed etc. Ultimately, We should be able to tell which .js file is responsible for a particular functionality. For example,

uicontrol.js  // deal with what /when the UI should be changed
storageControl.js // deal with storage related funtions
locomotives.js  // deal with locomotives data logic
functionamapping.js // deal with maps

Not only files but also functions inside each file should be in meaningful order to increase find-ability.

matt-vdv commented 3 years ago

@ManiAkasapu Very good idea as at the moment exwebthrottle.js contains most of the code. Added to version 1.3.0 milestone