avo 4.0.0.beta.18 → 4.0.0.beta.20
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/assets/builds/avo/application.css +4 -7
- data/app/assets/stylesheets/css/fonts.css +4 -14
- data/app/controllers/avo/base_application_controller.rb +0 -9
- data/app/views/layouts/avo/application.html.erb +1 -1
- data/lib/avo/tailwind_builder.rb +1 -7
- data/lib/avo/version.rb +1 -1
- data/lib/tasks/avo_tasks.rake +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ca1db2674bbca70a939c3af07ce3cefe320ff55ac639b3254225ceac0fcc0c4
|
|
4
|
+
data.tar.gz: bf08ba7edd4239b31fcb246d5996f4d9fefbe30ec8c0c61a398c9c997f4a5ce0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f092659e7772e6e5eebec47023ce4a0c0832c8a68046ba6ac881c2b97776dca2b92e49008cec30a0058ad35919f061a56bccda288efbdb54bb0e8c61d34f9f7
|
|
7
|
+
data.tar.gz: 72e1fb3218086c85cadd96b79658288b16958bf030e2b7bd46f48b93185e24e38900f736e6909015b102b422cf9190a29c849ec3c80f16f7f8833839c38a1176
|
data/Gemfile.lock
CHANGED
|
@@ -4080,29 +4080,26 @@
|
|
|
4080
4080
|
font-family: 'Inter';
|
|
4081
4081
|
font-style: normal;
|
|
4082
4082
|
font-weight: 400;
|
|
4083
|
-
src: url('fonts/inter-v7-latin-regular.
|
|
4084
|
-
src: local(''), url('fonts/inter-v7-latin-regular.eot?#iefix') format('embedded-opentype'), url('fonts/inter-v7-latin-regular.woff2') format('woff2'), url('fonts/inter-v7-latin-regular.woff') format('woff'), url('fonts/inter-v7-latin-regular.ttf') format('truetype'), url('fonts/inter-v7-latin-regular.svg#Inter') format('svg');
|
|
4083
|
+
src: local(''), url('fonts/inter-v7-latin-regular.woff2') format('woff2'), url('fonts/inter-v7-latin-regular.woff') format('woff'), url('fonts/inter-v7-latin-regular.ttf') format('truetype');
|
|
4085
4084
|
}
|
|
4086
4085
|
@font-face {
|
|
4087
4086
|
font-family: 'Inter';
|
|
4088
4087
|
font-style: normal;
|
|
4089
4088
|
font-weight: 500;
|
|
4090
4089
|
src: url('fonts/inter-v7-latin-500.eot');
|
|
4091
|
-
src: local(''), url('fonts/inter-v7-latin-500.eot?#iefix') format('embedded-opentype'), url('fonts/inter-v7-latin-500.woff2') format('woff2'), url('fonts/inter-v7-latin-500.woff') format('woff'), url('fonts/inter-v7-latin-500.ttf') format('truetype')
|
|
4090
|
+
src: local(''), url('fonts/inter-v7-latin-500.eot?#iefix') format('embedded-opentype'), url('fonts/inter-v7-latin-500.woff2') format('woff2'), url('fonts/inter-v7-latin-500.woff') format('woff'), url('fonts/inter-v7-latin-500.ttf') format('truetype');
|
|
4092
4091
|
}
|
|
4093
4092
|
@font-face {
|
|
4094
4093
|
font-family: 'Inter';
|
|
4095
4094
|
font-style: normal;
|
|
4096
4095
|
font-weight: 600;
|
|
4097
|
-
src: url('fonts/inter-v7-latin-600.
|
|
4098
|
-
src: local(''), url('fonts/inter-v7-latin-600.eot?#iefix') format('embedded-opentype'), url('fonts/inter-v7-latin-600.woff2') format('woff2'), url('fonts/inter-v7-latin-600.woff') format('woff'), url('fonts/inter-v7-latin-600.ttf') format('truetype'), url('fonts/inter-v7-latin-600.svg#Inter') format('svg');
|
|
4096
|
+
src: local(''), url('fonts/inter-v7-latin-600.woff2') format('woff2'), url('fonts/inter-v7-latin-600.woff') format('woff'), url('fonts/inter-v7-latin-600.ttf') format('truetype');
|
|
4099
4097
|
}
|
|
4100
4098
|
@font-face {
|
|
4101
4099
|
font-family: 'Inter';
|
|
4102
4100
|
font-style: normal;
|
|
4103
4101
|
font-weight: 700;
|
|
4104
|
-
src: url('fonts/inter-v7-latin-700.
|
|
4105
|
-
src: local(''), url('fonts/inter-v7-latin-700.eot?#iefix') format('embedded-opentype'), url('fonts/inter-v7-latin-700.woff2') format('woff2'), url('fonts/inter-v7-latin-700.woff') format('woff'), url('fonts/inter-v7-latin-700.ttf') format('truetype'), url('fonts/inter-v7-latin-700.svg#Inter') format('svg');
|
|
4102
|
+
src: local(''), url('fonts/inter-v7-latin-700.woff2') format('woff2'), url('fonts/inter-v7-latin-700.woff') format('woff'), url('fonts/inter-v7-latin-700.ttf') format('truetype');
|
|
4106
4103
|
}
|
|
4107
4104
|
.button-group {
|
|
4108
4105
|
display: flex;
|
|
@@ -3,13 +3,10 @@
|
|
|
3
3
|
font-family: 'Inter';
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: 400;
|
|
6
|
-
src: url('fonts/inter-v7-latin-regular.eot'); /* IE9 Compat Modes */
|
|
7
6
|
src: local(''),
|
|
8
|
-
url('fonts/inter-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
9
7
|
url('fonts/inter-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
|
|
10
8
|
url('fonts/inter-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
|
|
11
|
-
url('fonts/inter-v7-latin-regular.ttf') format('truetype')
|
|
12
|
-
url('fonts/inter-v7-latin-regular.svg#Inter') format('svg'); /* Legacy iOS */
|
|
9
|
+
url('fonts/inter-v7-latin-regular.ttf') format('truetype'); /* Safari, Android, iOS */
|
|
13
10
|
}
|
|
14
11
|
/* inter-500 - latin */
|
|
15
12
|
@font-face {
|
|
@@ -21,32 +18,25 @@
|
|
|
21
18
|
url('fonts/inter-v7-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
22
19
|
url('fonts/inter-v7-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
|
|
23
20
|
url('fonts/inter-v7-latin-500.woff') format('woff'), /* Modern Browsers */
|
|
24
|
-
url('fonts/inter-v7-latin-500.ttf') format('truetype')
|
|
25
|
-
url('fonts/inter-v7-latin-500.svg#Inter') format('svg'); /* Legacy iOS */
|
|
21
|
+
url('fonts/inter-v7-latin-500.ttf') format('truetype'); /* Safari, Android, iOS */
|
|
26
22
|
}
|
|
27
23
|
/* inter-600 - latin */
|
|
28
24
|
@font-face {
|
|
29
25
|
font-family: 'Inter';
|
|
30
26
|
font-style: normal;
|
|
31
27
|
font-weight: 600;
|
|
32
|
-
src: url('fonts/inter-v7-latin-600.eot'); /* IE9 Compat Modes */
|
|
33
28
|
src: local(''),
|
|
34
|
-
url('fonts/inter-v7-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
35
29
|
url('fonts/inter-v7-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
|
|
36
30
|
url('fonts/inter-v7-latin-600.woff') format('woff'), /* Modern Browsers */
|
|
37
|
-
url('fonts/inter-v7-latin-600.ttf') format('truetype')
|
|
38
|
-
url('fonts/inter-v7-latin-600.svg#Inter') format('svg'); /* Legacy iOS */
|
|
31
|
+
url('fonts/inter-v7-latin-600.ttf') format('truetype'); /* Safari, Android, iOS */
|
|
39
32
|
}
|
|
40
33
|
/* inter-700 - latin */
|
|
41
34
|
@font-face {
|
|
42
35
|
font-family: 'Inter';
|
|
43
36
|
font-style: normal;
|
|
44
37
|
font-weight: 700;
|
|
45
|
-
src: url('fonts/inter-v7-latin-700.eot'); /* IE9 Compat Modes */
|
|
46
38
|
src: local(''),
|
|
47
|
-
url('fonts/inter-v7-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
48
39
|
url('fonts/inter-v7-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
|
|
49
40
|
url('fonts/inter-v7-latin-700.woff') format('woff'), /* Modern Browsers */
|
|
50
|
-
url('fonts/inter-v7-latin-700.ttf') format('truetype')
|
|
51
|
-
url('fonts/inter-v7-latin-700.svg#Inter') format('svg'); /* Legacy iOS */
|
|
41
|
+
url('fonts/inter-v7-latin-700.ttf') format('truetype'); /* Safari, Android, iOS */
|
|
52
42
|
}
|
|
@@ -25,7 +25,6 @@ module Avo
|
|
|
25
25
|
before_action :add_initial_breadcrumbs
|
|
26
26
|
before_action :set_view
|
|
27
27
|
before_action :set_sidebar_open
|
|
28
|
-
before_action :set_stylesheet_assets_path
|
|
29
28
|
|
|
30
29
|
rescue_from Avo::NotAuthorizedError, with: :render_unauthorized
|
|
31
30
|
rescue_from ActiveRecord::RecordInvalid, with: :exception_logger
|
|
@@ -295,14 +294,6 @@ module Avo
|
|
|
295
294
|
Avo.logger.debug "Failed to set ActiveStorage::Current.url_options, #{exception.inspect}"
|
|
296
295
|
end
|
|
297
296
|
|
|
298
|
-
def set_stylesheet_assets_path
|
|
299
|
-
@stylesheet_assets_path = if Avo::TailwindBuilder.custom_build_exists?
|
|
300
|
-
"avo.tailwind"
|
|
301
|
-
else
|
|
302
|
-
"avo/application"
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
|
|
306
297
|
def choose_layout
|
|
307
298
|
if turbo_frame_request?
|
|
308
299
|
"avo/blank"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<%= render partial: "avo/partials/pre_head" %>
|
|
19
19
|
<%= stylesheet_link_tag "avo/dependencies", "data-turbo-track": "reload", as: "style" %>
|
|
20
20
|
<%= render Avo::AssetManager::StylesheetComponent.new asset_manager: Avo.asset_manager %>
|
|
21
|
-
<%= stylesheet_link_tag
|
|
21
|
+
<%= stylesheet_link_tag "avo/application", "data-turbo-track": "reload", as: "style" %>
|
|
22
22
|
|
|
23
23
|
<%= javascript_include_tag "avo/application", "data-turbo-track": "reload", defer: true %>
|
|
24
24
|
|
data/lib/avo/tailwind_builder.rb
CHANGED
|
@@ -22,12 +22,6 @@ module Avo
|
|
|
22
22
|
Avo.configuration.tailwindcss_integration_enabled && tailwindcss_available?
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def self.custom_build_exists?
|
|
26
|
-
return false unless defined?(Rails)
|
|
27
|
-
|
|
28
|
-
Rails.root.join("app", "assets", "builds", "avo.tailwind.css").exist?
|
|
29
|
-
end
|
|
30
|
-
|
|
31
25
|
def build
|
|
32
26
|
return true unless self.class.enabled?
|
|
33
27
|
|
|
@@ -88,7 +82,7 @@ module Avo
|
|
|
88
82
|
end
|
|
89
83
|
|
|
90
84
|
def output_path
|
|
91
|
-
Rails.root.join("app", "assets", "builds", "avo.
|
|
85
|
+
Rails.root.join("app", "assets", "builds", "avo", "application.css")
|
|
92
86
|
end
|
|
93
87
|
|
|
94
88
|
def generate_input_file
|
data/lib/avo/version.rb
CHANGED
data/lib/tasks/avo_tasks.rake
CHANGED
|
@@ -138,27 +138,27 @@ task "avo:yarn_install" do
|
|
|
138
138
|
`yarn add tailwindcss@^4.0.0 @tailwindcss/typography@^0.5.16 @tailwindcss/container-queries@^0.1.1 --cwd #{Avo::Engine.root}`
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
desc "Build Avo custom Tailwind CSS (requires tailwindcss-ruby gem; outputs app/assets/builds/avo.
|
|
141
|
+
desc "Build Avo custom Tailwind CSS (requires tailwindcss-ruby gem; outputs app/assets/builds/avo/application.css)"
|
|
142
142
|
task "avo:tailwindcss:build" => :environment do
|
|
143
143
|
unless Avo::TailwindBuilder.enabled?
|
|
144
144
|
puts "[Avo->] tailwindcss integration disabled or tailwindcss-ruby not found; skipping avo:tailwindcss:build"
|
|
145
145
|
next
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
puts "[Avo->] Building Avo Tailwind CSS extension (avo
|
|
148
|
+
puts "[Avo->] Building Avo Tailwind CSS extension (avo/application)..."
|
|
149
149
|
unless Avo::TailwindBuilder.build
|
|
150
150
|
abort "[Avo->] avo:tailwindcss:build failed"
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
desc "Watch Avo custom Tailwind CSS (requires tailwindcss-ruby gem; outputs app/assets/builds/avo.
|
|
154
|
+
desc "Watch Avo custom Tailwind CSS (requires tailwindcss-ruby gem; outputs app/assets/builds/avo/application.css)"
|
|
155
155
|
task "avo:tailwindcss:watch" => :environment do
|
|
156
156
|
unless Avo::TailwindBuilder.enabled?
|
|
157
157
|
puts "[Avo->] tailwindcss integration disabled or tailwindcss-ruby not found; skipping avo:tailwindcss:watch"
|
|
158
158
|
next
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
puts "[Avo->] Watching Avo Tailwind CSS extension (avo
|
|
161
|
+
puts "[Avo->] Watching Avo Tailwind CSS extension (avo/application)..."
|
|
162
162
|
unless Avo::TailwindBuilder.watch
|
|
163
163
|
abort "[Avo->] avo:tailwindcss:watch failed"
|
|
164
164
|
end
|