shzlw / poli

An easy-to-use BI server built for SQL lovers. Power data analysis in SQL and gain faster business insights.
https://shzlw.github.io/poli
MIT License
1.97k stars 330 forks source link

index.html with relative paths to css and js files #58

Open krandalf75 opened 4 years ago

krandalf75 commented 4 years ago

Make poly more reverse proxy friendly: Use relative paths to load javascript and css so they are loaded from /poli/static instead /static. So we don't need to publish /static folder.

codecov-io commented 4 years ago

Codecov Report

Merging #58 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #58   +/-   ##
=========================================
  Coverage     65.36%   65.36%           
  Complexity      406      406           
=========================================
  Files            51       51           
  Lines          1611     1611           
  Branches        141      141           
=========================================
  Hits           1053     1053           
  Misses          513      513           
  Partials         45       45

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b23d6e2...9ece6c8. Read the comment docs.

shzlw commented 4 years ago

Hey man. Thanks for the PR. I tested it and it works well. The only problem is if I refresh the page for example, http://localhost:6688/poli/workspace/report. All resource files are redirected to http://localhost:6688/poli/workspace/static/css/2.07f54ecf.chunk.css from http://localhost:6688/static/css/2.07f54ecf.chunk.css and return 404.