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 "solid_queue"
|
||||
gem "mission_control-jobs"
|
||||
|
||||
group :development, :test do
|
||||
gem "debug", platforms: %i[ mri windows ]
|
||||
|
|
|
@ -137,6 +137,11 @@ GEM
|
|||
matrix (0.4.2)
|
||||
mini_mime (1.1.5)
|
||||
minitest (5.23.1)
|
||||
mission_control-jobs (0.2.1)
|
||||
importmap-rails
|
||||
rails (~> 7.1)
|
||||
stimulus-rails
|
||||
turbo-rails
|
||||
msgpack (1.7.2)
|
||||
mutex_m (0.2.0)
|
||||
net-imap (0.4.11)
|
||||
|
@ -308,6 +313,7 @@ DEPENDENCIES
|
|||
debug
|
||||
importmap-rails
|
||||
jbuilder
|
||||
mission_control-jobs
|
||||
pg
|
||||
propshaft
|
||||
puma (>= 5.0)
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
<ul>
|
||||
<li><%= link_to t(".dashboard"), admin_index_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>
|
||||
</nav>
|
||||
<% end %>
|
||||
|
|
|
@ -10,7 +10,6 @@ Bundler.require(*Rails.groups)
|
|||
|
||||
module TabletopCompanion
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 7.1
|
||||
|
||||
# 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.
|
||||
config.autoload_lib(ignore: %w[assets tasks])
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
# in config/environments, which are processed later.
|
||||
#
|
||||
# config.time_zone = "Central Time (US & Canada)"
|
||||
# config.eager_load_paths << Rails.root.join("extras")
|
||||
config.time_zone = "London"
|
||||
|
||||
config.mission_control.jobs.base_controller_class = "AdminController"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,6 +13,7 @@ en:
|
|||
admin:
|
||||
dashboard: Dashboard
|
||||
game_systems: Game Systems
|
||||
jobs: Jobs
|
||||
application:
|
||||
tables: Tables
|
||||
mailer:
|
||||
|
|
|
@ -23,4 +23,5 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
get "up" => "rails/health#show", as: :rails_health_check
|
||||
mount MissionControl::Jobs::Engine, at: "/admin/jobs" if Rails.env.production?
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue