activeadmin 2.9.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +284 -1
- data/CONTRIBUTING.md +4 -12
- data/README.md +2 -2
- data/app/assets/javascripts/active_admin/base.js +13 -9
- data/app/assets/stylesheets/active_admin/_base.scss +53 -37
- data/app/assets/stylesheets/active_admin/_forms.scss +1 -11
- data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +9 -0
- data/app/assets/stylesheets/active_admin/structure/_footer.scss +6 -1
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
- data/app/javascript/active_admin/initializers/has-many.js +4 -1
- data/app/views/active_admin/devise/shared/_links.erb +1 -1
- data/app/views/active_admin/page/index.html.arb +1 -0
- data/app/views/active_admin/resource/edit.html.arb +1 -0
- data/app/views/active_admin/resource/index.html.arb +1 -0
- data/app/views/active_admin/resource/new.html.arb +1 -0
- data/app/views/active_admin/resource/show.html.arb +1 -0
- data/app/views/layouts/active_admin.html.arb +1 -0
- data/app/views/layouts/active_admin_logged_out.html.erb +5 -4
- data/config/locales/ar.yml +0 -7
- data/config/locales/az.yml +0 -7
- data/config/locales/bg.yml +0 -7
- data/config/locales/bs.yml +0 -7
- data/config/locales/ca.yml +0 -7
- data/config/locales/cs.yml +0 -7
- data/config/locales/da.yml +0 -7
- data/config/locales/de-CH.yml +0 -7
- data/config/locales/de.yml +0 -8
- data/config/locales/el.yml +0 -7
- data/config/locales/en-CA.yml +0 -7
- data/config/locales/en-GB.yml +0 -7
- data/config/locales/en.yml +0 -8
- data/config/locales/eo.yml +0 -8
- data/config/locales/es-MX.yml +0 -7
- data/config/locales/es.yml +0 -8
- data/config/locales/fa.yml +0 -7
- data/config/locales/fi.yml +0 -7
- data/config/locales/fr.yml +3 -11
- data/config/locales/he.yml +0 -9
- data/config/locales/hr.yml +0 -7
- data/config/locales/hu.yml +0 -8
- data/config/locales/id.yml +0 -7
- data/config/locales/it.yml +0 -8
- data/config/locales/ja.yml +0 -8
- data/config/locales/ko.yml +1 -8
- data/config/locales/lt.yml +0 -8
- data/config/locales/lv.yml +0 -7
- data/config/locales/mk.yml +0 -8
- data/config/locales/nb.yml +0 -8
- data/config/locales/nl.yml +1 -9
- data/config/locales/pl.yml +0 -8
- data/config/locales/pt-BR.yml +0 -8
- data/config/locales/pt-PT.yml +0 -7
- data/config/locales/ro.yml +3 -9
- data/config/locales/ru.yml +0 -6
- data/config/locales/sk.yml +0 -8
- data/config/locales/sv-SE.yml +58 -39
- data/config/locales/tr.yml +0 -11
- data/config/locales/uk.yml +0 -6
- data/config/locales/vi.yml +34 -15
- data/config/locales/zh-CN.yml +34 -23
- data/config/locales/zh-TW.yml +0 -7
- data/lib/active_admin/abstract_view_factory.rb +1 -0
- data/lib/active_admin/application.rb +10 -10
- data/lib/active_admin/application_settings.rb +1 -0
- data/lib/active_admin/asset_registration.rb +4 -3
- data/lib/active_admin/authorization_adapter.rb +3 -0
- data/lib/active_admin/base_controller/authorization.rb +4 -3
- data/lib/active_admin/base_controller/menu.rb +1 -0
- data/lib/active_admin/base_controller.rb +2 -1
- data/lib/active_admin/batch_actions/controller.rb +1 -0
- data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
- data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
- data/lib/active_admin/batch_actions.rb +1 -0
- data/lib/active_admin/callbacks.rb +1 -0
- data/lib/active_admin/cancan_adapter.rb +1 -0
- data/lib/active_admin/collection_decorator.rb +1 -0
- data/lib/active_admin/component.rb +1 -0
- data/lib/active_admin/controller_action.rb +1 -0
- data/lib/active_admin/csv_builder.rb +24 -16
- data/lib/active_admin/dependency.rb +1 -4
- data/lib/active_admin/devise.rb +11 -0
- data/lib/active_admin/dsl.rb +1 -0
- data/lib/active_admin/dynamic_setting.rb +1 -0
- data/lib/active_admin/dynamic_settings_node.rb +1 -0
- data/lib/active_admin/engine.rb +8 -2
- data/lib/active_admin/error.rb +1 -0
- data/lib/active_admin/filters/active.rb +1 -0
- data/lib/active_admin/filters/active_filter.rb +2 -1
- data/lib/active_admin/filters/active_sidebar.rb +2 -28
- data/lib/active_admin/filters/dsl.rb +1 -0
- data/lib/active_admin/filters/forms.rb +3 -2
- data/lib/active_admin/filters/formtastic_addons.rb +2 -1
- data/lib/active_admin/filters/resource_extension.rb +5 -4
- data/lib/active_admin/filters.rb +1 -0
- data/lib/active_admin/form_builder.rb +1 -0
- data/lib/active_admin/generators/boilerplate.rb +1 -0
- data/lib/active_admin/helpers/collection.rb +2 -0
- data/lib/active_admin/helpers/i18n.rb +1 -0
- data/lib/active_admin/helpers/optional_display.rb +1 -0
- data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
- data/lib/active_admin/helpers/scope_chain.rb +1 -0
- data/lib/active_admin/inputs/datepicker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +3 -2
- data/lib/active_admin/inputs/filters/base.rb +1 -0
- data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_range_input.rb +3 -2
- data/lib/active_admin/inputs/filters/numeric_input.rb +2 -1
- data/lib/active_admin/inputs/filters/select_input.rb +3 -0
- data/lib/active_admin/inputs/filters/string_input.rb +2 -1
- data/lib/active_admin/inputs/filters/text_input.rb +1 -0
- data/lib/active_admin/inputs.rb +1 -0
- data/lib/active_admin/localizers/resource_localizer.rb +1 -0
- data/lib/active_admin/localizers.rb +1 -0
- data/lib/active_admin/menu.rb +2 -0
- data/lib/active_admin/menu_collection.rb +1 -0
- data/lib/active_admin/menu_item.rb +1 -0
- data/lib/active_admin/namespace.rb +4 -3
- data/lib/active_admin/namespace_settings.rb +2 -1
- data/lib/active_admin/order_clause.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/comment.rb +9 -0
- data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +2 -1
- data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
- data/lib/active_admin/orm/active_record/comments.rb +9 -8
- data/lib/active_admin/orm/active_record.rb +1 -0
- data/lib/active_admin/orm/mongoid.rb +1 -0
- data/lib/active_admin/page.rb +1 -0
- data/lib/active_admin/page_controller.rb +1 -0
- data/lib/active_admin/page_dsl.rb +1 -0
- data/lib/active_admin/page_presenter.rb +1 -0
- data/lib/active_admin/pundit_adapter.rb +55 -13
- data/lib/active_admin/resource/action_items.rb +3 -2
- data/lib/active_admin/resource/attributes.rb +1 -0
- data/lib/active_admin/resource/belongs_to.rb +1 -0
- data/lib/active_admin/resource/controllers.rb +1 -0
- data/lib/active_admin/resource/includes.rb +1 -0
- data/lib/active_admin/resource/menu.rb +1 -0
- data/lib/active_admin/resource/model.rb +1 -0
- data/lib/active_admin/resource/naming.rb +1 -0
- data/lib/active_admin/resource/ordering.rb +1 -0
- data/lib/active_admin/resource/page_presenters.rb +1 -0
- data/lib/active_admin/resource/pagination.rb +1 -0
- data/lib/active_admin/resource/routes.rb +1 -0
- data/lib/active_admin/resource/scope_to.rb +1 -0
- data/lib/active_admin/resource/scopes.rb +1 -0
- data/lib/active_admin/resource/sidebars.rb +1 -0
- data/lib/active_admin/resource.rb +3 -2
- data/lib/active_admin/resource_collection.rb +1 -0
- data/lib/active_admin/resource_controller/action_builder.rb +1 -0
- data/lib/active_admin/resource_controller/data_access.rb +30 -4
- data/lib/active_admin/resource_controller/decorators.rb +1 -0
- data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
- data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
- data/lib/active_admin/resource_controller/scoping.rb +1 -0
- data/lib/active_admin/resource_controller/sidebars.rb +1 -0
- data/lib/active_admin/resource_controller/streaming.rb +3 -2
- data/lib/active_admin/resource_controller.rb +1 -0
- data/lib/active_admin/resource_dsl.rb +7 -21
- data/lib/active_admin/router.rb +1 -0
- data/lib/active_admin/scope.rb +1 -0
- data/lib/active_admin/settings_node.rb +1 -0
- data/lib/active_admin/sidebar_section.rb +1 -0
- data/lib/active_admin/version.rb +2 -1
- data/lib/active_admin/view_factory.rb +1 -0
- data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
- data/lib/active_admin/view_helpers/auto_link_helper.rb +2 -1
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
- data/lib/active_admin/view_helpers/display_helper.rb +19 -4
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
- data/lib/active_admin/view_helpers/fields_for.rb +1 -0
- data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
- data/lib/active_admin/view_helpers/form_helper.rb +1 -0
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
- data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
- data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
- data/lib/active_admin/view_helpers/title_helper.rb +1 -0
- data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
- data/lib/active_admin/view_helpers.rb +1 -0
- data/lib/active_admin/views/action_items.rb +1 -0
- data/lib/active_admin/views/components/active_admin_form.rb +2 -5
- data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
- data/lib/active_admin/views/components/attributes_table.rb +1 -0
- data/lib/active_admin/views/components/blank_slate.rb +1 -0
- data/lib/active_admin/views/components/columns.rb +1 -0
- data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
- data/lib/active_admin/views/components/index_list.rb +1 -0
- data/lib/active_admin/views/components/menu.rb +1 -0
- data/lib/active_admin/views/components/menu_item.rb +1 -0
- data/lib/active_admin/views/components/paginated_collection.rb +1 -0
- data/lib/active_admin/views/components/panel.rb +1 -0
- data/lib/active_admin/views/components/scopes.rb +1 -0
- data/lib/active_admin/views/components/sidebar.rb +1 -0
- data/lib/active_admin/views/components/sidebar_section.rb +1 -0
- data/lib/active_admin/views/components/site_title.rb +1 -0
- data/lib/active_admin/views/components/status_tag.rb +1 -0
- data/lib/active_admin/views/components/table_for.rb +1 -0
- data/lib/active_admin/views/components/tabs.rb +1 -0
- data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
- data/lib/active_admin/views/footer.rb +1 -0
- data/lib/active_admin/views/header.rb +1 -0
- data/lib/active_admin/views/index_as_block.rb +1 -0
- data/lib/active_admin/views/index_as_blog.rb +1 -0
- data/lib/active_admin/views/index_as_grid.rb +1 -0
- data/lib/active_admin/views/index_as_table.rb +2 -5
- data/lib/active_admin/views/pages/base.rb +8 -4
- data/lib/active_admin/views/pages/form.rb +1 -0
- data/lib/active_admin/views/pages/index.rb +2 -1
- data/lib/active_admin/views/pages/layout.rb +1 -0
- data/lib/active_admin/views/pages/page.rb +1 -0
- data/lib/active_admin/views/pages/show.rb +2 -7
- data/lib/active_admin/views/tabbed_navigation.rb +1 -0
- data/lib/active_admin/views/title_bar.rb +1 -0
- data/lib/active_admin/views.rb +1 -0
- data/lib/active_admin.rb +6 -3
- data/lib/activeadmin.rb +1 -0
- data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
- data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
- data/lib/generators/active_admin/install/install_generator.rb +1 -0
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +18 -1
- data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
- data/lib/generators/active_admin/page/page_generator.rb +1 -0
- data/lib/generators/active_admin/page/templates/page.rb +1 -0
- data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
- metadata +26 -83
- data/docs/.gitignore +0 -1
- data/docs/0-installation.md +0 -142
- data/docs/1-general-configuration.md +0 -224
- data/docs/10-custom-pages.md +0 -150
- data/docs/11-decorators.md +0 -70
- data/docs/12-arbre-components.md +0 -214
- data/docs/13-authorization-adapter.md +0 -285
- data/docs/14-gotchas.md +0 -138
- data/docs/2-resource-customization.md +0 -475
- data/docs/3-index-pages/custom-index.md +0 -35
- data/docs/3-index-pages/index-as-block.md +0 -19
- data/docs/3-index-pages/index-as-blog.md +0 -69
- data/docs/3-index-pages/index-as-grid.md +0 -27
- data/docs/3-index-pages/index-as-table.md +0 -234
- data/docs/3-index-pages.md +0 -328
- data/docs/4-csv-format.md +0 -74
- data/docs/5-forms.md +0 -237
- data/docs/6-show-pages.md +0 -93
- data/docs/7-sidebars.md +0 -75
- data/docs/8-custom-actions.md +0 -177
- data/docs/9-batch-actions.md +0 -237
- data/docs/CNAME +0 -1
- data/docs/Gemfile +0 -3
- data/docs/Gemfile.lock +0 -259
- data/docs/README.md +0 -24
- data/docs/_config.yml +0 -4
- data/docs/_includes/footer.html +0 -8
- data/docs/_includes/google-analytics.html +0 -16
- data/docs/_includes/head.html +0 -7
- data/docs/_includes/toc.html +0 -98
- data/docs/_includes/top-menu.html +0 -17
- data/docs/_layouts/default.html +0 -21
- data/docs/documentation.md +0 -60
- data/docs/images/activeadmin.png +0 -0
- data/docs/images/code-header.png +0 -0
- data/docs/images/divider.png +0 -0
- data/docs/images/features.png +0 -0
- data/docs/images/tidelift.svg +0 -14
- data/docs/index.html +0 -226
- data/docs/stylesheets/main.css +0 -1205
- data/lib/active_admin/deprecation.rb +0 -10
- data/lib/ransack_ext.rb +0 -20
- /data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 500a0615ecf1635299471dcbc309082815a82d24f03528b7c5926c4a5449fb64
|
4
|
+
data.tar.gz: 7ee23a9a3f4658eef536dec2032b40a9d60b054272a09b5e5a833ee51fae4430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62b6e4f0a45f0d1d102dd3753de0fdddd4b661e6f53af9caebf37fcdda1924e769ed932027f517147f0db2e0c9724bcff49ca5640130a524ae48701c3ae1551b
|
7
|
+
data.tar.gz: eb0a26b263ed3cb17e8157581ac30a182467649b622807a4af9fccc2618ddb6b392307e4ec16abca591ed6f3b039c451868c7d9a6869ea89de68893672962455
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,190 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 3.2.0 [☰](https://github.com/activeadmin/activeadmin/compare/v3.1.0..v3.2.0)
|
6
|
+
|
7
|
+
### Security Fixes
|
8
|
+
|
9
|
+
* Backport protect against CSV Injection. [#8167] by [@mgrunberg]
|
10
|
+
|
11
|
+
### Enhancements
|
12
|
+
|
13
|
+
* Backport support citext column type in string filter. [#8165] by [@mgrunberg]
|
14
|
+
* Backport provide detail in DB statement timeout error for filters. [#8163] by [@mgrunberg]
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
* Backport make sure menu creation does not modify menu options. [#8166] by [@mgrunberg]
|
19
|
+
* Backport ransack error with filters when ActiveStorage is used. [#8164] by [@mgrunberg]
|
20
|
+
|
21
|
+
## 3.1.0 [☰](https://github.com/activeadmin/activeadmin/compare/v3.0.0..v3.1.0)
|
22
|
+
|
23
|
+
### Enhancements
|
24
|
+
|
25
|
+
* Support Rails 7.1. [#8102] by [@mgrunberg]
|
26
|
+
* Remove deprecated usage of ActiveSupport::Deprecation singleton. [#8106] by [@mgrunberg]
|
27
|
+
* Replace to_formatted_s with to_s to convert date to string. [#8105] by [@mgrunberg]
|
28
|
+
* Remove upper bound dependency limits from gemspec. [#8098] by [@javierjulio]
|
29
|
+
|
30
|
+
## 3.0.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.14.0..v3.0.0)
|
31
|
+
|
32
|
+
### Breaking Changes
|
33
|
+
|
34
|
+
* Remove custom Ransack predicates that were MetaSearch backports. [#8010] by [@javierjulio]
|
35
|
+
* Require Ransack v4. [#8009] by [@javierjulio]
|
36
|
+
|
37
|
+
### Enhancements
|
38
|
+
|
39
|
+
* Use display name fallback if blank display name result. [#6342] by [@javierjulio]
|
40
|
+
|
41
|
+
### Translation Improvements
|
42
|
+
|
43
|
+
* Improve Swedish translations. [#7993] by [@carlottostromstedt]
|
44
|
+
|
45
|
+
## 2.14.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.1..v2.14.0)
|
46
|
+
|
47
|
+
### Enhancements
|
48
|
+
|
49
|
+
* Add csp_meta_tag to layout. [#7986] by [@javierjulio]
|
50
|
+
* Update config.register_javascript with options support. [#7002] by [@lanzhiheng]
|
51
|
+
* Use `csrf_meta_tags` in place of singular version. [#7985] by [@javierjulio]
|
52
|
+
* Allow different new and edit rules in authorization adapters. [#6535] by [@timwis]
|
53
|
+
|
54
|
+
### Bug Fixes
|
55
|
+
|
56
|
+
* Fix form layout for hints and checkboxes. [#7772] by [@JewelSam]
|
57
|
+
* Update filters disabled error to include specific action. [#6195] by [@javawizard]
|
58
|
+
* Fix Comments controller destroy declaration. [#6482] by [@bliof]
|
59
|
+
* Stop pagination elements from overflowing outside of panel container. [#7599] by [@ray-curran]
|
60
|
+
|
61
|
+
### Translation Improvements
|
62
|
+
|
63
|
+
* Update vi locale with more translations. [#7984] by [@rs-phunt]
|
64
|
+
* Update zh-CN locale with multiple corrections. [#7944] by [@hfl]
|
65
|
+
* Fix typo in Vietnamese locale for filter text. [#7920] by [@tvziet]
|
66
|
+
* Improve French translation. [#7653] by [@cprodhomme]
|
67
|
+
|
68
|
+
### Documentation
|
69
|
+
|
70
|
+
* Add more documentation about PORO decorator requirements. [#7556] by [@sanfrecce-osaka]
|
71
|
+
* Add Load Paths docs to the active_admin.rb template. [#7541] by [@gabo-cs]
|
72
|
+
|
73
|
+
### Performance
|
74
|
+
|
75
|
+
* Removes docs from exported gem. [#7013] by [@brunoarueira]
|
76
|
+
|
77
|
+
## 2.13.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.0..v2.13.1)
|
78
|
+
|
79
|
+
### Bug Fixes
|
80
|
+
|
81
|
+
* Honor load paths order when loading admin files. [#7488] by [@tf]
|
82
|
+
* Fix passing expected hash payload argument. [#7487] by [@ispyropoulos]
|
83
|
+
|
84
|
+
## 2.13.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.12.0..v2.13.0)
|
85
|
+
|
86
|
+
### Documentation
|
87
|
+
|
88
|
+
* Update validation errors documentation to account for deprecated `ActiveModel::Errors#keys`. [#7475] by [@amit]
|
89
|
+
|
90
|
+
### Dependency Changes
|
91
|
+
|
92
|
+
* Drop rails 6.0 support. [#7476] by [@deivid-rodriguez]
|
93
|
+
|
94
|
+
### Performance
|
95
|
+
|
96
|
+
* Fix pundit performance. [#7479] by [@deivid-rodriguez]
|
97
|
+
|
98
|
+
## 2.12.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.2..v2.12.0)
|
99
|
+
|
100
|
+
### Enhancements
|
101
|
+
|
102
|
+
* Add Ransack 3 compatibility. [#7453] by [@tagliala]
|
103
|
+
|
104
|
+
### Bug Fixes
|
105
|
+
|
106
|
+
* Fix pundit namespace detection. [#7144] by [@vlad-psh]
|
107
|
+
|
108
|
+
### Documentation
|
109
|
+
|
110
|
+
* Don't mention webpacker as the default asset generator in Rails. [#7377] by [@jaynetics]
|
111
|
+
|
112
|
+
### Performance
|
113
|
+
|
114
|
+
* Avoid duplicate work when downloading CSV. [#7336] by [@deivid-rodriguez]
|
115
|
+
|
116
|
+
## 2.11.2 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.1..v2.11.2)
|
117
|
+
|
118
|
+
### Bug Fixes
|
119
|
+
|
120
|
+
* Fix disappearing BOM option for `CSVBuilder`. [#7170] by [@Karoid]
|
121
|
+
|
122
|
+
## 2.11.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.0..v2.11.1)
|
123
|
+
|
124
|
+
### Enhancements
|
125
|
+
|
126
|
+
* Add turbolinks support to has many js. [#7384] by [@amiel]
|
127
|
+
|
128
|
+
### Documentation
|
129
|
+
|
130
|
+
* Remove `insert_tag` from Form-Partial docs. [#7394] by [@TonyArra]
|
131
|
+
|
132
|
+
## 2.11.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.1..v2.11.0)
|
133
|
+
|
134
|
+
### Enhancements
|
135
|
+
|
136
|
+
* Add Rails 7 Support. [#7235] by [@tagliala]
|
137
|
+
|
138
|
+
### Bug Fixes
|
139
|
+
|
140
|
+
* Fix form SCSS variables no longer being defined in the outermost scope, so no longer being accessible. [#7341] by [@gigorok]
|
141
|
+
|
142
|
+
## 2.10.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.0..v2.10.1)
|
143
|
+
|
144
|
+
### Enhancements
|
145
|
+
|
146
|
+
* Apply `box-sizing: border-box` globally. [#7349] by [@deivid-rodriguez]
|
147
|
+
* Vendor normalize 8.0.1. [#7350] by [@deivid-rodriguez]
|
148
|
+
* Remove deprecation warning using controller filters inside initializer. [#7340] by [@mgrunberg]
|
149
|
+
|
150
|
+
### Bug Fixes
|
151
|
+
|
152
|
+
* Fix frozen string error when downloading CSV and streaming disabled. [#7332] by [@deivid-rodriguez]
|
153
|
+
|
154
|
+
## 2.10.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.9.0..v2.10.0)
|
155
|
+
|
156
|
+
### Enhancements
|
157
|
+
|
158
|
+
* Load favicon from Webpacker assets when use_webpacker is set to true. [#6954] by [@Fs00]
|
159
|
+
* Don't apply sorting to collection until after scoping. [#7205] by [@agrobbin]
|
160
|
+
* Resolve dart sass deprecation warning for division. [#7095] by [@tordans]
|
161
|
+
* Use `instrument` from the Notifications API instead of low level `publish`. [#7262] by [@sprql]
|
162
|
+
* Avoid mutating string literals. [#6936] by [@tomgilligan]
|
163
|
+
* Include print styles in main stylesheet. [#6922] by [@deivid-rodriguez]
|
164
|
+
* Use `POST` for OmniAuth links. [#6916] by [@deivid-rodriguez]
|
165
|
+
* Scope new record instantiation by authorization scope. [#6884] by [@ngouy]
|
166
|
+
* Make `permit_params` and `belongs_to` order independent. [#6906] by [@deivid-rodriguez]
|
167
|
+
* Use collection length instead of running COUNTs for limited collections. [#5660] by [@MmKolodziej]
|
168
|
+
|
169
|
+
### Bug Fixes
|
170
|
+
|
171
|
+
* Show ransackable_scopes filters in search results. [#7127] by [@vlad-psh]
|
172
|
+
|
173
|
+
### Translation Improvements
|
174
|
+
|
175
|
+
* Fix Dutch translation for password reset button. [#7181] by [@mvz]
|
176
|
+
* Add few key to RO pagination.entry. [#6915] by [@lubosch]
|
177
|
+
* Change misleading Korean translation. [#6873] by [@1000ship]
|
178
|
+
|
179
|
+
### Documentation
|
180
|
+
|
181
|
+
* Replace deprecated update_attributes! with update!. [#6959] by [@sergey-alekseev]
|
182
|
+
* Clarify docs on user setup. [#6872] by [@javawizard]
|
183
|
+
|
184
|
+
### Dependency Changes
|
185
|
+
|
186
|
+
* Drop rails 5.2 support. [#7293] by [@deivid-rodriguez]
|
187
|
+
* Drop support for Ruby 2.5. [#7236] by [@alejandroperea]
|
188
|
+
|
5
189
|
## 2.9.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.8.1..v2.9.0)
|
6
190
|
|
7
191
|
### Enhancements
|
@@ -587,6 +771,7 @@ Please check [0-6-stable] for previous changes.
|
|
587
771
|
[#5631]: https://github.com/activeadmin/activeadmin/pull/5631
|
588
772
|
[#5632]: https://github.com/activeadmin/activeadmin/pull/5632
|
589
773
|
[#5650]: https://github.com/activeadmin/activeadmin/pull/5650
|
774
|
+
[#5660]: https://github.com/activeadmin/activeadmin/pull/5660
|
590
775
|
[#5662]: https://github.com/activeadmin/activeadmin/pull/5662
|
591
776
|
[#5710]: https://github.com/activeadmin/activeadmin/pull/5710
|
592
777
|
[#5726]: https://github.com/activeadmin/activeadmin/pull/5726
|
@@ -630,6 +815,7 @@ Please check [0-6-stable] for previous changes.
|
|
630
815
|
[#6099]: https://github.com/activeadmin/activeadmin/pull/6099
|
631
816
|
[#6124]: https://github.com/activeadmin/activeadmin/pull/6124
|
632
817
|
[#6149]: https://github.com/activeadmin/activeadmin/pull/6149
|
818
|
+
[#6195]: https://github.com/activeadmin/activeadmin/pull/6195
|
633
819
|
[#6198]: https://github.com/activeadmin/activeadmin/pull/6198
|
634
820
|
[#6210]: https://github.com/activeadmin/activeadmin/pull/6210
|
635
821
|
[#6221]: https://github.com/activeadmin/activeadmin/pull/6221
|
@@ -638,32 +824,101 @@ Please check [0-6-stable] for previous changes.
|
|
638
824
|
[#6315]: https://github.com/activeadmin/activeadmin/pull/6315
|
639
825
|
[#6318]: https://github.com/activeadmin/activeadmin/pull/6318
|
640
826
|
[#6341]: https://github.com/activeadmin/activeadmin/pull/6341
|
827
|
+
[#6342]: https://github.com/activeadmin/activeadmin/pull/6342
|
641
828
|
[#6368]: https://github.com/activeadmin/activeadmin/pull/6368
|
642
829
|
[#6393]: https://github.com/activeadmin/activeadmin/pull/6393
|
643
830
|
[#6422]: https://github.com/activeadmin/activeadmin/pull/6422
|
644
831
|
[#6451]: https://github.com/activeadmin/activeadmin/pull/6451
|
645
832
|
[#6460]: https://github.com/activeadmin/activeadmin/pull/6460
|
646
833
|
[#6462]: https://github.com/activeadmin/activeadmin/pull/6462
|
834
|
+
[#6482]: https://github.com/activeadmin/activeadmin/pull/6482
|
647
835
|
[#6487]: https://github.com/activeadmin/activeadmin/pull/6487
|
648
836
|
[#6523]: https://github.com/activeadmin/activeadmin/pull/6523
|
837
|
+
[#6535]: https://github.com/activeadmin/activeadmin/pull/6535
|
649
838
|
[#6536]: https://github.com/activeadmin/activeadmin/pull/6536
|
650
839
|
[#6548]: https://github.com/activeadmin/activeadmin/pull/6548
|
651
840
|
[#6583]: https://github.com/activeadmin/activeadmin/pull/6583
|
652
841
|
[#6584]: https://github.com/activeadmin/activeadmin/pull/6584
|
653
|
-
|
842
|
+
[#6872]: https://github.com/activeadmin/activeadmin/pull/6872
|
843
|
+
[#6873]: https://github.com/activeadmin/activeadmin/pull/6873
|
844
|
+
[#6884]: https://github.com/activeadmin/activeadmin/pull/6884
|
845
|
+
[#6906]: https://github.com/activeadmin/activeadmin/pull/6906
|
846
|
+
[#6915]: https://github.com/activeadmin/activeadmin/pull/6915
|
847
|
+
[#6916]: https://github.com/activeadmin/activeadmin/pull/6916
|
848
|
+
[#6922]: https://github.com/activeadmin/activeadmin/pull/6922
|
849
|
+
[#6936]: https://github.com/activeadmin/activeadmin/pull/6936
|
850
|
+
[#6954]: https://github.com/activeadmin/activeadmin/pull/6954
|
851
|
+
[#6959]: https://github.com/activeadmin/activeadmin/pull/6959
|
852
|
+
[#7002]: https://github.com/activeadmin/activeadmin/pull/7002
|
853
|
+
[#7013]: https://github.com/activeadmin/activeadmin/pull/7013
|
854
|
+
[#7095]: https://github.com/activeadmin/activeadmin/pull/7095
|
855
|
+
[#7127]: https://github.com/activeadmin/activeadmin/pull/7127
|
856
|
+
[#7144]: https://github.com/activeadmin/activeadmin/pull/7144
|
857
|
+
[#7170]: https://github.com/activeadmin/activeadmin/pull/7170
|
858
|
+
[#7181]: https://github.com/activeadmin/activeadmin/pull/7181
|
859
|
+
[#7205]: https://github.com/activeadmin/activeadmin/pull/7205
|
860
|
+
[#7235]: https://github.com/activeadmin/activeadmin/pull/7235
|
861
|
+
[#7236]: https://github.com/activeadmin/activeadmin/pull/7236
|
862
|
+
[#7262]: https://github.com/activeadmin/activeadmin/pull/7262
|
863
|
+
[#7293]: https://github.com/activeadmin/activeadmin/pull/7293
|
864
|
+
[#7332]: https://github.com/activeadmin/activeadmin/pull/7332
|
865
|
+
[#7336]: https://github.com/activeadmin/activeadmin/pull/7336
|
866
|
+
[#7340]: https://github.com/activeadmin/activeadmin/pull/7340
|
867
|
+
[#7341]: https://github.com/activeadmin/activeadmin/pull/7341
|
868
|
+
[#7349]: https://github.com/activeadmin/activeadmin/pull/7349
|
869
|
+
[#7350]: https://github.com/activeadmin/activeadmin/pull/7350
|
870
|
+
[#7377]: https://github.com/activeadmin/activeadmin/pull/7377
|
871
|
+
[#7384]: https://github.com/activeadmin/activeadmin/pull/7384
|
872
|
+
[#7394]: https://github.com/activeadmin/activeadmin/pull/7394
|
873
|
+
[#7453]: https://github.com/activeadmin/activeadmin/pull/7453
|
874
|
+
[#7475]: https://github.com/activeadmin/activeadmin/pull/7475
|
875
|
+
[#7476]: https://github.com/activeadmin/activeadmin/pull/7476
|
876
|
+
[#7479]: https://github.com/activeadmin/activeadmin/pull/7479
|
877
|
+
[#7487]: https://github.com/activeadmin/activeadmin/pull/7487
|
878
|
+
[#7488]: https://github.com/activeadmin/activeadmin/pull/7488
|
879
|
+
[#7541]: https://github.com/activeadmin/activeadmin/pull/7541
|
880
|
+
[#7556]: https://github.com/activeadmin/activeadmin/pull/7556
|
881
|
+
[#7599]: https://github.com/activeadmin/activeadmin/pull/7599
|
882
|
+
[#7653]: https://github.com/activeadmin/activeadmin/pull/7653
|
883
|
+
[#7772]: https://github.com/activeadmin/activeadmin/pull/7772
|
884
|
+
[#7920]: https://github.com/activeadmin/activeadmin/pull/7920
|
885
|
+
[#7944]: https://github.com/activeadmin/activeadmin/pull/7944
|
886
|
+
[#7984]: https://github.com/activeadmin/activeadmin/pull/7984
|
887
|
+
[#7985]: https://github.com/activeadmin/activeadmin/pull/7985
|
888
|
+
[#7986]: https://github.com/activeadmin/activeadmin/pull/7986
|
889
|
+
[#7993]: https://github.com/activeadmin/activeadmin/pull/7993
|
890
|
+
[#8009]: https://github.com/activeadmin/activeadmin/pull/8009
|
891
|
+
[#8010]: https://github.com/activeadmin/activeadmin/pull/8010
|
892
|
+
[#8098]: https://github.com/activeadmin/activeadmin/pull/8098
|
893
|
+
[#8102]: https://github.com/activeadmin/activeadmin/pull/8102
|
894
|
+
[#8105]: https://github.com/activeadmin/activeadmin/pull/8105
|
895
|
+
[#8106]: https://github.com/activeadmin/activeadmin/pull/8106
|
896
|
+
[#8163]: https://github.com/activeadmin/activeadmin/pull/8163
|
897
|
+
[#8164]: https://github.com/activeadmin/activeadmin/pull/8164
|
898
|
+
[#8165]: https://github.com/activeadmin/activeadmin/pull/8165
|
899
|
+
[#8166]: https://github.com/activeadmin/activeadmin/pull/8166
|
900
|
+
[#8167]: https://github.com/activeadmin/activeadmin/pull/8167
|
901
|
+
|
902
|
+
[@1000ship]: https://github.com/1000ship
|
654
903
|
[@5t111111]: https://github.com/5t111111
|
655
904
|
[@aarek]: https://github.com/aarek
|
656
905
|
[@adler99]: https://github.com/adler99
|
906
|
+
[@agrobbin]: https://github.com/agrobbin
|
657
907
|
[@ajw725]: https://github.com/ajw725
|
908
|
+
[@alejandroperea]: https://github.com/alejandroperea
|
658
909
|
[@alex-bogomolov]: https://github.com/alex-bogomolov
|
659
910
|
[@amiel]: https://github.com/amiel
|
911
|
+
[@amit]: https://github.com/amit
|
660
912
|
[@amiuhle]: https://github.com/amiuhle
|
661
913
|
[@andreslemik]: https://github.com/andreslemik
|
662
914
|
[@bartoszkopinski]: https://github.com/bartoszkopinski
|
915
|
+
[@bliof]: https://github.com/bliof
|
663
916
|
[@blocknotes]: https://github.com/blocknotes
|
664
917
|
[@bolshakov]: https://github.com/bolshakov
|
918
|
+
[@brunoarueira]: https://github.com/brunoarueira
|
665
919
|
[@brunvez]: https://github.com/brunvez
|
666
920
|
[@buren]: https://github.com/buren
|
921
|
+
[@carlottostromstedt]: https://github.com/carlottostromstedt
|
667
922
|
[@chancancode]: https://github.com/chancancode
|
668
923
|
[@chrp]: https://github.com/chrp
|
669
924
|
[@chumakoff]: https://github.com/chumakoff
|
@@ -681,71 +936,99 @@ Please check [0-6-stable] for previous changes.
|
|
681
936
|
[@FabioRos]: https://github.com/FabioRos
|
682
937
|
[@faucct]: https://github.com/faucct
|
683
938
|
[@Fivell]: https://github.com/Fivell
|
939
|
+
[@Fs00]: https://github.com/Fs00
|
684
940
|
[@fuzziness]: https://github.com/fuzziness
|
941
|
+
[@gabo-cs]: https://github.com/gabo-cs
|
685
942
|
[@giapnhdev]: https://github.com/giapnhdev
|
943
|
+
[@gigorok]: https://github.com/gigorok
|
686
944
|
[@glebtv]: https://github.com/glebtv
|
687
945
|
[@gonzedge]: https://github.com/gonzedge
|
688
946
|
[@guigs]: https://github.com/guigs
|
689
947
|
[@HappyKadaver]: https://github.com/HappyKadaver
|
948
|
+
[@hfl]: https://github.com/hfl
|
690
949
|
[@imcvampire]: https://github.com/imcvampire
|
691
950
|
[@innparusu95]: https://github.com/innparusu95
|
692
951
|
[@ionut998]: https://github.com/ionut998
|
693
952
|
[@irmela]: https://github.com/irmela
|
953
|
+
[@ispyropoulos]: https://github.com/ispyropoulos
|
694
954
|
[@Ivanov-Anton]: https://github.com/Ivanov-Anton
|
695
955
|
[@jasl]: https://github.com/jasl
|
956
|
+
[@javawizard]: https://github.com/javawizard
|
696
957
|
[@javierjulio]: https://github.com/javierjulio
|
697
958
|
[@jawa]: https://github.com/jawa
|
959
|
+
[@jaynetics]: https://github.com/jaynetics
|
960
|
+
[@JewelSam]: https://github.com/JewelSam
|
698
961
|
[@JiiHu]: https://github.com/JiiHu
|
699
962
|
[@jiikko]: https://github.com/jiikko
|
700
963
|
[@johnnyshields]: https://github.com/johnnyshields
|
701
964
|
[@jscheid]: https://github.com/jscheid
|
702
965
|
[@juril33t]: https://github.com/juril33t
|
703
966
|
[@jwesorick]: https://github.com/jwesorick
|
967
|
+
[@Karoid]: https://github.com/Karoid
|
704
968
|
[@kjeldahl]: https://github.com/kjeldahl
|
705
969
|
[@ko-lem]: https://github.com/ko-lem
|
706
970
|
[@kobeumut]: https://github.com/kobeumut
|
707
971
|
[@Kris-LIBIS]: https://github.com/Kris-LIBIS
|
708
972
|
[@krzcho]: https://github.com/krzcho
|
709
973
|
[@kwent]: https://github.com/kwent
|
974
|
+
[@lanzhiheng]: https://github.com/lanzhiheng
|
710
975
|
[@leio10]: https://github.com/leio10
|
711
976
|
[@littleforest]: https://github.com/littleforest
|
712
977
|
[@Looooong]: https://github.com/Looooong
|
978
|
+
[@lubosch]: https://github.com/lubosch
|
713
979
|
[@markstory]: https://github.com/markstory
|
714
980
|
[@mauriciopasquier]: https://github.com/mauriciopasquier
|
715
981
|
[@mconiglio]: https://github.com/mconiglio
|
982
|
+
[@mgrunberg]: https://github.com/mgrunberg
|
716
983
|
[@micred]: https://github.com/micred
|
717
984
|
[@mirelon]: https://github.com/mirelon
|
985
|
+
[@MmKolodziej]: https://github.com/MmKolodziej
|
718
986
|
[@mshalaby]: https://github.com/mshalaby
|
719
987
|
[@munen]: https://github.com/munen
|
988
|
+
[@mvz]: https://github.com/mvz
|
720
989
|
[@ndbroadbent]: https://github.com/ndbroadbent
|
990
|
+
[@ngouy]: https://github.com/ngouy
|
721
991
|
[@Nguyenanh]: https://github.com/Nguyenanh
|
722
992
|
[@orkhan]: https://github.com/orkhan
|
723
993
|
[@panasyuk]: https://github.com/panasyuk
|
724
994
|
[@PChambino]: https://github.com/PChambino
|
725
995
|
[@potatosalad]: https://github.com/potatosalad
|
726
996
|
[@pranas]: https://github.com/pranas
|
997
|
+
[@ray-curran]: https://github.com/ray-curran
|
727
998
|
[@renotocn]: https://github.com/renotocn
|
728
999
|
[@rn0rno]: https://github.com/rn0rno
|
729
1000
|
[@RobinvanderVliet]: https://github.com/RobinvanderVliet
|
730
1001
|
[@rogerkk]: https://github.com/rogerkk
|
731
1002
|
[@roramirez]: https://github.com/roramirez
|
1003
|
+
[@rs-phunt]: https://github.com/rs-phunt
|
1004
|
+
[@sanfrecce-osaka]: https://github.com/sanfrecce-osaka
|
732
1005
|
[@seanlinsley]: https://github.com/seanlinsley
|
1006
|
+
[@sergey-alekseev]: https://github.com/sergey-alekseev
|
733
1007
|
[@sgara]: https://github.com/sgara
|
734
1008
|
[@ShallmentMo]: https://github.com/ShallmentMo
|
735
1009
|
[@shekibobo]: https://github.com/shekibobo
|
736
1010
|
[@shouya]: https://github.com/shouya
|
737
1011
|
[@sjieg]: https://github.com/sjieg
|
1012
|
+
[@sprql]: https://github.com/sprql
|
738
1013
|
[@stefsava]: https://github.com/stefsava
|
739
1014
|
[@stereoscott]: https://github.com/stereoscott
|
1015
|
+
[@tagliala]: https://github.com/tagliala
|
740
1016
|
[@taralbass]: https://github.com/taralbass
|
1017
|
+
[@tf]: https://github.com/tf
|
741
1018
|
[@tiagotex]: https://github.com/tiagotex
|
742
1019
|
[@timoschilling]: https://github.com/timoschilling
|
743
1020
|
[@TimPetricola]: https://github.com/TimPetricola
|
1021
|
+
[@timwis]: https://github.com/timwis
|
1022
|
+
[@tomgilligan]: https://github.com/tomgilligan
|
1023
|
+
[@TonyArra]: https://github.com/TonyArra
|
1024
|
+
[@tordans]: https://github.com/tordans
|
1025
|
+
[@tvziet]: https://github.com/tvziet
|
744
1026
|
[@utkarsh2102]: https://github.com/utkarsh2102
|
745
1027
|
[@varyonic]: https://github.com/varyonic
|
746
1028
|
[@vcsjones]: https://github.com/vcsjones
|
747
1029
|
[@vfonic]: https://github.com/vfonic
|
748
1030
|
[@violeta-p]: https://github.com/violeta-p
|
1031
|
+
[@vlad-psh]: https://github.com/vlad-psh
|
749
1032
|
[@WaKeMaTTa]: https://github.com/WaKeMaTTa
|
750
1033
|
[@wasifhossain]: https://github.com/wasifhossain
|
751
1034
|
[@westonganger]: https://github.com/westonganger
|
data/CONTRIBUTING.md
CHANGED
@@ -25,8 +25,7 @@ git checkout -b 325-add-japanese-translations
|
|
25
25
|
|
26
26
|
### Get the test suite running
|
27
27
|
|
28
|
-
Make sure you're using a recent
|
29
|
-
least version `1.14.3`.
|
28
|
+
Make sure you're using a recent Ruby version.
|
30
29
|
|
31
30
|
You'll also need chrome installed in order to run cucumber scenarios.
|
32
31
|
|
@@ -56,14 +55,14 @@ Now you should be able to run the entire suite using:
|
|
56
55
|
bin/rake
|
57
56
|
```
|
58
57
|
|
59
|
-
The
|
60
|
-
|
58
|
+
The task will generate a sample Rails application in `tmp/test_apps` to run the
|
59
|
+
test suite against.
|
61
60
|
|
62
61
|
If you want to test against a Rails version different from the latest, make sure
|
63
62
|
you use the correct Gemfile, for example:
|
64
63
|
|
65
64
|
```sh
|
66
|
-
export BUNDLE_GEMFILE=gemfiles/
|
65
|
+
export BUNDLE_GEMFILE=gemfiles/rails_61/Gemfile
|
67
66
|
```
|
68
67
|
|
69
68
|
**Warning** SCSS assets are aimed to be used indifferently with Sprockets **and** webpacker.
|
@@ -108,13 +107,6 @@ with the db:
|
|
108
107
|
bin/rake local db:migrate
|
109
108
|
```
|
110
109
|
|
111
|
-
### Get the style right
|
112
|
-
|
113
|
-
Your patch should follow the same conventions & pass the same code quality
|
114
|
-
checks as the rest of the project. `bin/rake lint` will give you feedback in
|
115
|
-
this regard. You can check & fix style issues by running each linter
|
116
|
-
individually. Run `bin/rake -T lint` to see the available linters.
|
117
|
-
|
118
110
|
### Make a Pull Request
|
119
111
|
|
120
112
|
At this point, you should switch back to your master branch and make sure it's
|
data/README.md
CHANGED
@@ -95,8 +95,8 @@ Thanks to [Open Collective][opencollective contributors] and all our Open Collec
|
|
95
95
|
[rubygems]: https://rubygems.org/gems/activeadmin
|
96
96
|
[actions_badge]: https://github.com/activeadmin/activeadmin/workflows/ci/badge.svg
|
97
97
|
[actions]: https://github.com/activeadmin/activeadmin/actions
|
98
|
-
[coverage_badge]: https://
|
99
|
-
[coverage]: https://
|
98
|
+
[coverage_badge]: https://codecov.io/gh/activeadmin/activeadmin/branch/master/graph/badge.svg?token=NAjeBdkQXW
|
99
|
+
[coverage]: https://codecov.io/gh/activeadmin/activeadmin
|
100
100
|
[inch_badge]: http://inch-ci.org/github/activeadmin/activeadmin.svg?branch=master
|
101
101
|
[inch]: http://inch-ci.org/github/activeadmin/activeadmin
|
102
102
|
[tidelift_badge]: https://tidelift.com/badges/github/activeadmin/activeadmin
|
@@ -81,7 +81,7 @@
|
|
81
81
|
}
|
82
82
|
});
|
83
83
|
}
|
84
|
-
var onDOMReady = function onDOMReady() {
|
84
|
+
var onDOMReady$2 = function onDOMReady() {
|
85
85
|
$(".batch_actions_selector li a").off("click confirm:complete");
|
86
86
|
$(".batch_actions_selector li a").on("click", function(event) {
|
87
87
|
var _this = this;
|
@@ -125,7 +125,7 @@
|
|
125
125
|
});
|
126
126
|
}
|
127
127
|
};
|
128
|
-
$(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
|
128
|
+
$(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
|
129
129
|
var CheckboxToggler = function() {
|
130
130
|
function CheckboxToggler(options, container) {
|
131
131
|
this.options = options;
|
@@ -392,7 +392,6 @@
|
|
392
392
|
$(document).on("change", '.has_many_container[data-sortable] :input[name$="[_destroy]"]', function() {
|
393
393
|
recompute_positions($(this).closest(".has_many"));
|
394
394
|
});
|
395
|
-
init_sortable();
|
396
395
|
$(document).on("has_many_add:after", ".has_many_container", init_sortable);
|
397
396
|
});
|
398
397
|
var init_sortable = function init_sortable() {
|
@@ -426,6 +425,7 @@
|
|
426
425
|
}
|
427
426
|
});
|
428
427
|
};
|
428
|
+
$(document).ready(init_sortable).on("page:load turbolinks:load", init_sortable);
|
429
429
|
var PerPage = function() {
|
430
430
|
function PerPage(element) {
|
431
431
|
this.element = element;
|
@@ -471,7 +471,14 @@
|
|
471
471
|
function _inheritsLoose(subClass, superClass) {
|
472
472
|
subClass.prototype = Object.create(superClass.prototype);
|
473
473
|
subClass.prototype.constructor = subClass;
|
474
|
-
subClass
|
474
|
+
_setPrototypeOf(subClass, superClass);
|
475
|
+
}
|
476
|
+
function _setPrototypeOf(o, p) {
|
477
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
478
|
+
o.__proto__ = p;
|
479
|
+
return o;
|
480
|
+
};
|
481
|
+
return _setPrototypeOf(o, p);
|
475
482
|
}
|
476
483
|
var TableCheckboxToggler = function(_CheckboxToggler) {
|
477
484
|
_inheritsLoose(TableCheckboxToggler, _CheckboxToggler);
|
@@ -501,17 +508,14 @@
|
|
501
508
|
return TableCheckboxToggler;
|
502
509
|
}(CheckboxToggler);
|
503
510
|
$.widget.bridge("tableCheckboxToggler", TableCheckboxToggler);
|
504
|
-
var onDOMReady
|
511
|
+
var onDOMReady = function onDOMReady() {
|
505
512
|
return $("#active_admin_content .tabs").tabs();
|
506
513
|
};
|
507
|
-
$(document).ready(onDOMReady
|
514
|
+
$(document).ready(onDOMReady).on("page:load turbolinks:load", onDOMReady);
|
508
515
|
function modal_dialog(message, inputs, callback) {
|
509
516
|
console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
|
510
517
|
return ModalDialog(message, inputs, callback);
|
511
518
|
}
|
512
519
|
exports.ModalDialog = ModalDialog;
|
513
520
|
exports.modal_dialog = modal_dialog;
|
514
|
-
Object.defineProperty(exports, "__esModule", {
|
515
|
-
value: true
|
516
|
-
});
|
517
521
|
});
|
@@ -1,41 +1,57 @@
|
|
1
1
|
/* Active Admin CSS */
|
2
|
-
|
3
|
-
|
2
|
+
@media screen {
|
3
|
+
// Normalize
|
4
|
+
@import "./normalize";
|
4
5
|
|
5
|
-
// Partials
|
6
|
-
@import "./typography";
|
7
|
-
@import "./header";
|
8
|
-
@import "./forms";
|
9
|
-
@import "./components/comments";
|
10
|
-
@import "./components/flash_messages";
|
11
|
-
@import "./components/date_picker";
|
12
|
-
@import "./components/tables";
|
13
|
-
@import "./components/batch_actions";
|
14
|
-
@import "./components/modal_dialog";
|
15
|
-
@import "./components/blank_slates";
|
16
|
-
@import "./components/breadcrumbs";
|
17
|
-
@import "./components/dropdown_menu";
|
18
|
-
@import "./components/buttons";
|
19
|
-
@import "./components/grid";
|
20
|
-
@import "./components/links";
|
21
|
-
@import "./components/pagination";
|
22
|
-
@import "./components/panels";
|
23
|
-
@import "./components/columns";
|
24
|
-
@import "./components/scopes";
|
25
|
-
@import "./components/status_tags";
|
26
|
-
@import "./components/table_tools";
|
27
|
-
@import "./components/index_list";
|
28
|
-
@import "./components/unsupported_browser";
|
29
|
-
@import "./components/tabs";
|
30
|
-
@import "./pages/logged_out";
|
31
|
-
@import "./structure/footer";
|
32
|
-
@import "./structure/main_structure";
|
33
|
-
@import "./structure/title_bar";
|
6
|
+
// Partials
|
7
|
+
@import "./typography";
|
8
|
+
@import "./header";
|
9
|
+
@import "./forms";
|
10
|
+
@import "./components/comments";
|
11
|
+
@import "./components/flash_messages";
|
12
|
+
@import "./components/date_picker";
|
13
|
+
@import "./components/tables";
|
14
|
+
@import "./components/batch_actions";
|
15
|
+
@import "./components/modal_dialog";
|
16
|
+
@import "./components/blank_slates";
|
17
|
+
@import "./components/breadcrumbs";
|
18
|
+
@import "./components/dropdown_menu";
|
19
|
+
@import "./components/buttons";
|
20
|
+
@import "./components/grid";
|
21
|
+
@import "./components/links";
|
22
|
+
@import "./components/pagination";
|
23
|
+
@import "./components/panels";
|
24
|
+
@import "./components/columns";
|
25
|
+
@import "./components/scopes";
|
26
|
+
@import "./components/status_tags";
|
27
|
+
@import "./components/table_tools";
|
28
|
+
@import "./components/index_list";
|
29
|
+
@import "./components/unsupported_browser";
|
30
|
+
@import "./components/tabs";
|
31
|
+
@import "./pages/logged_out";
|
32
|
+
@import "./structure/footer";
|
33
|
+
@import "./structure/main_structure";
|
34
|
+
@import "./structure/title_bar";
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
html {
|
37
|
+
box-sizing: border-box;
|
38
|
+
}
|
39
|
+
|
40
|
+
*,
|
41
|
+
*:before,
|
42
|
+
*:after {
|
43
|
+
box-sizing: inherit;
|
44
|
+
}
|
45
|
+
|
46
|
+
body {
|
47
|
+
@include sans-family;
|
48
|
+
line-height: 1.5;
|
49
|
+
font-size: 72%;
|
50
|
+
background: $body-background-color;
|
51
|
+
color: $text-color;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
@media print {
|
56
|
+
@import "./print";
|
41
57
|
}
|