diff --git a/Gemfile b/Gemfile index 6bef72e7d..4172eaf30 100644 --- a/Gemfile +++ b/Gemfile @@ -76,7 +76,6 @@ gem 'sentry-rails' gem 'sentry-ruby' gem 'sib-api-v3-sdk' gem 'skylight' -gem 'smart_listing' gem 'spreadsheet_architect' gem 'typhoeus' gem 'warden' diff --git a/Gemfile.lock b/Gemfile.lock index 83b365654..8c9956a13 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -171,13 +171,6 @@ GEM coderay (1.1.3) coercible (1.0.0) descendants_tracker (~> 0.0.1) - coffee-rails (5.0.0) - coffee-script (>= 2.2.0) - railties (>= 5.2.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) concurrent-ruby (1.1.9) connection_pool (2.2.3) crack (0.4.5) @@ -690,11 +683,6 @@ GEM tilt (~> 2.0) skylight (5.0.1) activesupport (>= 5.2.0) - smart_listing (1.2.3) - coffee-rails - jquery-rails - kaminari (>= 0.17) - rails (>= 3.2) spreadsheet_architect (4.1.0) axlsx_styler (>= 1.0.0, < 2) caxlsx (>= 2.0.2, < 4) @@ -885,7 +873,6 @@ DEPENDENCIES sib-api-v3-sdk simple_xlsx_reader skylight - smart_listing spreadsheet_architect spring spring-commands-rspec diff --git a/config/initializers/smart_listing.rb b/config/initializers/smart_listing.rb deleted file mode 100644 index 81435de26..000000000 --- a/config/initializers/smart_listing.rb +++ /dev/null @@ -1,75 +0,0 @@ -SmartListing.configure do |config| - config.global_options({ - # :param_names => { # param names - # :page => :page, - # :per_page => :per_page, - # :sort => :sort, - # }, - # :array => false, # controls whether smart list should be using arrays or AR collections - # :max_count => nil, # limit number of rows - # :unlimited_per_page => false, # allow infinite page size - # :paginate => true, # allow pagination - # :memorize_per_page => false, # save per page settings in the cookie - :page_sizes => [10, 20, 50, 100] # set available page sizes array - # :kaminari_options => {:theme => "smart_listing"}, # Kaminari's paginate helper options - }) - - config.constants :classes, { - #:main => "smart-listing", - #:editable => "editable", - #:content => "content", - #:loading => "loading", - #:status => "smart-listing-status", - #:item_actions => "actions", - #:new_item_placeholder => "new-item-placeholder", - #:new_item_action => "new-item-action", - #:new_item_button => "btn", - #:hidden => "hidden", - #:autoselect => "autoselect", - #:callback => "callback", - #:pagination_per_page => "pagination-per-page text-center", - #:pagination_count => "count", - #:inline_editing => "info", - #:no_records => "no-records", - #:limit => "smart-listing-limit", - #:limit_alert => "smart-listing-limit-alert", - #:controls => "smart-listing-controls", - #:controls_reset => "reset", - #:filtering => "filter", - #:filtering_search => "glyphicon-search", - #:filtering_cancel => "glyphicon-remove", - #:filtering_disabled => "disabled", - #:sortable => "sortable", - #:icon_new => "glyphicon glyphicon-plus", - #:icon_edit => "glyphicon glyphicon-pencil", - #:icon_trash => "glyphicon glyphicon-trash", - #:icon_inactive => "glyphicon glyphicon-circle", - #:icon_show => "glyphicon glyphicon-share-alt", - #:icon_sort_none => "glyphicon glyphicon-resize-vertical", - #:icon_sort_up => "glyphicon glyphicon-chevron-up", - #:icon_sort_down => "glyphicon glyphicon-chevron-down", - } - - config.constants :data_attributes, { - # :main => "smart-listing", - # :confirmation => "confirmation", - # :id => "id", - # :href => "href", - # :callback_href => "callback-href", - # :max_count => "max-count", - # :inline_edit_backup => "smart-listing-edit-backup", - # :params => "params", - # :observed => "observed", - # :href => "href", - # :autoshow => "autoshow", - # :popover => "slpopover", - } - - config.constants :selectors, { - # :item_action_destroy => "a.destroy", - # :edit_cancel => "button.cancel", - # :row => "tr", - # :head => "thead", - # :filtering_icon => "i" - } -end diff --git a/config/locales/smart_listing.fr.yml b/config/locales/smart_listing.fr.yml deleted file mode 100644 index d7c99854e..000000000 --- a/config/locales/smart_listing.fr.yml +++ /dev/null @@ -1,15 +0,0 @@ -fr: - smart_listing: - msgs: - destroy_confirmation: Destroy? - no_items: No items - actions: - destroy: Destroy - edit: Edit - show: Show - new: New item - views: - pagination: - per_page: Par page - unlimited: Unlimited - total: Total diff --git a/spec/support/smart_listing.rb b/spec/support/smart_listing.rb deleted file mode 100644 index b41b7b80c..000000000 --- a/spec/support/smart_listing.rb +++ /dev/null @@ -1,10 +0,0 @@ -include SmartListing::Helper -include SmartListing::Helper::ControllerExtensions - -module SmartListing - module Helper - def view_context - 'mock' - end - end -end