LiteyukiBot-TriM/liteyuki/resources/templates/stats.html

129 lines
2.7 KiB
HTML
Raw Normal View History

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