activeadmin 4.0.0.beta11 → 4.0.0.beta13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/UPGRADING.md +2 -2
- data/config/locales/es.yml +6 -0
- data/config/locales/pl.yml +4 -0
- data/lib/active_admin/application.rb +3 -3
- data/lib/active_admin/application_settings.rb +1 -1
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -1
- data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -1
- data/lib/active_admin/batch_actions.rb +4 -4
- data/lib/active_admin/dynamic_settings_node.rb +2 -2
- data/lib/active_admin/engine.rb +1 -1
- data/lib/active_admin/filters/active.rb +1 -1
- data/lib/active_admin/filters/resource_extension.rb +1 -1
- data/lib/active_admin/filters.rb +5 -5
- data/lib/active_admin/localizers.rb +1 -1
- data/lib/active_admin/menu_item.rb +1 -1
- data/lib/active_admin/namespace.rb +1 -1
- data/lib/active_admin/namespace_settings.rb +1 -1
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +1 -1
- data/lib/active_admin/orm/active_record/comments/views.rb +2 -2
- data/lib/active_admin/orm/active_record/comments.rb +3 -3
- data/lib/active_admin/orm/active_record.rb +1 -1
- data/lib/active_admin/resource/action_items.rb +1 -1
- data/lib/active_admin/resource/belongs_to.rb +1 -1
- data/lib/active_admin/resource/sidebars.rb +1 -1
- data/lib/active_admin/resource.rb +16 -16
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/views/components/scopes.rb +2 -2
- data/lib/active_admin.rb +5 -5
- data/lib/activeadmin.rb +1 -1
- data/lib/generators/active_admin/devise/devise_generator.rb +2 -2
- data/vendor/bundle/offense.rb +1 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf25042e7687e53298da8f7f62c8acc1993b9f9d486f3f29cd84b00fa5553b48
|
4
|
+
data.tar.gz: 5f19b05d63d760714c6da4c61a05a551cf552b28ca90d590d61bcba989e6bd0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c1e6b0d83d48a8eef65140777b6360f66114a41deafe994157a9800edb9d681b62e5133cd0eeb325fcd91b2bc5b7f913ef3454fa986eede6ae0a2cbcd52663
|
7
|
+
data.tar.gz: 2e2158db77f77aac993d7540c0246379ce14b22143763ce05601fde1bec1554433e92648def2e9086f4747a312d07842789793896741fe83f73fd747a588825f
|
data/UPGRADING.md
CHANGED
@@ -8,14 +8,14 @@ ActiveAdmin v4 uses TailwindCSS. It has **mobile web, dark mode and RTL support*
|
|
8
8
|
|
9
9
|
These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing.
|
10
10
|
|
11
|
-
Update your `Gemfile` with `gem "activeadmin", "4.0.0.
|
11
|
+
Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta12"` and then run `gem install activeadmin --pre`.
|
12
12
|
|
13
13
|
Now, run `rails generate active_admin:assets` to replace the old assets with the new files.
|
14
14
|
|
15
15
|
Then add the npm package and update the `build:css` script.
|
16
16
|
|
17
17
|
```
|
18
|
-
yarn add @activeadmin/activeadmin@4.0.0-
|
18
|
+
yarn add @activeadmin/activeadmin@4.0.0-beta12
|
19
19
|
npm pkg set scripts.build:css="tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c tailwind-active_admin.config.js"
|
20
20
|
```
|
21
21
|
|
data/config/locales/es.yml
CHANGED
@@ -35,6 +35,10 @@ es:
|
|
35
35
|
has_many_delete: "Eliminar"
|
36
36
|
has_many_remove: "Quitar"
|
37
37
|
move: "Mover"
|
38
|
+
toggle_dark_mode: "Alternar modo oscuro"
|
39
|
+
toggle_main_navigation_menu: "Alternar el menú de navegación principal"
|
40
|
+
toggle_user_menu: "Alternar menú de usuario"
|
41
|
+
toggle_section: "Alternar sección"
|
38
42
|
filters:
|
39
43
|
buttons:
|
40
44
|
filter: "Filtrar"
|
@@ -62,6 +66,8 @@ es:
|
|
62
66
|
multiple: "Mostrando %{model} <b>%{from} - %{to}</b> de un total de <b>%{total}</b>"
|
63
67
|
multiple_without_total: "Mostrando %{model} <b>%{from} - %{to}</b>"
|
64
68
|
per_page: "Por página: "
|
69
|
+
previous: "Anterior"
|
70
|
+
next: "Siguiente"
|
65
71
|
entry:
|
66
72
|
one: "registro"
|
67
73
|
other: "registros"
|
data/config/locales/pl.yml
CHANGED
@@ -54,6 +54,10 @@ pl:
|
|
54
54
|
"yes": "Tak"
|
55
55
|
"no": "Nie"
|
56
56
|
"unset": "Nie"
|
57
|
+
toggle_dark_mode: Przełącz tryb ciemny
|
58
|
+
toggle_main_navigation_menu: Przełącz główną nawigację
|
59
|
+
toggle_section: Przełącz sekcję
|
60
|
+
toggle_user_menu: Przełącz menu użytkownika
|
57
61
|
logout: "Wyloguj"
|
58
62
|
powered_by: "Powered by %{active_admin} %{version}"
|
59
63
|
sidebars:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative "router"
|
3
|
+
require_relative "application_settings"
|
4
|
+
require_relative "namespace_settings"
|
5
5
|
|
6
6
|
module ActiveAdmin
|
7
7
|
class Application
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
ActiveAdmin.before_load do |app|
|
3
|
-
|
4
|
-
|
3
|
+
require_relative "batch_actions/resource_extension"
|
4
|
+
require_relative "batch_actions/controller"
|
5
5
|
|
6
6
|
# Add our Extensions
|
7
7
|
ActiveAdmin::Resource.send :include, ActiveAdmin::BatchActions::ResourceExtension
|
8
8
|
ActiveAdmin::ResourceController.send :include, ActiveAdmin::BatchActions::Controller
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
require_relative "batch_actions/views/batch_action_form"
|
11
|
+
require_relative "batch_actions/views/selection_cells"
|
12
12
|
end
|
data/lib/active_admin/engine.rb
CHANGED
data/lib/active_admin/filters.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
require_relative "filters/dsl"
|
3
|
+
require_relative "filters/resource_extension"
|
4
|
+
require_relative "filters/formtastic_addons"
|
5
|
+
require_relative "filters/forms"
|
6
|
+
require_relative "helpers/optional_display"
|
7
7
|
|
8
8
|
# Add our Extensions
|
9
9
|
ActiveAdmin::ResourceDSL.send :include, ActiveAdmin::Filters::DSL
|
@@ -1,3 +1,3 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
2
|
+
require_relative "../../../views"
|
3
|
+
require_relative "views/active_admin_comments"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative "comments/views"
|
3
|
+
require_relative "comments/namespace_helper"
|
4
|
+
require_relative "comments/resource_helper"
|
5
5
|
|
6
6
|
# Add the comments configuration
|
7
7
|
ActiveAdmin::Application.inheritable_setting :comments, true
|
@@ -1,20 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
require_relative "view_helpers/method_or_proc_helper"
|
3
|
+
require_relative "resource/action_items"
|
4
|
+
require_relative "resource/attributes"
|
5
|
+
require_relative "resource/controllers"
|
6
|
+
require_relative "resource/menu"
|
7
|
+
require_relative "resource/page_presenters"
|
8
|
+
require_relative "resource/pagination"
|
9
|
+
require_relative "resource/routes"
|
10
|
+
require_relative "resource/naming"
|
11
|
+
require_relative "resource/scopes"
|
12
|
+
require_relative "resource/includes"
|
13
|
+
require_relative "resource/scope_to"
|
14
|
+
require_relative "resource/sidebars"
|
15
|
+
require_relative "resource/belongs_to"
|
16
|
+
require_relative "resource/ordering"
|
17
|
+
require_relative "resource/model"
|
18
18
|
|
19
19
|
module ActiveAdmin
|
20
20
|
|
data/lib/active_admin/version.rb
CHANGED
data/lib/active_admin.rb
CHANGED
@@ -125,12 +125,12 @@ module ActiveAdmin
|
|
125
125
|
end
|
126
126
|
|
127
127
|
# Require things that don't support autoload
|
128
|
-
|
129
|
-
|
128
|
+
require_relative "active_admin/engine"
|
129
|
+
require_relative "active_admin/error"
|
130
130
|
|
131
131
|
# Require internal plugins
|
132
|
-
|
133
|
-
|
132
|
+
require_relative "active_admin/batch_actions"
|
133
|
+
require_relative "active_admin/filters"
|
134
134
|
|
135
135
|
# Require ORM-specific plugins
|
136
|
-
|
136
|
+
require_relative "active_admin/orm/active_record" if defined? ActiveRecord
|
data/lib/activeadmin.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
require_relative "active_admin"
|
@@ -0,0 +1 @@
|
|
1
|
+
puts "Ciao"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Maresh
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2024-
|
18
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -79,14 +79,14 @@ dependencies:
|
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.0'
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: kaminari
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -377,6 +377,7 @@ files:
|
|
377
377
|
- lib/generators/active_admin/resource/templates/resource.rb.erb
|
378
378
|
- lib/generators/active_admin/views_generator.rb
|
379
379
|
- plugin.js
|
380
|
+
- vendor/bundle/offense.rb
|
380
381
|
- vendor/javascript/flowbite.js
|
381
382
|
- vendor/javascript/rails_ujs_esm.js
|
382
383
|
homepage: https://activeadmin.info
|
@@ -406,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
406
407
|
- !ruby/object:Gem::Version
|
407
408
|
version: '0'
|
408
409
|
requirements: []
|
409
|
-
rubygems_version: 3.5.
|
410
|
+
rubygems_version: 3.5.18
|
410
411
|
signing_key:
|
411
412
|
specification_version: 4
|
412
413
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|