PixivFEからいくつか輸入しました

リクエストリミッターを構成可能にする
マニュアルページを更新する
エラーページを改善する
GoFiber v2.52.0 へのアップデート

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/mai/trunk@70 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
yakumo.izuru
2024-02-12 02:42:11 +00:00
parent 8c4aa6ca94
commit 82044b1469
9 changed files with 141 additions and 72 deletions

View File

@@ -1,21 +0,0 @@
<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
<title>Too many requests</title>
</head>
<body>
<table border="1" align="center">
<thead>
<img src="/static/displeased_mai.png">
</thead>
<tbody>
<p>You have triggered a 429 error</p>
<p>Try again later</p>
</tbody>
<tfoot>
<i><a href="https://deviantart.com/view/1017571065">[image source]</a></i>
</tfoot>
</table>
</body>
</html>

48
views/pages/error.html Normal file
View File

@@ -0,0 +1,48 @@
<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body {
background-color: #282c37;
color: rgb(234, 136, 50);
text-align: center;
}
a {
color: rgb(34, 36, 42);
}
p {
color: rgb(221, 209, 203);
}
img {
height: 640px;
width: 480px;
}
</style>
<title>Mai | Error</title>
</head>
<body>
<table border="1">
<thead>
<img src="/static/displeased_mai.png">
</thead>
<tbody>
<h2>Error</h2>
<p>
Something has happened and these may be the following causes:
</p>
<p>
<ol>
<li>You might have reached the rate limit</li>
<li>There was an internal server error</li>
<li>Any other client error such as a 404 Not Found</li>
</ol>
</p>
</tbody>
<tfoot>
<p>
<a href="https://deviantart.com/view/1017571065">[image source]</a>
</p>
</tfoot>
</table>
</body>
</html>