Adding React.js, Redux, revamping dashboard
This commit is contained in:
parent
68c93f8b85
commit
49520d6e62
34 changed files with 297 additions and 75 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue