Page 1 of 1

Unminified source code for common BGA js components?

Posted: 12 October 2020, 21:38
by salty-horse
I would like to understand and modify some of BGA's components, such as Stock.
Is the unminified source code available anywhere public?

I'm doing some unconventional things with it (wishing to handle my own selection mechanism, not using images for elements), and finding it time-consuming to understand which of things it depends upon for various operations, and how to bypass them (e.g., some operation depend on specific class names).

Having the source code would also allow to quickly adapt it to my own uses (such as placing the elements in specific patterns).

Re: Unminified source code for common BGA js components?

Posted: 13 October 2020, 09:16
by Lymon Flowers
I don't know if there are such files handy, but un-minification tools like js-beautify could help if you need to understand the framework a bit more.

Re: Unminified source code for common BGA js components?

Posted: 13 October 2020, 09:28
by salty-horse
Yes, I can already view the files with a "prettifier". This is the process I'm finding time-consuming. It will be much easier if I had access to the real code.

Re: Unminified source code for common BGA js components?

Posted: 14 October 2020, 23:27
by Victoria_La
Code is not available publically for security and copyright protection reasons, it is not open source. Component like Stock is pretty trival and
you can use prettifier easily for sure. It is also very well documented on wiki pages.
You also don't really need it now days as html5 technologies pretty much elimate need to javascript coding
for managing children of a div and layout (so there is no really "modify" - if it does not fit into your model - do not use it).

Re: Unminified source code for common BGA js components?

Posted: 15 October 2020, 05:20
by salty-horse
OK, thanks.