Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The frog report #526

Merged
merged 17 commits into from
Jul 11, 2022
Prev Previous commit
Next Next commit
introduced vega via sprockets
  • Loading branch information
epugh committed Jul 8, 2022
commit 86863e8b1df9b6ccfccc2b101a9f2d4b633baf5c
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ gem 'omniauth-rails_csrf_protection', '~> 1.0'
gem 'omniauth-google-oauth2', '~> 1.0'

gem 'rails-healthcheck', '~> 1.4'

gem "vega", "~> 0.2.6"
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ GEM
concurrent-ruby (~> 1.0)
unicode-display_width (2.0.0)
uniform_notifier (1.14.2)
vega (0.2.6)
warden (1.2.9)
rack (>= 2.0.9)
webmock (3.14.0)
Expand Down Expand Up @@ -444,6 +445,7 @@ DEPENDENCIES
simplecov
terser
turbolinks (~> 5)
vega (~> 0.2.6)
webmock
webpacker (= 5.4.0)

Expand Down
4 changes: 4 additions & 0 deletions app/assets/javascripts/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
//= require bootstrap/dist/js/bootstrap.bundle
//= require jquery
//= require cookies_eu

//= require vega
//= require vega-lite
//= require vega-embed
4 changes: 0 additions & 4 deletions app/views/layouts/analytics.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= csrf_meta_tags %>
<%= javascript_include_tag 'analytics' %>

<!-- Can't figure out how to include Vega using Sprockets/Webpacker -->
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>

</head>
<body class="d-flex flex-column h-100">
<header>
Expand Down