phcdevworks_accounts 2.3.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
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 +20 -3
  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 +3 -3
  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 -35
  31. data/lib/phcdevworks_accounts/version.rb +1 -1
  32. metadata +73 -31
  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: 22786cfd36c137c99221d0b6321203dc8249bc843c97e22063e54cae866ffc56
4
- data.tar.gz: 1a936fee41a2b728ae4f4d998654a16f67c1a585ca36d8157dafb88565f4bc5b
3
+ metadata.gz: 4baa812aa382c2c5ca9a503d0b1c7596a5ae79257d9ca3af8cd699ec7fff9b2f
4
+ data.tar.gz: 3c0787201c45b14496ac495da2bb22ce641811cd6f70f51cf1b3f691f63245d4
5
5
  SHA512:
6
- metadata.gz: 6e79b87fec292aebe771d626377bf16e2fa4401bbeaf39fdc62bc04030f0cb8b09fcc6f19fa4510ae0ef121b7d4a57c9cedf2e683f0b5ebc7efafe823ed77fb2
7
- data.tar.gz: 4498aec5aace23fc08121d1895734134d654a2d48bfa1cc407b1e827a92b9230591f2ea9cad321dd08947970e3b0db7657414ba7d445a53df9eba8614ac9d18d
6
+ metadata.gz: 341dda02ac16df7f00fcac2fefeaefb8963e02777c71021ce5563ab75c03676d62657f20ea3a1c6b3ce2707429e6c9edcd450349d0b3a38624d0f6e7dd460cbb
7
+ data.tar.gz: 4d0e1b3c966d4343823df646f3b626912ca27a19d6bc159357a0960d3ecaad398c0662e741641e86efdd25a8d5d1de59bed17bcfff17d7e3b96fcf9c0ea718d5
data/MIT-LICENSE CHANGED
@@ -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
 
@@ -234,7 +234,7 @@
234
234
 
235
235
  <% if defined?phcdevworks_core_modules %>
236
236
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
237
- <li class="nav-header">Core Modules</li>
237
+ <li class="nav-header">Categories</li>
238
238
  <li class="has-sub">
239
239
  <a href="javascript:;">
240
240
  <b class="caret"></b>
@@ -246,11 +246,28 @@
246
246
  <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
247
247
  </ul>
248
248
  </li>
249
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
250
+ <% end %>
251
+
252
+ <% if defined?phcdevworks_core_modules %>
253
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
254
+ <li class="nav-header">Marketing</li>
255
+ <li class="has-sub">
256
+ <a href="javascript:;">
257
+ <b class="caret"></b>
258
+ <i class="fad fa-link"></i>
259
+ <span>Affiliate Links</span>
260
+ </a>
261
+ <ul class="sub-menu">
262
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>"><%= link_to("Affiliate Link Index", phcdevworks_core_modules.affiliate_links_path) %></li>
263
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links#new") %>"><%= link_to("New Affiliate Link", phcdevworks_core_modules.new_affiliate_link_path) %></li>
264
+ </ul>
265
+ </li>
249
266
  <li class="has-sub">
250
267
  <a href="javascript:;">
251
268
  <b class="caret"></b>
252
269
  <i class="fad fa-analytics"></i>
253
- <span>Marketing</span>
270
+ <span>Search Optimization</span>
254
271
  </a>
255
272
  <ul class="sub-menu">
256
273
  <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
@@ -270,7 +287,7 @@
270
287
  <span>Admin</span>
271
288
  </a>
272
289
  <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>
290
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
274
291
  </ul>
275
292
  </li>
276
293
  <!-- -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,6 +1,6 @@
1
1
  <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Article Manager" %>
3
- <% phc_title_tagline "Article Index" %>
2
+ <% phc_title "User Manager" %>
3
+ <% phc_title_tagline "Useer Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title) %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
6
  <!-- PHCTitleSEO Title Variables -->
@@ -67,4 +67,4 @@
67
67
 
68
68
  </div>
69
69
  </div>
70
- <!-- Page Content -->
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:
data/config/routes.rb CHANGED
@@ -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,37 +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
- # Plugin Namespace
34
- isolate_namespace PhcdevworksAccounts
35
-
36
- 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
37
47
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "2.3.0"
2
+ VERSION = "3.0.2"
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.3.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-27 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,132 +16,156 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '6.1'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 6.0.3.4
22
+ version: 6.1.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '6.0'
29
+ version: '6.1'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 6.0.3.4
32
+ version: 6.1.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: jbuilder
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.10'
39
+ version: '2.11'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '2.10'
46
+ version: '2.11'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: paper_trail
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '11.0'
53
+ version: '11.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '11.0'
60
+ version: '11.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: phcthemes_admin_panel_pack
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '3.1'
67
+ version: '4.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '3.1'
74
+ version: '4.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: phcthemes_web_theme_pack
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '3.1'
81
+ version: '4.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '3.1'
88
+ version: '4.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: phcdevworks_active_menus
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '2.1'
95
+ version: '2.2'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 2.2.1
96
99
  type: :runtime
97
100
  prerelease: false
98
101
  version_requirements: !ruby/object:Gem::Requirement
99
102
  requirements:
100
103
  - - "~>"
101
104
  - !ruby/object:Gem::Version
102
- version: '2.1'
105
+ version: '2.2'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 2.2.1
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: phcdevworks_core
105
111
  requirement: !ruby/object:Gem::Requirement
106
112
  requirements:
107
113
  - - "~>"
108
114
  - !ruby/object:Gem::Version
109
- version: '2.1'
115
+ version: '2.2'
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 2.2.1
110
119
  type: :runtime
111
120
  prerelease: false
112
121
  version_requirements: !ruby/object:Gem::Requirement
113
122
  requirements:
114
123
  - - "~>"
115
124
  - !ruby/object:Gem::Version
116
- version: '2.1'
125
+ version: '2.2'
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 2.2.1
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: phcdevworks_notifications
119
131
  requirement: !ruby/object:Gem::Requirement
120
132
  requirements:
121
133
  - - "~>"
122
134
  - !ruby/object:Gem::Version
123
- version: '2.1'
135
+ version: '2.2'
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 2.2.1
124
139
  type: :runtime
125
140
  prerelease: false
126
141
  version_requirements: !ruby/object:Gem::Requirement
127
142
  requirements:
128
143
  - - "~>"
129
144
  - !ruby/object:Gem::Version
130
- version: '2.1'
145
+ version: '2.2'
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 2.2.1
131
149
  - !ruby/object:Gem::Dependency
132
150
  name: phcdevworks_titleseo
133
151
  requirement: !ruby/object:Gem::Requirement
134
152
  requirements:
135
153
  - - "~>"
136
154
  - !ruby/object:Gem::Version
137
- version: '3.1'
155
+ version: '3.2'
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: 3.2.1
138
159
  type: :runtime
139
160
  prerelease: false
140
161
  version_requirements: !ruby/object:Gem::Requirement
141
162
  requirements:
142
163
  - - "~>"
143
164
  - !ruby/object:Gem::Version
144
- version: '3.1'
165
+ version: '3.2'
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 3.2.1
145
169
  - !ruby/object:Gem::Dependency
146
170
  name: wicked
147
171
  requirement: !ruby/object:Gem::Requirement
@@ -184,34 +208,48 @@ dependencies:
184
208
  - - "~>"
185
209
  - !ruby/object:Gem::Version
186
210
  version: '3.2'
211
+ - !ruby/object:Gem::Dependency
212
+ name: mail_form
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '1.9'
218
+ type: :runtime
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '1.9'
187
225
  - !ruby/object:Gem::Dependency
188
226
  name: aws-sdk-s3
189
227
  requirement: !ruby/object:Gem::Requirement
190
228
  requirements:
191
229
  - - "~>"
192
230
  - !ruby/object:Gem::Version
193
- version: '1.85'
231
+ version: '1.88'
194
232
  type: :runtime
195
233
  prerelease: false
196
234
  version_requirements: !ruby/object:Gem::Requirement
197
235
  requirements:
198
236
  - - "~>"
199
237
  - !ruby/object:Gem::Version
200
- version: '1.85'
238
+ version: '1.88'
201
239
  - !ruby/object:Gem::Dependency
202
240
  name: google-cloud-storage
203
241
  requirement: !ruby/object:Gem::Requirement
204
242
  requirements:
205
243
  - - "~>"
206
244
  - !ruby/object:Gem::Version
207
- version: '1.29'
245
+ version: '1.30'
208
246
  type: :runtime
209
247
  prerelease: false
210
248
  version_requirements: !ruby/object:Gem::Requirement
211
249
  requirements:
212
250
  - - "~>"
213
251
  - !ruby/object:Gem::Version
214
- version: '1.29'
252
+ version: '1.30'
215
253
  - !ruby/object:Gem::Dependency
216
254
  name: mini_magick
217
255
  requirement: !ruby/object:Gem::Requirement
@@ -281,9 +319,6 @@ files:
281
319
  - README.md
282
320
  - Rakefile
283
321
  - app/assets/config/phcdevworks_accounts_manifest.js
284
- - app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee
285
- - app/assets/javascripts/phcdevworks_accounts/application.js
286
- - app/assets/javascripts/phcdevworks_accounts/user/pages.coffee
287
322
  - app/assets/stylesheets/phcdevworks_accounts/admin/pages.scss
288
323
  - app/assets/stylesheets/phcdevworks_accounts/application.scss
289
324
  - app/assets/stylesheets/phcdevworks_accounts/user/pages.scss
@@ -306,13 +341,16 @@ files:
306
341
  - app/views/layouts/phcdevworks_accounts/application.html.erb
307
342
  - app/views/layouts/phcdevworks_accounts/application_full_width.html.erb
308
343
  - app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb
344
+ - app/views/layouts/phcdevworks_accounts/application_profile.html.erb
309
345
  - app/views/layouts/phcdevworks_accounts/components/backend/footer/_footer.html.erb
310
346
  - app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb
311
347
  - app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb
312
348
  - app/views/layouts/phcdevworks_accounts/devise.html.erb
349
+ - app/views/phcdevworks_accounts/admin/pages/components/_profile_header.html.erb
313
350
  - app/views/phcdevworks_accounts/admin/pages/dashboard.html.erb
314
- - app/views/phcdevworks_accounts/admin/pages/user_id.html.erb
351
+ - app/views/phcdevworks_accounts/admin/pages/user_profile.html.erb
315
352
  - app/views/phcdevworks_accounts/admin/pages/users_list.html.erb
353
+ - app/views/phcdevworks_accounts/user/pages/dashboard.html.erb
316
354
  - app/views/phcdevworks_accounts/user/pages/profile.html.erb
317
355
  - app/views/users/confirmations/new.html.erb
318
356
  - app/views/users/mailer/confirmation_instructions.html.erb
@@ -341,7 +379,11 @@ files:
341
379
  homepage: https://phcdevworks.com/
342
380
  licenses:
343
381
  - MIT
344
- metadata: {}
382
+ metadata:
383
+ allowed_push_host: https://rubygems.org/
384
+ homepage_uri: https://phcdevworks.com/
385
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_accounts
386
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_accounts/releases
345
387
  post_install_message:
346
388
  rdoc_options: []
347
389
  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>