motor-admin 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/motor/build_schema/load_from_rails.rb +0 -2
- data/lib/motor/version.rb +1 -1
- data/lib/motor.rb +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f43566e0fd7cd93d18edae286ca0f138bba3ed0f0d531264d0ad29579f704306
|
4
|
+
data.tar.gz: e3b2860cd08bdad0eb465b71fb6963f53203117b11871a9b2ced77b086780376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8adc5697b41a7427c67e66b6024995431b630b787a41eacbed0501d2ccac8b815b10536eb7becf96dc7033ee76bdb49dc1decd481bcdaa95b2b7c8f75f50f96d
|
7
|
+
data.tar.gz: 0dfc8b287097a5ff8c9e0b640625b53eddaa1ea302f674caa65f9a5e044c49b073d9d0c932ba5ffc0e8986d66640216fce785b1bb85332f4c3173bccb575cdb3
|
data/README.md
CHANGED
@@ -49,6 +49,8 @@ Everything in the admin panel can be configured using the intuitive settings UI,
|
|
49
49
|
|
50
50
|
Data displayed on the resource page can be completely customized via [SQL queries](#sql-queries) and [dashboards](#dashboards) attached to the resource as a tab. Usually, queries used to display resource data should contain `{{resource_name_id}}` [variable](#sql-queries).
|
51
51
|
|
52
|
+
[Learn more about resource customizations](https://github.com/omohokcoj/motor-admin/blob/master/guides/customizing_resource_table.md)
|
53
|
+
|
52
54
|
### Custom Actions
|
53
55
|
|
54
56
|
![Custom actions](https://user-images.githubusercontent.com/5418788/119266132-3c1dd580-bbf2-11eb-9666-09e1640eaf7b.png)
|
@@ -75,8 +77,9 @@ end
|
|
75
77
|
|
76
78
|
![Custom form](https://user-images.githubusercontent.com/5418788/119264008-1391dd80-bbea-11eb-9f14-cb405e77fb60.png)
|
77
79
|
|
78
|
-
Values from the form fields can be used in API path via `{field_name}` syntax: `/api/some-endpoint/{resource_id}/apply
|
79
|
-
|
80
|
+
Values from the form fields can be used in API path via `{field_name}` syntax: `/api/some-endpoint/{resource_id}/apply`.
|
81
|
+
|
82
|
+
[Learn more about custom forms builder](https://github.com/omohokcoj/motor-admin/blob/master/guides/building_custom_forms.md)
|
80
83
|
|
81
84
|
### SQL Queries
|
82
85
|
|
@@ -287,8 +287,6 @@ module Motor
|
|
287
287
|
{ includes: validator.send(:delimiter) }
|
288
288
|
when ActiveRecord::Validations::PresenceValidator
|
289
289
|
{ required: true }
|
290
|
-
when ActiveModel::Validations::FormatValidator
|
291
|
-
{ format: JsRegex.new(options[:with]).to_h.slice(:source, :options) }
|
292
290
|
when ActiveRecord::Validations::LengthValidator
|
293
291
|
{ length: normalize_length_validation_options(options) }
|
294
292
|
when ActiveModel::Validations::NumericalityValidator
|
data/lib/motor/version.rb
CHANGED
data/lib/motor.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motor-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Matsyburka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-filter
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: js_regex
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '3.0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '3.0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rails
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|