Skip to content

Commit

Permalink
Bundle bootstrap, jquery and poppler.
Browse files Browse the repository at this point in the history
This solves the need to define CSP and allows the library to be
used in environments where the CSP is defined for the environment.
  • Loading branch information
dhruvCW committed May 19, 2023
1 parent 48cf8e0 commit 29c7a38
Show file tree
Hide file tree
Showing 5 changed files with 8,805 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/flipper/ui/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ def feature_name

SOURCES = {
bootstrap_css: {
src: 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css'.freeze,
src: '/css/bootstrap-4.6.0.min.css'.freeze,
hash: 'sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l'.freeze
}.freeze,
jquery_js: {
src: 'https://code.jquery.com/jquery-3.6.0.slim.js'.freeze,
src: '/js/jquery-3.6.0.slim.js'.freeze,
hash: 'sha256-HwWONEZrpuoh951cQD1ov2HUK5zA5DwJ1DNUXaM6FsY='.freeze
}.freeze,
popper_js: {
src: 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'.freeze,
src: '/js/popper-1.12.9.min.js'.freeze,
hash: 'sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q'.freeze
}.freeze,
bootstrap_js: {
src: 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js'.freeze,
src: '/js/bootstrap-4.6.0.min.js'.freeze,
hash: 'sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF'.freeze
}.freeze
}.freeze
Expand Down
7 changes: 7 additions & 0 deletions lib/flipper/ui/public/css/bootstrap-4.6.0.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions lib/flipper/ui/public/js/bootstrap-4.6.0.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 29c7a38

Please sign in to comment.