Compare commits

...

2 Commits

Author SHA1 Message Date
aeris ae0223186c Simplify routes 3 months ago
Norore 757de1e1e5 Darker theme 3 months ago
  1. 8
      app/javascript/css/application.scss
  2. 2
      app/views/site/index.html.erb
  3. 2
      app/views/site/suite_index.html.erb
  4. 2
      app/views/ssh/index.html.erb
  5. 2
      app/views/tls/index.html.erb
  6. 31
      config/routes.rb

8
app/javascript/css/application.scss

@ -1,5 +1,13 @@
//@import "~bootstrap/scss/bootstrap";
$dark: #3f4853;
$link-color: #135262;
$nav-pills-link-active-bg: #535d6c;
$body-color: $dark;
$body-bg: #fafafa;
$input-border-color: $dark;
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";

2
app/views/site/index.html.erb

@ -11,7 +11,7 @@
</div>
<div class="col-auto input-group-lg">
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-primary] %>
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-dark] %>
</div>
</div>
<% end %>

2
app/views/site/suite_index.html.erb

@ -7,7 +7,7 @@
</div>
<div class="col-auto input-group-lg">
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-primary] %>
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-dark] %>
</div>
</div>
<% end %>

2
app/views/ssh/index.html.erb

@ -14,7 +14,7 @@
</div>
<div class="col-auto input-group-lg">
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-primary] %>
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-dark] %>
</div>
</div>
<% end %>

2
app/views/tls/index.html.erb

@ -13,7 +13,7 @@
</div>
<div class="col-auto input-group-lg">
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-primary] %>
<%= submit_tag t('Test me!'), class: %i[btn btn-outline-dark] %>
</div>
</div>
<% end %>

31
config/routes.rb

@ -1,29 +1,10 @@
Rails.application.routes.draw do
namespace :https, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :smtp, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :xmpp, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :tls, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :ssh, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
%i[https smtp xmpp tls ssh].each do |type|
namespace type, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
end
get 'help' => 'site#help'

Loading…
Cancel
Save