motor-admin 0.2.89 → 0.3.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 +4 -4
- data/lib/motor/build_schema/load_from_rails.rb +7 -2
- data/lib/motor/configs/build_ui_app_tag.rb +4 -0
- data/lib/motor/version.rb +1 -1
- data/ui/dist/main-8ed8d8ad01708ae44fdc.css.gz +0 -0
- data/ui/dist/main-8ed8d8ad01708ae44fdc.js.gz +0 -0
- data/ui/dist/manifest.json +5 -5
- metadata +4 -4
- data/ui/dist/main-9ab802172cd28dcc3df6.css.gz +0 -0
- data/ui/dist/main-9ab802172cd28dcc3df6.js.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: ae8c77e2060615e55e3687dcd6533663f5138ce123ea83340d2db166946f0bab
|
4
|
+
data.tar.gz: 7668ec7c88bd1a79991b58a495ae1b258f071a98ddb6f525c63c58bc1af3dae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c679d3f20748a8f1b7dc5c86fcd4b3ad7206c58698322a524ee7cc384cc9d2bf07c21190d1b6879435c52bb8db2ebc3702dafda540e57761222f902dc3834b
|
7
|
+
data.tar.gz: 8de97edaa8a1e81f0e4387ba5db19feba94b5557302ac5e52ea01892d6a4ef0f2dd5a8d45729213fe786b248b8dee65c8b8270e35bf36fa7a85b4a8d6daafa96
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Low-code Admin panel and Business intelligence Rails engine **(no DSL - configurable from the UI)**.
|
8
8
|
|
9
|
-
🤓 [Demo App](https://motor-admin.herokuapp.com/demo) | 👀 [Features overview](https://www.youtube.com/watch?v=ngVoci8Hll4&list=PLu7llEMh0KcOkR3Uy_RJT0cXPZQKAYVsq&index=1) | ⭐ [Pro](https://www.getmotoradmin.com/rails)
|
9
|
+
🤓 [Demo App](https://motor-admin.herokuapp.com/demo) | 👀 [Features overview](https://www.youtube.com/watch?v=ngVoci8Hll4&list=PLu7llEMh0KcOkR3Uy_RJT0cXPZQKAYVsq&index=1) | ⭐ [Pro](https://www.getmotoradmin.com/ruby-on-rails)
|
10
10
|
</div>
|
11
11
|
|
12
12
|
[![Admin Panel](https://user-images.githubusercontent.com/5418788/119318538-1f30e300-bc82-11eb-94a4-107c31c93b13.png)](https://motor-admin.herokuapp.com/demo)
|
@@ -45,7 +45,7 @@ $ rails motor:install && rake db:migrate
|
|
45
45
|
* [Configurations sync between environments](#configurations-sync)
|
46
46
|
* [Authentication](#authentication)
|
47
47
|
|
48
|
-
## [Pro](https://www.getmotoradmin.com/rails)
|
48
|
+
## [Pro](https://www.getmotoradmin.com/ruby-on-rails)
|
49
49
|
|
50
50
|
* Multiple databases support
|
51
51
|
* Audit log
|
@@ -55,7 +55,7 @@ $ rails motor:install && rake db:migrate
|
|
55
55
|
* Personalized report alerts via Slack
|
56
56
|
* Full-text search
|
57
57
|
* Shareable forms and reports
|
58
|
-
* [learn more](https://www.getmotoradmin.com/rails)
|
58
|
+
* [learn more](https://www.getmotoradmin.com/ruby-on-rails)
|
59
59
|
|
60
60
|
### Customizable CRUD
|
61
61
|
|
@@ -129,7 +129,7 @@ Sender address can be specified using `MOTOR_ALERTS_FROM_ADDRESS` environment va
|
|
129
129
|
|
130
130
|
![Intelligence search](https://user-images.githubusercontent.com/5418788/119266559-eea26800-bbf3-11eb-8cb3-d0538aa386a9.png)
|
131
131
|
|
132
|
-
Intelligence search can be opened via the top right corner button or using <kbd>Cmd</kbd> + <kbd>
|
132
|
+
Intelligence search can be opened via the top right corner button or using <kbd>Cmd</kbd> + <kbd>K</kbd> shortcut.
|
133
133
|
|
134
134
|
### Authorization
|
135
135
|
|
@@ -238,13 +238,18 @@ module Motor
|
|
238
238
|
end
|
239
239
|
|
240
240
|
def build_reference(model, name, reflection)
|
241
|
+
primary_key = reflection.polymorphic? ? 'id' : reflection.join_primary_key
|
242
|
+
foreign_key = reflection.join_foreign_key
|
243
|
+
|
244
|
+
primary_key, foreign_key = foreign_key, primary_key if reflection.has_one?
|
245
|
+
|
241
246
|
{
|
242
247
|
name: name,
|
243
248
|
display_name: model.human_attribute_name(name),
|
244
249
|
model_name: reflection.polymorphic? ? nil : reflection.klass.name.underscore,
|
245
250
|
reference_type: reflection.belongs_to? ? 'belongs_to' : 'has_one',
|
246
|
-
foreign_key:
|
247
|
-
primary_key:
|
251
|
+
foreign_key: foreign_key,
|
252
|
+
primary_key: primary_key,
|
248
253
|
options: reflection.options.slice(:through, :source),
|
249
254
|
polymorphic: reflection.polymorphic?,
|
250
255
|
virtual: false
|
@@ -26,6 +26,10 @@ module Motor
|
|
26
26
|
|
27
27
|
key += Motor::DefineArModels.defined_models_schema_md5.to_s if defined?(Motor::DefineArModels)
|
28
28
|
|
29
|
+
if Rails.env.development?
|
30
|
+
key += Digest::MD5.hexdigest(ActiveRecord::Base.descendants.map(&:object_id).sort.join)
|
31
|
+
end
|
32
|
+
|
29
33
|
key
|
30
34
|
end
|
31
35
|
|
data/lib/motor/version.rb
CHANGED
Binary file
|
Binary file
|
data/ui/dist/manifest.json
CHANGED
@@ -3966,9 +3966,9 @@
|
|
3966
3966
|
"images/marker-icon-2x.png": "images/marker-icon-2x.png",
|
3967
3967
|
"images/marker-icon.png": "images/marker-icon.png",
|
3968
3968
|
"images/marker-shadow.png": "images/marker-shadow.png",
|
3969
|
-
"main-
|
3970
|
-
"main-
|
3971
|
-
"main-
|
3972
|
-
"main.css": "main-
|
3973
|
-
"main.js": "main-
|
3969
|
+
"main-8ed8d8ad01708ae44fdc.css.gz": "main-8ed8d8ad01708ae44fdc.css.gz",
|
3970
|
+
"main-8ed8d8ad01708ae44fdc.js.LICENSE.txt": "main-8ed8d8ad01708ae44fdc.js.LICENSE.txt",
|
3971
|
+
"main-8ed8d8ad01708ae44fdc.js.gz": "main-8ed8d8ad01708ae44fdc.js.gz",
|
3972
|
+
"main.css": "main-8ed8d8ad01708ae44fdc.css",
|
3973
|
+
"main.js": "main-8ed8d8ad01708ae44fdc.js"
|
3974
3974
|
}
|
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.3.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: 2022-07-
|
11
|
+
date: 2022-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-filter
|
@@ -2219,8 +2219,8 @@ files:
|
|
2219
2219
|
- ui/dist/images/marker-icon-2x.png
|
2220
2220
|
- ui/dist/images/marker-icon.png
|
2221
2221
|
- ui/dist/images/marker-shadow.png
|
2222
|
-
- ui/dist/main-
|
2223
|
-
- ui/dist/main-
|
2222
|
+
- ui/dist/main-8ed8d8ad01708ae44fdc.css.gz
|
2223
|
+
- ui/dist/main-8ed8d8ad01708ae44fdc.js.gz
|
2224
2224
|
- ui/dist/manifest.json
|
2225
2225
|
homepage:
|
2226
2226
|
licenses:
|
Binary file
|
Binary file
|