Adding React.js, Redux, revamping dashboard
This commit is contained in:
@ -28,12 +28,14 @@ module Mastodon
|
||||
config.active_job.queue_adapter = :sidekiq
|
||||
|
||||
config.to_prepare do
|
||||
Doorkeeper::ApplicationsController.layout 'dashboard'
|
||||
Doorkeeper::AuthorizedApplicationsController.layout 'dashboard'
|
||||
# Doorkeeper::ApplicationsController.layout 'dashboard'
|
||||
# Doorkeeper::AuthorizedApplicationsController.layout 'dashboard'
|
||||
Doorkeeper::AuthorizationsController.layout 'auth'
|
||||
end
|
||||
|
||||
config.middleware.use Rack::Attack
|
||||
config.middleware.use Rack::Deflater
|
||||
|
||||
config.browserify_rails.commandline_options = "--transform [ babelify --presets [ es2015 react ] ] --extension=\".jsx\""
|
||||
end
|
||||
end
|
||||
|
@ -63,6 +63,8 @@ Rails.application.configure do
|
||||
Bullet.bullet_logger = true
|
||||
Bullet.rails_logger = true
|
||||
end
|
||||
|
||||
config.react.variant = :development
|
||||
end
|
||||
|
||||
require 'sidekiq/testing'
|
||||
|
@ -80,4 +80,6 @@ Rails.application.configure do
|
||||
}
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
|
||||
config.react.variant = :production
|
||||
end
|
||||
|
Reference in New Issue
Block a user