jinda 0.6.9 → 0.7.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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/jinda.css +17 -0
- data/app/views/jinda/index.html.haml +1 -1
- data/lib/generators/jinda/templates/app/views/identities/new.html.erb +29 -24
- data/lib/generators/jinda/templates/app/views/password_resets/new.html.erb +13 -7
- data/lib/generators/jinda/templates/app/views/sessions/new.html.erb +24 -18
- data/lib/jinda/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d366628d4cd026005bc75ff7c777cc27e783dcc626d57b5c93b6f67601f01b1e
|
4
|
+
data.tar.gz: d3392657824388c9815e929c279b1e538dbf5017411bd7a4e7eb0c7b55decbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a1ddc7b42bba833d2331f0a8b166928560230cb97fbbda1453192daa2009345e6a06eb4e8eb1699846a50e14bdf373bc3816b75cd275dd36ab5f07ade652f4
|
7
|
+
data.tar.gz: be82dbe2c79f1bac9f7406d2fb97242ba8ce17f39bd0d07469d681e965a7e2db71a476bb3e428dbd85f16ec2e594d16ff81e772429c53e192d8b2d7bca1a5e72
|
@@ -50,3 +50,20 @@
|
|
50
50
|
display: table-cell;
|
51
51
|
text-align:center;
|
52
52
|
}
|
53
|
+
.sign_in {
|
54
|
+
width: 100%;
|
55
|
+
max-width: 410px;
|
56
|
+
padding: 15px;
|
57
|
+
margin: auto;
|
58
|
+
display: block;
|
59
|
+
|
60
|
+
}
|
61
|
+
|
62
|
+
#logreg-forms{
|
63
|
+
width:412px;
|
64
|
+
margin:10vh auto;
|
65
|
+
background-color:#f3f3f3;
|
66
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
67
|
+
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
|
68
|
+
}
|
69
|
+
|
@@ -33,7 +33,7 @@
|
|
33
33
|
%div.inner
|
34
34
|
%b Installation
|
35
35
|
%ul
|
36
|
-
%li add gem 'jinda', '0.
|
36
|
+
%li add gem 'jinda', '0.7.0' to Gemfile then $ bundle
|
37
37
|
%li rails generate jinda:install, then bundle
|
38
38
|
%li rails generate jinda:config
|
39
39
|
%li rails jinda:seed, will create initial user:password admin:secret
|
@@ -1,32 +1,37 @@
|
|
1
1
|
<div class="container">
|
2
|
-
|
3
|
-
|
2
|
+
<div id="logreg-forms">
|
3
|
+
<div class="sign_in">
|
4
|
+
<%- @title= 'Sign Up' %>
|
5
|
+
<%= form_tag "/auth/identity/register", {'data-ajax'=>'false'} do %>
|
6
|
+
<h1 class="h3 mb-3 font-weight-normal" style="text-align: center"> Sign Up</h1>
|
4
7
|
<% if @identity && @identity.errors.any? %>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
<div class="error_messages">
|
9
|
+
<h2><%= pluralize(@identity.errors.count, "error") %> prohibited this account from being saved:</h2>
|
10
|
+
<ul>
|
11
|
+
<% @identity.errors.full_messages.each do |msg| %>
|
12
|
+
<li><%= msg %></li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
</div>
|
13
16
|
<% end %>
|
14
|
-
<div class="field" data-role="fieldcontain">
|
15
|
-
|
16
|
-
|
17
|
+
<div class="field form-control" data-role="fieldcontain">
|
18
|
+
<%= label_tag :code, 'Username' %>
|
19
|
+
<%= text_field_tag :code, @identity.try(:code) %>
|
17
20
|
</div>
|
18
|
-
<div class="field" data-role="fieldcontain">
|
19
|
-
|
20
|
-
|
21
|
+
<div class="field form-control" data-role="fieldcontain">
|
22
|
+
<%= label_tag :email %>
|
23
|
+
<%= text_field_tag :email, @identity.try(:email) %>
|
21
24
|
</div>
|
22
|
-
<div class="field" data-role="fieldcontain">
|
23
|
-
|
24
|
-
|
25
|
+
<div class="field form-control" data-role="fieldcontain">
|
26
|
+
<%= label_tag :password, 'Password' %>
|
27
|
+
<%= password_field_tag :password %>
|
25
28
|
</div>
|
26
|
-
<div class="field" data-role="fieldcontain">
|
27
|
-
|
28
|
-
|
29
|
+
<div class="field form-control" data-role="fieldcontain">
|
30
|
+
<%= label_tag :password_confirmation, 'Confirm password' %>
|
31
|
+
<%= password_field_tag :password_confirmation %>
|
29
32
|
</div>
|
30
|
-
<
|
31
|
-
|
33
|
+
<button class="btn btn-warning btn-block actions" type="submit"><i class="fas fa-sign-up-alt"></i> Sign Up</button>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
32
37
|
</div>
|
@@ -1,7 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<div class="container">
|
2
|
+
<div id="logreg-forms">
|
3
|
+
<div class="sign_in">
|
4
|
+
<%= form_tag password_resets_path, :method => :post do %>
|
5
|
+
<div class="field">
|
6
|
+
<%= label_tag :email %>
|
7
|
+
<%= text_field_tag :email, params[:email] %>
|
8
|
+
</div>
|
9
|
+
<button class="btn btn-success btn-block actions" type="submit"><i class="fas fa-sign-in-alt"></i> Reset Password</button>
|
10
|
+
<% end %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -1,20 +1,26 @@
|
|
1
1
|
<div class="container">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
2
|
+
<div id="logreg-forms">
|
3
|
+
<div class="sign_in">
|
4
|
+
|
5
|
+
<%= form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do %>
|
6
|
+
<h1 class="h3 mb-3 font-weight-normal" style="text-align: center"> Sign in</h1>
|
7
|
+
<div class="form-control" data-role="fieldcontain">
|
8
|
+
<%= label_tag :auth_key, "User name" %>
|
9
|
+
<%= text_field_tag :auth_key %>
|
10
|
+
</div>
|
11
|
+
<div class="form-control" data-role="fieldcontain">
|
12
|
+
<%= label_tag :password, "Password" %>
|
13
|
+
<%= password_field_tag :password %>
|
14
|
+
</div>
|
15
|
+
<div class="field" data-role="fieldcontain" data-icon="info">
|
16
|
+
<%= label_tag :remember_me %>
|
17
|
+
<%= check_box_tag :remember_me, 1, params.permit[:remember_me] %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<button class="btn btn-success btn-block actions" type="submit"><i class="fas fa-sign-in-alt"></i> Sign in</button>
|
21
|
+
<%= link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'} %>
|
22
|
+
<hr>
|
23
|
+
<% end %>
|
24
|
+
</div>
|
25
|
+
</div>
|
20
26
|
</div>
|
data/lib/jinda/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -478,7 +478,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
478
478
|
- !ruby/object:Gem::Version
|
479
479
|
version: '0'
|
480
480
|
requirements: []
|
481
|
-
rubygems_version: 3.
|
481
|
+
rubygems_version: 3.2.3
|
482
482
|
signing_key:
|
483
483
|
specification_version: 4
|
484
484
|
summary: 'Rails workflow from mind map: Freemind'
|