mission_control-jobs 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/mission_control/jobs/bulma.min.css +21012 -2
- data/app/helpers/mission_control/jobs/application_helper.rb +1 -0
- data/app/views/mission_control/jobs/jobs/_filters.html.erb +2 -2
- data/lib/mission_control/jobs/engine.rb +5 -10
- data/lib/mission_control/jobs/i18n_config.rb +13 -1
- data/lib/mission_control/jobs/version.rb +1 -1
- metadata +2 -2
@@ -5,11 +5,11 @@
|
|
5
5
|
data: { controller: "form", action: "input->form#debouncedSubmit" } do |form| %>
|
6
6
|
|
7
7
|
<div class="select is-rounded">
|
8
|
-
<%= form.text_field :job_class_name, value: @job_filters[:job_class_name], class: "input", list: "job-classes", placeholder: "Filter by job class..." %>
|
8
|
+
<%= form.text_field :job_class_name, value: @job_filters[:job_class_name], class: "input", list: "job-classes", placeholder: "Filter by job class...", autocomplete: "off" %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="select is-rounded">
|
12
|
-
<%= form.text_field :queue_name, value: @job_filters[:queue_name], class: "input", list: "queue-names", placeholder: "Filter by queue name..." %>
|
12
|
+
<%= form.text_field :queue_name, value: @job_filters[:queue_name], class: "input", list: "queue-names", placeholder: "Filter by queue name...", autocomplete: "off" %>
|
13
13
|
</div>
|
14
14
|
|
15
15
|
<% if jobs_status == "finished" %>
|
@@ -63,13 +63,6 @@ module MissionControl
|
|
63
63
|
end
|
64
64
|
|
65
65
|
config.after_initialize do |app|
|
66
|
-
unless app.config.eager_load
|
67
|
-
# When loading classes lazily (development), we want to make sure
|
68
|
-
# the base host +ApplicationController+ class is loaded when loading the
|
69
|
-
# Engine's +ApplicationController+, or it will fail to load the class.
|
70
|
-
MissionControl::Jobs.base_controller_class.constantize
|
71
|
-
end
|
72
|
-
|
73
66
|
if MissionControl::Jobs.applications.empty?
|
74
67
|
queue_adapters_by_name = MissionControl::Jobs.adapters.each_with_object({}) do |adapter, hsh|
|
75
68
|
hsh[adapter] = ActiveJob::QueueAdapters.lookup(adapter).new
|
@@ -103,10 +96,12 @@ module MissionControl
|
|
103
96
|
|
104
97
|
initializer "mission_control-jobs.importmap", after: "importmap" do |app|
|
105
98
|
MissionControl::Jobs.importmap.draw(root.join("config/importmap.rb"))
|
106
|
-
|
99
|
+
if app.config.importmap.sweep_cache && app.config.reloading_enabled?
|
100
|
+
MissionControl::Jobs.importmap.cache_sweeper(watches: root.join("app/javascript"))
|
107
101
|
|
108
|
-
|
109
|
-
|
102
|
+
ActiveSupport.on_load(:action_controller_base) do
|
103
|
+
before_action { MissionControl::Jobs.importmap.cache_sweeper.execute_if_updated }
|
104
|
+
end
|
110
105
|
end
|
111
106
|
end
|
112
107
|
end
|
@@ -1,5 +1,17 @@
|
|
1
1
|
class MissionControl::Jobs::I18nConfig < ::I18n::Config
|
2
|
+
AVAILABLE_LOCALES = [ :en ]
|
3
|
+
AVAILABLE_LOCALES_SET = [ :en, "en" ]
|
4
|
+
DEFAULT_LOCALE = :en
|
5
|
+
|
2
6
|
def available_locales
|
3
|
-
|
7
|
+
AVAILABLE_LOCALES
|
8
|
+
end
|
9
|
+
|
10
|
+
def available_locales_set
|
11
|
+
AVAILABLE_LOCALES_SET
|
12
|
+
end
|
13
|
+
|
14
|
+
def default_locale
|
15
|
+
DEFAULT_LOCALE
|
4
16
|
end
|
5
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mission_control-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|