motor-admin 0.2.34 → 0.2.38
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.
- checksums.yaml +4 -4
- data/config/locales/en.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/pt.yml +6 -0
- data/lib/motor/active_record_utils/ar_lazy_preload_patch.rb +11 -0
- data/lib/motor/build_schema/find_searchable_columns.rb +1 -1
- data/lib/motor/resources.rb +2 -1
- data/lib/motor/version.rb +1 -1
- data/ui/dist/main-01a5fc164f7a205535b6.css.gz +0 -0
- data/ui/dist/main-01a5fc164f7a205535b6.js.gz +0 -0
- data/ui/dist/manifest.json +5 -5
- metadata +4 -4
- data/ui/dist/main-20a597f4a4ce450fb62c.css.gz +0 -0
- data/ui/dist/main-20a597f4a4ce450fb62c.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: e6e16012b7ce3915ee63ecd0cea05e5e6ffcfdb0857ce84c14c63a4dc820cfd4
|
|
4
|
+
data.tar.gz: 0fb8b4d2530d8be7374bcc259ef8121d00b6b8b6d4ab9a9a2e267e065c4f400f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2474f67c79769094f43fdd9ebbae6f9e4676073b38c2a286bd4de9370135c8cc51e0a8f9c39b1a62a20fd1d55720a52eb50cdfa1751b84c73098510a1bcea457
|
|
7
|
+
data.tar.gz: ee04d0287e06a9710e1a1bdd379041236754e6f8a6b4b3abd4b037443049e2ae74ea474be0361d3ff3fd464fa54354bb0d36dcecf6df5d0c8f72bccc585c20b7
|
data/config/locales/en.yml
CHANGED
|
@@ -287,3 +287,9 @@ en:
|
|
|
287
287
|
sql: SQL
|
|
288
288
|
api: API
|
|
289
289
|
searchable_columns: Searchable columns
|
|
290
|
+
validate: Validate
|
|
291
|
+
error_message: Error message
|
|
292
|
+
validation_regexp: Validation RegExp
|
|
293
|
+
regexp: RegExp
|
|
294
|
+
message: Message
|
|
295
|
+
should_be_a_valid_regexp: Should be a valid RegExp string
|
data/config/locales/es.yml
CHANGED
|
@@ -287,6 +287,12 @@ es:
|
|
|
287
287
|
sql: SQL
|
|
288
288
|
api: API
|
|
289
289
|
searchable_columns: Columnas de búsqueda
|
|
290
|
+
validate: Validar
|
|
291
|
+
error_message: Mensaje de error
|
|
292
|
+
validation_regexp: Validación RegExp
|
|
293
|
+
regexp: RegExp
|
|
294
|
+
message: Mensaje
|
|
295
|
+
should_be_a_valid_regexp: Debe ser una cadena RegExp válida
|
|
290
296
|
i:
|
|
291
297
|
locale: es
|
|
292
298
|
select:
|
data/config/locales/pt.yml
CHANGED
|
@@ -283,6 +283,12 @@ pt:
|
|
|
283
283
|
sql: SQL
|
|
284
284
|
api: API
|
|
285
285
|
searchable_columns: Colunas pesquisáveis
|
|
286
|
+
validate: Validar
|
|
287
|
+
error_message: Mensagem de erro
|
|
288
|
+
validation_regexp: Validação RegExp
|
|
289
|
+
regexp: RegExp
|
|
290
|
+
message: Mensagem
|
|
291
|
+
should_be_a_valid_regexp: Deve ser uma string RegExp válida
|
|
286
292
|
i:
|
|
287
293
|
locale: pt
|
|
288
294
|
select:
|
|
@@ -18,5 +18,16 @@ if Rails::VERSION::MAJOR == 7
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
|
+
|
|
22
|
+
module Contexts
|
|
23
|
+
class BaseContext
|
|
24
|
+
def preload_records(association_name, records)
|
|
25
|
+
TemporaryPreloadConfig.within_context do
|
|
26
|
+
ActiveRecord::Associations::Preloader.new(records: records,
|
|
27
|
+
associations: association_name).call
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
21
32
|
end
|
|
22
33
|
end
|
data/lib/motor/resources.rb
CHANGED
|
@@ -4,7 +4,8 @@ module Motor
|
|
|
4
4
|
module Resources
|
|
5
5
|
RESOURCE_ATTRS = %w[display_name display_column icon custom_sql visible display_primary_key
|
|
6
6
|
searchable_columns].freeze
|
|
7
|
-
COLUMN_ATTRS = %w[name display_name column_type access_type default_value reference virtual format
|
|
7
|
+
COLUMN_ATTRS = %w[name display_name column_type access_type default_value reference virtual format
|
|
8
|
+
validators].freeze
|
|
8
9
|
ASSOCIATION_ATTRS = %w[name display_name model_name icon visible foreign_key primary_key options virtual
|
|
9
10
|
polymorphic slug].freeze
|
|
10
11
|
SCOPE_ATTRS = %w[name display_name scope_type preferences visible].freeze
|
data/lib/motor/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
data/ui/dist/manifest.json
CHANGED
|
@@ -2601,9 +2601,9 @@
|
|
|
2601
2601
|
"icons/zoom-out.svg.gz": "icons/zoom-out.svg.gz",
|
|
2602
2602
|
"icons/zoom-question.svg": "icons/zoom-question.svg",
|
|
2603
2603
|
"icons/zoom-question.svg.gz": "icons/zoom-question.svg.gz",
|
|
2604
|
-
"main-
|
|
2605
|
-
"main-
|
|
2606
|
-
"main-
|
|
2607
|
-
"main.css": "main-
|
|
2608
|
-
"main.js": "main-
|
|
2604
|
+
"main-01a5fc164f7a205535b6.css.gz": "main-01a5fc164f7a205535b6.css.gz",
|
|
2605
|
+
"main-01a5fc164f7a205535b6.js.LICENSE.txt": "main-01a5fc164f7a205535b6.js.LICENSE.txt",
|
|
2606
|
+
"main-01a5fc164f7a205535b6.js.gz": "main-01a5fc164f7a205535b6.js.gz",
|
|
2607
|
+
"main.css": "main-01a5fc164f7a205535b6.css",
|
|
2608
|
+
"main.js": "main-01a5fc164f7a205535b6.js"
|
|
2609
2609
|
}
|
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.38
|
|
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-12-
|
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord-filter
|
|
@@ -1526,8 +1526,8 @@ files:
|
|
|
1526
1526
|
- ui/dist/icons/zoom-money.svg.gz
|
|
1527
1527
|
- ui/dist/icons/zoom-out.svg.gz
|
|
1528
1528
|
- ui/dist/icons/zoom-question.svg.gz
|
|
1529
|
-
- ui/dist/main-
|
|
1530
|
-
- ui/dist/main-
|
|
1529
|
+
- ui/dist/main-01a5fc164f7a205535b6.css.gz
|
|
1530
|
+
- ui/dist/main-01a5fc164f7a205535b6.js.gz
|
|
1531
1531
|
- ui/dist/manifest.json
|
|
1532
1532
|
homepage:
|
|
1533
1533
|
licenses:
|
|
Binary file
|
|
Binary file
|