rails_admin 3.0.0.rc4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -7
- data/app/views/rails_admin/main/history.html.erb +1 -1
- data/lib/rails_admin/version.rb +1 -1
- data/package.json +1 -1
- data/src/rails_admin/ui.js +6 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a20d0a9cc9b7702c63e5e92918ac89f986b2d3d1e666539fd0c16562508bdf85
|
4
|
+
data.tar.gz: 7d5784f25b6a16c0d2a05b827a8bc9990da28d056d34b2569ea628910088ae89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea7b4265126ff76473d461cd0630feb1a4e3ad71476d2843577a25fdaea53fed0ca57b06b55dbe63615f5004151796b346f9bca2492ff71175d44faffbe24c38
|
7
|
+
data.tar.gz: 58fb832bd8e1e7c124e79eabd01393da73217714e0b52a32ea215ef1e1b2d4f33390928ed15686eeed983446d74a914ac947cd709bd67180799bf8bd9017bc4a
|
data/README.md
CHANGED
@@ -14,12 +14,6 @@
|
|
14
14
|
|
15
15
|
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.
|
16
16
|
|
17
|
-
## Announcements
|
18
|
-
|
19
|
-
### [Action required] Security issue
|
20
|
-
|
21
|
-
**RailsAdmin 2.0.1, 2.0.0 and up to 1.4.2 have been reported to have XSS vulnerability.** We strongly recommend that you upgrade RailsAdmin to 2.0.2 (and higher) or 1.4.3 as soon as possible, if you are on those versions. See [d72090ec](https://github.com/railsadminteam/rails_admin/commit/d72090ec6a07c3b9b7b48ab50f3d405f91ff4375) for the detail.
|
22
|
-
|
23
17
|
## Getting started
|
24
18
|
|
25
19
|
- Check out [the docs][docs].
|
@@ -45,7 +39,7 @@ RailsAdmin is a Rails engine that provides an easy-to-use interface for managing
|
|
45
39
|
|
46
40
|
## Installation
|
47
41
|
|
48
|
-
1. On your gemfile: `gem 'rails_admin',
|
42
|
+
1. On your gemfile: `gem 'rails_admin', '~> 3.0'`
|
49
43
|
2. Run `bundle install`
|
50
44
|
3. Run `rails g rails_admin:install`
|
51
45
|
4. Provide a namespace for the routes when asked
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<% selected = (sort == property_name) %>
|
33
33
|
<% sort_direction = (sort_reverse ? "headerSortUp" : "headerSortDown" if selected) %>
|
34
34
|
<% sort_location = send(path_method, params.except("sort_reverse").merge(model_name: @abstract_model.to_param, sort: property_name).merge(selected && sort_reverse != "true" ? {sort_reverse: "true"} : {})) %>
|
35
|
-
<th class="header <%= column[:css_class] %> <%= sort_direction if selected %>">
|
35
|
+
<th class="header <%= column[:css_class] %> <%= sort_direction if selected %>" data-href="<%= sort_location %>">
|
36
36
|
<%= column[:link_text] %>
|
37
37
|
</th>
|
38
38
|
<% end %>
|
data/lib/rails_admin/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_admin",
|
3
|
-
"version": "3.0.0
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.",
|
5
5
|
"homepage": "https://github.com/railsadminteam/rails_admin",
|
6
6
|
"license": "MIT",
|
data/src/rails_admin/ui.js
CHANGED
@@ -114,10 +114,15 @@ import I18n from "./i18n";
|
|
114
114
|
event.preventDefault();
|
115
115
|
$("#filters_box").html("");
|
116
116
|
$("hr.filters_box").hide();
|
117
|
-
$(this).
|
117
|
+
$(this).siblings("input[type='search']").val("");
|
118
118
|
$(this).parents("form").submit();
|
119
119
|
});
|
120
120
|
|
121
|
+
$(document).on("click", "th.header", function (event) {
|
122
|
+
event.preventDefault();
|
123
|
+
window.Turbo.visit($(this).data("href"));
|
124
|
+
});
|
125
|
+
|
121
126
|
$(document).on(
|
122
127
|
"click",
|
123
128
|
"#fields_to_export label input#check_all",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Michaels-Ober
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2022-03-
|
15
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel-serializers-xml
|
@@ -460,9 +460,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
460
460
|
version: 2.6.0
|
461
461
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
462
462
|
requirements:
|
463
|
-
- - "
|
463
|
+
- - ">="
|
464
464
|
- !ruby/object:Gem::Version
|
465
|
-
version: 1.
|
465
|
+
version: 1.8.11
|
466
466
|
requirements: []
|
467
467
|
rubygems_version: 3.2.32
|
468
468
|
signing_key:
|