Add Mission Control Jobs
This commit is contained in:
parent
ea31c03c44
commit
65ce9c0716
1
Gemfile
1
Gemfile
|
@ -18,6 +18,7 @@ gem "bootsnap", require: false
|
||||||
# gem "image_processing", "~> 1.2"
|
# gem "image_processing", "~> 1.2"
|
||||||
|
|
||||||
gem "solid_queue"
|
gem "solid_queue"
|
||||||
|
gem "mission_control-jobs"
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem "debug", platforms: %i[ mri windows ]
|
gem "debug", platforms: %i[ mri windows ]
|
||||||
|
|
|
@ -137,6 +137,11 @@ GEM
|
||||||
matrix (0.4.2)
|
matrix (0.4.2)
|
||||||
mini_mime (1.1.5)
|
mini_mime (1.1.5)
|
||||||
minitest (5.23.1)
|
minitest (5.23.1)
|
||||||
|
mission_control-jobs (0.2.1)
|
||||||
|
importmap-rails
|
||||||
|
rails (~> 7.1)
|
||||||
|
stimulus-rails
|
||||||
|
turbo-rails
|
||||||
msgpack (1.7.2)
|
msgpack (1.7.2)
|
||||||
mutex_m (0.2.0)
|
mutex_m (0.2.0)
|
||||||
net-imap (0.4.11)
|
net-imap (0.4.11)
|
||||||
|
@ -308,6 +313,7 @@ DEPENDENCIES
|
||||||
debug
|
debug
|
||||||
importmap-rails
|
importmap-rails
|
||||||
jbuilder
|
jbuilder
|
||||||
|
mission_control-jobs
|
||||||
pg
|
pg
|
||||||
propshaft
|
propshaft
|
||||||
puma (>= 5.0)
|
puma (>= 5.0)
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= link_to t(".dashboard"), admin_index_path %></li>
|
<li><%= link_to t(".dashboard"), admin_index_path %></li>
|
||||||
<li><%= link_to t(".game_systems"), admin_game_systems_path %></li>
|
<li><%= link_to t(".game_systems"), admin_game_systems_path %></li>
|
||||||
|
<% if Rails.env.production? %>
|
||||||
|
<li><%= link_to t(".jobs"), jobs_path, target: "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -10,7 +10,6 @@ Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
module TabletopCompanion
|
module TabletopCompanion
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
|
||||||
config.load_defaults 7.1
|
config.load_defaults 7.1
|
||||||
|
|
||||||
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
||||||
|
@ -18,12 +17,8 @@ module TabletopCompanion
|
||||||
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
||||||
config.autoload_lib(ignore: %w[assets tasks])
|
config.autoload_lib(ignore: %w[assets tasks])
|
||||||
|
|
||||||
# Configuration for the application, engines, and railties goes here.
|
config.time_zone = "London"
|
||||||
#
|
|
||||||
# These settings can be overridden in specific environments using the files
|
config.mission_control.jobs.base_controller_class = "AdminController"
|
||||||
# in config/environments, which are processed later.
|
|
||||||
#
|
|
||||||
# config.time_zone = "Central Time (US & Canada)"
|
|
||||||
# config.eager_load_paths << Rails.root.join("extras")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,6 +13,7 @@ en:
|
||||||
admin:
|
admin:
|
||||||
dashboard: Dashboard
|
dashboard: Dashboard
|
||||||
game_systems: Game Systems
|
game_systems: Game Systems
|
||||||
|
jobs: Jobs
|
||||||
application:
|
application:
|
||||||
tables: Tables
|
tables: Tables
|
||||||
mailer:
|
mailer:
|
||||||
|
|
|
@ -23,4 +23,5 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
get "up" => "rails/health#show", as: :rails_health_check
|
get "up" => "rails/health#show", as: :rails_health_check
|
||||||
|
mount MissionControl::Jobs::Engine, at: "/admin/jobs" if Rails.env.production?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue