Skip to content

Commit

Permalink
Remove ActiveAdmin (#196)
Browse files Browse the repository at this point in the history
* Remove ActiveAdmin

* Unpin chartkick and chart bundle
  • Loading branch information
marlena-b authored Sep 27, 2023
1 parent dfccfc9 commit 2c67bfe
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 593 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ gem "azure-storage-blob", "~> 2.0", require: false
# validate adopter phone numbers
gem "phonelib"

# active admin
gem "activeadmin"

# geocoder creates lat/long for success page map
gem "geocoder"

Expand Down
44 changes: 0 additions & 44 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ GEM
activemodel (>= 5.2.0)
activestorage (>= 5.2.0)
activesupport (>= 5.2.0)
activeadmin (3.0.0)
arbre (~> 1.2, >= 1.2.1)
formtastic (>= 3.1, < 5.0)
formtastic_i18n (~> 0.4)
inherited_resources (~> 1.7)
jquery-rails (~> 4.2)
kaminari (~> 1.0, >= 1.2.1)
railties (>= 6.1, < 7.1)
ransack (>= 4.0, < 5)
activejob (7.0.6)
activesupport (= 7.0.6)
globalid (>= 0.3.6)
Expand Down Expand Up @@ -91,9 +82,6 @@ GEM
annotate (3.2.0)
activerecord (>= 3.2, < 8.0)
rake (>= 10.4, < 14.0)
arbre (1.6.0)
activesupport (>= 3.0.0, < 7.1)
ruby2_keywords (>= 0.0.2, < 1.0)
ast (2.4.2)
autoprefixer-rails (10.4.13.0)
execjs (~> 2)
Expand Down Expand Up @@ -202,9 +190,6 @@ GEM
figaro (1.2.0)
thor (>= 0.14.0, < 2)
formatador (1.1.0)
formtastic (4.0.0)
actionpack (>= 5.2.0)
formtastic_i18n (0.7.0)
geocoder (1.8.2)
globalid (1.1.0)
activesupport (>= 5.0)
Expand All @@ -226,43 +211,19 @@ GEM
guard (~> 2.8)
guard-compat (~> 1.0)
multi_json (~> 1.8)
has_scope (0.8.1)
actionpack (>= 5.2)
activesupport (>= 5.2)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
importmap-rails (1.2.1)
actionpack (>= 6.0.0)
railties (>= 6.0.0)
inherited_resources (1.13.1)
actionpack (>= 5.2, < 7.1)
has_scope (~> 0.6)
railties (>= 5.2, < 7.1)
responders (>= 2, < 4)
io-console (0.6.0)
irb (1.7.4)
reline (>= 0.3.6)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.6.3)
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
kaminari-activerecord (= 1.2.2)
kaminari-core (= 1.2.2)
kaminari-actionview (1.2.2)
actionview
kaminari-core (= 1.2.2)
kaminari-activerecord (1.2.2)
activerecord
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
Expand Down Expand Up @@ -364,10 +325,6 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
ransack (4.0.0)
activerecord (>= 6.1.5)
activesupport (>= 6.1.5)
i18n
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
Expand Down Expand Up @@ -488,7 +445,6 @@ PLATFORMS
DEPENDENCIES
active_link_to
active_storage_validations
activeadmin
acts_as_tenant
annotate
azure-storage-blob (~> 2.0)
Expand Down
27 changes: 0 additions & 27 deletions app/admin/admin_users.rb

This file was deleted.

55 changes: 0 additions & 55 deletions app/admin/dashboard.rb

This file was deleted.

24 changes: 0 additions & 24 deletions app/admin/staff_accounts.rb

This file was deleted.

Empty file added app/assets/javascripts/.keep
Empty file.
3 changes: 0 additions & 3 deletions app/assets/javascripts/active_admin.js

This file was deleted.

24 changes: 0 additions & 24 deletions app/models/admin_user.rb

This file was deleted.

5 changes: 0 additions & 5 deletions app/models/staff_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ class StaffAccount < ApplicationRecord
belongs_to :user
rolify

# Active Admin getter methods
def full_name
user.first_name.to_s + " " + user.last_name.to_s
end

def email
user.email.to_s
end
Expand Down
3 changes: 0 additions & 3 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@
# pin compiled bootstrap js
pin "popper", to: "popper.js", preload: true
pin "bootstrap", to: "bootstrap.min.js", preload: true

pin "chartkick", to: "chartkick.js"
pin "Chart.bundle", to: "Chart.bundle.js"
Loading

0 comments on commit 2c67bfe

Please sign in to comment.