Added a new file 'module_paths.json' which will update with absolute paths to module JS defined in every modules > __init__.py > 'def get_own_javascripts'.
When Flask service is started, it accesses the all module javascripts using `current_app.javascripts` which is called inside an route.
This call to route is made using Flask's `test_client` and thus those paths are written to `module_paths.json`(in javascript_bundler.py) which is used by webpack.shim.js file.
Three patches:
1. Move JS files to static directory
2. Deleted template JS
3. Generate JS paths before app starts
These patches needs to be committed separately as deleted files includes in the commit that makes difficult to look for changes through `git log <commit-has>`
Please review.
Thanks,
Surinder
On Thu, Jul 20, 2017 at 6:08 PM, Dave Page <dpage@pgadmin.org> wrote:
The loading icon image is used in FileManager and it is still referenced from vendor `aciTree`(which is removed) so it gives 404 not found when FileManager is opened from Query tool/Backup utility.