新增.gitignore和.cursorindexingignore文件,更新config.py以包含Flask配置和日志设置,完善README文档,添加LICENSE文件,优化main.py中的数据库导入和日志记录,更新requirements.txt以反映依赖项变更,改进admin.html的样式和结构,确保项目结构清晰且符合开源标准。
This commit is contained in:
@ -99,23 +99,35 @@
|
||||
}
|
||||
/* Style for charts container */
|
||||
#statistics .card {
|
||||
background-color: #ffffff;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
background-color: var(--content-bg);
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--card-shadow);
|
||||
color: var(--text-color);
|
||||
margin-bottom: 30px;
|
||||
overflow: hidden; /* Prevent content overflow issues */
|
||||
}
|
||||
#statistics .card-body {
|
||||
padding: 25px;
|
||||
}
|
||||
#statistics .card-title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: #343a40;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
padding: 30px;
|
||||
}
|
||||
#statistics .card-title {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
color: #343a40;
|
||||
margin-bottom: 25px;
|
||||
text-align: left; /* Align title left */
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
/* Improve chart responsiveness */
|
||||
.chart-container {
|
||||
position: relative;
|
||||
height: 350px; /* Explicit height for container */
|
||||
width: 100%;
|
||||
}
|
||||
#accessChart, #storageChart {
|
||||
/* Removed max-height, use container height */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -268,8 +280,10 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">外链访问趋势</h5>
|
||||
<canvas id="accessChart"></canvas>
|
||||
<h5 class="card-title">外链访问趋势 (示例)</h5>
|
||||
<div class="chart-container">
|
||||
<canvas id="accessChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -277,7 +291,9 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">网盘使用分布</h5>
|
||||
<canvas id="storageChart"></canvas>
|
||||
<div class="chart-container">
|
||||
<canvas id="storageChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user