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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.browserslistrc +2 -0
  3. data/.gitignore +1 -0
  4. data/app/assets/bundle/trestle/auth/bundle.css +1 -0
  5. data/app/assets/bundle/trestle/auth/userbox.css +1 -0
  6. data/app/assets/stylesheets/trestle/_custom-auth.css +6 -0
  7. data/app/assets/stylesheets/trestle/auth.css +2 -0
  8. data/app/helpers/trestle/auth/title_helper.rb +3 -1
  9. data/app/views/layouts/trestle/auth.html.erb +11 -8
  10. data/app/views/trestle/auth/_userbox.html.erb +3 -4
  11. data/app/views/trestle/auth/sessions/new.html.erb +17 -9
  12. data/config/{locale → locales}/en.yml +0 -0
  13. data/config/locales/es.yml +8 -0
  14. data/config/{locale → locales}/pl.yml +0 -0
  15. data/config/{locale → locales}/pt-BR.yml +0 -0
  16. data/config/{locale → locales}/zh-CN.yml +0 -0
  17. data/frontend/_form.scss +79 -0
  18. data/frontend/_layout.scss +35 -0
  19. data/{app/assets/stylesheets/trestle/auth/_defaults.scss → frontend/_variables.scss} +2 -6
  20. data/frontend/index.scss +5 -0
  21. data/{app/assets/stylesheets/trestle/auth → frontend}/userbox.scss +10 -12
  22. data/lib/generators/trestle/auth/install/install_generator.rb +6 -0
  23. data/lib/trestle/auth/configuration.rb +2 -0
  24. data/lib/trestle/auth/engine.rb +1 -1
  25. data/lib/trestle/auth/version.rb +1 -1
  26. data/package.json +29 -0
  27. data/trestle-auth.gemspec +2 -2
  28. data/webpack.config.js +49 -0
  29. data/yarn.lock +4957 -0
  30. metadata +23 -17
  31. data/app/assets/javascripts/trestle/auth.js +0 -0
  32. data/app/assets/stylesheets/trestle/_custom-auth.scss +0 -4
  33. data/app/assets/stylesheets/trestle/auth.scss +0 -13
  34. data/app/assets/stylesheets/trestle/auth/_form.scss +0 -138
  35. 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.2.5
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: 2018-08-27 00:00:00.000000000 Z
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: '0.8'
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: '0.8'
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/javascripts/trestle/auth.js
98
- - app/assets/stylesheets/trestle/_custom-auth.scss
99
- - app/assets/stylesheets/trestle/auth.scss
100
- - app/assets/stylesheets/trestle/auth/_defaults.scss
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/locale/en.yml
112
- - config/locale/pl.yml
113
- - config/locale/pt-BR.yml
114
- - config/locale/zh-CN.yml
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
- rubyforge_project:
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,4 +0,0 @@
1
- // This file is left as an extension point for user customization.
2
- //
3
- // It will be overridden by the similarly named file within
4
- // the app/assets folder of the Rails application.
@@ -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
- }