lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-0.8.0 vs lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-0.9.0

- old
+ new

@@ -5,12 +5,12 @@ <% if endpoint.description %> <p><%= endpoint.description.render_markdown %></p> <% end %> <div class="Vlt-badge-combined"> - <code class="Vlt-badge Vlt-badge--large Nxd-method-badge Nxd-method-badge--<%= endpoint.method %>"><%= endpoint.method.upcase %></code> - <code class="Vlt-badge Vlt-badge--large Vlt-badge--grey"> + <code class="Vlt-badge Vlt-white Vlt-badge--large Nxd-method-badge Nxd-method-badge--<%= endpoint.method %>"><%= endpoint.method.upcase %></code> + <code class="Vlt-badge Vlt-badge--large Vlt-bg-grey-lighter Vlt-black"> <% servers = endpoint.path.servers ? endpoint.path.servers : endpoint.definition.servers %> <% raise "`servers` parameter not provided at either the path level or document root" unless servers.size.positive? %> <span><%= servers[0]['url'] %></span><%= endpoint.path.path.gsub(/\{(.+?)\}/, '<span class="api-path-parameter">:\1</span>') %> </code> </div> @@ -22,11 +22,11 @@ <p>This API supports both JWT and Basic authentication. Basic authentication is easier to get started with, but does not support advanced features such as ACLs.</p> <p>You can use <em>either</em> JWT or Basic authentication, but not both at the same time.</p> <% end %> - <div class="Vlt-table Vlt-table--data Vlt-table--bordered"> + <div class="Vlt-table Vlt-table--bordered"> <table> <thead> <tr> <th>Key</th> <th>Description</th> @@ -105,11 +105,11 @@ %> <div class="Vlt-accordion"> <button tabindex="0" class="Vlt-accordion__trigger <%= expand_response ? 'Vlt-accordion__trigger_active' : '' %>"> <h5 class="Vlt-title--nomargin">HTTP response - <span class="Vlt-badge Vlt-badge--<%= response.code[0] == '2' ? 'green' : response.code[0] == '3' ? 'yellow' : 'red' %>"><%= response.code %></span> + <span class="Vlt-badge Vlt-badge--<%= response.code[0] == '2' ? 'green' : response.code[0] == '3' ? 'yellow' : 'red' %> Vlt-badge--small"><%= response.code %></span> </h5> </button> <div class="Vlt-accordion__content <%= expand_response ? 'Vlt-accordion__content_open' : '' %>"> <% response.formats.each_with_index do |format, index| %> @@ -123,10 +123,10 @@ </div> <% end %> <% if response.code == '204' || response.formats.empty? %> <% content = response.description ? response.description : 'No content' %> - <pre class="highlight"><code><%= content %></code></pre> + <pre class="Vlt-prism--dark language-json Vlt-prism--copy-disabled"><code><%= content %></code></pre> <% end %> </div> </div> <% end %> </div>