mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
fix crash page
This commit is contained in:
parent
2d3a5c739c
commit
f7f3530a33
3
Makefile
3
Makefile
@ -60,7 +60,8 @@ else
|
|||||||
SOURCEMAP :=
|
SOURCEMAP :=
|
||||||
COPYTS :=
|
COPYTS :=
|
||||||
TYPECHECK :=
|
TYPECHECK :=
|
||||||
UNCSS := npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css
|
UNCSS := npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/bundle.css --content "html/crash.html"
|
||||||
|
# UNCSS := npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css
|
||||||
TAILWIND :=
|
TAILWIND :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -433,6 +433,7 @@ pre {
|
|||||||
white-space: -o-pre-wrap; /* Opera 7 */
|
white-space: -o-pre-wrap; /* Opera 7 */
|
||||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||||
background-color: var(--color-content-high) !important;
|
background-color: var(--color-content-high) !important;
|
||||||
|
overflow-x: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.circle {
|
.circle {
|
||||||
|
@ -7,41 +7,37 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div class="row">
|
<div class="card ~critical sectioned">
|
||||||
<div class="col">
|
<section class="section ~critical">
|
||||||
<div class="card ~critical sectioned">
|
<span class="heading">Crash report for jfa-go</span>
|
||||||
<section class="section ~critical">
|
{{ if .Err }}
|
||||||
<span class="heading">Crash report for jfa-go</span>
|
<div class="monospace pre-line mt-4 mb-4">
|
||||||
{{ if .Err }}
|
Error: {{ .Err }}
|
||||||
<div class="monospace pre-line mt-4 mb-4">
|
|
||||||
Error: {{ .Err }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
<a class="button ~critical mb-4" target="_blank" href="https://github.com/hrfee/jfa-go/issues/new/choose">Create an Issue</a>
|
|
||||||
</section>
|
|
||||||
<section class="section ~neutral @low">
|
|
||||||
<div class="flex-expand">
|
|
||||||
<span class="subheading">Full Log</span>
|
|
||||||
<span class="button ~urge ml-4" id="copy-log">Copy</span>
|
|
||||||
</div>
|
|
||||||
<div class="row mb-4">
|
|
||||||
<label class="col mr-4">
|
|
||||||
<span class="button ~neutral @high supra full-width center" id="button-log-normal">Normal</span>
|
|
||||||
</label>
|
|
||||||
<label class="col mr-4">
|
|
||||||
<span class="button ~neutral @low supra full-width center" id="button-log-sanitized">Sanitized</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div id="log-normal">
|
|
||||||
<pre class="monospace pre-line">{{ .Log }}</pre>
|
|
||||||
</div>
|
|
||||||
<div id="log-sanitized" class="unfocused">
|
|
||||||
<p class="subheading">An attempt has been made to remove sensitive info, but make sure to check yourself.</p>
|
|
||||||
<pre class="monospace pre-line">{{ .SanitizedLog }}</pre>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{ end }}
|
||||||
|
<a class="button ~critical mb-4" target="_blank" href="https://github.com/hrfee/jfa-go/issues/new/choose">Create an Issue</a>
|
||||||
|
</section>
|
||||||
|
<section class="section ~neutral @low">
|
||||||
|
<div class="flex-expand">
|
||||||
|
<span class="subheading">Full Log</span>
|
||||||
|
<span class="button ~urge ml-4" id="copy-log">Copy</span>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<label class="col mr-4">
|
||||||
|
<span class="button ~neutral @high supra full-width center" id="button-log-normal">Normal</span>
|
||||||
|
</label>
|
||||||
|
<label class="col mr-4">
|
||||||
|
<span class="button ~neutral @low supra full-width center" id="button-log-sanitized">Sanitized</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div id="log-normal">
|
||||||
|
<pre class="monospace pre-line">{{ .Log }}</pre>
|
||||||
|
</div>
|
||||||
|
<div id="log-sanitized" class="unfocused">
|
||||||
|
<p class="subheading">An attempt has been made to remove sensitive info, but make sure to check yourself.</p>
|
||||||
|
<pre class="monospace pre-line">{{ .SanitizedLog }}</pre>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script inline src="crash.js"></script>
|
<script inline src="crash.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user