jinda 0.7.0.1 → 0.7.2
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/README.md +1 -1
- data/app/assets/stylesheets/jinda.scss +118 -5
- data/app/controllers/concerns/jinda_run_concern.rb +6 -3
- data/app/views/jinda/index.html.haml +7 -7
- data/config/routes.rb +1 -1
- data/lib/generators/jinda/install_generator.rb +2 -2
- data/lib/generators/jinda/templates/app/controllers/comments_controller.rb +31 -0
- data/lib/generators/jinda/templates/app/controllers/jinda_org/sessions_controller.rb +4 -3
- data/lib/generators/jinda/templates/app/jinda/template/view.html.erb +18 -10
- data/lib/generators/jinda/templates/app/models/comment.rb +2 -1
- data/lib/generators/jinda/templates/app/views/articles/show.html.haml +6 -2
- data/lib/generators/jinda/templates/app/views/identities/new.html.haml +32 -0
- data/lib/generators/jinda/templates/app/views/password_resets/new.html.haml +11 -0
- data/lib/generators/jinda/templates/app/views/sessions/new.html.haml +22 -0
- data/lib/jinda/version.rb +1 -1
- metadata +7 -20
- 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 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faef5ea06cc850bbbf7ebb2b1f8d3ac4e59688d0b5197c124bc4ca525b2ce466
|
|
4
|
+
data.tar.gz: f84ac716bb2ae580fcfeda5178544f7809440ae998c1f0cd263bbdfd5f58e1ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ab17b915d572b178f1d709037c9b1af2ed64db23b14d8cb36d68c1c010bb0e75dabcc8c1e1172acc628826f591ee4ef4278137191a53bfe1c0454b42858f274
|
|
7
|
+
data.tar.gz: 1404b46acb45165bccd3087926380ee9bf986edee9f8726691a5037ef25504b7b3b56d6ab3e467e752d9e2ac506a0d7e5d6198b1db07c795a2fc13210e1e4e13
|
data/README.md
CHANGED
|
@@ -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
|
+
}
|
|
@@ -18,9 +18,12 @@ module JindaRunConcern
|
|
|
18
18
|
# Check if help file available for this form
|
|
19
19
|
###############################################################################################
|
|
20
20
|
@help = File.read(fhelp) if File.exists?(fhelp)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
f1= "app/views/#{service.module.code}/#{service.code}/#{@runseq.code}.html.erb"
|
|
22
|
+
f2= "app/views/#{service.module.code}/#{service.code}/#{@runseq.code}.html.haml"
|
|
23
|
+
if File.file?(f1)
|
|
24
|
+
@ui= File.read(f1)
|
|
25
|
+
elsif File.file?(f2)
|
|
26
|
+
@ui= File.read(f2)
|
|
24
27
|
else
|
|
25
28
|
# flash[:notice]= "Error: Can not find the view file for this controller"
|
|
26
29
|
ma_log "Error: Can not find the view file for this controller"
|
|
@@ -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
|
-
%li Rails 6.0
|
|
24
|
-
%div.col-lg-
|
|
23
|
+
%li Rails 6.1.0
|
|
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
|
data/config/routes.rb
CHANGED
|
@@ -12,7 +12,7 @@ Rails.application.routes.draw do
|
|
|
12
12
|
# end jinda method routes
|
|
13
13
|
post '/auth/:provider/callback' => 'sessions#create'
|
|
14
14
|
get '/auth/:provider/callback' => 'sessions#create'
|
|
15
|
-
get '/auth/failure' => 'sessions#
|
|
15
|
+
get '/auth/failure' => 'sessions#failure'
|
|
16
16
|
get '/logout' => 'sessions#destroy', :as => 'logout'
|
|
17
17
|
get '/articles/my' => 'articles#my'
|
|
18
18
|
get '/articles/my/destroy' => 'articles#destroy'
|
|
@@ -17,7 +17,7 @@ module Jinda
|
|
|
17
17
|
gem 'jquery-turbolinks', '2.1.0'
|
|
18
18
|
gem 'mongo', '2.11.3'
|
|
19
19
|
gem 'bson', '4.4.2'
|
|
20
|
-
gem 'mongoid', '
|
|
20
|
+
gem 'mongoid', git: 'git@github.com:kul1/mongoid.git'
|
|
21
21
|
gem 'turbolinks_render'
|
|
22
22
|
gem 'nokogiri', '~> 1.11.0'
|
|
23
23
|
gem 'haml', '~> 5.1', '>= 5.1.2'
|
|
@@ -32,7 +32,7 @@ module Jinda
|
|
|
32
32
|
gem 'omniauth-identity', '~> 1.1.1'
|
|
33
33
|
gem 'omniauth-facebook', '6.0.0'
|
|
34
34
|
gem 'omniauth-google-oauth2', '0.8.0'
|
|
35
|
-
gem 'dotenv-rails'
|
|
35
|
+
gem 'dotenv-rails'
|
|
36
36
|
gem 'cloudinary', '1.13.2'
|
|
37
37
|
gem 'kaminari', '1.2.0'
|
|
38
38
|
gem 'kaminari-mongoid', '1.0.1'
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
class CommentsController < ApplicationController
|
|
2
|
+
before_action :comment_params, only: [:create]
|
|
3
|
+
before_action :load_commmentable
|
|
4
|
+
|
|
5
|
+
def index
|
|
6
|
+
@comments = @commentable.comments
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def create
|
|
10
|
+
@comment = @commentable.comments.new comment_params
|
|
11
|
+
@comment.save!
|
|
12
|
+
redirect_to [@commentable], notice: "Comment created"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
private
|
|
16
|
+
|
|
17
|
+
# def article_params
|
|
18
|
+
# params.require(:comment).permit(:article_id)
|
|
19
|
+
# end
|
|
20
|
+
|
|
21
|
+
def comment_params
|
|
22
|
+
resource = request.path.split('/')[1]
|
|
23
|
+
commentable_id = "#{resource.singularize.to_sym}_id" #:article_id
|
|
24
|
+
params.require(:comment).permit(:body, :user_id,:name, :image, commentable_id.to_sym)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def load_commmentable
|
|
28
|
+
resource, id = request.path.split('/')[1,2]
|
|
29
|
+
@commentable = resource.singularize.classify.constantize.find(id)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -5,6 +5,7 @@ class SessionsController < ApplicationController
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def failure
|
|
8
|
+
# redirect_to login_path, alert: "Authentication failed, please try again."
|
|
8
9
|
redirect_to login_path, alert: "Authentication failed, please try again."
|
|
9
10
|
end
|
|
10
11
|
|
|
@@ -21,8 +22,8 @@ class SessionsController < ApplicationController
|
|
|
21
22
|
cookies[:auth_token] = user.auth_token
|
|
22
23
|
end
|
|
23
24
|
# refresh_to root_path, :ma_notice => "Logged in" # Called by jinda_conroller
|
|
24
|
-
|
|
25
|
-
redirect_to articles_my_path
|
|
25
|
+
redirect_to root_path
|
|
26
|
+
# redirect_to articles_my_path
|
|
26
27
|
|
|
27
28
|
rescue
|
|
28
29
|
redirect_to root_path, :alert=> "Authentication failed, please try again."
|
|
@@ -38,6 +39,6 @@ class SessionsController < ApplicationController
|
|
|
38
39
|
|
|
39
40
|
def failure
|
|
40
41
|
ma_log "Authentication failed, please try again."
|
|
41
|
-
redirect_to
|
|
42
|
+
redirect_to new_session_path, :alert=> "Authentication failed, please try again."
|
|
42
43
|
end
|
|
43
44
|
end
|
|
@@ -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
|
+
|
|
@@ -4,9 +4,10 @@ class Comment
|
|
|
4
4
|
# jinda begin
|
|
5
5
|
include Mongoid::Timestamps
|
|
6
6
|
field :body, :type => String
|
|
7
|
+
field :name, :type => String
|
|
8
|
+
field :image, :type => String
|
|
7
9
|
belongs_to :article, :class_name => "Article"
|
|
8
10
|
belongs_to :user, :class_name => "User"
|
|
9
|
-
belongs_to :job, :class_name => "Job"
|
|
10
11
|
belongs_to :commentable, polymorphic: true
|
|
11
12
|
index({ commentable_id: 1, commentable_type: 1})
|
|
12
13
|
# jinda end
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
%div.inner
|
|
19
19
|
%div.font-weight-light
|
|
20
20
|
Author:
|
|
21
|
-
%b= comment.
|
|
21
|
+
%b= comment.name if comment.name
|
|
22
22
|
%div#comment-body
|
|
23
23
|
%i= comment.body
|
|
24
24
|
%hr
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
.form-group
|
|
38
38
|
= f.text_area :body, rows: 5, class: "form-control"
|
|
39
39
|
.form-group
|
|
40
|
-
= f.hidden_field :user_id, :value => current_ma_user
|
|
40
|
+
= f.hidden_field :user_id, :value => current_ma_user.id
|
|
41
|
+
.form-group
|
|
42
|
+
= f.hidden_field :name, :value => current_ma_user.code
|
|
43
|
+
.form-group
|
|
44
|
+
= f.hidden_field :image, :value => current_ma_user.image
|
|
41
45
|
.form-group
|
|
42
46
|
= f.submit "Submit", class: "btn btn-default btn-success"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.container
|
|
2
|
+
.signup-form
|
|
3
|
+
- @title= 'Sign Up'
|
|
4
|
+
= form_tag "/auth/identity/register", {'data-ajax'=>'false'} do
|
|
5
|
+
%h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign Up
|
|
6
|
+
.sign_in
|
|
7
|
+
.label-warning
|
|
8
|
+
= flash[:alert]
|
|
9
|
+
- if @identity && @identity.errors.any?
|
|
10
|
+
.error_messages
|
|
11
|
+
%h3
|
|
12
|
+
= pluralize(@identity.errors.count, "error")
|
|
13
|
+
prohibited this account from being saved:
|
|
14
|
+
%ul
|
|
15
|
+
- @identity.errors.full_messages.each do |msg|
|
|
16
|
+
%li= msg
|
|
17
|
+
.form-group.form-control
|
|
18
|
+
= label_tag :code, 'Username'
|
|
19
|
+
= text_field_tag :code, @identity.try(:code)
|
|
20
|
+
.form-group.form-control
|
|
21
|
+
= label_tag :email
|
|
22
|
+
= text_field_tag :email, @identity.try(:email)
|
|
23
|
+
.form-group.form-control
|
|
24
|
+
= label_tag :password, 'Password'
|
|
25
|
+
= password_field_tag :password
|
|
26
|
+
.form-group.form-control
|
|
27
|
+
= label_tag :password_confirmation, 'Confirm password'
|
|
28
|
+
= password_field_tag :password_confirmation
|
|
29
|
+
%button.btn.btn-success.btn-block.actions{:type => "submit"}
|
|
30
|
+
%i.fas.fa-sign-up-alt
|
|
31
|
+
Sign Up
|
|
32
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.container
|
|
2
|
+
.signup-form
|
|
3
|
+
.sign_in
|
|
4
|
+
= form_tag password_resets_path, :method => :post do
|
|
5
|
+
.form-group.form-control
|
|
6
|
+
= label_tag :email
|
|
7
|
+
= text_field_tag :email, params[:email]
|
|
8
|
+
%button.btn.btn-success.btn-block.actions{:type => "submit"}
|
|
9
|
+
%i.fas.fa-sign-in-alt
|
|
10
|
+
Reset Password
|
|
11
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.container
|
|
2
|
+
.signup-form
|
|
3
|
+
= form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do
|
|
4
|
+
%h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign in
|
|
5
|
+
.sign_in
|
|
6
|
+
.label-warning
|
|
7
|
+
= flash[:alert]
|
|
8
|
+
.form-group.form-control
|
|
9
|
+
= label_tag :auth_key, "User name"
|
|
10
|
+
= text_field_tag :auth_key
|
|
11
|
+
.form-group.form-control
|
|
12
|
+
= label_tag :password, "Password"
|
|
13
|
+
= password_field_tag :password
|
|
14
|
+
.form-group
|
|
15
|
+
= label_tag :remember_me
|
|
16
|
+
= check_box_tag :remember_me, 1, params.permit[:remember_me]
|
|
17
|
+
%button.btn.btn-success.btn-block.actions{:type => "submit"}
|
|
18
|
+
%i.fas.fa-sign-in-alt
|
|
19
|
+
Sign in
|
|
20
|
+
= link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'}
|
|
21
|
+
%hr/
|
|
22
|
+
|
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.
|
|
4
|
+
version: 0.7.2
|
|
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-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -59,20 +59,6 @@ dependencies:
|
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: 7.1.0
|
|
62
|
-
- !ruby/object:Gem::Dependency
|
|
63
|
-
name: rails
|
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "<"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '6.1'
|
|
69
|
-
type: :runtime
|
|
70
|
-
prerelease: false
|
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "<"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '6.1'
|
|
76
62
|
description: 'Generate Rails workflow from mind map: Freemind'
|
|
77
63
|
email:
|
|
78
64
|
- 1.0@kul.asia
|
|
@@ -236,6 +222,7 @@ files:
|
|
|
236
222
|
- lib/generators/jinda/templates/app/channels/application_cable/channel.rb
|
|
237
223
|
- lib/generators/jinda/templates/app/channels/application_cable/connection.rb
|
|
238
224
|
- lib/generators/jinda/templates/app/controllers/api/v1/notes_controller.rb
|
|
225
|
+
- lib/generators/jinda/templates/app/controllers/comments_controller.rb
|
|
239
226
|
- lib/generators/jinda/templates/app/controllers/jinda_org/admins_controller.rb
|
|
240
227
|
- lib/generators/jinda/templates/app/controllers/jinda_org/application_controller.rb
|
|
241
228
|
- lib/generators/jinda/templates/app/controllers/jinda_org/articles_controller.rb
|
|
@@ -306,7 +293,7 @@ files:
|
|
|
306
293
|
- lib/generators/jinda/templates/app/views/docs/edit/select_note.html.erb
|
|
307
294
|
- lib/generators/jinda/templates/app/views/docs/index.haml
|
|
308
295
|
- lib/generators/jinda/templates/app/views/docs/my.haml
|
|
309
|
-
- lib/generators/jinda/templates/app/views/identities/new.html.
|
|
296
|
+
- lib/generators/jinda/templates/app/views/identities/new.html.haml
|
|
310
297
|
- lib/generators/jinda/templates/app/views/jinda_mailer/gmail.html.erb
|
|
311
298
|
- lib/generators/jinda/templates/app/views/layouts/_head.html.erb
|
|
312
299
|
- lib/generators/jinda/templates/app/views/layouts/_meta_tag.html.erb
|
|
@@ -344,8 +331,8 @@ files:
|
|
|
344
331
|
- lib/generators/jinda/templates/app/views/notes/show.haml
|
|
345
332
|
- lib/generators/jinda/templates/app/views/notes/xedit/edit_note.html.erb
|
|
346
333
|
- lib/generators/jinda/templates/app/views/password_resets/edit.html.erb
|
|
347
|
-
- lib/generators/jinda/templates/app/views/password_resets/new.html.
|
|
348
|
-
- lib/generators/jinda/templates/app/views/sessions/new.html.
|
|
334
|
+
- lib/generators/jinda/templates/app/views/password_resets/new.html.haml
|
|
335
|
+
- lib/generators/jinda/templates/app/views/sessions/new.html.haml
|
|
349
336
|
- lib/generators/jinda/templates/app/views/sitemap/index.xml.haml
|
|
350
337
|
- lib/generators/jinda/templates/app/views/user_mailer/password_reset.html.haml
|
|
351
338
|
- lib/generators/jinda/templates/app/views/user_mailer/password_reset.text.erb
|
|
@@ -479,7 +466,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
479
466
|
- !ruby/object:Gem::Version
|
|
480
467
|
version: '0'
|
|
481
468
|
requirements: []
|
|
482
|
-
rubygems_version: 3.2
|
|
469
|
+
rubygems_version: 3.1.2
|
|
483
470
|
signing_key:
|
|
484
471
|
specification_version: 4
|
|
485
472
|
summary: 'Rails workflow from mind map: Freemind'
|
|
@@ -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,26 +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="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>
|
|
26
|
-
</div>
|