mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Compare commits
No commits in common. "d17c7bb3e2cf092ded2df974047797ee3c1dc0c6" and "00ac682552805ced937b217936cc3117af7d7f28" have entirely different histories.
d17c7bb3e2
...
00ac682552
@ -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
|
||||
|
@ -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,12 +88,11 @@ 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" && (
|
||||
<div className="w-fit px-1.5 rounded-full bg-muted">
|
||||
{tagCountMap[tag]}
|
||||
</div>
|
||||
)}
|
||||
{tag !== "defaultTag" && (
|
||||
<div className="w-fit px-1.5 rounded-full bg-muted">
|
||||
{tagCountMap[tag]}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -12,5 +12,4 @@ NEXT_PUBLIC_FixedTopServerName=false
|
||||
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
|
||||
NEXT_PUBLIC_DisableIndex=false
|
@ -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",
|
||||
});
|
||||
@ -23,7 +24,7 @@ const withPWA = withPWAInit({
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "standalone",
|
||||
basePath: env("NEXT_PUBLIC_BASE_PATH") || "",
|
||||
basePath: env("NEXT_PUBLIC_BASE_PATH") || "",
|
||||
logging: {
|
||||
fetches: {
|
||||
fullUrl: true,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nezha-dash",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3020",
|
||||
|
Loading…
Reference in New Issue
Block a user