inferno_core 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d44d2d4f0afb51b463a128ce7725183159791fe21464c2fa28b10b3b919c37ab
4
- data.tar.gz: b62acf63e2bb524bcb22048e4e4d5b433a727c6a7a8201ae8161237fc4dbcfb3
3
+ metadata.gz: 884936b347ee4892198605b7ae408f3889e74bed0a4e33b6ec2a5ee7ed3adcd9
4
+ data.tar.gz: b0e30f11313a6a5b690e96a08fdb083ba9d85b94b512ec105fce75631802f0cb
5
5
  SHA512:
6
- metadata.gz: 7658c22a6d5595f39a36589a853992420b31717c6002ce0262eabcfcabe4def7c97de8f8fa5a52ad785a7e4c6b25fb471282584bdbfde266ed6388ee8dfc7b8b
7
- data.tar.gz: 9972288e75af701edc3f70457835384f6f51ad5e64d14bfaf4b5ec0855786ca51455e79067de007f44964bbecfc9b84b1a862b6468a72464026152c41acb5536
6
+ metadata.gz: 13b145c224d9b762b2ae8019048d6775dea2bd0ce47abcb3450959e3148224a523914eaf06b480a25d1a065c449e32b9c64ed83056118b611e8be2c4d9640755
7
+ data.tar.gz: 78a7bd5437739a2e1e7384dc500d46a99c8795f03638023839fdf4c24131fcc9a6ba8ca1ec507cd0b0bd559d8c9741e07ce2c6e3b04954b72bf6ba4ce7158805
@@ -29,6 +29,11 @@
29
29
  Learn how to configure a non-root public URL by running `npm run build`.
30
30
  -->
31
31
  <style>
32
+ @media print {
33
+ .no-print {
34
+ display: none;
35
+ }
36
+ }
32
37
  .wrapper {
33
38
  height: 100%;
34
39
  display: flex;
@@ -49,7 +54,7 @@
49
54
  <noscript>You need to enable JavaScript to run this app.</noscript>
50
55
  <div class='wrapper'>
51
56
  <% if File.exist? (File.join(Dir.pwd, 'config', 'banner.html.erb')) %>
52
- <div class='banner'><%= ERB.new(File.read(File.join(Dir.pwd, 'config', 'banner.html.erb'))).result %></div>
57
+ <div class='banner no-print'><%= ERB.new(File.read(File.join(Dir.pwd, 'config', 'banner.html.erb'))).result %></div>
53
58
  <% end %>
54
59
  <div class='app' id="root"></div>
55
60
  </div>
@@ -36,8 +36,10 @@ module Inferno
36
36
  get '/version', to: ->(_env) { [200, {}, [{ 'version' => Inferno::VERSION.to_s }.to_json]] }, as: :api_version
37
37
  end
38
38
 
39
- get '/', to: ->(_env) { [200, {}, [client_page]] }
40
- get '/test_sessions/:id', to: ->(_env) { [200, {}, [client_page]] }
39
+ # Should not need Content-Type header but GitHub Codespaces will not work without them.
40
+ # This could be investigated and likely removed if addressed properly elsewhere.
41
+ get '/', to: ->(_env) { [200, { 'Content-Type' => 'text/html' }, [client_page]] }
42
+ get '/test_sessions/:id', to: ->(_env) { [200, { 'Content-Type' => 'text/html' }, [client_page]] }
41
43
 
42
44
  Inferno.routes.each do |route|
43
45
  cleaned_id = route[:suite].id.gsub(/[^a-zA-Z\d\-._~]/, '_')