diff --git a/.gitignore b/.gitignore index 6bc4d3d..8bfce63 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ **/*/log **/*/*.gem **/*/*.sqlite3 +**/*/public/assets diff --git a/Gemfile b/Gemfile index 30e097a..7ddbf3d 100644 --- a/Gemfile +++ b/Gemfile @@ -27,3 +27,8 @@ group :test do gem 'generator_spec' gem 'rswag-specs', path: './rswag-specs' end + +group :assets do + gem 'uglifier' + gem 'therubyracer' +end diff --git a/Gemfile.lock b/Gemfile.lock index 63b8f7b..7891f13 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,6 +53,7 @@ GEM builder (3.0.4) diff-lcs (1.2.5) erubis (2.7.0) + execjs (2.7.0) generator_spec (0.9.3) activesupport (>= 3.0.0) railties (>= 3.0.0) @@ -62,6 +63,7 @@ GEM json (1.8.3) json-schema (2.7.0) addressable (>= 2.4) + libv8 (3.16.14.15) mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) @@ -94,6 +96,7 @@ GEM rake (11.3.0) rdoc (3.12.2) json (~> 1.4) + ref (2.0.0) rspec-core (3.5.4) rspec-support (~> 3.5.0) rspec-expectations (3.5.0) @@ -124,12 +127,17 @@ GEM railties (~> 3.0) test-unit (3.2.1) power_assert + therubyracer (0.12.2) + libv8 (~> 3.16.14.0) + ref thor (0.19.1) tilt (1.4.1) treetop (1.4.15) polyglot polyglot (>= 0.3.1) tzinfo (0.3.51) + uglifier (3.0.2) + execjs (>= 0.3.0, < 3) PLATFORMS ruby @@ -144,3 +152,5 @@ DEPENDENCIES sqlite3 strong_parameters test-unit + therubyracer + uglifier diff --git a/rswag-ui/app/views/rswag/ui/home/index.html.erb b/rswag-ui/app/views/rswag/ui/home/index.html.erb index d829bb2..6e1f943 100644 --- a/rswag-ui/app/views/rswag/ui/home/index.html.erb +++ b/rswag-ui/app/views/rswag/ui/home/index.html.erb @@ -3,33 +3,33 @@ Swagger UI - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + + +