Skip to content

Commit

Permalink
Merge pull request #5 from tungleduyxyz/issue_54
Browse files Browse the repository at this point in the history
Removing the jquery-datatables dependency
  • Loading branch information
pierre authored Oct 24, 2023
2 parents cc8679f + 1e30f54 commit f9cb2d8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 34 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ group :development do
gem 'rake'
gem 'rubocop'
gem 'simplecov'
gem 'sprockets-rails'
end

# gem 'killbill-client', :git => 'https://github.com/killbill/killbill-client-ruby.git', :branch => 'work-for-release-0.21.x'
# gem 'killbill-client', '3.2.0'

gem 'killbill-assets-ui', github: 'killbill/killbill-assets-ui', ref: 'main'
# gem 'killbill-assets-ui', path: '../killbill-assets-ui'
4 changes: 1 addition & 3 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require dataTables/jquery.dataTables
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
//= require kenui/kenui
//= require assets/common
4 changes: 1 addition & 3 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
* It is generally better to create a new file per style scope.
*
*= require_self
*= require dataTables/jquery.dataTables
*= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
*= require font-awesome
*= require kenui/email_notifications
*= require assets/common
*/
47 changes: 24 additions & 23 deletions app/views/kenui/layouts/kenui_application.html.erb
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Kenui</title>
<%= yield :scripts %>
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
</head>
<div class="container-fluid">
<%- # :alert used by devise -%>
<% [:error, :alert].each do |key| %>
<% if flash[key] %>
<head>
<title>Kenui</title>
<%= yield :scripts %>
<%= stylesheet_link_tag 'application', :media => 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="container">
<%- # :alert used by devise -%>
<% [:error, :alert].each do |key| %>
<% if flash[key] %>
<div class="row">
<div class="col-md-10 col-md-offset-2">
<div class="alert alert-error"><%= flash[key] %></div>
</div>
</div>
<% end %>
<% end %>
<% if flash[:notice] %>
<div class="row">
<div class="col-md-10 col-md-offset-2">
<div class="alert alert-error"><%= flash[key] %></div>
<div class="alert alert-info"><%= flash[:notice] %></div>
</div>
</div>
<% end %>
<% end %>
<% if flash[:notice] %>
<div class="row">
<div class="col-md-10 col-md-offset-2">
<div class="alert alert-info"><%= flash[:notice] %></div>
</div>
</div>
<% end %>
<%= yield %>
</div>
</body>
<%= yield %>
</div>
</body>
</html>
5 changes: 1 addition & 4 deletions kenui.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ Gem::Specification.new do |s|

s.metadata['rubygems_mfa_required'] = 'true'

s.add_dependency 'font-awesome-rails'
s.add_dependency 'jquery-datatables-rails'
s.add_dependency 'jquery-rails', '~> 4.5.1'
s.add_dependency 'killbill-assets-ui'
s.add_dependency 'killbill-client'
s.add_dependency 'rails', '~> 7.0'
s.add_dependency 'sass-rails'
end
2 changes: 1 addition & 1 deletion lib/kenui/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# See also https://github.com/carlhuda/bundler/issues/49
require 'jquery-rails'
require 'jquery-datatables-rails'
require 'killbill-assets-ui'
require 'font-awesome-rails'
require 'killbill_client'

Expand Down

0 comments on commit f9cb2d8

Please sign in to comment.