avo 4.0.0.beta.51 → 4.0.0.beta.52

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: b100670613ef8dfa9bce8228d7f06d0a911db2633f931a4271da9839a84cfb0d
4
- data.tar.gz: 8b93f0a0cd09d37af4ea7339b4f2cdb550c2350db5295665a9d21d3eb858abd1
3
+ metadata.gz: a80a9466d7b0e8fa431bb729d535aaaf7466f4e49a1f0a2c1734bb669ecb3b7c
4
+ data.tar.gz: c198c4eb60da47e397324bf1f082e1ca02ff18c6d36ef9ea0e221cf25378bd0d
5
5
  SHA512:
6
- metadata.gz: c339ae523bf6f7290703a7bb227442bcc464796000bf7390244ec0108204e55ec5d6e25c776edc910a6d1fd75aa42e42a98d749a43deb388d230cb4f134984c2
7
- data.tar.gz: fc365d0187f09d2215b4044c761832618649d3fc7c4836f214826b82aff6a862207fa4c84d270f4857183a43debabd15152ab97f953e73483d310775561de548
6
+ metadata.gz: 8fe2b1e8a84d41183201c8f8bf25f96e7c9eb34be03ef75671964c68bb1737bdfa344784824a014a9d9302fdbd3fcf885d8b672e9981c652cd12f870825e843e
7
+ data.tar.gz: ac88957e0b154b3b486ca3911aa9616d01a136eab7f6b66ae18eef7a0e8aafb5112cd9f4d55f34fc23e7550dc7339e5c10bd9607834ad5587c9dbe49f8842155
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (4.0.0.beta.51)
4
+ avo (4.0.0.beta.52)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -2311,6 +2311,9 @@
2311
2311
  .bg-gray-100 {
2312
2312
  background-color: var(--color-gray-100);
2313
2313
  }
2314
+ .bg-gray-100\! {
2315
+ background-color: var(--color-gray-100) !important;
2316
+ }
2314
2317
  .bg-gray-500 {
2315
2318
  background-color: var(--color-gray-500);
2316
2319
  }
@@ -27,10 +27,17 @@ class Avo::Sidebar::LinkComponent < Avo::BaseComponent
27
27
  end
28
28
 
29
29
  def is_external?
30
- # If the path contains the scheme, check if it includes the root path or not
31
- return !@path.include?(helpers.mount_path) if URI(@path).scheme.present?
32
-
33
- false
30
+ uri = URI(@path)
31
+ # Paths without a scheme are always internal (relative app paths).
32
+ return false if uri.scheme.blank?
33
+
34
+ # A link with a scheme is internal only when its path is mounted under Avo.
35
+ # Compare against the URI path component, not the whole URL string, otherwise
36
+ # hosts like "avohq.io" falsely match a "/avo" mount path (via "//avohq.io").
37
+ # Use root_path_without_url so prefix_path + mount_path setups are recognized.
38
+ !uri.path.start_with?(helpers.root_path_without_url)
39
+ rescue URI::InvalidURIError
40
+ true
34
41
  end
35
42
 
36
43
  # For external links active_link_to marks them all as active.
@@ -33,6 +33,18 @@ module Avo
33
33
  Avo.field_manager.load_field method_name, klass
34
34
  end
35
35
 
36
+ # Register a custom menu DSL method (e.g. `form`) contributed by a plugin,
37
+ # so it can be used inside `config.main_menu` and friends. Delegates to
38
+ # avo-menu's builder when it's installed; a no-op otherwise, so plugins can
39
+ # register unconditionally. The block is evaluated in the menu builder's
40
+ # context, so it can call `link`, `resource`, etc. See
41
+ # Avo::Menu::Builder.register_item.
42
+ def register_menu_item(name, &block)
43
+ return unless defined?(Avo::Menu::Builder)
44
+
45
+ Avo::Menu::Builder.register_item(name, &block)
46
+ end
47
+
36
48
  def register_resource_tool
37
49
  end
38
50
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "4.0.0.beta.51" unless const_defined?(:VERSION)
2
+ VERSION = "4.0.0.beta.52" unless const_defined?(:VERSION)
3
3
  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.51
4
+ version: 4.0.0.beta.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -1168,11 +1168,6 @@ files:
1168
1168
  - lib/generators/model_generator.rb
1169
1169
  - lib/generators/rails/avo_resource_generator.rb
1170
1170
  - lib/tasks/avo_tasks.rake
1171
- - public/avo-assets/avo.base.css
1172
- - public/avo-assets/avo.base.js
1173
- - public/avo-assets/avo.base.js.map
1174
- - public/avo-assets/late-registration.js
1175
- - public/avo-assets/late-registration.js.map
1176
1171
  - tailwind.custom.js
1177
1172
  homepage: https://avohq.io
1178
1173
  licenses:
@@ -1199,7 +1194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1199
1194
  - !ruby/object:Gem::Version
1200
1195
  version: '0'
1201
1196
  requirements: []
1202
- rubygems_version: 4.0.9
1197
+ rubygems_version: 4.0.6
1203
1198
  specification_version: 4
1204
1199
  summary: Admin panel framework and Content Management System for Ruby on Rails.
1205
1200
  test_files: []