-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
25 changed files
with
2,858 additions
and
2,966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
*.sh | ||
node_modules | ||
*.md | ||
|
@@ -14,3 +13,4 @@ dist | |
/bin | ||
Dockerfile | ||
components.d.ts | ||
components.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ pnpm-debug.log* | |
*.sln | ||
*.sw? | ||
/components.d.ts | ||
/components.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,122 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh-cmn-Hans"> | ||
<html lang="zh-cmn-Hans" id="htmlRoot" data-theme="light"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="renderer" content="webkit"/> | ||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/> | ||
<meta content="webkit" name="renderer"/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" | ||
name="viewport" | ||
/> | ||
<link rel="icon" href="/favicon.ico"/> | ||
<link href="/favicon.ico" rel="icon"/> | ||
<title><%= title %></title> | ||
<style>.first-loading-wrp{display:flex;justify-content:center;align-items:center;flex-direction:column;min-height:420px;height:100%}.first-loading-wrp>h1{font-size:128px}.first-loading-wrp .loading-wrp{padding:98px;display:flex;justify-content:center;align-items:center}.dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:32px;width:32px;height:32px;box-sizing:border-box}.dot i{width:14px;height:14px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.dot i:nth-child(1){top:0;left:0}.dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style> | ||
</head> | ||
<body> | ||
<div id="appProvider" style="display: none"></div> | ||
<div id="app"> | ||
<div class="first-loading-wrp"> | ||
<div class="loading-wrp"> | ||
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span> | ||
<style> | ||
.first-loading-wrap { | ||
display: flex; | ||
width: 100%; | ||
height: 100vh; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.first-loading-wrap > h1 { | ||
font-size: 128px | ||
} | ||
|
||
.first-loading-wrap .loading-wrap { | ||
padding: 98px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center | ||
} | ||
|
||
.dot { | ||
animation: antRotate 1.2s infinite linear; | ||
transform: rotate(45deg); | ||
position: relative; | ||
display: inline-block; | ||
font-size: 32px; | ||
width: 32px; | ||
height: 32px; | ||
box-sizing: border-box | ||
} | ||
|
||
.dot i { | ||
width: 14px; | ||
height: 14px; | ||
position: absolute; | ||
display: block; | ||
background-color: #1890ff; | ||
border-radius: 100%; | ||
transform: scale(.75); | ||
transform-origin: 50% 50%; | ||
opacity: .3; | ||
animation: antSpinMove 1s infinite linear alternate | ||
} | ||
|
||
.dot i:nth-child(1) { | ||
top: 0; | ||
left: 0 | ||
} | ||
|
||
.dot i:nth-child(2) { | ||
top: 0; | ||
right: 0; | ||
-webkit-animation-delay: .4s; | ||
animation-delay: .4s | ||
} | ||
|
||
.dot i:nth-child(3) { | ||
right: 0; | ||
bottom: 0; | ||
-webkit-animation-delay: .8s; | ||
animation-delay: .8s | ||
} | ||
|
||
.dot i:nth-child(4) { | ||
bottom: 0; | ||
left: 0; | ||
-webkit-animation-delay: 1.2s; | ||
animation-delay: 1.2s | ||
} | ||
|
||
@keyframes antRotate { | ||
to { | ||
-webkit-transform: rotate(405deg); | ||
transform: rotate(405deg) | ||
} | ||
} | ||
|
||
@-webkit-keyframes antRotate { | ||
to { | ||
-webkit-transform: rotate(405deg); | ||
transform: rotate(405deg) | ||
} | ||
} | ||
|
||
@keyframes antSpinMove { | ||
to { | ||
opacity: 1 | ||
} | ||
} | ||
|
||
@-webkit-keyframes antSpinMove { | ||
to { | ||
opacity: 1 | ||
} | ||
}</style> | ||
<div class="first-loading-wrap"> | ||
<div class="loading-wrap"> | ||
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="module" src="/src/main.ts"></script> | ||
<script>var globalThis = window;</script> | ||
<script src="/src/main.ts" type="module"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,47 @@ | ||
export function checkStatus(status: number, msg: string, message: any): void { | ||
export function checkStatus(status: number, msg: string): void { | ||
const $message = window['$message']; | ||
switch (status) { | ||
case 400: | ||
message.error(`${msg}`); | ||
$message.error(msg); | ||
break; | ||
// 401: 未登录 | ||
// 未登录则跳转登录页面,并携带当前页面的路径 | ||
// 在登录成功后返回当前页面,这一步需要在登录页操作。 | ||
case 401: | ||
message.error('用户没有权限(令牌、用户名、密码错误)!'); | ||
$message.error('用户没有权限(令牌、用户名、密码错误)!'); | ||
break; | ||
case 403: | ||
message.error('用户得到授权,但是访问是被禁止的。!'); | ||
$message.error('用户得到授权,但是访问是被禁止的。!'); | ||
break; | ||
// 404请求不存在 | ||
case 404: | ||
message.error('网络请求错误,未找到该资源!'); | ||
$message.error('网络请求错误,未找到该资源!'); | ||
break; | ||
case 405: | ||
message.error('网络请求错误,请求方法未允许!'); | ||
$message.error('网络请求错误,请求方法未允许!'); | ||
break; | ||
case 408: | ||
message.error('网络请求超时!'); | ||
$message.error('网络请求超时'); | ||
break; | ||
case 500: | ||
message.error('服务器错误,请联系管理员!'); | ||
$message.error('服务器错误,请联系管理员!'); | ||
break; | ||
case 501: | ||
message.error('网络未实现!'); | ||
$message.error('网络未实现'); | ||
break; | ||
case 502: | ||
message.error('网络错误!'); | ||
$message.error('网络错误'); | ||
break; | ||
case 503: | ||
message.error('服务不可用,服务器暂时过载或维护!'); | ||
$message.error('服务不可用,服务器暂时过载或维护!'); | ||
break; | ||
case 504: | ||
message.error('网络超时!'); | ||
$message.error('网络超时'); | ||
break; | ||
case 505: | ||
message.error('http版本不支持该请求!'); | ||
$message.error('http版本不支持该请求!'); | ||
break; | ||
default: | ||
message.error(msg); | ||
$message.error(msg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters