The first commit puts all the badge images from gamification server into the module (and updates the path on badge image url).
The second commit optimizes and fix the function isFresh responsible of calling the server if files are outdated: as the function was broken, the CSS files from advices were requested everytime!
This doesn't solve the resiliency issue for now. I'm waiting for https://github.com/PrestaShop/gamification/pull/24 to be merged as I want to write integration tests to confirm the module is totally functional even when gamification server is down.
This contributions is not that huge!
The first commit puts all the badge images from gamification server into the module (and updates the path on badge image url).
The second commit optimizes and fix the function
isFresh
responsible of calling the server if files are outdated: as the function was broken, the CSS files from advices were requested everytime!