no_password_auth 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5745ba598e70ea21003c8df138f386b06d011bc0d259832dc92cbebfde29c7d6
|
4
|
+
data.tar.gz: c574de1146ad1b918754f9d1a67fe40db5178128eb3c3e56ec1d22d7426e837a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d30412f3f72b245734accb362d29bf90bb1ae23b35b28cc3557b9422b904cdad195c8508958a00a41ea4790ab42a248b100cb43db3df057496feb15284983c
|
7
|
+
data.tar.gz: b05a590cb97582b831ef817e090ac17e4139c7ccae13f0806569db4d4c565e9cc082f1a203748ace6a5bf6ed1240976cc5a20a8c0cec723152df2dc7ef6fa848
|
@@ -0,0 +1,61 @@
|
|
1
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
2
|
+
|
3
|
+
function withOpacityValue(variableName) {
|
4
|
+
return ({opacityValue}) => {
|
5
|
+
opacityValue = opacityValue ?? 1;
|
6
|
+
return `rgba(var(${variableName}), ${opacityValue})`
|
7
|
+
}
|
8
|
+
};
|
9
|
+
|
10
|
+
module.exports = {
|
11
|
+
content: [
|
12
|
+
'/Users/marioch/Development/creditario/nopassword/app/views/**/*',
|
13
|
+
'/Users/marioch/Development/creditario/nopassword/app/helpers/**/*',
|
14
|
+
'/Users/marioch/Development/creditario/nopassword/app/controllers/**/*',
|
15
|
+
'/Users/marioch/Development/creditario/nopassword/app/javascript/**/*.js',
|
16
|
+
'/Users/marioch/Development/creditario/nopassword/app/assets/**/application.tailwind.css'
|
17
|
+
],
|
18
|
+
theme: {
|
19
|
+
extend: {
|
20
|
+
fontFamily: {
|
21
|
+
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
|
22
|
+
},
|
23
|
+
textColor: {
|
24
|
+
skin: {
|
25
|
+
inverted: withOpacityValue('--color-inverted'),
|
26
|
+
accented: withOpacityValue('--color-accented'),
|
27
|
+
'accented-hover': withOpacityValue('--color-accented-hover'),
|
28
|
+
base: withOpacityValue('--color-base'),
|
29
|
+
muted: withOpacityValue('--color-muted'),
|
30
|
+
dimmed: withOpacityValue('--color-dimmed'),
|
31
|
+
error: withOpacityValue('--color-error'),
|
32
|
+
}
|
33
|
+
},
|
34
|
+
backgroundColor: {
|
35
|
+
skin: {
|
36
|
+
'button-accented': withOpacityValue('--color-accented'),
|
37
|
+
'button-accented-hover': withOpacityValue('--color-accented-hover'),
|
38
|
+
'button-inverted': withOpacityValue('--color-inverted'),
|
39
|
+
'button-inverted-hover': withOpacityValue('--color-inverted-hover'),
|
40
|
+
muted: withOpacityValue('--color-muted'),
|
41
|
+
dimmed: withOpacityValue('--color-dimmed'),
|
42
|
+
accent: withOpacityValue('--color-accent'),
|
43
|
+
}
|
44
|
+
},
|
45
|
+
ringColor: {
|
46
|
+
skin: {
|
47
|
+
accented: withOpacityValue('--color-border-accented'),
|
48
|
+
}
|
49
|
+
},
|
50
|
+
borderColor: {
|
51
|
+
skin: {
|
52
|
+
base: withOpacityValue('--color-border-base'),
|
53
|
+
accented: withOpacityValue('--color-border-accented'),
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
},
|
58
|
+
plugins: [
|
59
|
+
require('@tailwindcss/forms')
|
60
|
+
],
|
61
|
+
}
|
@@ -11,7 +11,7 @@ module NoPassword
|
|
11
11
|
token = verify_token(params[:token])
|
12
12
|
redirect_url = sign_in_session(token, by_url: true)
|
13
13
|
|
14
|
-
|
14
|
+
redirect_to(redirect_url) if redirect_url.present?
|
15
15
|
end
|
16
16
|
|
17
17
|
def update
|
@@ -42,7 +42,7 @@ module NoPassword
|
|
42
42
|
if respond_to?(:after_sign_in!)
|
43
43
|
after_sign_in!(current_session, by_url)
|
44
44
|
elsif current_session.present?
|
45
|
-
|
45
|
+
current_session.return_url || main_app.root_path
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -1,11 +1,9 @@
|
|
1
1
|
module NoPassword
|
2
2
|
module NoPasswordHelper
|
3
|
-
def no_password_importmap_tags(entry_point = "application"
|
3
|
+
def no_password_importmap_tags(entry_point = "application")
|
4
4
|
safe_join [
|
5
5
|
javascript_inline_importmap_tag(NoPassword.configuration.importmap.to_json(resolver: self)),
|
6
6
|
javascript_importmap_module_preload_tags(NoPassword.configuration.importmap),
|
7
|
-
(javascript_importmap_shim_nonce_configuration_tag if shim),
|
8
|
-
(javascript_importmap_shim_tag if shim),
|
9
7
|
javascript_import_module_tag(entry_point)
|
10
8
|
].compact, "\n"
|
11
9
|
end
|
data/lib/no_password/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no_password_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Alberto Chávez
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -18,76 +18,76 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 7.
|
21
|
+
version: 7.1.0
|
22
22
|
- - "<="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 7.
|
24
|
+
version: 7.2.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 7.
|
31
|
+
version: 7.1.0
|
32
32
|
- - "<="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 7.
|
34
|
+
version: 7.2.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: turbo-rails
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 2.0.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 2.0.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: stimulus-rails
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
55
|
+
version: 1.3.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.
|
62
|
+
version: 1.3.0
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: importmap-rails
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 2.0.0
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 2.0.0
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: tailwindcss-rails
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 2.0
|
83
|
+
version: '2.0'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 2.0
|
90
|
+
version: '2.0'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: standard
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- README.md
|
144
144
|
- Rakefile
|
145
145
|
- app/assets/config/no_password/manifest.js
|
146
|
+
- app/assets/config/no_password/tailwind.config.js
|
146
147
|
- app/assets/images/no_password/aoo.svg
|
147
148
|
- app/assets/javascripts/no_password/application.js
|
148
149
|
- app/assets/javascripts/no_password/controllers/alert_controller.js
|
@@ -226,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
227
|
- !ruby/object:Gem::Version
|
227
228
|
version: '0'
|
228
229
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
+
rubygems_version: 3.5.6
|
230
231
|
signing_key:
|
231
232
|
specification_version: 4
|
232
233
|
summary: Passwordless Ruby on Rails engine.
|