bullet_train-themes 1.0.7 → 1.0.10
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: 47e773277d423022a2eefa037691144a144cb12a2de66b4c044dd21b31782a26
|
4
|
+
data.tar.gz: a7c976430dce24ebdc11485b7bccd2db7422da01217e1a1b4c8e80f0595721d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c5c5b3d609cf36dc114bef66c3678052f20db6a7a06db1738e12dbc313c011e838ae8aa2eb4cb7e82de98cbd2b1bf0ea9f954a5eda807703b21c282db6bf23
|
7
|
+
data.tar.gz: 466d40287fc3efb43c67407b6659c107dff965217a7822b957c9bdf3e5ae978ae28baccb11d7a27af79db07e765ab94b1510494a885af5c100cc19be5446e01b
|
@@ -5,6 +5,6 @@
|
|
5
5
|
<% if object.send(attribute).present? %>
|
6
6
|
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
|
7
7
|
<% # `.to_s` is for action text. %>
|
8
|
-
<%=
|
8
|
+
<%= html_sanitize(object.send(attribute).to_s).html_safe %>
|
9
9
|
<% end %>
|
10
10
|
<% end %>
|
@@ -1,9 +1,21 @@
|
|
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
|
+
<div data-<%= stimulus_controller %>-target="strengthIndicator" class="hidden"></div>
|
20
|
+
<% end %>
|
21
|
+
</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.10
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|