Skip to content

Commit

Permalink
perf: 防止网站被滥用
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobrine-ymf committed Mar 31, 2023
1 parent 7a6c48d commit d0e98ee
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 61 deletions.
116 changes: 58 additions & 58 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,82 @@
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link href="/favicon.svg" rel="icon" type="image/svg+xml">
<meta content="yes" name="apple-mobile-web-app-capable"/>
<link rel="apple-touch-icon" href="/favicon.ico">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
<title>ChatGPT Web</title>
<link href="/favicon.ico" rel="apple-touch-icon">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
name="viewport"/>
<title>HimyG​P​T</title>
</head>

<body class="dark:bg-black">
<div id="app">
<style>
.loading-wrap {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
<div id="app">
<style>
.loading-wrap {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.balls {
width: 4em;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
.balls {
width: 4em;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}

.balls div {
width: 0.8em;
height: 0.8em;
border-radius: 50%;
background-color: #4b9e5f;
}
.balls div {
width: 0.8em;
height: 0.8em;
border-radius: 50%;
background-color: #4b9e5f;
}

.balls div:nth-of-type(1) {
transform: translateX(-100%);
animation: left-swing 0.5s ease-in alternate infinite;
}
.balls div:nth-of-type(1) {
transform: translateX(-100%);
animation: left-swing 0.5s ease-in alternate infinite;
}

.balls div:nth-of-type(3) {
transform: translateX(-95%);
animation: right-swing 0.5s ease-out alternate infinite;
}
.balls div:nth-of-type(3) {
transform: translateX(-95%);
animation: right-swing 0.5s ease-out alternate infinite;
}

@keyframes left-swing {
@keyframes left-swing {

50%,
100% {
transform: translateX(95%);
}
50%,
100% {
transform: translateX(95%);
}
}

@keyframes right-swing {
50% {
transform: translateX(-95%);
}
@keyframes right-swing {
50% {
transform: translateX(-95%);
}

100% {
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
}

@media (prefers-color-scheme: dark) {
body {
background: #121212;
}
@media (prefers-color-scheme: dark) {
body {
background: #121212;
}
</style>
<div class="loading-wrap">
<div class="balls">
<div></div>
<div></div>
<div></div>
</div>
}
</style>
<div class="loading-wrap">
<div class="balls">
<div></div>
<div></div>
<div></div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</div>
<script src="/src/main.ts" type="module"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion src/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
success: 'Success',
failed: 'Failed',
verify: 'Verify',
unauthorizedTips: 'Unauthorized, please verify first.',
unauthorizedTips: 'Please enter the surname of the website author (lowercase English)',
},
chat: {
newChatButton: 'New Chat',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
success: '操作成功',
failed: '操作失败',
verify: '验证',
unauthorizedTips: '未经授权,请先进行验证。',
unauthorizedTips: '请输入网站作者的姓氏(英文小写)',
},
chat: {
newChatButton: '新建聊天',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
success: '操作成功',
failed: '操作失敗',
verify: '驗證',
unauthorizedTips: '未經授權,請先進行驗證。',
unauthorizedTips: '請輸入網站作者的姓氏(英文小寫)',
},
chat: {
newChatButton: '新建對話',
Expand Down

0 comments on commit d0e98ee

Please sign in to comment.