bullet_train-themes 1.0.9 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bt-link +0 -0
- data/app/views/themes/base/fields/_password_field.html.erb +14 -1
- data/lib/bullet_train/themes/version.rb +1 -1
- data/lib/bullet_train/themes.rb +0 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce3b21afad1661e55eebbd080500931ca976430a2ada9a373eb7e3157c624a2
|
4
|
+
data.tar.gz: a281fa708287b6d0992dc2d063e303781125a1b61817946ca4ea5384e6ad1bc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 546338a06bd0aeed964446028eac86d1a8f50a39c92b27f97724827bce68cd859e1af0f3720a2b1dd10b41188deae52c038ac2d8dc7228c901ed296654d3bff7
|
7
|
+
data.tar.gz: 9bb53dbca59f55ffd2bb616c99e90c02202c55367ae0b596f1bdf36fc52021139c15dafa278cbc298c7330c0f542a7242da571133a6eada48b512c90a2f69b82
|
data/.bt-link
ADDED
File without changes
|
@@ -1,9 +1,22 @@
|
|
1
1
|
<% yield %>
|
2
2
|
|
3
3
|
<%
|
4
|
+
stimulus_controller = 'fields--password'
|
5
|
+
|
4
6
|
form ||= current_fields_form
|
5
7
|
options ||= {}
|
8
|
+
|
9
|
+
if options[:show_strength_indicator]
|
10
|
+
options = options.merge({ data: {"action": "keyup->fields--password#estimateStrength" }})
|
11
|
+
end
|
12
|
+
|
6
13
|
other_options ||= {}
|
7
14
|
%>
|
8
15
|
|
9
|
-
<%=
|
16
|
+
<div data-controller="<%= stimulus_controller %>">
|
17
|
+
<%= render 'shared/fields/field', form: form, method: method, helper: :password_field, options: options, other_options: other_options %>
|
18
|
+
<% if options[:show_strength_indicator] %>
|
19
|
+
<% # TODO This is the wrong place to define this kind of style, but I couldn't make this work in the `:help` content buffer. %>
|
20
|
+
<div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden mt-1.5 text-xs text-red"></div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
data/lib/bullet_train/themes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -31,6 +31,7 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".bt-link"
|
34
35
|
- MIT-LICENSE
|
35
36
|
- README.md
|
36
37
|
- Rakefile
|
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
- !ruby/object:Gem::Version
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.3.7
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: Bullet Train Themes
|