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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3968dcf2a4263c55531d121f603cdef27ce7ae2e33909df50cca81403e7165d
4
- data.tar.gz: c5deb043f07fff711ca862926a8f2e839cf9f879c2f347316c9e698cc8fe03a9
3
+ metadata.gz: 2ca1db2674bbca70a939c3af07ce3cefe320ff55ac639b3254225ceac0fcc0c4
4
+ data.tar.gz: bf08ba7edd4239b31fcb246d5996f4d9fefbe30ec8c0c61a398c9c997f4a5ce0
5
5
  SHA512:
6
- metadata.gz: aa3e5173d9d6115bf7350422450c2c6b77b742a3c1d5bd3e5344df0815ef25372940d9962900dce7255ad3675a94b92be2e298576a9de2777a105c825c59bd84
7
- data.tar.gz: ba6c7427ffd7cd8b72dfa7dcc23cdf5bc78230fbafcfa64ea3bbdc4b5d80b18f4535ca945f880d6dbca24391a0c242d3ba4369e209325a97c7926498bc08a41d
6
+ metadata.gz: 7f092659e7772e6e5eebec47023ce4a0c0832c8a68046ba6ac881c2b97776dca2b92e49008cec30a0058ad35919f061a56bccda288efbdb54bb0e8c61d34f9f7
7
+ data.tar.gz: 72e1fb3218086c85cadd96b79658288b16958bf030e2b7bd46f48b93185e24e38900f736e6909015b102b422cf9190a29c849ec3c80f16f7f8833839c38a1176
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (4.0.0.beta.18)
4
+ avo (4.0.0.beta.20)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -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.eot');
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'), url('fonts/inter-v7-latin-500.svg#Inter') format('svg');
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.eot');
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.eot');
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'), /* Safari, Android, iOS */
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'), /* Safari, Android, iOS */
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'), /* Safari, Android, iOS */
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'), /* Safari, Android, iOS */
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 @stylesheet_assets_path, "data-turbo-track": "reload", as: "style" %>
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
 
@@ -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.tailwind.css")
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "4.0.0.beta.18" unless const_defined?(:VERSION)
2
+ VERSION = "4.0.0.beta.20" unless const_defined?(:VERSION)
3
3
  end
@@ -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.tailwind.css)"
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.tailwind)..."
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.tailwind.css)"
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.tailwind)..."
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
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: 4.0.0.beta.18
4
+ version: 4.0.0.beta.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin