Adding React.js, Redux, revamping dashboard

This commit is contained in:
Eugen Rochko 2016-08-24 17:56:44 +02:00
parent 68c93f8b85
commit 49520d6e62
34 changed files with 297 additions and 75 deletions

View file

@ -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

View file

@ -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'

View file

@ -80,4 +80,6 @@ Rails.application.configure do
}
config.action_mailer.delivery_method = :smtp
config.react.variant = :production
end