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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/avo/base_resource.rb +1 -1
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/resource_tools/partial.tt +2 -2
- data/lib/generators/avo/templates/tool/view.tt +2 -2
- data/lib/tasks/avo_tasks.rake +1 -1
- data/tailwind.preset.js +17 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46cef6a1b4b4c683dfdf890bd2f5b4471409639056c4f418d5aa3c325255da60
|
4
|
+
data.tar.gz: 9df43b34fcb9a8319349aa70b373ed844a11062efbb0b4341e80dac493a142d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a6b6e928e9f45eb39575d7eecb73808db11bb4bb257d66c594cecd118d6646e469a79dbe337e28e463959100d5bc84212192c7c98989869ab2656af0d46258
|
7
|
+
data.tar.gz: c65740c8289301265234a146acc87b99909a41261dcab24c5fe7c36520a911a1dba6ecd3a8538bb961ec5d82d6e13529cc36328e26981cf4320c5ba855aa67f6
|
data/Gemfile.lock
CHANGED
data/lib/avo/base_resource.rb
CHANGED
data/lib/avo/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<div class="flex flex-col">
|
2
2
|
<%%= render Avo::PanelComponent.new(name: "<%= human_name %>") do |c| %>
|
3
|
-
<%% c.
|
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.
|
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.
|
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.
|
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>
|
data/lib/tasks/avo_tasks.rake
CHANGED
@@ -71,7 +71,7 @@ task "avo:sym_link" do
|
|
71
71
|
`touch #{packages_path}/.keep`
|
72
72
|
end
|
73
73
|
|
74
|
-
["avo
|
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
|
10
|
-
|
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.
|
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-
|
12
|
+
date: 2023-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|