trestle-auth 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.browserslistrc +2 -0
- data/.gitignore +1 -0
- data/app/assets/bundle/trestle/auth/bundle.css +1 -0
- data/app/assets/bundle/trestle/auth/userbox.css +1 -0
- data/app/assets/stylesheets/trestle/_custom-auth.css +6 -0
- data/app/assets/stylesheets/trestle/auth.css +2 -0
- data/app/helpers/trestle/auth/title_helper.rb +3 -1
- data/app/views/layouts/trestle/auth.html.erb +11 -8
- data/app/views/trestle/auth/_userbox.html.erb +3 -4
- data/app/views/trestle/auth/sessions/new.html.erb +17 -9
- data/config/{locale → locales}/en.yml +0 -0
- data/config/locales/es.yml +8 -0
- data/config/{locale → locales}/pl.yml +0 -0
- data/config/{locale → locales}/pt-BR.yml +0 -0
- data/config/{locale → locales}/zh-CN.yml +0 -0
- data/frontend/_form.scss +79 -0
- data/frontend/_layout.scss +35 -0
- data/{app/assets/stylesheets/trestle/auth/_defaults.scss → frontend/_variables.scss} +2 -6
- data/frontend/index.scss +5 -0
- data/{app/assets/stylesheets/trestle/auth → frontend}/userbox.scss +10 -12
- data/lib/generators/trestle/auth/install/install_generator.rb +6 -0
- data/lib/trestle/auth/configuration.rb +2 -0
- data/lib/trestle/auth/engine.rb +1 -1
- data/lib/trestle/auth/version.rb +1 -1
- data/package.json +29 -0
- data/trestle-auth.gemspec +2 -2
- data/webpack.config.js +49 -0
- data/yarn.lock +4957 -0
- metadata +23 -17
- data/app/assets/javascripts/trestle/auth.js +0 -0
- data/app/assets/stylesheets/trestle/_custom-auth.scss +0 -4
- data/app/assets/stylesheets/trestle/auth.scss +0 -13
- data/app/assets/stylesheets/trestle/auth/_form.scss +0 -138
- data/app/assets/stylesheets/trestle/auth/_layout.scss +0 -20
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trestle-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pohlenz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trestle
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bcrypt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +87,7 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- ".browserslistrc"
|
90
91
|
- ".gitignore"
|
91
92
|
- ".rspec"
|
92
93
|
- ".travis.yml"
|
@@ -94,13 +95,10 @@ files:
|
|
94
95
|
- LICENSE
|
95
96
|
- README.md
|
96
97
|
- Rakefile
|
97
|
-
- app/assets/
|
98
|
-
- app/assets/
|
99
|
-
- app/assets/stylesheets/trestle/auth.
|
100
|
-
- app/assets/stylesheets/trestle/auth
|
101
|
-
- app/assets/stylesheets/trestle/auth/_form.scss
|
102
|
-
- app/assets/stylesheets/trestle/auth/_layout.scss
|
103
|
-
- app/assets/stylesheets/trestle/auth/userbox.scss
|
98
|
+
- app/assets/bundle/trestle/auth/bundle.css
|
99
|
+
- app/assets/bundle/trestle/auth/userbox.css
|
100
|
+
- app/assets/stylesheets/trestle/_custom-auth.css
|
101
|
+
- app/assets/stylesheets/trestle/auth.css
|
104
102
|
- app/controllers/trestle/auth/sessions_controller.rb
|
105
103
|
- app/helpers/trestle/auth/title_helper.rb
|
106
104
|
- app/helpers/trestle/auth/user_helper.rb
|
@@ -108,11 +106,17 @@ files:
|
|
108
106
|
- app/views/trestle/auth/_userbox.html.erb
|
109
107
|
- app/views/trestle/auth/sessions/new.html.erb
|
110
108
|
- config/initializers/trestle.rb
|
111
|
-
- config/
|
112
|
-
- config/
|
113
|
-
- config/
|
114
|
-
- config/
|
109
|
+
- config/locales/en.yml
|
110
|
+
- config/locales/es.yml
|
111
|
+
- config/locales/pl.yml
|
112
|
+
- config/locales/pt-BR.yml
|
113
|
+
- config/locales/zh-CN.yml
|
115
114
|
- config/routes.rb
|
115
|
+
- frontend/_form.scss
|
116
|
+
- frontend/_layout.scss
|
117
|
+
- frontend/_variables.scss
|
118
|
+
- frontend/index.scss
|
119
|
+
- frontend/userbox.scss
|
116
120
|
- lib/generators/trestle/auth/admin/admin_generator.rb
|
117
121
|
- lib/generators/trestle/auth/admin/templates/admin.rb.erb
|
118
122
|
- lib/generators/trestle/auth/install/install_generator.rb
|
@@ -127,7 +131,10 @@ files:
|
|
127
131
|
- lib/trestle/auth/model_methods/rememberable.rb
|
128
132
|
- lib/trestle/auth/null_user.rb
|
129
133
|
- lib/trestle/auth/version.rb
|
134
|
+
- package.json
|
130
135
|
- trestle-auth.gemspec
|
136
|
+
- webpack.config.js
|
137
|
+
- yarn.lock
|
131
138
|
homepage: https://www.trestle.io
|
132
139
|
licenses:
|
133
140
|
- LGPL-3.0
|
@@ -147,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
154
|
- !ruby/object:Gem::Version
|
148
155
|
version: '0'
|
149
156
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.7.6
|
157
|
+
rubygems_version: 3.0.6
|
152
158
|
signing_key:
|
153
159
|
specification_version: 4
|
154
160
|
summary: Authentication plugin for the Trestle admin framework
|
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// User-defined variables
|
2
|
-
@import "trestle/support";
|
3
|
-
@import "auth/defaults";
|
4
|
-
|
5
|
-
// 3rd party dependencies
|
6
|
-
@import "trestle/bootstrap";
|
7
|
-
@import "trestle/font-awesome";
|
8
|
-
|
9
|
-
@import "auth/layout";
|
10
|
-
@import "auth/form";
|
11
|
-
|
12
|
-
// User customizations
|
13
|
-
@import "trestle/custom-auth";
|
@@ -1,138 +0,0 @@
|
|
1
|
-
a {
|
2
|
-
color: rgba(white, 0.75);
|
3
|
-
&:hover { color: white; }
|
4
|
-
}
|
5
|
-
|
6
|
-
.auth-header {
|
7
|
-
text-align: center;
|
8
|
-
margin-bottom: 20px;
|
9
|
-
|
10
|
-
h1 {
|
11
|
-
display: flex;
|
12
|
-
align-items: center;
|
13
|
-
justify-content: center;
|
14
|
-
|
15
|
-
font-size: 24px;
|
16
|
-
font-weight: 500;
|
17
|
-
text-shadow: rgba(black, 0.5) 0 1px 1px;
|
18
|
-
|
19
|
-
height: 60px;
|
20
|
-
padding: 10px 15px;
|
21
|
-
}
|
22
|
-
|
23
|
-
img {
|
24
|
-
max-width: 100%;
|
25
|
-
max-height: 100%;
|
26
|
-
}
|
27
|
-
|
28
|
-
span {
|
29
|
-
margin-left: 10px;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
.form-control, .input-group-addon {
|
34
|
-
background: $auth-form-control-bg;
|
35
|
-
border: $auth-form-control-border;
|
36
|
-
}
|
37
|
-
|
38
|
-
.form-control {
|
39
|
-
box-shadow: none;
|
40
|
-
|
41
|
-
color: $auth-form-control-color;
|
42
|
-
|
43
|
-
height: auto;
|
44
|
-
padding: 12px 5px;
|
45
|
-
|
46
|
-
font-size: 16px;
|
47
|
-
|
48
|
-
&:focus {
|
49
|
-
outline-color: transparent;
|
50
|
-
outline-style: none;
|
51
|
-
box-shadow: none;
|
52
|
-
}
|
53
|
-
|
54
|
-
&::placeholder {
|
55
|
-
color: $auth-form-control-placeholder;
|
56
|
-
}
|
57
|
-
|
58
|
-
&:-webkit-autofill {
|
59
|
-
-webkit-text-fill-color: $auth-form-control-color;
|
60
|
-
|
61
|
-
&, &:hover, &:focus, &:active {
|
62
|
-
transition: background-color 9999999s ease-in-out 0s;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
.input-group-addon {
|
68
|
-
color: rgba(white, 0.5);
|
69
|
-
|
70
|
-
&:first-child {
|
71
|
-
padding-right: 5px;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
.remember-me {
|
76
|
-
display: block;
|
77
|
-
font-weight: normal;
|
78
|
-
color: $auth-remember-me-color;
|
79
|
-
background: $auth-remember-me-bg;
|
80
|
-
border-radius: 5px;
|
81
|
-
padding: 10px 15px;
|
82
|
-
font-size: 13px;
|
83
|
-
cursor: pointer;
|
84
|
-
|
85
|
-
input {
|
86
|
-
margin-right: 10px;
|
87
|
-
margin-top: 0;
|
88
|
-
vertical-align: middle;
|
89
|
-
}
|
90
|
-
|
91
|
-
&:hover {
|
92
|
-
background: opacify($auth-remember-me-bg, 0.05);
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
.btn {
|
97
|
-
box-shadow: rgba(black, 0.1) 0 0 2px;
|
98
|
-
padding: 12px;
|
99
|
-
font-size: 16px;
|
100
|
-
}
|
101
|
-
|
102
|
-
.btn-primary {
|
103
|
-
outline: none;
|
104
|
-
|
105
|
-
color: $auth-login-btn-color;
|
106
|
-
background: $auth-login-btn-bg;
|
107
|
-
border: $auth-login-btn-border;
|
108
|
-
|
109
|
-
&:hover {
|
110
|
-
background-color: darken($auth-login-btn-bg, 2.5%);
|
111
|
-
border-color: darken($auth-login-btn-border, 5%);
|
112
|
-
}
|
113
|
-
|
114
|
-
&:focus, &:active {
|
115
|
-
background-color: darken($auth-login-btn-bg, 5%);
|
116
|
-
border-color: darken($auth-login-btn-border, 10%);
|
117
|
-
}
|
118
|
-
|
119
|
-
&:active:focus {
|
120
|
-
outline: none !important;
|
121
|
-
background-color: darken($auth-login-btn-bg, 10%);
|
122
|
-
border-color: darken($auth-login-btn-border, 15%);
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
.form-footer {
|
127
|
-
font-size: 12px;
|
128
|
-
}
|
129
|
-
|
130
|
-
.forgot-password {
|
131
|
-
float: right;
|
132
|
-
padding: 10px 5px;
|
133
|
-
}
|
134
|
-
|
135
|
-
.alert-danger {
|
136
|
-
background: $theme-bg-texture-url fixed, $alert-danger-bg;
|
137
|
-
color: white;
|
138
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
html, body {
|
2
|
-
height: 100%;
|
3
|
-
}
|
4
|
-
|
5
|
-
body {
|
6
|
-
-webkit-font-smoothing: antialiased;
|
7
|
-
|
8
|
-
margin: 0;
|
9
|
-
overflow: hidden;
|
10
|
-
|
11
|
-
color: white;
|
12
|
-
background: $auth-bg;
|
13
|
-
|
14
|
-
display: flex;
|
15
|
-
}
|
16
|
-
|
17
|
-
.container {
|
18
|
-
margin: auto;
|
19
|
-
width: 320px;
|
20
|
-
}
|