motor-admin 0.2.1 → 0.2.5

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: 7adc26b7ddd5925fb9fd1aebcb3c39fd34e82641f53f379e524df989630533de
4
- data.tar.gz: 59de79e99d4694a42cfebdf58bdad6cb1e486bdb12a13d726829949e7e7791ce
3
+ metadata.gz: 854fa2c5799dc38f7a9e349de3f6391894a6fc2deaddadb27626f86bc8d6517d
4
+ data.tar.gz: e452093f3e2f5157b3561e859f04876b84deae6097c1444f3cbc1562486e3753
5
5
  SHA512:
6
- metadata.gz: da9f42328e648604b9adf63124e5c1d6d5f0a3e78d554bede10acdafef4bd14711b2404e5cc89b9d10db093637a9c9cb83af829f33d69dea94550016f80426ea
7
- data.tar.gz: 3f3cb870e4126692d2e9e1edc584dc01c458b57bb9d805e90ddb9446d02b2b594368607d07d1f1b529ad66490749e7eb7a2bab78495f681d5889a045fc9c99f5
6
+ metadata.gz: 368cf58ba672c132ada6dc2803683e59c472029385fe211e7ddda5f302c3c73b529906586fc70cfd957e2fc740a85d81b84752ffc47800fa2a7226310ac879ed
7
+ data.tar.gz: a8786928fd85bc54108889ff61a48fce1188d0e3f3f07e9e786197a9ec895a0b58d4db4f93a38513885ff9357f84a4ac521691bfa56f401e2c9bc510976f396c
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:
data/lib/motor/admin.rb CHANGED
@@ -45,7 +45,7 @@ module Motor
45
45
  initializer 'motor.alerts.scheduler' do
46
46
  config.after_initialize do
47
47
  next unless Motor.server?
48
- next if Motor.development?
48
+ next unless Rails.env.production?
49
49
 
50
50
  Motor::Alerts::Scheduler::SCHEDULER_TASK.execute
51
51
  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.1'
4
+ VERSION = '0.2.5'
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.1
4
+ version: 0.2.5
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-10 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: