motor-admin 0.2.0 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bd6e9f08fd07c47dd7f80ed20e32360a1e17efaad9a73a068ff9edc1d76fc37
4
- data.tar.gz: 54dfd675226f75ade0a0f6048dcb8f96c1aaae7d9d6a1d73515286b8d4c240ab
3
+ metadata.gz: edbfc97ab1d4085b7ba5f36556ccb8a2cc8a296adfc5faf39575d222b5d01437
4
+ data.tar.gz: 5fea122265af6b1dec8085938c7b8b4232307947f6eedcf8edbbf0427689068a
5
5
  SHA512:
6
- metadata.gz: fda28b2381654ba371ce61a81d41056835b87d42106c7aa194546f9d022c610304891bc9bf7a2ad7cb59396f78f971a50a4dd91abf411ecc810358dc786d59bf
7
- data.tar.gz: bfd3fab365192c0d48f0841059b5d42ec1a8220c5ed22e33f237e448fcd60fe8faaf8a0be1a2f5158bc1b807cf1019fddee17139811e22d71f2e4a2ee59126c0
6
+ metadata.gz: 1819ab43fc6a0ec3f6b9dc12da4b640e11be04a0009396078ef35c0ecd77a5641bef949dc78c37637eb71a3ea4486c93b39e8bd35f36e72842445b74bb848177
7
+ data.tar.gz: 19491ffe428b4cf741746af9001d641a571cc0a12f36e6a6dac586d0ad80534be06078bae765755acf1e74cebee2ae9680f0f9f74113db5ad7bd0963ae6dd21c
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`.<br>
79
- [Learn more about custom forms builder](https://github.com/omohokcoj/motor-admin/blob/master/guides/building_custom_forms.md).
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
 
@@ -262,3 +262,5 @@ en:
262
262
  activate: Activate
263
263
  load_existing_options_from_database: Load existing options from the database
264
264
  add_database: Add Database
265
+ audio: Audio
266
+ video: Video
@@ -262,6 +262,8 @@ es:
262
262
  activate: Activar
263
263
  load_existing_options_from_database: Cargar las opciones existentes de la base de datos
264
264
  add_database: Añadir base de datos
265
+ audio: Audio
266
+ video: Video
265
267
  i:
266
268
  locale: es
267
269
  select:
@@ -258,6 +258,8 @@ pt:
258
258
  visibility: "Visibilidade"
259
259
  visualization: "Visualização"
260
260
  write_only: "Somente gravação"
261
+ audio: Áudio
262
+ video: Vídeo
261
263
  i:
262
264
  locale: pt
263
265
  select:
@@ -24,7 +24,7 @@ if Rails::VERSION::MAJOR == 6
24
24
  manager.where(where_clause.ast)
25
25
  end
26
26
 
27
- @values[:where] = where_clause
27
+ @values[:where] = where_clause if where_clause
28
28
  end
29
29
  end
30
30
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.4'
5
5
  end
data/lib/motor.rb CHANGED
@@ -4,7 +4,6 @@ require 'concurrent/executor/fixed_thread_pool'
4
4
  require 'concurrent/timer_task'
5
5
  require 'cancancan'
6
6
  require 'ar_lazy_preload'
7
- require 'js_regex'
8
7
  require 'fugit'
9
8
  require 'csv'
10
9
  require 'active_record/filter'
@@ -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-5c903ff9235e54ac03f1.css.gz": "main-5c903ff9235e54ac03f1.css.gz",
2605
- "main-5c903ff9235e54ac03f1.js.LICENSE.txt": "main-5c903ff9235e54ac03f1.js.LICENSE.txt",
2606
- "main-5c903ff9235e54ac03f1.js.gz": "main-5c903ff9235e54ac03f1.js.gz",
2607
- "main.css": "main-5c903ff9235e54ac03f1.css",
2608
- "main.js": "main-5c903ff9235e54ac03f1.js"
2604
+ "main-32da50c51ef9fcddf634.css.gz": "main-32da50c51ef9fcddf634.css.gz",
2605
+ "main-32da50c51ef9fcddf634.js.LICENSE.txt": "main-32da50c51ef9fcddf634.js.LICENSE.txt",
2606
+ "main-32da50c51ef9fcddf634.js.gz": "main-32da50c51ef9fcddf634.js.gz",
2607
+ "main.css": "main-32da50c51ef9fcddf634.css",
2608
+ "main.js": "main-32da50c51ef9fcddf634.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.0
4
+ version: 0.2.4
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-06 00:00:00.000000000 Z
11
+ date: 2021-10-07 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
@@ -1537,8 +1523,8 @@ files:
1537
1523
  - ui/dist/icons/zoom-money.svg.gz
1538
1524
  - ui/dist/icons/zoom-out.svg.gz
1539
1525
  - ui/dist/icons/zoom-question.svg.gz
1540
- - ui/dist/main-5c903ff9235e54ac03f1.css.gz
1541
- - ui/dist/main-5c903ff9235e54ac03f1.js.gz
1526
+ - ui/dist/main-32da50c51ef9fcddf634.css.gz
1527
+ - ui/dist/main-32da50c51ef9fcddf634.js.gz
1542
1528
  - ui/dist/manifest.json
1543
1529
  homepage:
1544
1530
  licenses: