1
0
forked from bot/app
LiteyukiBot/liteyuki/resources/templates/stats.html

128 lines
2.7 KiB
HTML
Raw Normal View History

2024-03-30 06:04:17 +08:00
<!DOCTYPE html>
2024-04-05 07:02:18 +08:00
<html lang="zh-CN">
2024-03-30 06:04:17 +08:00
<head>
<meta charset="UTF-8">
2024-04-05 07:02:18 +08:00
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Liteyuki Stats</title>
2024-03-31 06:22:53 +08:00
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/style.css">
2024-03-31 06:22:53 +08:00
<style>
2024-04-05 07:02:18 +08:00
.pie-chart {
2024-04-03 01:03:25 +08:00
height: 240px;
width: 240px;
margin-bottom: 20px;
}
2024-04-05 07:02:18 +08:00
.pie-info {
2024-04-03 01:03:25 +08:00
margin: 0 40px;
align-items: center;
2024-03-31 06:22:53 +08:00
}
2024-04-05 07:02:18 +08:00
.bot-info {
2024-03-31 06:22:53 +08:00
align-items: center;
2024-04-05 07:02:18 +08:00
display: flex;
2024-03-31 06:22:53 +08:00
}
#hardware-info {
justify-content: center;
text-align: center;
2024-04-05 07:02:18 +08:00
display: flex;
2024-03-31 06:22:53 +08:00
}
2024-04-05 07:02:18 +08:00
#disks-info {
flex-wrap: wrap;
justify-content: center;
2024-04-05 08:48:51 +08:00
}
#motto-info {
2024-04-05 07:02:18 +08:00
margin-bottom: 0;
2024-04-05 08:48:51 +08:00
text-align: center;
white-space: pre-wrap;
2024-04-05 07:02:18 +08:00
}
.bot-icon {
2024-03-31 06:22:53 +08:00
border-radius: 50%;
2024-04-03 01:03:25 +08:00
height: 200px;
2024-04-05 07:02:18 +08:00
background-color: white;
2024-03-31 06:22:53 +08:00
}
2024-04-05 07:02:18 +08:00
.bot-name, .bot-tag {
2024-03-31 06:22:53 +08:00
margin-left: 20px;
}
2024-04-05 07:02:18 +08:00
.bot-name {
2024-04-03 01:03:25 +08:00
font-size: 42px;
2024-03-31 06:22:53 +08:00
font-weight: bold;
}
2024-04-05 07:02:18 +08:00
.bot-tag {
2024-03-31 06:22:53 +08:00
margin-top: 10px;
}
.chart-label {
2024-04-05 09:32:55 +08:00
font-size: 24px;
2024-04-03 01:03:25 +08:00
max-width: 240px;
2024-03-31 06:22:53 +08:00
}
.tag {
2024-04-05 07:02:18 +08:00
font-size: 32px;
2024-04-05 07:14:35 +08:00
font-weight: 700;
font-style: italic;
2024-03-31 06:22:53 +08:00
}
2024-04-05 07:02:18 +08:00
.tag[suffix="1"]::after {
content: " | ";
2024-03-31 06:22:53 +08:00
display: inline-block;
margin: 0 5px;
2024-04-02 08:51:34 +08:00
height: 50%;
line-height: 50%;
2024-04-05 07:02:18 +08:00
color: #ccc;
2024-03-31 06:22:53 +08:00
}
2024-04-05 08:48:51 +08:00
.motto-text {
font-size: 36px;
color: #fff;
}
.motto-author {
font-size: 30px;
font-style: italic;
color: #ccc;
}
2024-03-31 06:22:53 +08:00
</style>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.3.0/echarts.min.js"></script>
2024-04-05 08:48:51 +08:00
2024-03-30 06:04:17 +08:00
</head>
<body>
2024-03-31 06:22:53 +08:00
2024-04-05 08:48:51 +08:00
2024-03-31 06:22:53 +08:00
<div class="info-box" id="hardware-info">
2024-04-05 07:02:18 +08:00
<div class="pie-info" id="cpu-info">
<div class="pie-chart" id="cpu-chart"></div>
2024-03-31 06:22:53 +08:00
</div>
2024-04-05 07:02:18 +08:00
<div class="pie-info" id="mem-info">
<div class="pie-chart" id="mem-chart"></div>
2024-03-31 06:22:53 +08:00
</div>
2024-04-05 07:02:18 +08:00
<div class="pie-info" id="swap-info">
<div class="pie-chart" id="swap-chart"></div>
2024-03-31 06:22:53 +08:00
</div>
2024-03-30 06:04:17 +08:00
</div>
2024-03-31 06:22:53 +08:00
2024-04-05 07:02:18 +08:00
<div class="info-box" id="disks-info">
</div>
2024-03-31 06:22:53 +08:00
2024-04-05 08:48:51 +08:00
<div class="info-box" id="motto-info">
</div>
2024-04-05 07:02:18 +08:00
<!--储存数据div不显示-->
<div id="data" style="display: none">{{ data | tojson }}</div>
<script src="js/bg.js"></script>
2024-04-05 08:48:51 +08:00
<script src="js/motto.js"></script>
<script src="js/style.js"></script>
2024-03-31 06:22:53 +08:00
</body>
</html>