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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -5
- data/Rakefile +5 -29
- data/app/assets/config/phcdevworks_accounts_manifest.js +2 -1
- data/app/assets/stylesheets/phcdevworks_accounts/application.scss +0 -2
- data/app/controllers/phcdevworks_accounts/admin/pages_controller.rb +2 -2
- data/app/controllers/phcdevworks_accounts/application_controller.rb +1 -1
- data/app/helpers/phcdevworks_accounts/application_helper.rb +2 -2
- data/app/views/layouts/phcdevworks_accounts/application.html.erb +12 -17
- data/app/views/layouts/phcdevworks_accounts/application_full_width.html.erb +12 -17
- data/app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb +12 -17
- data/app/views/layouts/phcdevworks_accounts/application_profile.html.erb +65 -0
- data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +1 -1
- data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +20 -3
- data/app/views/layouts/phcdevworks_accounts/devise.html.erb +12 -17
- data/app/views/phcdevworks_accounts/admin/pages/components/_profile_header.html.erb +27 -0
- data/app/views/phcdevworks_accounts/admin/pages/user_profile.html.erb +22 -0
- data/app/views/phcdevworks_accounts/admin/pages/users_list.html.erb +3 -3
- data/app/views/phcdevworks_accounts/user/pages/dashboard.html.erb +0 -0
- data/app/views/users/confirmations/new.html.erb +1 -1
- data/app/views/users/passwords/edit.html.erb +1 -1
- data/app/views/users/passwords/new.html.erb +1 -1
- data/app/views/users/registrations/edit.html.erb +2 -2
- data/app/views/users/unlocks/new.html.erb +1 -1
- data/config/initializers/devise.rb +1 -2
- data/config/locales/devise.en.yml +1 -1
- data/config/routes.rb +7 -10
- data/lib/phcdevworks_accounts.rb +1 -0
- data/lib/phcdevworks_accounts/engine.rb +45 -35
- data/lib/phcdevworks_accounts/version.rb +1 -1
- metadata +73 -31
- data/app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee +0 -3
- data/app/assets/javascripts/phcdevworks_accounts/application.js +0 -2
- data/app/assets/javascripts/phcdevworks_accounts/user/pages.coffee +0 -3
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4baa812aa382c2c5ca9a503d0b1c7596a5ae79257d9ca3af8cd699ec7fff9b2f
|
4
|
+
data.tar.gz: 3c0787201c45b14496ac495da2bb22ce641811cd6f70f51cf1b3f691f63245d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 341dda02ac16df7f00fcac2fefeaefb8963e02777c71021ce5563ab75c03676d62657f20ea3a1c6b3ce2707429e6c9edcd450349d0b3a38624d0f6e7dd460cbb
|
7
|
+
data.tar.gz: 4d0e1b3c966d4343823df646f3b626912ca27a19d6bc159357a0960d3ecaad398c0662e741641e86efdd25a8d5d1de59bed17bcfff17d7e3b96fcf9c0ea718d5
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#### PHCDevworks Accounts
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
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
|
-
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
8
5
|
|
9
|
-
|
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
|
-
|
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"
|
@@ -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
|
20
|
+
def user_profile
|
21
21
|
@admin_user = User.find_by_id(params[:id])
|
22
22
|
end
|
23
23
|
|
@@ -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
|
-
|
12
|
-
|
13
|
-
<meta name="
|
14
|
-
|
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 "
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
24
|
<!-- CSS Styles -->
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
<!--
|
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
|
-
|
12
|
-
|
13
|
-
<meta name="
|
14
|
-
|
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 "
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
24
|
<!-- CSS Styles -->
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
<!--
|
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
|
-
|
12
|
-
|
13
|
-
<meta name="
|
14
|
-
|
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 "
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
24
|
<!-- CSS Styles -->
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
<!--
|
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>
|
@@ -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">
|
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>
|
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.
|
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
|
-
|
12
|
-
|
13
|
-
<meta name="
|
14
|
-
|
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 "
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
24
|
<!-- CSS Styles -->
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
<!--
|
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 "
|
3
|
-
<% phc_title_tagline "
|
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 -->
|
File without changes
|
@@ -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.
|
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.
|
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",
|
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",
|
5
|
-
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.
|
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.
|
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
|
-
|
14
|
-
|
13
|
+
|
15
14
|
# ==> Controller configuration
|
16
15
|
# Configure the parent class to the devise controllers.
|
17
16
|
config.parent_controller = 'PhcdevworksAccounts::ApplicationController'
|
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#
|
10
|
+
match "/admin/user/:id", to: "admin/pages#user_profile", via: "get"
|
16
11
|
|
17
|
-
#
|
18
|
-
|
19
|
-
|
12
|
+
# User Routes
|
13
|
+
devise_for :users, {
|
14
|
+
class_name: "PhcdevworksAccounts::User",
|
15
|
+
module: :devise
|
16
|
+
}
|
20
17
|
|
21
18
|
end
|
data/lib/phcdevworks_accounts.rb
CHANGED
@@ -1,37 +1,47 @@
|
|
1
1
|
module PhcdevworksAccounts
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
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:
|
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:
|
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.
|
19
|
+
version: '6.1'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 6.
|
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.
|
29
|
+
version: '6.1'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.
|
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.
|
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.
|
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.
|
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.
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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/
|
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:
|