You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
For a better working with the javascript code i would suggest some refactorings.
More files
As we concat the complete code into one file it wouldn't be that problem to divide the code into more files. So i would suggest some little services for each callback we put into the options object of fancytree. Doing so we can handle each part separate and could unit test most of them (mostly we do transformations on data.node)
type hinting
As fancytree has a feature rich api and we transport a specific model through our api i would suggest to use some kind of typehinting. In typescript i use (DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped] no clue if ES6 has something equalt, but would be a reason for me to move into typescript (at the end it is an other converter only)
The text was updated successfully, but these errors were encountered:
As we concat the complete code into one file it wouldn't be that problem to divide the code into more files. So i would suggest some little services for each callback we put into the options object of fancytree. Doing so we can handle each part separate and could unit test most of them (mostly we do transformations on data.node)
Not sure how exactly, but definitely +1 on making the files a bit less big (and thus more structured).
As fancytree has a feature rich api and we transport a specific model through our api i would suggest to use some kind of typehinting. In typescript i use (DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped] no clue if ES6 has something equalt, but would be a reason for me to move into typescript (at the end it is an other converter only)
Not sure about this one. One thing I know, if we're going to switch to typescript, I'll stop contributing to the JS code in this bundle ;)
For a better working with the javascript code i would suggest some refactorings.
More files
As we concat the complete code into one file it wouldn't be that problem to divide the code into more files. So i would suggest some little services for each callback we put into the options object of fancytree. Doing so we can handle each part separate and could unit test most of them (mostly we do transformations on
data.node
)type hinting
As fancytree has a feature rich api and we transport a specific model through our api i would suggest to use some kind of typehinting. In typescript i use (DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped] no clue if ES6 has something equalt, but would be a reason for me to move into typescript (at the end it is an other converter only)
The text was updated successfully, but these errors were encountered: