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 +4 -4
- data/lib/inferno/apps/web/index.html.erb +6 -1
- data/lib/inferno/apps/web/router.rb +4 -2
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884936b347ee4892198605b7ae408f3889e74bed0a4e33b6ec2a5ee7ed3adcd9
|
4
|
+
data.tar.gz: b0e30f11313a6a5b690e96a08fdb083ba9d85b94b512ec105fce75631802f0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
40
|
-
|
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\-._~]/, '_')
|