1 parent
c28b221325
commit
7bd500b1d2
2 files changed
+9
-9
No files matched your search
@@ -87,7 +87,7 @@ export default function AssetHeatMap() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4 w-full">
|
<div className="py-4 w-full">
|
||||||
<h2 className="text-xl font-bold mb-4">Past Year</h2>
|
<h2 className="text-xl font-bold mb-4">Past Year</h2>
|
||||||
{loading ? (
|
{loading ? (
|
||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
@@ -100,7 +100,7 @@ export default function AssetHeatMap() {
|
|||||||
<th
|
<th
|
||||||
key={index}
|
key={index}
|
||||||
className="text-center"
|
className="text-center"
|
||||||
colSpan={weeks}
|
colSpan={weeks || 4}
|
||||||
>
|
>
|
||||||
{months[index]}
|
{months[index]}
|
||||||
</th>
|
</th>
|
||||||
@@ -113,22 +113,22 @@ export default function AssetHeatMap() {
|
|||||||
{heatMapData.map((column, colIndex) => (
|
{heatMapData.map((column, colIndex) => (
|
||||||
<td
|
<td
|
||||||
key={colIndex}
|
key={colIndex}
|
||||||
className={`h-6 ${getColor(column[rowIndex]?.count ?? -1)} rounded-lg`}
|
className={`h-[20px] w-[20px] ${getColor(column[rowIndex]?.count ?? -1)} rounded`}
|
||||||
style={{ width: `calc(${100 / 60}%)` }}
|
// style={{ width: `calc(${100 / 60}%)` }}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
column[rowIndex]?.date ? (
|
column[rowIndex]?.date ? (
|
||||||
<Tooltip delayDuration={0} content={`Date: ${column[rowIndex]?.date ?? "N/A"} - Count: ${column[rowIndex]?.count ?? 0}`}>
|
<Tooltip delayDuration={0} content={`Date: ${column[rowIndex]?.date ?? "N/A"} - Count: ${column[rowIndex]?.count ?? 0}`}>
|
||||||
<a
|
<a
|
||||||
href={`${exImmichUrl}/search?query=%7B%22takenAfter%22%3A%22${column[rowIndex]?.date ?? "N/A"}T00%3A00%3A00.000Z%22%2C%22takenBefore%22%3A%22${column[rowIndex]?.date ?? "N/A"}T23%3A59%3A59.999Z%22%7D`}
|
href={`${exImmichUrl}/search?query=%7B%22takenAfter%22%3A%22${column[rowIndex]?.date ?? "N/A"}T00%3A00%3A00.000Z%22%2C%22takenBefore%22%3A%22${column[rowIndex]?.date ?? "N/A"}T23%3A59%3A59.999Z%22%7D`}
|
||||||
className="block h-full w-full"
|
className="block h-[20px] max-w-[20px]"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="h-full w-full"
|
className="h-[20px] max-w-[20px]"
|
||||||
/>
|
/>
|
||||||
</a></Tooltip>) : <div
|
</a></Tooltip>) : <div
|
||||||
className="h-full w-full"
|
className="h-[20px] max-w-[20px]"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export default function ExifDataAnalytics() {
|
|||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-center text-lg font-mono">{type}</CardTitle>
|
<CardTitle className="text-center text-lg font-mono">{type}</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="text-center text-lg font-mono">
|
<CardContent className="text-center text-3xl font-mono">
|
||||||
{loading ? "Loading..." : statistics[type.toLowerCase() as keyof typeof statistics].toLocaleString()}
|
{loading ? "Loading..." : statistics[type.toLowerCase() as keyof typeof statistics].toLocaleString()}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -119,7 +119,7 @@ export default function ExifDataAnalytics() {
|
|||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle className="text-center text-lg font-mono">Live Photos</CardTitle>
|
<CardTitle className="text-center text-lg font-mono">Live Photos</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="text-center text-lg font-mono">
|
<CardContent className="text-center text-3xl font-mono">
|
||||||
{loading ? "Loading..." : livePhotoStatistics.total.toLocaleString()}
|
{loading ? "Loading..." : livePhotoStatistics.total.toLocaleString()}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in new issue
Block a user