strada-rails 0.0.4 → 0.0.5

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: eb9228de23e4d69eddc81e12af66c15a298b9b867024701af1e37c2a4fa33589
4
- data.tar.gz: fdbfda34a88d91bfbf73084d3b0565686d89a92ec6a30b83d711b762dbb974f2
3
+ metadata.gz: ac7dfd80b1e6ee99b8aa2f190a92e882c88a1518c4ff2a1598d593e9d7cf9f06
4
+ data.tar.gz: 1ce7a6cb480ddc4859bc6fca7498d376b18e6ed4d1beaa800694831d712c835c
5
5
  SHA512:
6
- metadata.gz: 3f56d6ea102e136c7e5e9ea6ab74bdd9b12846c5294f1338bced53e52cb1d097e9087196edac25c5dcde42829c5a4bf13b774327910cbe1933150424d960576d
7
- data.tar.gz: e626f6fb0a22c11ef2f734c2ffd94bd49088b1ea54af4181bbc811bd11431ab5cba306cd83c544e253d7088b7b13d8e4924d18221c539e4febb5b5b03cfcfee5
6
+ metadata.gz: c2ccbc9ff08f34df5fe905e0fe761e6d96e8b6796a4876c001cc2e56e6c6bb26c68e7b163ceb1ea07c95b6878cd6b5d879adfa40b50fdf77cc33fec75b6871b3
7
+ data.tar.gz: 9a95e80197f3eb2a23347d6eeb3c69eabe5a4311bfa210839b6624da7c2567b3cad390aad7d1307610fab8843e2c18a131c9da9b90facc79b2fc9700b9538d91
@@ -1,5 +1,12 @@
1
1
  /* Strada — hide elements for registered bridge components */
2
2
 
3
+ /*
4
+ * Hide elements with "hide-on-native" when strada is registered.
5
+ */
6
+ [data-bridge-platform] .hide-on-native {
7
+ display: none;
8
+ }
9
+
3
10
  /*
4
11
  * Hide the submit button when the "form" component is registered.
5
12
  */
@@ -1,5 +1,3 @@
1
- APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb")
2
-
3
1
  destination = Pathname(destination_root)
4
2
 
5
3
  say "Copy bridge controllers"
@@ -17,12 +15,5 @@ unless destination.join("app/assets/application.css").exist?
17
15
  end
18
16
  end
19
17
 
20
- say "Add hide-on-native style in application layout"
21
- insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4).prepend("\n"), before: /^\s*<\/head>/
22
- <% if turbo_native_app? %>
23
- <style>.hide-on-native { display: none; }</style>
24
- <% end %>
25
- ERB
26
-
27
18
  say "Install Strada"
28
19
  run "bun add @hotwired/stimulus"
@@ -1,5 +1,3 @@
1
- APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb")
2
-
3
1
  destination = Pathname(destination_root)
4
2
 
5
3
  say "Copy bridge controllers"
@@ -14,13 +12,6 @@ unless destination.join("app/assets/application.css").exist?
14
12
  end
15
13
  end
16
14
 
17
- say "Add hide-on-native style in application layout"
18
- insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4).prepend("\n"), before: /^\s*<\/head>/
19
- <% if turbo_native_app? %>
20
- <style>.hide-on-native { display: none; }</style>
21
- <% end %>
22
- ERB
23
-
24
15
  say "Pin Strada"
25
16
  say %(Appending: pin "@hotwired/strada", to: "strada.js", preload: true")
26
17
  append_to_file "config/importmap.rb", %(pin "@hotwired/strada", to: "strada.js", preload: true\n)
@@ -1,5 +1,3 @@
1
- APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb")
2
-
3
1
  destination = Pathname(destination_root)
4
2
 
5
3
  say "Copy bridge controllers"
@@ -17,12 +15,5 @@ unless destination.join("app/assets/application.css").exist?
17
15
  end
18
16
  end
19
17
 
20
- say "Add hide-on-native style in application layout"
21
- insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4).prepend("\n"), before: /^\s*<\/head>/
22
- <% if turbo_native_app? %>
23
- <style>.hide-on-native { display: none; }</style>
24
- <% end %>
25
- ERB
26
-
27
18
  say "Install Strada"
28
19
  run "yarn add @hotwired/strada"
@@ -1,3 +1,3 @@
1
1
  module Strada
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strada-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon