Add settings link and GitHub reference to navigation menu

This commit is contained in:
2025-06-07 16:16:08 +08:00
parent c56deecc75
commit e29287a449

View File

@@ -43,7 +43,7 @@ export default function Navigator() {
<div <div
tabIndex={0} tabIndex={0}
role="button" role="button"
className="btn btn-ghost btn-circle lg:hidden" className="btn btn-ghost btn-circle sm:hidden"
> >
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@@ -52,13 +52,12 @@ export default function Navigator() {
viewBox="0 0 24 24" viewBox="0 0 24 24"
stroke="currentColor" stroke="currentColor"
> >
{" "}
<path <path
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
strokeWidth="2" strokeWidth="2"
d="M4 6h16M4 12h16M4 18h7" d="M4 6h16M4 12h16M4 18h7"
/>{" "} />
</svg> </svg>
</div> </div>
<ul <ul
@@ -88,6 +87,22 @@ export default function Navigator() {
> >
<a>{t("Tags")}</a> <a>{t("Tags")}</a>
</li> </li>
<li
onClick={() => {
const menu = document.getElementById(
"navi_menu",
) as HTMLElement;
menu.blur();
navigate("/manage");
}}
>
<a>{t("Settings")}</a>
</li>
<li>
<a href={"https://github.com/wgh136/nysoure"} target={"_blank"}>
{"Github"}
</a>
</li>
<li <li
onClick={() => { onClick={() => {
const menu = document.getElementById( const menu = document.getElementById(
@@ -144,7 +159,7 @@ export default function Navigator() {
<ThemeSwitcher /> <ThemeSwitcher />
{app.isLoggedIn() && ( {app.isLoggedIn() && (
<button <button
className={"btn btn-circle btn-ghost"} className={"btn btn-circle btn-ghost hidden sm:inline-flex"}
onClick={() => { onClick={() => {
navigate("/manage"); navigate("/manage");
}} }}
@@ -153,6 +168,7 @@ export default function Navigator() {
</button> </button>
)} )}
<a <a
className={"hidden sm:inline"}
href="https://github.com/wgh136/nysoure" href="https://github.com/wgh136/nysoure"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"