phcdevworks_accounts_devise 0.1.0.pre.beta → 0.1.3.pre.beta
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.
- checksums.yaml +4 -4
- data/app/controllers/users/registrations_controller.rb +3 -3
- data/app/views/layouts/phcdevworks_accounts_devise/components/backend/footer/_footer.html.erb +2 -2
- data/app/views/layouts/phcdevworks_accounts_devise/components/backend/navigation/_top_menu.html.erb +5 -5
- data/app/views/phcdevworks_accounts_devise/admin/pages/users_list.html.erb +40 -44
- data/lib/phcdevworks_accounts_devise/engine.rb +44 -41
- data/lib/phcdevworks_accounts_devise/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38caebd130cf026160191484bc9d2b8b938a66cabbd58708edc5d52eddd275de
|
4
|
+
data.tar.gz: 307eef1b784250d9a7356f694527c596a3b2fcd6c1a4c287020c4b9f8155fac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91d1ca011eb3e31b2bbb630cda839fb91ad2014e453bdcdb40b25cbf88a240a701f590cd4432ac6c67d7406c23d8f79d5f23390da3987e727401cfbce1e667f9
|
7
|
+
data.tar.gz: 3447619711e246cde5dace9cfadf18f997bb62ef68d3d39a6209f3116f306f697df1cb43d60a8c146a9d6927c875fbc2df90fb3e9dd4bc6c45db55bd573aa7b9
|
@@ -3,7 +3,7 @@
|
|
3
3
|
class Users::RegistrationsController < Devise::RegistrationsController
|
4
4
|
# before_action :configure_sign_up_params, only: [:create]
|
5
5
|
# before_action :configure_account_update_params, only: [:update]
|
6
|
-
after_action :
|
6
|
+
after_action :phcdevworks_accounts_stripe_add_customer, :only => :create, if: -> {defined?(PhcdevworksAccountsStripe)}
|
7
7
|
|
8
8
|
# GET /resource/sign_up
|
9
9
|
# def new
|
@@ -61,12 +61,12 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|
61
61
|
# super(resource)
|
62
62
|
# end
|
63
63
|
|
64
|
-
def
|
64
|
+
def phcdevworks_accounts_stripe_add_customer
|
65
65
|
if resource.valid?
|
66
66
|
phcdevworks_accounts_devise_customer = Stripe::Customer.create({
|
67
67
|
email: current_user.email, name: current_user.firstname + " " + current_user.lastname
|
68
68
|
})
|
69
|
-
@user.payments_customer_id =
|
69
|
+
@user.payments_customer_id = phcdevworks_accounts_devise_customer.id
|
70
70
|
@user.save
|
71
71
|
end
|
72
72
|
end
|
data/app/views/layouts/phcdevworks_accounts_devise/components/backend/footer/_footer.html.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<span>
|
3
3
|
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="
|
5
|
+
<span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span> Accounts (Devise) - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_devise"].version.to_s %>
|
6
6
|
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
7
7
|
</span>
|
8
8
|
<!-- -PHCDev- Page Container - Footer - Left -->
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<span class="float-right">
|
12
12
|
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
13
13
|
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
14
|
-
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="
|
14
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span></u></a>
|
15
15
|
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
16
16
|
</span>
|
17
17
|
<!-- -PHCDev- Page Container - Footer - Right -->
|
data/app/views/layouts/phcdevworks_accounts_devise/components/backend/navigation/_top_menu.html.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
|
4
4
|
<button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
|
@@ -8,13 +8,13 @@
|
|
8
8
|
</button>
|
9
9
|
|
10
10
|
<%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
|
11
|
-
<
|
11
|
+
<span class="phc_dev_strong_plugin_logo">PHC</span><span class="phc_dev_light_plugin_logo">Devworks</span>
|
12
12
|
<% end %>
|
13
13
|
|
14
14
|
</div>
|
15
|
-
<!-- -
|
15
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
16
16
|
|
17
|
-
<!-- -
|
17
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|
18
18
|
<% if current_user %>
|
19
19
|
<div class="navbar-nav">
|
20
20
|
<div class="navbar-item navbar-user dropdown">
|
@@ -38,4 +38,4 @@
|
|
38
38
|
<% end %>
|
39
39
|
|
40
40
|
</div>
|
41
|
-
<!-- -
|
41
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|
@@ -1,68 +1,64 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDev- Title System -->
|
2
2
|
<% phc_title "User Manager" %>
|
3
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
|
+
<!-- -PHCDev- Title System -->
|
7
7
|
|
8
|
-
<!-- Page Bradcrumbs -->
|
8
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb float-xl-end">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
11
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
-
<!-- Page Bradcrumbs -->
|
13
|
+
<!-- -PHCDev- Page Bradcrumbs -->
|
14
14
|
|
15
|
-
<!-- Page Header -->
|
15
|
+
<!-- -PHCDev- Page Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
-
<!-- Page Header -->
|
17
|
+
<!-- -PHCDev- Page Header -->
|
18
18
|
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDev- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
20
21
|
|
21
|
-
<!-- Panel -->
|
22
|
-
<div class="panel
|
22
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDev- Panel - Heading -->
|
23
27
|
|
24
|
-
|
25
|
-
|
26
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
27
|
-
</div>
|
28
|
-
<!-- Panel - Heading -->
|
28
|
+
<!-- -PHCDev- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
29
30
|
|
30
|
-
<!--
|
31
|
-
<div class="
|
31
|
+
<!-- -PHCDev- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
-
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Username</th>
|
38
|
+
<th>Full Name</th>
|
39
|
+
<th>Email</th>
|
40
|
+
</tr>
|
41
|
+
</thead>
|
36
42
|
|
37
|
-
|
43
|
+
<tbody>
|
44
|
+
<% @admin_users.each do |user| %>
|
38
45
|
<tr>
|
39
|
-
<
|
40
|
-
<
|
41
|
-
<
|
46
|
+
<td><%= user.username %></td>
|
47
|
+
<td><%= user.firstname %> <%= user.lastname %></td>
|
48
|
+
<td><%= user.email %></td>
|
42
49
|
</tr>
|
43
|
-
|
44
|
-
|
45
|
-
<tbody>
|
46
|
-
<% @admin_users.each do |user| %>
|
47
|
-
<tr>
|
48
|
-
<td><%= user.username %></td>
|
49
|
-
<td><%= user.firstname %> <%= user.lastname %></td>
|
50
|
-
<td><%= user.email %></td>
|
51
|
-
</tr>
|
52
|
-
<% end %>
|
53
|
-
</tbody>
|
54
|
-
|
55
|
-
</table>
|
56
|
-
</div>
|
57
|
-
<!-- Index - Table -->
|
58
|
-
|
59
|
-
<!-- New Button -->
|
60
|
-
<!-- New Button -->
|
50
|
+
<% end %>
|
51
|
+
</tbody>
|
61
52
|
|
53
|
+
</table>
|
62
54
|
</div>
|
63
|
-
<!--
|
55
|
+
<!-- -PHCDev- Index - Table -->
|
56
|
+
|
57
|
+
<!-- -PHCDev- New Button -->
|
58
|
+
<!-- -PHCDev- New Button -->
|
64
59
|
|
65
60
|
</div>
|
66
|
-
<!-- Panel -->
|
61
|
+
<!-- -PHCDev- Panel - Body -->
|
67
62
|
|
68
|
-
|
63
|
+
</div>
|
64
|
+
<!-- -PHCDev- Panel -->
|
@@ -1,43 +1,46 @@
|
|
1
1
|
module PhcdevworksAccountsDevise
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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 "friendly_id"
|
27
|
+
|
28
|
+
# Mailer Dependencies
|
29
|
+
require "mail_form"
|
30
|
+
|
31
|
+
# Security & Payment Dependencies
|
32
|
+
require "devise"
|
33
|
+
require "stripe"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksAccountsDevise
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
43
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_accounts_devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3.pre.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03
|
11
|
+
date: 2022-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|