mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-03 20:20:12 +00:00
<edit>add buri footer.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// src/components/Footer.tsx (已添加您的署名)
|
||||
|
||||
import { fetchSetting } from "@/lib/nezha-api"
|
||||
import { useQuery } from "@tanstack/react-query"
|
||||
import React from "react"
|
||||
@@ -20,7 +22,7 @@ const Footer: React.FC = () => {
|
||||
<section className="mt-1 flex items-center sm:flex-row flex-col justify-between gap-2 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50 server-footer-name">
|
||||
<div className="flex items-center gap-1">
|
||||
©2020-{new Date().getFullYear()}{" "}
|
||||
<a href={"https://github.com/naiba/nezha"} target="_blank">
|
||||
<a href={"https://github.com/naiba/nezha"} target="_blank" className="hover:underline">
|
||||
Nezha
|
||||
</a>
|
||||
<p>{settingData?.data?.version || ""}</p>
|
||||
@@ -32,15 +34,21 @@ const Footer: React.FC = () => {
|
||||
</kbd>
|
||||
</p>
|
||||
<section>
|
||||
{t("footer.themeBy")}
|
||||
<a href={"https://github.com/hamster1963/nezha-dash"} target="_blank">
|
||||
{t("footer.themeBy")}{" "}
|
||||
<a href={"https://github.com/hamster1963/nezha-dash"} target="_blank" className="hover:underline">
|
||||
nezha-dash
|
||||
</a>
|
||||
{import.meta.env.VITE_GIT_HASH && (
|
||||
<a href={"https://github.com/hamster1963/nezha-dash-v1/commit/" + import.meta.env.VITE_GIT_HASH} className="ml-1">
|
||||
<a href={"https://github.com/hamster1963/nezha-dash-v1/commit/" + import.meta.env.VITE_GIT_HASH} className="ml-1 hover:underline">
|
||||
({import.meta.env.VITE_GIT_HASH})
|
||||
</a>
|
||||
)}
|
||||
</section>
|
||||
<section className="mt-1">
|
||||
{"Modified by "}
|
||||
<a href={"https://github.com/buriburizaem0n"} target="_blank" className="hover:underline font-medium">
|
||||
buriburizaem0n
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
@@ -49,4 +57,4 @@ const Footer: React.FC = () => {
|
||||
)
|
||||
}
|
||||
|
||||
export default Footer
|
||||
export default Footer
|
||||
Reference in New Issue
Block a user