diff options
| author | kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-04-12 12:52:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 12:52:14 +0900 |
| commit | 49749b46c4c8914947e0950069bcf4431f157c4f (patch) | |
| tree | 6af5d7439b5fc17772b02d1bdc5566b4789fe615 /packages/backend/src/server/web/views | |
| parent | feat: role timeline (diff) | |
| download | misskey-49749b46c4c8914947e0950069bcf4431f157c4f.tar.gz misskey-49749b46c4c8914947e0950069bcf4431f157c4f.tar.bz2 misskey-49749b46c4c8914947e0950069bcf4431f157c4f.zip | |
feat(server): Misskey Webでユーザーフレンドリーなエラーページを出す (#10590)
* (add) user-friendly error page
* Update CHANGELOG.md
* (add) cache-control header
* Add ClientLoggerService
* Log params and query
* remove error stack on client
* fix pug
* 文面を調整
* :art]
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Diffstat (limited to 'packages/backend/src/server/web/views')
| -rw-r--r-- | packages/backend/src/server/web/views/error.pug | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/packages/backend/src/server/web/views/error.pug b/packages/backend/src/server/web/views/error.pug new file mode 100644 index 0000000000..b177ae4110 --- /dev/null +++ b/packages/backend/src/server/web/views/error.pug @@ -0,0 +1,65 @@ +doctype html + +// + - + _____ _ _ + | |_|___ ___| |_ ___ _ _ + | | | | |_ -|_ -| '_| -_| | | + |_|_|_|_|___|___|_,_|___|_ | + |___| + Thank you for using Misskey! + If you are reading this message... how about joining the development? + https://github.com/misskey-dev/misskey + + +html + + head + meta(charset='utf-8') + meta(name='viewport' content='width=device-width, initial-scale=1') + meta(name='application-name' content='Misskey') + meta(name='referrer' content='origin') + + title + block title + = 'An error has occurred... | Misskey' + + style + include ../error.css + +body + svg.icon-warning(xmlns="http://www.w3.org/2000/svg", viewBox="0 0 24 24", stroke-width="2", stroke="currentColor", fill="none", stroke-linecap="round", stroke-linejoin="round") + path(stroke="none", d="M0 0h24v24H0z", fill="none") + path(d="M12 9v2m0 4v.01") + 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") + + h1 An error has occurred! + + button.button-big(onclick="location.reload();") + span.button-label-big Refresh + + p.dont-worry Don't worry, it's (probably) not your fault. + + p If reloading after a period of time does not resolve the problem, contact the server administrator with the following ERROR ID. + + div#errors + code. + ERROR CODE: #{code} + ERROR ID: #{id} + + p You may also try the following options: + + p Update your os and browser. + p Disable an adblocker. + + a(href="/flush") + button.button-small + span.button-label-small Clear preferences and cache + br + a(href="/cli") + button.button-small + span.button-label-small Start the simple client + br + a(href="/bios") + button.button-small + span.button-label-small Start the repair tool |