phcdevworks_accounts 2.2.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +6 -5
  4. data/Rakefile +5 -29
  5. data/app/assets/config/phcdevworks_accounts_manifest.js +2 -1
  6. data/app/assets/stylesheets/phcdevworks_accounts/application.scss +0 -2
  7. data/app/controllers/phcdevworks_accounts/admin/pages_controller.rb +2 -2
  8. data/app/controllers/phcdevworks_accounts/application_controller.rb +1 -1
  9. data/app/helpers/phcdevworks_accounts/application_helper.rb +2 -2
  10. data/app/views/layouts/phcdevworks_accounts/application.html.erb +12 -17
  11. data/app/views/layouts/phcdevworks_accounts/application_full_width.html.erb +12 -17
  12. data/app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb +12 -17
  13. data/app/views/layouts/phcdevworks_accounts/application_profile.html.erb +65 -0
  14. data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +1 -1
  15. data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +1 -1
  16. data/app/views/layouts/phcdevworks_accounts/devise.html.erb +12 -17
  17. data/app/views/phcdevworks_accounts/admin/pages/components/_profile_header.html.erb +27 -0
  18. data/app/views/phcdevworks_accounts/admin/pages/user_profile.html.erb +22 -0
  19. data/app/views/phcdevworks_accounts/admin/pages/users_list.html.erb +70 -4
  20. data/app/views/phcdevworks_accounts/user/pages/dashboard.html.erb +0 -0
  21. data/app/views/users/confirmations/new.html.erb +1 -1
  22. data/app/views/users/passwords/edit.html.erb +1 -1
  23. data/app/views/users/passwords/new.html.erb +1 -1
  24. data/app/views/users/registrations/edit.html.erb +2 -2
  25. data/app/views/users/unlocks/new.html.erb +1 -1
  26. data/config/initializers/devise.rb +1 -2
  27. data/config/locales/devise.en.yml +1 -1
  28. data/config/routes.rb +7 -10
  29. data/lib/phcdevworks_accounts.rb +1 -0
  30. data/lib/phcdevworks_accounts/engine.rb +45 -38
  31. data/lib/phcdevworks_accounts/version.rb +1 -1
  32. metadata +43 -45
  33. data/app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee +0 -3
  34. data/app/assets/javascripts/phcdevworks_accounts/application.js +0 -2
  35. data/app/assets/javascripts/phcdevworks_accounts/user/pages.coffee +0 -3
  36. data/app/views/phcdevworks_accounts/admin/pages/user_id.html.erb +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d92e06856f84fc051f6130132aba04d57e44b2bcfe2bf46f7f749c2fb7e98ba8
4
- data.tar.gz: dcbfbf053d98940f04a8f98176983fff658707f501afd537b8a9652b6f26b140
3
+ metadata.gz: 0532e13841793dfb5a9da385d1df14db0c2e4a929e63b1125660531b64cc434c
4
+ data.tar.gz: f4c98033243b7dd8a7ecddf1c1291239870f15263a496eec81bcc3b96a1350ed
5
5
  SHA512:
6
- metadata.gz: 56e13396a39a216ca777a816ac7d2eb1ebcf592d22f01e43ef534ed7d9342d75783db07384c9dbaadd6e5027eb8792f9a928bb04ca520afe30b9bf0e127ad255
7
- data.tar.gz: 5f609afd6f4d1f10a37a80544e198e81e09879e9b6ac09cc0cb27aab5aff23c75df58f26c2db0175341346925c115942f07339ce80583065f725b827f835b51b
6
+ metadata.gz: 331371eb9d9cfc3c7404deec228123ddabcdcbb205438d4ed74eef8fcebcc4e5d7e00b15a2f47ba8eb0281aaa33b04dd112d13e476eced9994e88fb043f134ee
7
+ data.tar.gz: 155c9186c33035dda499b03ecd1aaea92496fda4ef19aaadb69dbbfad0c381e6a8db6eeb6ac37a291035806a5deed8f031625c03c4d90646d33c2379b2a24d14
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 BradPotts - PHCDevworks
1
+ Copyright 2020 BradPotts
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  #### PHCDevworks Accounts
2
- Rails devise based user accounts and administration engine.
3
-
4
- Using Devise for Authentication
5
- Extra user information built in
6
- Custom login views included
2
+
3
+ Rails devise based user accounts and administration engine.
4
+
5
+ - Using Devise for Authentication
6
+ - Extra user information built in
7
+ - Custom login views included
data/Rakefile CHANGED
@@ -1,32 +1,8 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
1
+ require "bundler/setup"
6
2
 
7
- require 'rdoc/task'
3
+ APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
8
5
 
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'PhcdevworksAccounts'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
6
+ load "rails/tasks/statistics.rake"
16
7
 
17
- APP_RAKEFILE = File.expand_path("test/test_app/Rakefile", __dir__)
18
- load 'rails/tasks/engine.rake'
19
-
20
- load 'rails/tasks/statistics.rake'
21
-
22
- require 'bundler/gem_tasks'
23
-
24
- require 'rake/testtask'
25
-
26
- Rake::TestTask.new(:test) do |t|
27
- t.libs << 'test'
28
- t.pattern = 'test/**/*_test.rb'
29
- t.verbose = false
30
- end
31
-
32
- task default: :test
8
+ require "bundler/gem_tasks"
@@ -1,2 +1,3 @@
1
- //= link_directory ../javascripts/phcdevworks_accounts .js
2
1
  //= link_directory ../stylesheets/phcdevworks_accounts .scss
2
+ //= link phcthemes_admin_panel_pack_coloradmin.css
3
+ //= link phcthemes_admin_panel_pack_coloradmin.js
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- @import "phcthemes_admin_panel_pack_coloradmin";
@@ -6,7 +6,7 @@ module PhcdevworksAccounts
6
6
  # Filters
7
7
  include PhcdevworksCore::PhcdevworksPluginsHelper
8
8
  before_action :phcdevworks_accounts_admin_only
9
-
9
+ layout "phcdevworks_accounts/application_profile", :only => [ :user_profile ]
10
10
 
11
11
  # Account Admin
12
12
  def dashboard
@@ -17,7 +17,7 @@ module PhcdevworksAccounts
17
17
  @admin_users = User.all
18
18
  end
19
19
 
20
- def user_id
20
+ def user_profile
21
21
  @admin_user = User.find_by_id(params[:id])
22
22
  end
23
23
 
@@ -1,6 +1,6 @@
1
1
  module PhcdevworksAccounts
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Devise Filter
5
5
  before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?
6
6
 
@@ -1,4 +1,4 @@
1
1
  module PhcdevworksAccounts
2
- module ApplicationHelper
3
- end
2
+ module ApplicationHelper
3
+ end
4
4
  end
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Accounts" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_accounts/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body>
@@ -63,9 +62,5 @@
63
62
  </div>
64
63
  <!-- Page Container -->
65
64
 
66
- <!-- JavaScript -->
67
- <%= javascript_include_tag "phcdevworks_accounts/application", "data-turbolinks-track": "reload" %>
68
- <!-- JavaScript -->
69
-
70
65
  </body>
71
66
  </html>
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Accounts" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_accounts/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body>
@@ -63,9 +62,5 @@
63
62
  </div>
64
63
  <!-- Page Container -->
65
64
 
66
- <!-- JavaScript -->
67
- <%= javascript_include_tag "phcdevworks_accounts/application", "data-turbolinks-track": "reload" %>
68
- <!-- JavaScript -->
69
-
70
65
  </body>
71
66
  </html>
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Accounts" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_accounts/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body>
@@ -56,9 +55,5 @@
56
55
  </div>
57
56
  <!-- Page Container -->
58
57
 
59
- <!-- JavaScript -->
60
- <%= javascript_include_tag "phcdevworks_accounts/application", "data-turbolinks-track": "reload" %>
61
- <!-- JavaScript -->
62
-
63
58
  </body>
64
59
  </html>
@@ -0,0 +1,65 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <!-- SEO System -->
6
+ <% phc_seo_title "PHCDevworks Accounts" %>
7
+ <% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
8
+ <!-- SEO System -->
9
+
10
+ <!-- SEO and Site Description -->
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
15
+ <!-- SEO and Site Description -->
16
+
17
+ <!-- Rails Security Tags -->
18
+ <%= csrf_meta_tags %>
19
+ <%= csp_meta_tag %>
20
+ <!-- Rails Security Tags -->
21
+
22
+ <!-- CSS Styles -->
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
24
+ <!-- CSS Styles -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
29
+
30
+ </head>
31
+ <body>
32
+
33
+ <!-- Page Container -->
34
+ <div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
35
+
36
+ <!-- Page Header -->
37
+ <div id="header" class="header navbar-default">
38
+ <%= render "layouts/phcdevworks_accounts/components/backend/navigation/top_menu" %>
39
+ </div>
40
+ <!-- Page Header -->
41
+
42
+ <!-- Page Sidebar -->
43
+ <div id="sidebar" class="sidebar">
44
+ <%= render "layouts/phcdevworks_accounts/components/backend/sidebars/side_menu" %>
45
+ </div>
46
+ <div class="sidebar-bg"></div>
47
+ <!-- Page Sidebar -->
48
+
49
+ <!-- Page Content -->
50
+ <div id="content" class="content content-full-width">
51
+ <%= yield %>
52
+ </div>
53
+ <!-- Page Content -->
54
+
55
+ <!-- Footer Content -->
56
+ <div id="footer" class="footer mb-4">
57
+ <%= render "layouts/phcdevworks_accounts/components/backend/footer/footer" %>
58
+ </div>
59
+ <!-- Footer Content -->
60
+
61
+ </div>
62
+ <!-- Page Container -->
63
+
64
+ </body>
65
+ </html>
@@ -1,7 +1,7 @@
1
1
  <!-- -PHC- Topbar - Navigation Header -->
2
2
  <div class="navbar-header">
3
3
 
4
- <%= link_to main_app.root_path, class: "navbar-brand" do %>
4
+ <%= link_to phcdevworks_accounts.user_path, class: "navbar-brand" do %>
5
5
  <strong>PHCDevworks</strong>Accounts
6
6
  <% end %>
7
7
 
@@ -270,7 +270,7 @@
270
270
  <span>Admin</span>
271
271
  </a>
272
272
  <ul class="sub-menu">
273
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_index_path %></li>
273
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
274
274
  </ul>
275
275
  </li>
276
276
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Accounts" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_accounts/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body class="pace-top bg-white">
@@ -35,9 +34,5 @@
35
34
  <%= yield %>
36
35
  <!-- Page Content -->
37
36
 
38
- <!-- JavaScript -->
39
- <%= javascript_include_tag "phcdevworks_accounts/application", "data-turbolinks-track": "reload" %>
40
- <!-- JavaScript -->
41
-
42
37
  </body>
43
38
  </html>
@@ -0,0 +1,27 @@
1
+ <div class="profile-header">
2
+
3
+ <!-- User Profiles - Header - Cover -->
4
+ <div class="profile-header-cover"></div>
5
+ <!-- User Profiles - Header - Cover -->
6
+
7
+ <!-- User Profiles - Header - Content -->
8
+ <div class="profile-header-content">
9
+ <div class="profile-header-img">
10
+ <%= image_tag @admin_user.gravatar_url :secure => true, :filetype => :png, :size => 128 %>
11
+ </div>
12
+ <div class="profile-header-info">
13
+ <h4 class="m-t-10 m-b-5"><%= @admin_user.firstname + ' ' + @admin_user.lastname %></h4>
14
+ <p class="m-b-10"><%= @admin_user.username %></p>
15
+ <%= link_to edit_user_registration_path(@admin_user), class: "btn btn-xs btn-yellow" do %>
16
+ <i class="fad fa-user-edit"></i> Update Member Information
17
+ <% end %>
18
+ </div>
19
+ </div>
20
+ <!-- User Profiles - Header - Content -->
21
+
22
+ <!-- User Profiles - Header - Tab Bar -->
23
+ <ul class="profile-header-tab nav nav-tabs">
24
+ </ul>
25
+ <!-- User Profiles - Header - Tab Bar -->
26
+
27
+ </div>
@@ -0,0 +1,22 @@
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "User Manager" %>
3
+ <% phc_title_tagline "Useer Profile" %>
4
+ <% phc_breadcrumb_one yield(:phc_title) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- User Profiles - Header -->
9
+ <div class="profile">
10
+ <%= render 'phcdevworks_accounts/admin/pages/components/profile_header' %>
11
+ </div>
12
+ <!-- User Profiles - Header -->
13
+
14
+ <!-- User Profiles - Remove Full Page Width -->
15
+ <div class="profile-content">
16
+ <div class="tab-content p-0">
17
+
18
+ <%= render 'phcdevworks_notifications/bootstrap/notifications' %>
19
+
20
+ </div>
21
+ </div>
22
+ <!-- User Profiles - Remove Full Page Width -->
@@ -1,4 +1,70 @@
1
- <% @admin_users.each do |user| %>
2
- <%= user.username %><br/>
3
- <%= user.email %><br/>
4
- <% end %>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "User Manager" %>
3
+ <% phc_title_tagline "Useer Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title) %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Username</th>
42
+ <th>Full Name</th>
43
+ <th>Email</th>
44
+ </tr>
45
+ </thead>
46
+
47
+ <tbody>
48
+ <% @admin_users.each do |user| %>
49
+ <td><%= user.username %></td>
50
+ <td><%= user.email %> <%= user.email %></td>
51
+ <td><%= user.email %></td>
52
+ <% end %>
53
+ </tbody>
54
+
55
+ </table>
56
+ </div>
57
+ <!-- Index - Table -->
58
+
59
+ <!-- New Button -->
60
+ <!-- New Button -->
61
+
62
+ </div>
63
+ <!-- Panel - Body -->
64
+
65
+ </div>
66
+ <!-- Panel -->
67
+
68
+ </div>
69
+ </div>
70
+ <!-- Page Content -->
@@ -1,7 +1,7 @@
1
1
  <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title resource_name.to_s.humanize + " Unlock Password" %>
3
3
  <% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
4
- <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.welcome_status_page_path %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.user_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title resource_name.to_s.humanize + " Edit Password" %>
3
3
  <% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Edit Password" %>
4
- <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.welcome_status_page_path %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.user_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Send Password Reset Link" %>
3
3
  <% phc_title_tagline "Password Reset Form" %>
4
- <% phc_breadcrumb_one link_to "Home", main_app.root_path %>
4
+ <% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.user_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- PHCTitleSEO Title Variables -->
7
7
 
@@ -1,8 +1,8 @@
1
1
  <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title resource_name.to_s.humanize + " Account Information" %>
3
3
  <% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Account Information" %>
4
- <% phc_breadcrumb_one link_to "Home", main_app.root_path %>
5
- <% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.dashboard_path %>
4
+ <% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.admin_users_all_path %>
5
+ <% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.user_path %>
6
6
  <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
7
  <!-- PHCTitleSEO Title Variables -->
8
8
 
@@ -1,7 +1,7 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title resource_name.to_s.humanize + " Unlock Password" %>
3
3
  <% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
4
- <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.welcome_status_page_path %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.user_path %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- Title System -->
7
7
 
@@ -10,8 +10,7 @@ Devise.setup do |config|
10
10
  # Devise will use the `secret_key_base` as its `secret_key`
11
11
  # by default. You can change it below and use your own secret key.
12
12
  config.secret_key = ENV['SECRET_KEY_BASE'] if Rails.env.production?
13
- # config.secret_key = 'c820cfaf52fdef30f175df6613d15419b36c28179b3853c7a2814f1e804286c6b82a7b88677aa958ac56937a8c9331575fee09fa25ac4295d007cc5c7cfa5117'
14
-
13
+
15
14
  # ==> Controller configuration
16
15
  # Configure the parent class to the devise controllers.
17
16
  config.parent_controller = 'PhcdevworksAccounts::ApplicationController'
@@ -1,4 +1,4 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
1
+ # Additional translations at https://github.com/heartcombo/devise/wiki/I18n
2
2
 
3
3
  en:
4
4
  devise:
@@ -1,21 +1,18 @@
1
1
  PhcdevworksAccounts::Engine.routes.draw do
2
2
 
3
- # User Routes
4
- devise_for :users, {
5
- class_name: "PhcdevworksAccounts::User",
6
- module: :devise
7
- }
8
-
9
3
  # User Dashboard
4
+ match "user", to: "user/pages#dashboard", via: "get"
10
5
  match "user/profile", to: "user/pages#profile", via: "get"
11
6
 
12
7
  # Admin Routes
13
8
  match "/admin", to: "admin/pages#dashboard", via: "get"
14
9
  match "/admin/users/all", to: "admin/pages#users_list", via: "get"
15
- match "/admin/user/:id", to: "admin/pages#user_id", via: "get"
10
+ match "/admin/user/:id", to: "admin/pages#user_profile", via: "get"
16
11
 
17
- # Old Path Support (Will be Depricated)
18
- get "dashboard", to: "user/pages#profile"
19
- get "admin_users_index", to: "admin/pages#dashboard"
12
+ # User Routes
13
+ devise_for :users, {
14
+ class_name: "PhcdevworksAccounts::User",
15
+ module: :devise
16
+ }
20
17
 
21
18
  end
@@ -1,3 +1,4 @@
1
+ require "phcdevworks_accounts/version"
1
2
  require "phcdevworks_accounts/engine"
2
3
 
3
4
  module PhcdevworksAccounts
@@ -1,40 +1,47 @@
1
1
  module PhcdevworksAccounts
2
- class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "wicked"
26
- require "gravtastic"
27
- require "friendly_id"
28
-
29
- # Security Dependencies
30
- require "devise"
31
- require "simple_token_authentication"
32
-
33
- # Payment Dependencies
34
- require "activemerchant"
35
-
36
- # Plugin Namespace
37
- isolate_namespace PhcdevworksAccounts
38
-
39
- end
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Mailer Dependencies
30
+ require "mail_form"
31
+
32
+ # Security Dependencies
33
+ require "devise"
34
+ require "simple_token_authentication"
35
+
36
+ # Plugin Namespace
37
+ isolate_namespace PhcdevworksAccounts
38
+
39
+ # Rspec Generators
40
+ config.generators do |g|
41
+ g.test_framework :rspec
42
+ g.fixture_replacement :factory_bot
43
+ g.factory_bot dir: 'spec/factories'
44
+ end
45
+
46
+ end
40
47
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "2.2.1"
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-04 00:00:00.000000000 Z
11
+ date: 2020-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 6.0.3.3
19
+ version: '6.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '6.0'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 6.0.3.3
26
+ version: '6.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: jbuilder
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,84 +58,84 @@ dependencies:
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '3.0'
61
+ version: '3.2'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '3.0'
68
+ version: '3.2'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: phcthemes_web_theme_pack
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '3.0'
75
+ version: '3.2'
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '3.0'
82
+ version: '3.2'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: phcdevworks_active_menus
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '2.1'
89
+ version: '2.2'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '2.1'
96
+ version: '2.2'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: phcdevworks_core
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '2.1'
103
+ version: '2.2'
110
104
  type: :runtime
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: '2.1'
110
+ version: '2.2'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: phcdevworks_notifications
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: '2.1'
117
+ version: '2.2'
124
118
  type: :runtime
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: '2.1'
124
+ version: '2.2'
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: phcdevworks_titleseo
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: '3.1'
131
+ version: '3.2'
138
132
  type: :runtime
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
136
  - - "~>"
143
137
  - !ruby/object:Gem::Version
144
- version: '3.1'
138
+ version: '3.2'
145
139
  - !ruby/object:Gem::Dependency
146
140
  name: wicked
147
141
  requirement: !ruby/object:Gem::Requirement
@@ -185,89 +179,89 @@ dependencies:
185
179
  - !ruby/object:Gem::Version
186
180
  version: '3.2'
187
181
  - !ruby/object:Gem::Dependency
188
- name: aws-sdk-s3
182
+ name: mail_form
189
183
  requirement: !ruby/object:Gem::Requirement
190
184
  requirements:
191
185
  - - "~>"
192
186
  - !ruby/object:Gem::Version
193
- version: '1.80'
187
+ version: '1.8'
194
188
  type: :runtime
195
189
  prerelease: false
196
190
  version_requirements: !ruby/object:Gem::Requirement
197
191
  requirements:
198
192
  - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: '1.80'
194
+ version: '1.8'
201
195
  - !ruby/object:Gem::Dependency
202
- name: google-cloud-storage
196
+ name: aws-sdk-s3
203
197
  requirement: !ruby/object:Gem::Requirement
204
198
  requirements:
205
199
  - - "~>"
206
200
  - !ruby/object:Gem::Version
207
- version: '1.28'
201
+ version: '1.86'
208
202
  type: :runtime
209
203
  prerelease: false
210
204
  version_requirements: !ruby/object:Gem::Requirement
211
205
  requirements:
212
206
  - - "~>"
213
207
  - !ruby/object:Gem::Version
214
- version: '1.28'
208
+ version: '1.86'
215
209
  - !ruby/object:Gem::Dependency
216
- name: mini_magick
210
+ name: google-cloud-storage
217
211
  requirement: !ruby/object:Gem::Requirement
218
212
  requirements:
219
213
  - - "~>"
220
214
  - !ruby/object:Gem::Version
221
- version: '4.10'
215
+ version: '1.29'
222
216
  type: :runtime
223
217
  prerelease: false
224
218
  version_requirements: !ruby/object:Gem::Requirement
225
219
  requirements:
226
220
  - - "~>"
227
221
  - !ruby/object:Gem::Version
228
- version: '4.10'
222
+ version: '1.29'
229
223
  - !ruby/object:Gem::Dependency
230
- name: devise
224
+ name: mini_magick
231
225
  requirement: !ruby/object:Gem::Requirement
232
226
  requirements:
233
227
  - - "~>"
234
228
  - !ruby/object:Gem::Version
235
- version: '4.7'
229
+ version: '4.11'
236
230
  type: :runtime
237
231
  prerelease: false
238
232
  version_requirements: !ruby/object:Gem::Requirement
239
233
  requirements:
240
234
  - - "~>"
241
235
  - !ruby/object:Gem::Version
242
- version: '4.7'
236
+ version: '4.11'
243
237
  - !ruby/object:Gem::Dependency
244
- name: simple_token_authentication
238
+ name: devise
245
239
  requirement: !ruby/object:Gem::Requirement
246
240
  requirements:
247
241
  - - "~>"
248
242
  - !ruby/object:Gem::Version
249
- version: '1.17'
243
+ version: '4.7'
250
244
  type: :runtime
251
245
  prerelease: false
252
246
  version_requirements: !ruby/object:Gem::Requirement
253
247
  requirements:
254
248
  - - "~>"
255
249
  - !ruby/object:Gem::Version
256
- version: '1.17'
250
+ version: '4.7'
257
251
  - !ruby/object:Gem::Dependency
258
- name: activemerchant
252
+ name: simple_token_authentication
259
253
  requirement: !ruby/object:Gem::Requirement
260
254
  requirements:
261
255
  - - "~>"
262
256
  - !ruby/object:Gem::Version
263
- version: '1.114'
257
+ version: '1.17'
264
258
  type: :runtime
265
259
  prerelease: false
266
260
  version_requirements: !ruby/object:Gem::Requirement
267
261
  requirements:
268
262
  - - "~>"
269
263
  - !ruby/object:Gem::Version
270
- version: '1.114'
264
+ version: '1.17'
271
265
  - !ruby/object:Gem::Dependency
272
266
  name: sqlite3
273
267
  requirement: !ruby/object:Gem::Requirement
@@ -295,9 +289,6 @@ files:
295
289
  - README.md
296
290
  - Rakefile
297
291
  - app/assets/config/phcdevworks_accounts_manifest.js
298
- - app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee
299
- - app/assets/javascripts/phcdevworks_accounts/application.js
300
- - app/assets/javascripts/phcdevworks_accounts/user/pages.coffee
301
292
  - app/assets/stylesheets/phcdevworks_accounts/admin/pages.scss
302
293
  - app/assets/stylesheets/phcdevworks_accounts/application.scss
303
294
  - app/assets/stylesheets/phcdevworks_accounts/user/pages.scss
@@ -320,13 +311,16 @@ files:
320
311
  - app/views/layouts/phcdevworks_accounts/application.html.erb
321
312
  - app/views/layouts/phcdevworks_accounts/application_full_width.html.erb
322
313
  - app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb
314
+ - app/views/layouts/phcdevworks_accounts/application_profile.html.erb
323
315
  - app/views/layouts/phcdevworks_accounts/components/backend/footer/_footer.html.erb
324
316
  - app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb
325
317
  - app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb
326
318
  - app/views/layouts/phcdevworks_accounts/devise.html.erb
319
+ - app/views/phcdevworks_accounts/admin/pages/components/_profile_header.html.erb
327
320
  - app/views/phcdevworks_accounts/admin/pages/dashboard.html.erb
328
- - app/views/phcdevworks_accounts/admin/pages/user_id.html.erb
321
+ - app/views/phcdevworks_accounts/admin/pages/user_profile.html.erb
329
322
  - app/views/phcdevworks_accounts/admin/pages/users_list.html.erb
323
+ - app/views/phcdevworks_accounts/user/pages/dashboard.html.erb
330
324
  - app/views/phcdevworks_accounts/user/pages/profile.html.erb
331
325
  - app/views/users/confirmations/new.html.erb
332
326
  - app/views/users/mailer/confirmation_instructions.html.erb
@@ -355,7 +349,11 @@ files:
355
349
  homepage: https://phcdevworks.com/
356
350
  licenses:
357
351
  - MIT
358
- metadata: {}
352
+ metadata:
353
+ allowed_push_host: https://rubygems.org/
354
+ homepage_uri: https://phcdevworks.com/
355
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_accounts
356
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_accounts/releases
359
357
  post_install_message:
360
358
  rdoc_options: []
361
359
  require_paths:
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- //= require phcthemes_admin_panel_pack_coloradmin
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,2 +0,0 @@
1
- <h1><%= @admin_user.username %></h1>
2
- <h5><%= @admin_user.email%></h5>