Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
38a1d669
Commit
38a1d669
authored
1 year ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
🎨
parent
d2eec3a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/backend/src/server/web/boot.js
+35
-35
35 additions, 35 deletions
packages/backend/src/server/web/boot.js
with
35 additions
and
35 deletions
packages/backend/src/server/web/boot.js
+
35
−
35
View file @
38a1d669
...
...
@@ -160,37 +160,41 @@
<path d="M12 9v2m0 4v.01"></path>
<path d="M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"></path>
</svg>
<h1>
An error has occurred!
</h1>
<button class="button-big" onclick="location.reload();">
<span class="button-label-big">Re
fresh
</span>
<h1>
Failed to load<br>読み込みに失敗しました
</h1>
<button class="button-big" onclick="location.reload(
true
);">
<span class="button-label-big">Re
load / リロード
</span>
</button>
<p class="dont-worry">Don't worry, it's (probably) not your fault.</p>
<p>If the problem persists after refreshing, please contact your instance's administrator.<br>You may also try the following options:</p>
<p>Update your os and browser.</p>
<p>Disable an adblocker.</p>
<a href="/flush">
<button class="button-small">
<span class="button-label-small">Clear preferences and cache</span>
</button>
</a>
<br>
<a href="/cli">
<button class="button-small">
<span class="button-label-small">Start the simple client</span>
</button>
</a>
<br>
<a href="/bios">
<button class="button-small">
<span class="button-label-small">Start the repair tool</span>
</button>
</a>
<p><b>The following actions may solve the problem. / 以下を行うと解決する可能性があります。</b></p>
<p>Clear the browser cache / ブラウザのキャッシュをクリアする</p>
<p>Update your os and browser / ブラウザおよびOSを最新バージョンに更新する</p>
<p>Disable an adblocker / アドブロッカーを無効にする</p>
<details style="color: #86b300;">
<summary>Other options / その他のオプション</summary>
<a href="/flush">
<button class="button-small">
<span class="button-label-small">Clear preferences and cache</span>
</button>
</a>
<br>
<a href="/cli">
<button class="button-small">
<span class="button-label-small">Start the simple client</span>
</button>
</a>
<br>
<a href="/bios">
<button class="button-small">
<span class="button-label-small">Start the repair tool</span>
</button>
</a>
</details>
<br>
<div id="errors"></div>
`
;
errorsElement
=
document
.
getElementById
(
'
errors
'
);
}
const
detailsElement
=
document
.
createElement
(
'
details
'
);
detailsElement
.
id
=
'
errorInfo
'
;
detailsElement
.
innerHTML
=
`
<br>
<summary>
...
...
@@ -247,7 +251,7 @@
.button-label-big {
color: #222;
font-weight: bold;
font-size:
20px
;
font-size:
1.2em
;
padding: 12px;
}
...
...
@@ -267,11 +271,6 @@
font-size: 16px;
}
.dont-worry,
#msg {
font-size: 18px;
}
.icon-warning {
color: #dec340;
height: 4rem;
...
...
@@ -279,14 +278,15 @@
}
h1 {
font-size: 32px;
font-size: 1.5em;
margin: 1em;
}
code {
font-family: Fira, FiraCode, monospace;
}
details
{
#errorInfo
{
background: #333;
margin-bottom: 2rem;
padding: 0.5rem 1rem;
...
...
@@ -296,16 +296,16 @@
margin: auto;
}
summary {
#errorInfo
summary {
cursor: pointer;
}
summary > * {
#errorInfo
summary > * {
display: inline;
}
@media screen and (max-width: 500px) {
details
{
#errorInfo
{
width: 50%;
}
`
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment