15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/appmap/open.rb', line 15
def page
require 'rack/utils'
<<~PAGE
<!DOCTYPE html>
<html>
<head>
<title>…</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function dosubmit() { document.forms[0].submit(); }
</script>
</head>
<body onload="dosubmit();">
<form action="https://app.land/scenario_uploads" method="POST" accept-charset="utf-8">
<input type="hidden" name="data" value='#{Rack::Utils.escape_html appmap.to_json}'>
</form>
</body>
</html>
PAGE
end
|