motor-admin 0.1.29 → 0.1.31
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/app/views/motor/alerts_mailer/alert_email.html.erb +1 -1
- data/config/routes.rb +1 -12
- data/lib/generators/motor/install_generator.rb +2 -0
- data/lib/motor.rb +1 -1
- data/lib/motor/admin.rb +19 -0
- data/lib/motor/version.rb +1 -1
- data/ui/dist/{main-482137e0bc1ba9f875dc.css.gz → main-b27ee7bbbc5e97fb1743.css.gz} +0 -0
- data/ui/dist/main-b27ee7bbbc5e97fb1743.js.gz +0 -0
- data/ui/dist/manifest.json +5 -5
- metadata +4 -5
- data/lib/motor/api.rb +0 -6
- data/ui/dist/main-482137e0bc1ba9f875dc.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: 34d4ac091383f79174302c02c385c3757f5aa34f3903339579268c5b1f8be6f4
|
4
|
+
data.tar.gz: 5311fb94097abbb727371002c44a019bca9b84b60d9ba3271a3e4029adbe6f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 938d8910276a5ea54df6254cdd6d7964c5f34ceb7e87fe8c2aa76227dab5bc4a1d03653c9450012d2d013ff03e9f70163644c3530fd9ea23af6c98941c531561
|
7
|
+
data.tar.gz: f94105d6c8c14225fac6f3e341aef95399a8723d958f2d34e7715c05593d993bdda1cc2674b6d32a74216507271d0d559de3f221ba49a9b9b9d769d6c090f78b
|
@@ -77,7 +77,7 @@
|
|
77
77
|
<% if @query_result.data.length > 1 %>
|
78
78
|
<p style="margin: 7px 0; float: left">Showing <%= @query_result.data.first(40).size %> of <%= @query_result.data.size %> rows</p>
|
79
79
|
<% end %>
|
80
|
-
<a href="<%= Motor::Admin.routes.url_helpers.motor_ui_query_url(@alert.query, { host: 'localhost:3000'}.merge(Rails.application.config.action_mailer.default_url_options || {})) %>" target="blank" style="margin: 7px 0; float: right">Open query </a>
|
80
|
+
<a href="<%= Motor::Admin.routes.url_helpers.motor_ui_query_url(@alert.query, { host: 'localhost:3000' }.merge(Rails.application.config.action_mailer.default_url_options || {})) %>" target="blank" style="margin: 7px 0; float: right">Open query </a>
|
81
81
|
<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">
|
82
82
|
<tr>
|
83
83
|
<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px; max-width: 0px; overflow: scroll">
|
data/config/routes.rb
CHANGED
@@ -47,15 +47,4 @@ Motor::Admin.routes.draw do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
|
51
|
-
namespace :motor, path: '' do
|
52
|
-
resources :resources, path: '/:resource',
|
53
|
-
only: %i[index show update create destroy],
|
54
|
-
controller: 'data' do
|
55
|
-
put '/:method', to: 'data#execute'
|
56
|
-
resources :association, path: '/:association',
|
57
|
-
only: %i[index create],
|
58
|
-
controller: 'data'
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
50
|
+
ActiveSupport::Notifications.instrument('motor.routes.loaded')
|
data/lib/motor.rb
CHANGED
data/lib/motor/admin.rb
CHANGED
@@ -2,6 +2,25 @@
|
|
2
2
|
|
3
3
|
module Motor
|
4
4
|
class Admin < ::Rails::Engine
|
5
|
+
initializer 'motor.startup_message' do
|
6
|
+
ActiveSupport::Notifications.subscribe('motor.routes.loaded') do
|
7
|
+
next unless Motor.server?
|
8
|
+
|
9
|
+
if Rails.application.routes.url_helpers.respond_to?(:motor_admin_path)
|
10
|
+
url =
|
11
|
+
begin
|
12
|
+
Rails.application.routes.url_helpers.motor_admin_url
|
13
|
+
rescue ArgumentError
|
14
|
+
Rails.application.routes.url_helpers.motor_admin_path
|
15
|
+
end
|
16
|
+
|
17
|
+
puts
|
18
|
+
puts "⚡ Motor Admin is starting under #{url}"
|
19
|
+
puts
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
5
24
|
initializer 'motor.filter_params' do
|
6
25
|
Rails.application.config.filter_parameters += %i[io]
|
7
26
|
end
|
data/lib/motor/version.rb
CHANGED
Binary file
|
Binary file
|
data/ui/dist/manifest.json
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
"fonts/ionicons.ttf?v=3.0.0-alpha.3": "fonts/ionicons.ttf",
|
6
6
|
"fonts/ionicons.woff2?v=3.0.0-alpha.3": "fonts/ionicons.woff2",
|
7
7
|
"fonts/ionicons.woff?v=3.0.0-alpha.3": "fonts/ionicons.woff",
|
8
|
-
"main-
|
9
|
-
"main-
|
10
|
-
"main-
|
11
|
-
"main.css": "main-
|
12
|
-
"main.js": "main-
|
8
|
+
"main-b27ee7bbbc5e97fb1743.css.gz": "main-b27ee7bbbc5e97fb1743.css.gz",
|
9
|
+
"main-b27ee7bbbc5e97fb1743.js.LICENSE.txt": "main-b27ee7bbbc5e97fb1743.js.LICENSE.txt",
|
10
|
+
"main-b27ee7bbbc5e97fb1743.js.gz": "main-b27ee7bbbc5e97fb1743.js.gz",
|
11
|
+
"main.css": "main-b27ee7bbbc5e97fb1743.css",
|
12
|
+
"main.js": "main-b27ee7bbbc5e97fb1743.js"
|
13
13
|
}
|
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.1.
|
4
|
+
version: 0.1.31
|
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-05-
|
11
|
+
date: 2021-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-filter
|
@@ -183,7 +183,6 @@ files:
|
|
183
183
|
- lib/motor/alerts/persistance.rb
|
184
184
|
- lib/motor/alerts/scheduled_alerts_cache.rb
|
185
185
|
- lib/motor/alerts/scheduler.rb
|
186
|
-
- lib/motor/api.rb
|
187
186
|
- lib/motor/api_query.rb
|
188
187
|
- lib/motor/api_query/apply_scope.rb
|
189
188
|
- lib/motor/api_query/build_json.rb
|
@@ -215,8 +214,8 @@ files:
|
|
215
214
|
- lib/motor/ui_configs.rb
|
216
215
|
- lib/motor/version.rb
|
217
216
|
- ui/dist/fonts/ionicons.woff2
|
218
|
-
- ui/dist/main-
|
219
|
-
- ui/dist/main-
|
217
|
+
- ui/dist/main-b27ee7bbbc5e97fb1743.css.gz
|
218
|
+
- ui/dist/main-b27ee7bbbc5e97fb1743.js.gz
|
220
219
|
- ui/dist/manifest.json
|
221
220
|
homepage:
|
222
221
|
licenses:
|
data/lib/motor/api.rb
DELETED
Binary file
|