Skip to content

Commit

Permalink
Merge pull request #6 from pikesley/redis
Browse files Browse the repository at this point in the history
Include plotly because CDN is borked
  • Loading branch information
Sam Pikesley committed Jan 1, 2016
2 parents f0ba776 + 352ee4b commit cd3fc53
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
41 changes: 41 additions & 0 deletions lib/assets/javascripts/plotly-latest.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lib/dashboard/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class App < Sinatra::Base
register Sinatra::AssetPack
assets do
serve '/js', from: '../assets/javascripts'
js :application, [
'/js/dashboard.js'
js :app, [
'/js/dashboard.js',
'/js/plotly-latest.min.js'
]

serve '/css', from: '../assets/css'
Expand Down
3 changes: 2 additions & 1 deletion lib/dashboard/racks.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module Dashboard
class App < Sinatra::Base
use Rack::Conneg do |conneg|
use Rack::Conneg do |conneg|
conneg.set :accept_all_extensions, false
conneg.set :fallback, :html
conneg.ignore('/css/')
conneg.ignore('/js/')
conneg.provide([:html, :json])
end

Expand Down
3 changes: 2 additions & 1 deletion lib/views/default.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<script src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js'></script>
<![endif]-->

<script src='//cdn.plot.ly/plotly-latest.min.js'></script>
<!-- <script src='//cdn.plot.ly/plotly-latest.min.js'></script> -->
<script src='/js/plotly-latest.min.js'></script>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
Expand Down

0 comments on commit cd3fc53

Please sign in to comment.