dinglehopper icon indicating copy to clipboard operation
dinglehopper copied to clipboard

Offline use

Open cneud opened this issue 6 years ago • 4 comments

The stylesheet for the report linked as <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"...> should be distributed with the sources in order to support the rendering even when the tool is used offline.

cneud avatar Aug 15 '19 17:08 cneud

I'm going to install these dependencies statically in the future, i.e. download once upon install.

mikegerber avatar Aug 16 '19 09:08 mikegerber

I tend to resort to package.json + webpack once dependencies become non-trivial.

kba avatar Aug 16 '19 09:08 kba

Some loud thinking:

a. Leave as is → Reports work everywhere, but not offline b. Install CSS+JS to /usr/local (or equivalent) → Reports work on the local machine, even offline, but not everywhere else

Probably going down the b road, but have an option to have the reports to be "portable". (Is there a way to have a fallback URL for CSS/JS? That would do it.)

mikegerber avatar Nov 18 '19 16:11 mikegerber

You could always minify the CSS+JS and include it inline for maximum portability.

cneud avatar Nov 18 '19 17:11 cneud