avo 3.0.1.beta17 → 3.0.1.beta19

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a972e86418e5d1b89d9c8799f21c623e904ca1dc0e98f419fa046b6ef7e5f0b6
4
- data.tar.gz: ce5ccf3beaa7bd52951e177eeef72f2c326ffbf3ec4f4581beaa7090361bb36a
3
+ metadata.gz: 46cef6a1b4b4c683dfdf890bd2f5b4471409639056c4f418d5aa3c325255da60
4
+ data.tar.gz: 9df43b34fcb9a8319349aa70b373ed844a11062efbb0b4341e80dac493a142d4
5
5
  SHA512:
6
- metadata.gz: b0d399266bf925fd72a1202df392d897e29b8b94803e079a853f05b5be96215849695b2d8d4e6ff2df785f5c1997f61bc3fe14ed08836c4eb711f02f4190f9b5
7
- data.tar.gz: '01168d97b3e4ade2d906a43d6031956f3acb5a3fafd2e8e53f596f78f7fe1197e1a213087bca8a0f21e8c52f51510151734fa8c0a4a009067d2e58a1014b25dd'
6
+ metadata.gz: 75a6b6e928e9f45eb39575d7eecb73808db11bb4bb257d66c594cecd118d6646e469a79dbe337e28e463959100d5bc84212192c7c98989869ab2656af0d46258
7
+ data.tar.gz: c65740c8289301265234a146acc87b99909a41261dcab24c5fe7c36520a911a1dba6ecd3a8538bb961ec5d82d6e13529cc36328e26981cf4320c5ba855aa67f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.0.1.beta17)
4
+ avo (3.0.1.beta19)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -320,7 +320,7 @@ module Avo
320
320
  def default_panel_name
321
321
  return @params[:related_name].capitalize if @params.present? && @params[:related_name].present?
322
322
 
323
- case @view
323
+ case @view.to_sym
324
324
  when :show
325
325
  record_title
326
326
  when :edit
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.0.1.beta17" unless const_defined?(:VERSION)
2
+ VERSION = "3.0.1.beta19" unless const_defined?(:VERSION)
3
3
  end
@@ -1,12 +1,12 @@
1
1
  <div class="flex flex-col">
2
2
  <%%= render Avo::PanelComponent.new(name: "<%= human_name %>") do |c| %>
3
- <%% c.tools do %>
3
+ <%% c.with_tools do %>
4
4
  <%%= a_link('/avo', icon: 'heroicons/solid/academic-cap', color: :primary, style: :primary) do %>
5
5
  Dummy link
6
6
  <%% end %>
7
7
  <%% end %>
8
8
 
9
- <%% c.body do %>
9
+ <%% c.with_body do %>
10
10
  <div class="flex flex-col p-4 min-h-24">
11
11
  <div class="space-y-4">
12
12
  <h3>🪧 This partial is waiting to be updated</h3>
@@ -1,10 +1,10 @@
1
1
  <div class="flex flex-col">
2
2
  <%%= render Avo::PanelComponent.new(name: '<%= human_name %>', display_breadcrumbs: true) do |c| %>
3
- <%% c.tools do %>
3
+ <%% c.with_tools do %>
4
4
  <div class="text-sm italic">This is the panels tools section.</div>
5
5
  <%% end %>
6
6
 
7
- <%% c.body do %>
7
+ <%% c.with_body do %>
8
8
  <div class="flex flex-col justify-between py-6 min-h-24">
9
9
  <div class="px-6 space-y-4">
10
10
  <h3>What a nice new tool 👋</h3>
@@ -71,7 +71,7 @@ task "avo:sym_link" do
71
71
  `touch #{packages_path}/.keep`
72
72
  end
73
73
 
74
- ["avo", "avo-advanced", "avo-pro", "avo-dynamic_filters", "avo-dashboards", "avo-menu"].each do |gem|
74
+ ["avo-advanced", "avo-pro", "avo-dynamic_filters", "avo-dashboards", "avo-menu"].each do |gem|
75
75
  path = `bundle show #{gem} 2> /dev/null`.chomp
76
76
 
77
77
  # If path is emty we check if package is defined outside of root (on release process it is)
data/tailwind.preset.js CHANGED
@@ -3,18 +3,26 @@ const colors = require('tailwindcss/colors')
3
3
  const defaultTheme = require('tailwindcss/defaultTheme')
4
4
 
5
5
  const { primary, blue, gray } = require('./tailwind.custom')
6
+ const avoPath = require('child_process').execSync('bundle show avo', { encoding: 'utf-8' }).trim()
7
+
8
+ function contentPaths(basePath) {
9
+ return [
10
+ `${basePath}/safelist.txt`,
11
+ `${basePath}/lib/avo/**/*.rb`,
12
+ `${basePath}/app/helpers/**/*.rb`,
13
+ `${basePath}/app/views/**/*.erb`,
14
+ `${basePath}/app/javascript/**/*.js`,
15
+ `${basePath}/app/components/**/*.{html.erb,rb}`,
16
+ `${basePath}/app/controllers/**/*.rb`,
17
+ `${basePath}/lib/**/*.rb`,
18
+ `${basePath}/public/**/*.{js,css}`,
19
+ ]
20
+ }
6
21
 
7
22
  module.exports = {
8
23
  content: [
9
- './tmp/avo/packages/*/safelist.txt',
10
- './tmp/avo/packages/*/lib/avo/**/*.rb',
11
- './tmp/avo/packages/*/app/helpers/**/*.rb',
12
- './tmp/avo/packages/*/app/views/**/*.erb',
13
- './tmp/avo/packages/*/app/javascript/**/*.js',
14
- './tmp/avo/packages/*/app/components/**/*.{html.erb,rb}',
15
- './tmp/avo/packages/*/app/controllers/**/*.rb',
16
- './tmp/avo/packages/*/lib/**/*.rb',
17
- './tmp/avo/packages/*/public/**/*.{js,css}',
24
+ ...contentPaths('./tmp/avo/packages/*'),
25
+ ...contentPaths(avoPath),
18
26
  ],
19
27
  theme: {
20
28
  extend: {
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: 3.0.1.beta17
4
+ version: 3.0.1.beta19
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: 2023-09-21 00:00:00.000000000 Z
12
+ date: 2023-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord