avo 2.15.1 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/views/avo/partials/_pre_head.html.erb +0 -0
- data/app/views/layouts/avo/application.html.erb +1 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/base_generator.rb +1 -1
- data/lib/generators/avo/eject_generator.rb +1 -0
- data/lib/generators/avo/js/install_generator.rb +2 -2
- data/lib/generators/avo/tailwindcss/install_generator.rb +6 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afff2c325122eaf769499aac7aec03ba806717a5d17666765c2ce063536bf665
|
|
4
|
+
data.tar.gz: 56f28ef14b94dc3636481a96494632c0b3d2362e9158fe94d91af0b3972f40cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6091db813153b5cd5a16a13da7c4ca3fe033967f4c78c39e81c027d99848d6d6cc81b5d57f2ad07c914cce6ec960e57918f7ba711f22e0e4ac3acaa35557c8f
|
|
7
|
+
data.tar.gz: 000e61a2068531bf1ace9deeecdf9b58f300ad26453d7b86996cb610d0bcebb79c92b9707aec0f9a54612c9d98a4ff8556a2ac28649980d5a8b265823e566f7e
|
data/Gemfile.lock
CHANGED
|
File without changes
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<%= csp_meta_tag %>
|
|
8
8
|
<%= render partial: 'avo/partials/javascript' %>
|
|
9
9
|
<%= render partial: 'avo/partials/branding' %>
|
|
10
|
+
<%= render partial: 'avo/partials/pre_head' %>
|
|
10
11
|
<% if Avo::PACKED %>
|
|
11
12
|
<%= javascript_include_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
|
|
12
13
|
<%= stylesheet_link_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %>
|
data/lib/avo/version.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Generators
|
|
|
14
14
|
head: "app/views/avo/partials/_head.html.erb",
|
|
15
15
|
header: "app/views/avo/partials/_header.html.erb",
|
|
16
16
|
footer: "app/views/avo/partials/_footer.html.erb",
|
|
17
|
+
pre_head: "app/views/avo/partials/_pre_head.html.erb",
|
|
17
18
|
scripts: "app/views/avo/partials/_scripts.html.erb",
|
|
18
19
|
sidebar_extra: "app/views/avo/partials/_sidebar_extra.html.erb",
|
|
19
20
|
}
|
|
@@ -31,7 +31,7 @@ module Generators
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
say "Ejecting the _head.html.erb partial"
|
|
34
|
-
Rails::Generators.invoke("avo:eject", [":head", "--
|
|
34
|
+
Rails::Generators.invoke("avo:eject", [":head", "--skip-avo-version"], {destination_root: Rails.root})
|
|
35
35
|
|
|
36
36
|
say "Adding the JS asset to the partial"
|
|
37
37
|
append_to_file Rails.root.join("app", "views", "avo", "partials", "_head.html.erb"), "<%= javascript_importmap_tags \"avo.custom\" %>"
|
|
@@ -48,7 +48,7 @@ module Generators
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
say "Ejecting the _head.html.erb partial"
|
|
51
|
-
Rails::Generators.invoke("avo:eject", [":head", "--
|
|
51
|
+
Rails::Generators.invoke("avo:eject", [":head", "--skip-avo-version"], {destination_root: Rails.root})
|
|
52
52
|
|
|
53
53
|
say "Adding the JS asset to the partial"
|
|
54
54
|
append_to_file Rails.root.join("app", "views", "avo", "partials", "_head.html.erb"), "<%= javascript_include_tag \"avo.custom\", \"data-turbo-track\": \"reload\", defer: true %>"
|
|
@@ -30,11 +30,14 @@ module Generators
|
|
|
30
30
|
run "gem install foreman"
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
Rails
|
|
33
|
+
# Ensure that the _pre_head.html.erb template is available
|
|
34
|
+
unless Rails.root.join("app", "views", "avo", "partials", "_pre_head.html.erb").exist?
|
|
35
|
+
say "Ejecting the _pre_head.html.erb partial"
|
|
36
|
+
Rails::Generators.invoke("avo:eject", [":pre_head", "--skip-avo-version"], {destination_root: Rails.root})
|
|
37
|
+
end
|
|
35
38
|
|
|
36
39
|
say "Adding the CSS asset to the partial"
|
|
37
|
-
prepend_to_file Rails.root.join("app", "views", "avo", "partials", "
|
|
40
|
+
prepend_to_file Rails.root.join("app", "views", "avo", "partials", "_pre_head.html.erb"), "<%= stylesheet_link_tag \"avo.tailwind.css\", media: \"all\" %>"
|
|
38
41
|
end
|
|
39
42
|
|
|
40
43
|
no_tasks do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: avo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.15.
|
|
4
|
+
version: 2.15.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Marin
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-09-
|
|
12
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -1719,6 +1719,7 @@ files:
|
|
|
1719
1719
|
- app/views/avo/partials/_javascript.html.erb
|
|
1720
1720
|
- app/views/avo/partials/_logo.html.erb
|
|
1721
1721
|
- app/views/avo/partials/_navbar.html.erb
|
|
1722
|
+
- app/views/avo/partials/_pre_head.html.erb
|
|
1722
1723
|
- app/views/avo/partials/_resource_search.html.erb
|
|
1723
1724
|
- app/views/avo/partials/_scripts.html.erb
|
|
1724
1725
|
- app/views/avo/partials/_sidebar_extra.html.erb
|