0
0
Fork 0

Localizations for most server-side strings

This commit is contained in:
Eugen Rochko 2016-11-15 23:56:03 +01:00
parent 3ce6ac0ce2
commit 546c4718e7
33 changed files with 296 additions and 220 deletions

View file

@ -31,16 +31,16 @@ module Mastodon
allow do
origins '*'
resource '/api/*', :headers => :any, :methods => [:post, :put, :delete, :get, :options], credentials: false
resource '/oauth/token', :headers => :any, :methods => [:post], credentials: false
resource '/api/*', headers: :any, methods: [:post, :put, :delete, :get, :options], credentials: false
resource '/oauth/token', headers: :any, methods: [:post], credentials: false
end
end
config.middleware.use Rack::Attack
config.middleware.use Rack::Deflater
config.browserify_rails.source_map_environments += %w[development production]
config.browserify_rails.commandline_options = "--transform [ babelify --presets [ es2015 react ] ] --extension=\".jsx\""
config.browserify_rails.source_map_environments += %w(development production)
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"'
config.to_prepare do
Doorkeeper::AuthorizationsController.layout 'auth'
@ -50,7 +50,7 @@ module Mastodon
'Server' => 'Mastodon',
'X-Frame-Options' => 'DENY',
'X-Content-Type-Options' => 'nosniff',
'X-XSS-Protection' => '1; mode=block'
'X-XSS-Protection' => '1; mode=block',
}
end
end