good_job 3.12.5 → 3.12.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/app/controllers/good_job/frontends_controller.rb +45 -0
- data/app/{assets/good_job/modules → frontend/good_job}/application.js +4 -0
- data/app/frontend/good_job/vendor/chartjs/chart.min.js +19 -0
- data/app/frontend/good_job/vendor/rails_ujs.js +7 -0
- data/app/frontend/good_job/vendor/stimulus.js +2408 -0
- data/app/views/layouts/good_job/application.html.erb +8 -8
- data/config/routes.rb +3 -13
- data/lib/good_job/adapter.rb +9 -22
- data/lib/good_job/capsule.rb +83 -0
- data/lib/good_job/cli.rb +4 -10
- data/lib/good_job/version.rb +1 -1
- data/lib/good_job.rb +11 -14
- metadata +18 -16
- data/app/assets/good_job/vendor/chartjs/chart.min.js +0 -13
- data/app/assets/good_job/vendor/rails_ujs.js +0 -747
- data/app/controllers/good_job/assets_controller.rb +0 -47
- /data/app/{assets → frontend}/good_job/modules/charts.js +0 -0
- /data/app/{assets → frontend}/good_job/modules/checkbox_toggle.js +0 -0
- /data/app/{assets → frontend}/good_job/modules/document_ready.js +0 -0
- /data/app/{assets → frontend}/good_job/modules/live_poll.js +0 -0
- /data/app/{assets → frontend}/good_job/modules/popovers.js +0 -0
- /data/app/{assets → frontend}/good_job/modules/toasts.js +0 -0
- /data/app/{assets → frontend}/good_job/style.css +0 -0
- /data/app/{assets → frontend}/good_job/vendor/bootstrap/bootstrap.bundle.min.js +0 -0
- /data/app/{assets → frontend}/good_job/vendor/bootstrap/bootstrap.min.css +0 -0
- /data/app/{assets → frontend}/good_job/vendor/es_module_shims.js +0 -0
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module GoodJob
|
3
|
-
class AssetsController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
4
|
-
skip_before_action :verify_authenticity_token, raise: false
|
5
|
-
|
6
|
-
def self.js_modules
|
7
|
-
@_js_modules ||= GoodJob::Engine.root.join("app", "assets", "good_job", "modules").children.select(&:file?).each_with_object({}) do |file, modules|
|
8
|
-
key = File.basename(file.basename.to_s, ".js").to_sym
|
9
|
-
modules[key] = file
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
before_action do
|
14
|
-
expires_in 1.year, public: true
|
15
|
-
end
|
16
|
-
|
17
|
-
def es_module_shims_js
|
18
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "vendor", "es_module_shims.js")
|
19
|
-
end
|
20
|
-
|
21
|
-
def bootstrap_css
|
22
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "vendor", "bootstrap", "bootstrap.min.css")
|
23
|
-
end
|
24
|
-
|
25
|
-
def bootstrap_js
|
26
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "vendor", "bootstrap", "bootstrap.bundle.min.js")
|
27
|
-
end
|
28
|
-
|
29
|
-
def chartjs_js
|
30
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "vendor", "chartjs", "chart.min.js")
|
31
|
-
end
|
32
|
-
|
33
|
-
def rails_ujs_js
|
34
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "vendor", "rails_ujs.js")
|
35
|
-
end
|
36
|
-
|
37
|
-
def style_css
|
38
|
-
render file: GoodJob::Engine.root.join("app", "assets", "good_job", "style.css")
|
39
|
-
end
|
40
|
-
|
41
|
-
def modules_js
|
42
|
-
module_name = params[:module].to_sym
|
43
|
-
module_file = self.class.js_modules.fetch(module_name) { raise ActionController::RoutingError, 'Not Found' }
|
44
|
-
render file: module_file
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|