Compare commits

..

No commits in common. "d17c7bb3e2cf092ded2df974047797ee3c1dc0c6" and "00ac682552805ced937b217936cc3117af7d7f28" have entirely different histories.

5 changed files with 10 additions and 13 deletions

View File

@ -14,5 +14,4 @@ NEXT_PUBLIC_CustomTitle=NezhaDash
NEXT_PUBLIC_CustomDescription=NezhaDash is a dashboard for Nezha.
NEXT_PUBLIC_Links=[{"link":"https://baidu.com","name":"Baidu"},{"link":"https://google.com","name":"Google"}]
NEXT_PUBLIC_DisableIndex=false
NEXT_PUBLIC_BASE_PATH=/
NEXT_PUBLIC_ShowTagCount=false
NEXT_PUBLIC_BASE_PATH=/dash

View File

@ -1,6 +1,5 @@
"use client";
import getEnv from "@/lib/env-entry";
import { cn } from "@/lib/utils";
import { m } from "framer-motion";
import { useTranslations } from "next-intl";
@ -89,8 +88,7 @@ export default function Switch({
<div className="relative z-20 flex items-center gap-1">
<div className="whitespace-nowrap flex items-center gap-2">
{tag === "defaultTag" ? t("defaultTag") : tag}{" "}
{getEnv("NEXT_PUBLIC_ShowTagCount") === "true" &&
tag !== "defaultTag" && (
{tag !== "defaultTag" && (
<div className="w-fit px-1.5 rounded-full bg-muted">
{tagCountMap[tag]}
</div>

View File

@ -13,4 +13,3 @@ NEXT_PUBLIC_CustomLogo=https://nezha-cf.buycoffee.top/apple-touch-icon.png
NEXT_PUBLIC_CustomTitle=NezhaDash
NEXT_PUBLIC_CustomDescription=NezhaDash is a dashboard for Nezha.
NEXT_PUBLIC_DisableIndex=false
NEXT_PUBLIC_ShowTagCount=false

View File

@ -3,6 +3,7 @@ import withBundleAnalyzer from "@next/bundle-analyzer";
import createNextIntlPlugin from "next-intl/plugin";
import { env } from "next-runtime-env";
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});

View File

@ -1,6 +1,6 @@
{
"name": "nezha-dash",
"version": "1.3.1",
"version": "1.3.0",
"private": true,
"scripts": {
"dev": "next dev -p 3020",