Smaller log text + transform date

This commit is contained in:
Parker M. 2024-11-16 00:28:25 -06:00
parent 4d69b23c90
commit 76b9da8bd3
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E
2 changed files with 11 additions and 2 deletions

View File

@ -175,7 +175,7 @@ function Dashboard() {
{logs.filter((log) => log.link === link.link).length || 0}
</td>
<td>{link.redirect_link}</td>
<td>{link.expire_date}</td>
<td>{new Date(link.expire_date).toLocaleDateString()}</td>
</tr>
{/* Conditionally render logs for this link */}
@ -199,7 +199,15 @@ function Dashboard() {
.map((log, index, filteredLogs) => (
<tr key={log.id}>
<td>{filteredLogs.length - index}</td>
<td>{log.timestamp}</td>
<td>
{new Date(
log.timestamp
).toLocaleTimeString() +
', ' +
new Date(
log.timestamp
).toLocaleDateString()}
</td>
<td>{log.ip}</td>
<td>{log.location}</td>
<td>{log.isp}</td>

View File

@ -87,6 +87,7 @@ table td {
.logTableRow table td {
background-color: #3b4148;
padding: 10px;
font-size: 17px;
}
.logTableRow table tr {