supermarket icon indicating copy to clipboard operation
supermarket copied to clipboard

Supermarket in offline environment - issues with Javascript

Open yrros opened this issue 7 years ago • 2 comments

Reports from a user expressed that although the install into an offline environment was good (well done all). When using the GUI, errors are thrown due to requiring assets from public sources which are then not accessible in this internet-less environment. Could the system be modified to avoid this?

I am seeking further clarification from the user as to the specific error(s) and will update when they become available.

yrros avatar Jan 05 '17 10:01 yrros

We should be able to fix things so an airgapped install doesn't try to get assets from anything but itself. Errors from the user would be helpful!

robbkidd avatar Jan 05 '17 12:01 robbkidd

When we go to the root page it tries to load the following online resources: https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css https://fonts.googleapis.com/css?family=Montserrat:400,700

It will also try to load images from secure.gravatar.com. Maybe add a setting so we can deactivate this integration? That would be nice! Apparantly there's also a rendering issue with Firefox (I'm using 50.1.0 for Ubuntu) when the avatars doesn't load. I've attached a screenshot. It looks better in Chrome. supermarket_recently_updated

When I'm signing in it tries to load: https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js However, this resource is included by the OAuth sign in page on Chef Server, not Supermarket.

knutjda avatar Jan 16 '17 18:01 knutjda