jinda 0.7.0.2 → 0.7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/jinda.scss +118 -5
- data/app/views/jinda/index.html.haml +6 -6
- data/lib/generators/jinda/templates/app/jinda/template/view.html.erb +18 -10
- data/lib/jinda/version.rb +1 -1
- metadata +2 -5
- data/lib/generators/jinda/templates/app/views/identities/new.html.erb +0 -37
- data/lib/generators/jinda/templates/app/views/password_resets/new.html.erb +0 -13
- data/lib/generators/jinda/templates/app/views/sessions/new.html.erb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc843f29ba73019a6a209b43a1fc8e415f78fc09e781aa52132bb2b6031dd74
|
4
|
+
data.tar.gz: 798d4c2e8804b9653ea982992893b81c060be1d4ffea5c4e548fc462130a8dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b809a61ed31859627ca26f12f8dd95e792083e6239c6b31f25671b8bf1bfbadf001c0b3af46c280cf3f5c7dbc7c6bf051fe9936745d8cfad0e4ab4bfe3cf369d
|
7
|
+
data.tar.gz: '01794f1c58a848e40acd08483e9bce48259de8dcbd6378ecbaf971f9972533ed44d735edd1fb6583dbf2baec538995ae48230f26281319fd760b28fd423c7c23'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
// jinda.scss from jinda/app engine
|
1
2
|
#tooltip{
|
2
3
|
position:absolute;
|
3
4
|
border:1px solid #333;
|
@@ -56,17 +57,129 @@
|
|
56
57
|
padding: 15px;
|
57
58
|
margin: auto;
|
58
59
|
display: block;
|
59
|
-
|
60
|
+
|
60
61
|
}
|
61
62
|
|
62
63
|
#logreg-forms{
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
width:412px;
|
65
|
+
margin:10vh auto;
|
66
|
+
background-color:#f3f3f3;
|
67
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
67
68
|
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
|
68
69
|
}
|
69
70
|
|
70
71
|
.module-table{
|
71
72
|
display: grid;
|
72
73
|
}
|
74
|
+
|
75
|
+
body {
|
76
|
+
background: #dfe7e9;
|
77
|
+
font-family: 'Roboto', sans-serif;
|
78
|
+
}
|
79
|
+
.form-control {
|
80
|
+
font-size: 16px;
|
81
|
+
transition: all 0.4s;
|
82
|
+
box-shadow: none;
|
83
|
+
}
|
84
|
+
.form-control:focus {
|
85
|
+
border-color: #5cb85c;
|
86
|
+
}
|
87
|
+
.form-control, .btn {
|
88
|
+
border-radius: 50px;
|
89
|
+
outline: none !important;
|
90
|
+
}
|
91
|
+
.form-group input {
|
92
|
+
border-width: 0px;
|
93
|
+
}
|
94
|
+
.signup-form {
|
95
|
+
width: 480px;
|
96
|
+
margin: 0 auto;
|
97
|
+
padding: 30px 0;
|
98
|
+
}
|
99
|
+
.signup-form form {
|
100
|
+
border-radius: 5px;
|
101
|
+
margin-bottom: 20px;
|
102
|
+
background: #fff;
|
103
|
+
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
104
|
+
padding: 40px;
|
105
|
+
}
|
106
|
+
.signup-form a {
|
107
|
+
color: #5cb85c;
|
108
|
+
}
|
109
|
+
.signup-form h2 {
|
110
|
+
text-align: center;
|
111
|
+
font-size: 34px;
|
112
|
+
margin: 10px 0 15px;
|
113
|
+
}
|
114
|
+
.signup-form .hint-text {
|
115
|
+
color: #999;
|
116
|
+
text-align: center;
|
117
|
+
margin-bottom: 20px;
|
118
|
+
}
|
119
|
+
.signup-form .form-group {
|
120
|
+
margin-bottom: 20px;
|
121
|
+
}
|
122
|
+
.signup-form .btn {
|
123
|
+
font-size: 18px;
|
124
|
+
line-height: 26px;
|
125
|
+
font-weight: bold;
|
126
|
+
text-align: center;
|
127
|
+
}
|
128
|
+
.signup-btn {
|
129
|
+
text-align: center;
|
130
|
+
border-color: #5cb85c;
|
131
|
+
transition: all 0.4s;
|
132
|
+
}
|
133
|
+
.signup-btn:hover {
|
134
|
+
background: #5cb85c;
|
135
|
+
opacity: 0.8;
|
136
|
+
}
|
137
|
+
.or-seperator {
|
138
|
+
margin: 50px 0 15px;
|
139
|
+
text-align: center;
|
140
|
+
border-top: 1px solid #e0e0e0;
|
141
|
+
}
|
142
|
+
.or-seperator b {
|
143
|
+
padding: 0 10px;
|
144
|
+
width: 40px;
|
145
|
+
height: 40px;
|
146
|
+
font-size: 16px;
|
147
|
+
text-align: center;
|
148
|
+
line-height: 40px;
|
149
|
+
background: #fff;
|
150
|
+
display: inline-block;
|
151
|
+
border: 1px solid #e0e0e0;
|
152
|
+
border-radius: 50%;
|
153
|
+
position: relative;
|
154
|
+
top: -22px;
|
155
|
+
z-index: 1;
|
156
|
+
}
|
157
|
+
.social-btn .btn {
|
158
|
+
color: #fff;
|
159
|
+
margin: 10px 0 0 15px;
|
160
|
+
font-size: 15px;
|
161
|
+
border-radius: 50px;
|
162
|
+
font-weight: normal;
|
163
|
+
border: none;
|
164
|
+
transition: all 0.4s;
|
165
|
+
}
|
166
|
+
.social-btn .btn:first-child {
|
167
|
+
margin-left: 0;
|
168
|
+
}
|
169
|
+
.social-btn .btn:hover {
|
170
|
+
opacity: 0.8;
|
171
|
+
}
|
172
|
+
.social-btn .btn-primary {
|
173
|
+
background: #507cc0;
|
174
|
+
}
|
175
|
+
.social-btn .btn-info {
|
176
|
+
background: #64ccf1;
|
177
|
+
}
|
178
|
+
.social-btn .btn-danger {
|
179
|
+
background: #df4930;
|
180
|
+
}
|
181
|
+
.social-btn .btn i {
|
182
|
+
float: left;
|
183
|
+
margin: 3px 10px;
|
184
|
+
font-size: 20px;
|
185
|
+
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
Dashboard
|
7
7
|
.content
|
8
8
|
%div.row::before
|
9
|
-
%div.col-lg-
|
9
|
+
%div.col-lg-4.col-md-4.col-xs-12
|
10
10
|
%div.small-box.bg-aqua
|
11
11
|
%div.inner
|
12
12
|
%b Current gems version found:
|
@@ -14,31 +14,31 @@
|
|
14
14
|
%li Ruby Version #{RUBY_VERSION }
|
15
15
|
%li Rails Version #{Rails.version }
|
16
16
|
%li gem jinda #{Gem.loaded_specs['jinda'].version}
|
17
|
-
%div.col-lg-
|
17
|
+
%div.col-lg-4.col-md-4.col-xs-12
|
18
18
|
%div.small-box.bg-green
|
19
19
|
%div.inner
|
20
20
|
%b Recently tested with:
|
21
21
|
%ul
|
22
22
|
%li Rubygems 2.7.1
|
23
23
|
%li Rails 6.0.3
|
24
|
-
%div.col-lg-
|
24
|
+
%div.col-lg-4.col-md-4.col-xs-12
|
25
25
|
%div.small-box.bg-yellow
|
26
26
|
%div.inner
|
27
27
|
%b Create New Rails:
|
28
28
|
%ul
|
29
29
|
%li rails new YOURAPP --skip-test-unit --skip-bundle --skip-active-record --skip-javascript --skip-turbolinks
|
30
30
|
%li (rails new YOURAPP -BOTJ)
|
31
|
-
%div.col-lg-
|
31
|
+
%div.col-lg-6.col-md-12.col-xs-12
|
32
32
|
%div.small-box.bg-red
|
33
33
|
%div.inner
|
34
34
|
%b Installation
|
35
35
|
%ul
|
36
|
-
%li add gem 'jinda'
|
36
|
+
%li add gem 'jinda' # 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
|
40
40
|
%li when update app/jinda/index.mm, run rake jinda:update
|
41
|
-
%div.col-lg-
|
41
|
+
%div.col-lg-6.col-md-12.col-xs-12
|
42
42
|
%div.small-box.bg-blue
|
43
43
|
%div.inner
|
44
44
|
%b Option: Themes available: Jinda_adminbsb, Jinda_adminlte
|
@@ -1,11 +1,17 @@
|
|
1
|
+
|
2
|
+
<%- @title= 'Template for Document' %>
|
1
3
|
<%
|
2
4
|
doc = Jinda::Doc.new :issue_on=> Date.today, :process_at => Time.now
|
3
|
-
%>
|
4
|
-
|
5
|
-
|
6
|
-
<%=
|
7
|
-
|
8
|
-
|
5
|
+
%>
|
6
|
+
|
7
|
+
<h1>
|
8
|
+
<%= @title %>
|
9
|
+
</h1>
|
10
|
+
|
11
|
+
<div class = "module-table">
|
12
|
+
<%= fields_for doc do |f| %>
|
13
|
+
<%= f.label :category, "Category" %>
|
14
|
+
<%= f.select :category, [["Book", "book"], ["Letter", "letter"], ["Brochure", "brochure"]] %>
|
9
15
|
<%= f.label :issue_on, "Dated" %>
|
10
16
|
<%= f.date_field :issue_on, "blackDays"=>[0,6] %>
|
11
17
|
|
@@ -13,14 +19,16 @@
|
|
13
19
|
<%= f.file_field :dscan %>
|
14
20
|
<% end %>
|
15
21
|
<div>
|
16
|
-
|
17
|
-
|
22
|
+
<%= label_tag :description, "Description" %>
|
23
|
+
<%= text_field_tag :description %>
|
18
24
|
</div>
|
19
25
|
<div>
|
20
26
|
<%= label_tag :ma_display, "Display", :class=>"ui-input-text" %>
|
21
27
|
<%= select_tag :ma_display, options_for_select([['Yes', 'y'], ['No', 'n']],'y'), 'data-role'=>"slider" %>
|
22
28
|
</div>
|
23
29
|
<div>
|
24
|
-
|
25
|
-
|
30
|
+
<%= label_tag :keywords, "Search Keywords" %>
|
31
|
+
<%= text_field_tag :keywords %>
|
26
32
|
</div>
|
33
|
+
</div>
|
34
|
+
|
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.7.0.
|
4
|
+
version: 0.7.0.3
|
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: 2021-01-
|
12
|
+
date: 2021-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -306,7 +306,6 @@ files:
|
|
306
306
|
- lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
|
307
307
|
- lib/generators/jinda/templates/app/views/docs/index.haml
|
308
308
|
- lib/generators/jinda/templates/app/views/docs/my.haml
|
309
|
-
- lib/generators/jinda/templates/app/views/identities/new.html.erb
|
310
309
|
- lib/generators/jinda/templates/app/views/jinda_mailer/gmail.html.erb
|
311
310
|
- lib/generators/jinda/templates/app/views/layouts/_head.html.erb
|
312
311
|
- lib/generators/jinda/templates/app/views/layouts/_meta_tag.html.erb
|
@@ -344,8 +343,6 @@ files:
|
|
344
343
|
- lib/generators/jinda/templates/app/views/notes/show.haml
|
345
344
|
- lib/generators/jinda/templates/app/views/notes/xedit/edit_note.html.erb
|
346
345
|
- lib/generators/jinda/templates/app/views/password_resets/edit.html.erb
|
347
|
-
- lib/generators/jinda/templates/app/views/password_resets/new.html.erb
|
348
|
-
- lib/generators/jinda/templates/app/views/sessions/new.html.erb
|
349
346
|
- lib/generators/jinda/templates/app/views/sitemap/index.xml.haml
|
350
347
|
- lib/generators/jinda/templates/app/views/user_mailer/password_reset.html.haml
|
351
348
|
- lib/generators/jinda/templates/app/views/user_mailer/password_reset.text.erb
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<div class="container">
|
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>
|
7
|
-
<% if @identity && @identity.errors.any? %>
|
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>
|
16
|
-
<% end %>
|
17
|
-
<div class="field form-control" data-role="fieldcontain">
|
18
|
-
<%= label_tag :code, 'Username' %>
|
19
|
-
<%= text_field_tag :code, @identity.try(:code) %>
|
20
|
-
</div>
|
21
|
-
<div class="field form-control" data-role="fieldcontain">
|
22
|
-
<%= label_tag :email %>
|
23
|
-
<%= text_field_tag :email, @identity.try(:email) %>
|
24
|
-
</div>
|
25
|
-
<div class="field form-control" data-role="fieldcontain">
|
26
|
-
<%= label_tag :password, 'Password' %>
|
27
|
-
<%= password_field_tag :password %>
|
28
|
-
</div>
|
29
|
-
<div class="field form-control" data-role="fieldcontain">
|
30
|
-
<%= label_tag :password_confirmation, 'Confirm password' %>
|
31
|
-
<%= password_field_tag :password_confirmation %>
|
32
|
-
</div>
|
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>
|
37
|
-
</div>
|
@@ -1,13 +0,0 @@
|
|
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,29 +0,0 @@
|
|
1
|
-
<div class="container">
|
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="label-warning">
|
8
|
-
<%= flash[:alert] %>
|
9
|
-
</div>
|
10
|
-
<div class="form-control" data-role="fieldcontain">
|
11
|
-
<%= label_tag :auth_key, "User name" %>
|
12
|
-
<%= text_field_tag :auth_key %>
|
13
|
-
</div>
|
14
|
-
<div class="form-control" data-role="fieldcontain">
|
15
|
-
<%= label_tag :password, "Password" %>
|
16
|
-
<%= password_field_tag :password %>
|
17
|
-
</div>
|
18
|
-
<div class="field" data-role="fieldcontain" data-icon="info">
|
19
|
-
<%= label_tag :remember_me %>
|
20
|
-
<%= check_box_tag :remember_me, 1, params.permit[:remember_me] %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<button class="btn btn-success btn-block actions" type="submit"><i class="fas fa-sign-in-alt"></i> Sign in</button>
|
24
|
-
<%= link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'} %>
|
25
|
-
<hr>
|
26
|
-
<% end %>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
</div>
|