Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
update: 新增 Tunnel 倒数
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 17, 2023
1 parent 5cc6e3d commit bfc99ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/home/service/components/serviceSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export function ServiceCard(props: ServiceCardProps) {
Number(((runningValue / totalValue) * 100).toFixed(0)) < 80
? "rgba(var(--semi-orange-5), 1)"
: Number(((runningValue / totalValue) * 100).toFixed(0)) < 50
? "rgba(var(--semi-red-5), 1)"
: "rgba(var(--semi-green-5), 1)"
? "rgba(var(--semi-red-5), 1)"
: "rgba(var(--semi-green-5), 1)"
}
type="circle"
strokeWidth={10}
Expand Down Expand Up @@ -89,7 +89,7 @@ export default function ServiceSummary() {
);

const today = new Date().toISOString().split("T")[0];
const date2: string = "2023-12-16";
const date2: string = "2024-12-16";
const daysBetween: number = getDaysBetweenDates(today!.toString(), date2);

return (
Expand Down Expand Up @@ -149,8 +149,8 @@ export default function ServiceSummary() {
}
/>
<ServiceCard
title={"证书有效期"}
totalValue={90}
title={"Cloudflare Tunnel"}
totalValue={365}
runningValue={daysBetween}
/>
</div>
Expand Down

0 comments on commit bfc99ec

Please sign in to comment.