avo 1.3.0.pre.1 → 1.3.0
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 +2 -0
- data/Gemfile.lock +12 -8
- data/README.md +3 -2
- data/app/controllers/avo/application_controller.rb +27 -0
- data/app/controllers/avo/home_controller.rb +4 -3
- data/app/helpers/avo/application_helper.rb +8 -2
- data/app/packs/entrypoints/application.js +10 -14
- data/app/packs/js/controllers/fields/code_field_controller.js +4 -1
- data/app/packs/stylesheets/components/code.css +5 -0
- data/app/views/avo/home/_actions.html.erb +5 -5
- data/app/views/avo/home/_docs.html.erb +1 -1
- data/app/views/avo/home/_filters.html.erb +4 -4
- data/app/views/avo/home/_resources.html.erb +15 -2
- data/app/views/avo/home/index.html.erb +1 -1
- data/app/views/avo/partials/_custom_tools_alert.html.erb +6 -0
- data/app/views/avo/partials/_head.html.erb +0 -0
- data/app/views/avo/partials/_logo.html.erb +1 -1
- data/app/views/avo/sidebar/_license_warning.html.erb +3 -7
- data/app/views/avo/sidebar/_sidebar.html.erb +2 -1
- data/app/views/layouts/avo/application.html.erb +9 -4
- data/avo.gemspec +1 -1
- data/bin/helpers.rb +1 -1
- data/bin/spring +5 -5
- data/config/webpacker.yml +1 -1
- data/lib/avo.rb +13 -0
- data/lib/avo/app.rb +7 -3
- data/lib/avo/configuration.rb +6 -0
- data/lib/avo/fields/key_value_field.rb +1 -24
- data/lib/avo/licensing/h_q.rb +3 -3
- data/lib/avo/licensing/license.rb +2 -0
- data/lib/avo/licensing/pro_license.rb +2 -1
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/eject_generator.rb +5 -4
- data/lib/generators/avo/filter_generator.rb +1 -1
- data/lib/generators/avo/resource_generator.rb +1 -4
- data/lib/generators/avo/templates/initializer/avo.tt +10 -1
- data/lib/generators/avo/tool_generator.rb +2 -2
- data/public/avo-packs/css/{application-5af67922.css → application-af3e670d.css} +40 -103
- data/public/avo-packs/css/application-af3e670d.css.br +0 -0
- data/public/avo-packs/css/application-af3e670d.css.gz +0 -0
- data/public/avo-packs/css/application-af3e670d.css.map +1 -0
- data/public/avo-packs/css/application-af3e670d.css.map.br +0 -0
- data/public/avo-packs/css/application-af3e670d.css.map.gz +0 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js +26 -0
- data/public/avo-packs/js/{application-a48a99244065c8d7a1d1.js.LICENSE.txt → application-274069794e43352bbda8.js.LICENSE.txt} +0 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js.br +0 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js.gz +0 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js.map +1 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js.map.br +0 -0
- data/public/avo-packs/js/application-274069794e43352bbda8.js.map.gz +0 -0
- data/public/avo-packs/manifest.json +15 -15
- metadata +30 -35
- data/app/components/avo/common/key_value_component.html.erb +0 -53
- data/app/components/avo/common/key_value_component.rb +0 -11
- data/app/components/avo/edit/fields/key_value_field_component.html.erb +0 -3
- data/app/components/avo/edit/fields/key_value_field_component.rb +0 -4
- data/app/components/avo/show/fields/key_value_field_component.html.erb +0 -3
- data/app/components/avo/show/fields/key_value_field_component.rb +0 -4
- data/app/packs/js/controllers/fields/key_value_controller.js +0 -132
- data/public/avo-packs/css/application-5af67922.css.br +0 -0
- data/public/avo-packs/css/application-5af67922.css.gz +0 -0
- data/public/avo-packs/css/application-5af67922.css.map +0 -1
- data/public/avo-packs/css/application-5af67922.css.map.br +0 -0
- data/public/avo-packs/css/application-5af67922.css.map.gz +0 -0
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js +0 -26
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js.br +0 -0
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js.gz +0 -0
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js.map +0 -1
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js.map.br +0 -0
- data/public/avo-packs/js/application-a48a99244065c8d7a1d1.js.map.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f417048179aae7840d2571ab56e787c9eb6c7dd437f07e90221beeded482f5ce
|
4
|
+
data.tar.gz: 74c2a021008367b695973a98f1ee69eb6711d943675254925f0573c788d5be75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51bdf61a474220a6d743c81da789dc07b9b54b7c8c6aad0e046b2f576fb0d296145b93e05ce77b73fc57d02b8c8c0692e997faf02da6b76b67b1442a80884602
|
7
|
+
data.tar.gz: 3faa5c7e35d64499f160a7aca161d6b0b15eccc6cbaceb8dc42bbe5832d063a0c0b39ea951543802599f1ee3c55d358ae64706d1390719a82e9ff49d5dcdbb6f
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (1.3.0
|
4
|
+
avo (1.3.0)
|
5
5
|
active_link_to
|
6
6
|
addressable
|
7
7
|
breadcrumbs_on_rails
|
@@ -9,12 +9,12 @@ PATH
|
|
9
9
|
hotwire-rails
|
10
10
|
httparty
|
11
11
|
image_processing
|
12
|
+
manifester
|
12
13
|
meta-tags
|
13
14
|
pagy
|
14
15
|
pundit
|
15
16
|
rails (>= 6.0)
|
16
17
|
view_component
|
17
|
-
webpacker
|
18
18
|
zeitwerk
|
19
19
|
|
20
20
|
GEM
|
@@ -159,12 +159,15 @@ GEM
|
|
159
159
|
listen (3.5.1)
|
160
160
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
161
161
|
rb-inotify (~> 0.9, >= 0.9.10)
|
162
|
-
loofah (2.9.
|
162
|
+
loofah (2.9.1)
|
163
163
|
crass (~> 1.0.2)
|
164
164
|
nokogiri (>= 1.5.9)
|
165
165
|
mail (2.7.1)
|
166
166
|
mini_mime (>= 0.1.1)
|
167
|
-
|
167
|
+
manifester (0.1.7)
|
168
|
+
rails (>= 6.0)
|
169
|
+
zeitwerk
|
170
|
+
marcel (1.0.1)
|
168
171
|
meta-tags (2.14.0)
|
169
172
|
actionpack (>= 3.2.0, < 6.2)
|
170
173
|
method_source (1.0.0)
|
@@ -172,16 +175,16 @@ GEM
|
|
172
175
|
mime-types-data (~> 3.2015)
|
173
176
|
mime-types-data (3.2021.0225)
|
174
177
|
mini_magick (4.11.0)
|
175
|
-
mini_mime (1.0
|
178
|
+
mini_mime (1.1.0)
|
176
179
|
mini_portile2 (2.5.0)
|
177
180
|
minitest (5.14.4)
|
178
181
|
msgpack (1.3.3)
|
179
182
|
multi_xml (0.6.0)
|
180
183
|
nio4r (2.5.7)
|
181
|
-
nokogiri (1.11.
|
184
|
+
nokogiri (1.11.3)
|
182
185
|
mini_portile2 (~> 2.5.0)
|
183
186
|
racc (~> 1.4)
|
184
|
-
nokogiri (1.11.
|
187
|
+
nokogiri (1.11.3-x86_64-linux)
|
185
188
|
racc (~> 1.4)
|
186
189
|
orm_adapter (0.5.0)
|
187
190
|
pagy (3.12.0)
|
@@ -380,6 +383,7 @@ DEPENDENCIES
|
|
380
383
|
iso
|
381
384
|
jbuilder (~> 2.7)
|
382
385
|
listen (>= 3.5.1)
|
386
|
+
manifester
|
383
387
|
meta-tags
|
384
388
|
pg (>= 0.18, < 2.0)
|
385
389
|
puma (~> 4.3.5)
|
@@ -405,4 +409,4 @@ DEPENDENCIES
|
|
405
409
|
zeitwerk (~> 2.3)
|
406
410
|
|
407
411
|
BUNDLED WITH
|
408
|
-
2.2.
|
412
|
+
2.2.11
|
data/README.md
CHANGED
@@ -30,12 +30,13 @@ Avo is a beautiful next-generation framework that empowers you, the developer, t
|
|
30
30
|
- **Keeps your app clean** - You don't need to change your app to use Avo. Drop it in your existing app or add it to a new one and you're done 🙌
|
31
31
|
- **Custom fields***- No worries if we missed a field you need. Generate a custom field in a jiffy.
|
32
32
|
- **Dashboard widgets and metrics*** - Customize your dashboard with the tools and analytics you need.
|
33
|
-
- **Custom tools
|
33
|
+
- **Custom tools** - You need to add a page with something completely new, you've got it!
|
34
34
|
- **Authorization** - Leverage Pundit policies to build a robust and scalable authorization system.
|
35
35
|
- **Themable*** - Dress it up into your own colors.
|
36
36
|
- **Localization*** - Have it available in any language you need.
|
37
|
+
- **No asset pipeline pollution** - Bring your own asset pipeline.
|
37
38
|
|
38
|
-
|
39
|
+
*Features are still under development
|
39
40
|
|
40
41
|
# Installation
|
41
42
|
Add this line to your application's `Gemfile`:
|
@@ -4,6 +4,7 @@ module Avo
|
|
4
4
|
include Pagy::Backend
|
5
5
|
protect_from_forgery with: :exception
|
6
6
|
before_action :init_app
|
7
|
+
before_action :check_avo_license
|
7
8
|
before_action :set_authorization
|
8
9
|
before_action :_authenticate!
|
9
10
|
before_action :set_container_classes
|
@@ -34,6 +35,24 @@ module Avo
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
38
|
+
def render(*args)
|
39
|
+
raise Avo::LicenseVerificationTemperedError, "License verification mechanism tempered with." unless method(:check_avo_license).source_location.first.match?(/.*\/app\/controllers\/avo\/application_controller\.rb/)
|
40
|
+
|
41
|
+
super(*args)
|
42
|
+
end
|
43
|
+
|
44
|
+
def check_avo_license
|
45
|
+
unless on_root_path || on_resources_path
|
46
|
+
if @license.invalid? || @license.lacks(:custom_tools)
|
47
|
+
if Rails.env.development?
|
48
|
+
@custom_tools_alert_visible = true
|
49
|
+
else
|
50
|
+
raise Avo::LicenseInvalidError, "Your license is invalid or doesn't support custom tools."
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
37
56
|
def _current_user
|
38
57
|
instance_eval(&Avo.configuration.current_user)
|
39
58
|
end
|
@@ -245,5 +264,13 @@ module Avo
|
|
245
264
|
def add_initial_breadcrumbs
|
246
265
|
instance_eval(&Avo.configuration.initial_breadcrumbs) if Avo.configuration.initial_breadcrumbs.present?
|
247
266
|
end
|
267
|
+
|
268
|
+
def on_root_path
|
269
|
+
[Avo.configuration.root_path, "#{Avo.configuration.root_path}/"].include?(request.original_fullpath)
|
270
|
+
end
|
271
|
+
|
272
|
+
def on_resources_path
|
273
|
+
request.original_url.match?(/.*\/#{Avo.configuration.namespace}\/resources\/.*/)
|
274
|
+
end
|
248
275
|
end
|
249
276
|
end
|
@@ -3,9 +3,10 @@ require_dependency "avo/application_controller"
|
|
3
3
|
module Avo
|
4
4
|
class HomeController < ApplicationController
|
5
5
|
def index
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
if Avo.configuration.home_path.present?
|
7
|
+
redirect_to Avo.configuration.home_path
|
8
|
+
elsif !Rails.env.development?
|
9
|
+
@page_title = "Get started"
|
9
10
|
redirect_to resources_path Avo::App.get_resources.min_by { |resource| resource.route_key }.model_class
|
10
11
|
end
|
11
12
|
end
|
@@ -1,10 +1,16 @@
|
|
1
1
|
module Avo
|
2
2
|
module ApplicationHelper
|
3
|
-
include ::
|
3
|
+
include ::Manifester::Helper
|
4
4
|
include ::Pagy::Frontend
|
5
5
|
|
6
6
|
def current_webpacker_instance
|
7
|
-
Avo.webpacker
|
7
|
+
return Avo.webpacker if Avo::IN_DEVELOPMENT || Rails.env.test?
|
8
|
+
|
9
|
+
super
|
10
|
+
end
|
11
|
+
|
12
|
+
def current_manifester_instance
|
13
|
+
Avo.manifester
|
8
14
|
end
|
9
15
|
|
10
16
|
def render_license_warnings
|
@@ -19,19 +19,6 @@ window.Turbolinks = Turbo
|
|
19
19
|
|
20
20
|
Mousetrap.bind('r r r', () => Turbo.visit(window.location.href, { action: 'replace' }))
|
21
21
|
|
22
|
-
function initTippy() {
|
23
|
-
tippy('[data-tippy="tooltip"]', {
|
24
|
-
theme: 'light',
|
25
|
-
content(reference) {
|
26
|
-
const title = reference.getAttribute('title')
|
27
|
-
reference.removeAttribute('title')
|
28
|
-
|
29
|
-
return title
|
30
|
-
},
|
31
|
-
})
|
32
|
-
}
|
33
|
-
window.initTippy = initTippy
|
34
|
-
|
35
22
|
const application = Application.start()
|
36
23
|
|
37
24
|
const context = require.context('./../js/controllers', true, /\.js$/)
|
@@ -42,7 +29,16 @@ application.load(definitionsFromContext(fieldsContext))
|
|
42
29
|
|
43
30
|
document.addEventListener('turbo:load', () => {
|
44
31
|
document.body.classList.remove('turbo-loading')
|
45
|
-
|
32
|
+
|
33
|
+
tippy('[data-tippy="tooltip"]', {
|
34
|
+
theme: 'light',
|
35
|
+
content(reference) {
|
36
|
+
const title = reference.getAttribute('title')
|
37
|
+
reference.removeAttribute('title')
|
38
|
+
|
39
|
+
return title
|
40
|
+
},
|
41
|
+
})
|
46
42
|
})
|
47
43
|
document.addEventListener('turbo:visit', () => document.body.classList.add('turbo-loading'))
|
48
44
|
document.addEventListener('turbo:submit-start', () => document.body.classList.add('turbo-loading'))
|
@@ -12,6 +12,7 @@ import 'codemirror/mode/shell/shell'
|
|
12
12
|
import 'codemirror/mode/sql/sql'
|
13
13
|
import 'codemirror/mode/vue/vue'
|
14
14
|
import 'codemirror/mode/xml/xml'
|
15
|
+
|
15
16
|
import { Controller } from 'stimulus'
|
16
17
|
import { castBoolean } from '@/js/helpers/cast_boolean'
|
17
18
|
import CodeMirror from 'codemirror'
|
@@ -30,6 +31,8 @@ export default class extends Controller {
|
|
30
31
|
lineNumbers: true,
|
31
32
|
}
|
32
33
|
|
33
|
-
|
34
|
+
setTimeout(() => {
|
35
|
+
CodeMirror.fromTextArea(this.elementTarget, options)
|
36
|
+
}, 1)
|
34
37
|
}
|
35
38
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<div>
|
2
2
|
<h3>Actions</h3>
|
3
3
|
|
4
|
-
<div class="mt-2"
|
4
|
+
<div class="mt-2">
|
5
5
|
Avo actions allow you to perform specific tasks on one or more of your records. For example, you might want to mark a user as inactive and optionally send a message that may be customized by the person that wants to run the action.
|
6
6
|
|
7
|
-
<
|
8
|
-
|
9
|
-
<div class="mt-2 hidden" data-hidden-input-target="content">
|
7
|
+
<div class="mt-2">
|
10
8
|
<code class="text-lg">Toggle published</code>
|
11
|
-
<div>
|
9
|
+
<div class="mt-1">
|
12
10
|
<code class="p-1 rounded bg-light-blue-500 text-white">bin/rails generate avo:action toggle_published</code>
|
13
11
|
</div>
|
14
12
|
</div>
|
13
|
+
|
14
|
+
<a href="https://docs.avohq.io/1.0/actions.html" target="_blank" title="Avo Actions documentation" class="text-bold cursor-pointer block mt-2">Actions in the docs 👉</a>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
<div class="mt-2">
|
5
5
|
We take pride in our documentation. Please check it out to see what you can build with Avo
|
6
6
|
|
7
|
-
<a href="https://docs.avohq.io" class="text-bold cursor-pointer block mt-2">Check out the docs 👉</a>
|
7
|
+
<a href="https://docs.avohq.io" target="_blank" title="Avo documentation" class="text-bold cursor-pointer block mt-2">Check out the docs 👉</a>
|
8
8
|
</div>
|
9
9
|
</div>
|
@@ -4,13 +4,13 @@
|
|
4
4
|
<div class="mt-2" data-controller="hidden-input">
|
5
5
|
Filters allow you to better scope the index queries for records you are looking for.
|
6
6
|
|
7
|
-
<
|
8
|
-
|
9
|
-
<div class="mt-2 hidden" data-hidden-input-target="content">
|
7
|
+
<div class="mt-2">
|
10
8
|
<code class="text-lg">Published filter</code>
|
11
|
-
<div>
|
9
|
+
<div class="mt-1">
|
12
10
|
<code class="p-1 rounded bg-light-blue-500 text-white">bin/rails generate avo:filter published_filter</code>
|
13
11
|
</div>
|
14
12
|
</div>
|
13
|
+
|
14
|
+
<a href="https://docs.avohq.io/1.0/filters.html" target="_blank" title="Avo Filters documentation" class="text-bold cursor-pointer block mt-2">Filters in the docs 👉</a>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -1,5 +1,9 @@
|
|
1
1
|
<%
|
2
|
-
models =
|
2
|
+
models = begin
|
3
|
+
ApplicationRecord.descendants
|
4
|
+
rescue => exception
|
5
|
+
[]
|
6
|
+
end
|
3
7
|
%>
|
4
8
|
<div>
|
5
9
|
<h3>Resources</h3>
|
@@ -10,7 +14,7 @@
|
|
10
14
|
<div class="mt-2" data-controller="hidden-input">
|
11
15
|
It seems you already have <%= models.count %> <%= 'model'.pluralize models.count %> in your app. You can generate resources for each one with the following commands.
|
12
16
|
|
13
|
-
<strong class="cursor-pointer block mt-2" data-action="click->hidden-input#showContent">Generate resources
|
17
|
+
<strong class="cursor-pointer block mt-2" data-action="click->hidden-input#showContent">Generate resources 👇 (click to reveal)</strong>
|
14
18
|
|
15
19
|
<div class="mt-2 hidden" data-hidden-input-target="content">
|
16
20
|
<% models.each do |model| %>
|
@@ -22,7 +26,16 @@
|
|
22
26
|
</div>
|
23
27
|
</div>
|
24
28
|
<% else %>
|
29
|
+
<div class="mt-2" data-controller="hidden-input">
|
30
|
+
You may generate a resource using the following command:
|
31
|
+
<br>
|
25
32
|
|
33
|
+
<code class="p-1 rounded bg-light-blue-500 text-white">bin/rails generate avo:resource post</code>
|
34
|
+
</div>
|
26
35
|
<% end %>
|
36
|
+
|
37
|
+
<p>
|
38
|
+
<a href="https://docs.avohq.io/1.0/resources.html" target="_blank" title="Avo Resources documentation">Docs</a>
|
39
|
+
</p>
|
27
40
|
</div>
|
28
41
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<li><span class="mr-2">👍</span> Grid view</li>
|
28
28
|
<li><span class="mr-2">👍</span> Authorization</li>
|
29
29
|
<li><span class="mr-2">👍</span> Localization</li>
|
30
|
-
<li><span class="mr-2"
|
30
|
+
<li><span class="mr-2">👍</span> Custom tools</li>
|
31
31
|
<li><span class="mr-2">⏳</span> Custom fields</li>
|
32
32
|
<li><span class="mr-2">⏳</span> Search</li>
|
33
33
|
<li><span class="mr-2">🕐</span> Dashboards</li>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="w-full inset-auto bottom-0 z-50 mb-4 opacity-75 hover:opacity-100 transition-opacity duration-150">
|
2
|
+
<a href="https://avohq.io/pricing" target="_blank" class="rounded bg-green-700 text-white py-2 px-4 text-sm block items-center flex leading-tight">
|
3
|
+
<%= svg "exclamation", class: "h-6 inline mr-2 text-bold flex-shrink-0" %> Warning. Your license is invalid or doesn't support custom tools. This page will not be visible in a production environment.
|
4
|
+
</a>
|
5
|
+
</div>
|
6
|
+
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
<%=
|
1
|
+
<%= image_manifest_tag 'logo.png', class: 'h-full', title: 'Avo' %>
|
@@ -1,12 +1,8 @@
|
|
1
1
|
<div class="w-10/12 ml-1/12 inset-auto bottom-0 z-50 my-4 opacity-50 hover:opacity-100 transition-opacity duration-150 group">
|
2
|
-
<a href="https://avohq.io/pricing" target="_blank" class="rounded bg-
|
3
|
-
|
4
|
-
<div class="h-6 inline mr-1 text-bold" :is="iconElement" v-if="icon">
|
5
|
-
<%= title %>
|
6
|
-
</div>
|
7
|
-
<% end %>
|
2
|
+
<a href="https://avohq.io/pricing" target="_blank" class="rounded bg-green-700 text-white py-2 px-4 text-sm block group-hover:pt-4">
|
3
|
+
<%= svg 'exclamation', class: 'h-6 inline mr-1 text-bold' %> <%= title %>
|
8
4
|
<div class="group-hover:block hidden py-2">
|
9
|
-
<%= message %>
|
5
|
+
<%= message %> <%= svg 'arrow-circle-right', class: "h-6 inline float-right" %>
|
10
6
|
</div>
|
11
7
|
</a>
|
12
8
|
</div>
|
@@ -6,7 +6,8 @@
|
|
6
6
|
|
7
7
|
<div class="flex-1 flex flex-col justify-between">
|
8
8
|
<div class="tools py-4">
|
9
|
-
<%= render Avo::NavigationLinkComponent.new label: 'Get started', path:
|
9
|
+
<%= render Avo::NavigationLinkComponent.new label: 'Get started', path: Avo.configuration.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %>
|
10
|
+
|
10
11
|
<%= render Avo::NavigationHeadingComponent.new label: t('avo.resources') %>
|
11
12
|
|
12
13
|
<div class="w-full">
|
@@ -7,9 +7,10 @@
|
|
7
7
|
<%= csp_meta_tag %>
|
8
8
|
|
9
9
|
<%= render partial: 'avo/partials/javascript' %>
|
10
|
+
<%= render partial: 'avo/partials/head' %>
|
10
11
|
|
11
|
-
<%=
|
12
|
-
<%=
|
12
|
+
<%= javascript_manifest_tag 'application' %>
|
13
|
+
<%= stylesheet_manifest_tag 'application', media: 'all' %>
|
13
14
|
</head>
|
14
15
|
<body class="bg-blue-gray-200">
|
15
16
|
|
@@ -30,8 +31,12 @@
|
|
30
31
|
</div>
|
31
32
|
|
32
33
|
<div class="content p-8 flex-1 flex flex-col justify-between items-stretch <%= @container_classes %>">
|
33
|
-
<%=
|
34
|
-
|
34
|
+
<%= render partial: "avo/partials/custom_tools_alert" if @custom_tools_alert_visible %>
|
35
|
+
|
36
|
+
<div class="flex flex-1 flex-col justify-between items-stretch">
|
37
|
+
<%= yield %>
|
38
|
+
<%= render partial: "avo/partials/footer" %>
|
39
|
+
</div>
|
35
40
|
</div>
|
36
41
|
</div>
|
37
42
|
</div>
|
data/avo.gemspec
CHANGED
@@ -34,7 +34,6 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_dependency "rails", ">= 6.0"
|
35
35
|
spec.add_dependency "pagy"
|
36
36
|
spec.add_dependency "zeitwerk"
|
37
|
-
spec.add_dependency "webpacker"
|
38
37
|
spec.add_dependency "countries"
|
39
38
|
spec.add_dependency "pundit"
|
40
39
|
spec.add_dependency "httparty"
|
@@ -45,4 +44,5 @@ Gem::Specification.new do |spec|
|
|
45
44
|
spec.add_dependency "addressable"
|
46
45
|
spec.add_dependency "meta-tags"
|
47
46
|
spec.add_dependency "breadcrumbs_on_rails"
|
47
|
+
spec.add_dependency "manifester"
|
48
48
|
end
|
data/bin/helpers.rb
CHANGED