Skip to content

Commit dd08937

Browse files
committed
移除用户中心的MetaData,修复css导入问题
1 parent d77138d commit dd08937

3 files changed

Lines changed: 8 additions & 29 deletions

File tree

app/users/home/page.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,6 @@ import { Footer } from "@/components/footer";
88
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
99
import { Button } from "@/components/ui/button";
1010
import { UserCheck, LogOut } from "lucide-react";
11-
import type { Metadata } from "next"
12-
13-
export const metadata: Metadata = {
14-
title: "用户中心 - EndlessPixel Minecraft 服务器",
15-
description:
16-
"用户中心 - EndlessPixel Minecraft 服务器",
17-
keywords: ["用户中心", "EndlessPixel", "Minecraft服务器"],
18-
openGraph: {
19-
title: "用户中心 | EndlessPixel Minecraft 服务器",
20-
description: "用户中心 - EndlessPixel Minecraft 服务器",
21-
url: "https://ep.endlesspixel.fun/users/home/",
22-
images: [
23-
{
24-
url: "/og-downloads.jpg",
25-
width: 1200,
26-
height: 630,
27-
alt: "EndlessPixel 用户中心",
28-
},
29-
],
30-
},
31-
robots: {
32-
index: true,
33-
follow: true,
34-
},
35-
icons: {
36-
icon: "/icon.ico"
37-
}
38-
}
3911

4012
type UserInfo = {
4113
provider: string;

app/users/login/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { JSX } from "react";
55
import { Navigation } from "@/components/navigation";
66
import { Footer } from "@/components/footer";
77
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
8-
import { Badge } from "@/components/ui/badge";
98
import { Button } from "@/components/ui/button";
109
import { Github, Lock, UserCheck, Shield, ArrowRight, Sparkles } from "lucide-react";
1110

global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// 让 TypeScript 识别所有 *.css / *.scss / *.less 导入
5+
declare module "*.css";
6+
declare module "*.scss";
7+
declare module "*.sass";
8+
declare module "*.less";

0 commit comments

Comments
 (0)