Merge pull request #84 from hamster1963/turbo

fix: use turbo
This commit is contained in:
仓鼠 2024-10-22 11:01:58 +08:00 committed by GitHub
commit 4d8ea21feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1647 additions and 8 deletions

View File

@ -1,5 +1,4 @@
// @auto-i18n-check. Please do not delete the line.
import { auth } from "@/auth";
import { locales } from "@/i18n-metadata";
import getEnv from "@/lib/env-entry";
import { cn } from "@/lib/utils";
@ -13,8 +12,6 @@ import { ThemeProvider } from "next-themes";
import { Inter as FontSans } from "next/font/google";
import React from "react";
import "/node_modules/flag-icons/css/flag-icons.min.css";
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
@ -60,6 +57,10 @@ export default function LocaleLayout({
<html lang={locale} suppressHydrationWarning>
<head>
<PublicEnvScript />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.0.0/css/flag-icons.min.css"
/>
</head>
<body
className={cn(

View File

@ -14,7 +14,7 @@ interface NezhaDataResponse {
export const GET = auth(async function GET(req) {
if (!req.auth && getEnv("SitePassword")) {
redirect("/api/auth/signin");
redirect("/");
}
const { searchParams } = new URL(req.url);

View File

@ -14,7 +14,7 @@ interface NezhaDataResponse {
export const GET = auth(async function GET(req) {
if (!req.auth && getEnv("SitePassword")) {
redirect("/api/auth/signin");
redirect("/");
}
const { searchParams } = new URL(req.url);

View File

@ -14,7 +14,7 @@ interface NezhaDataResponse {
export const GET = auth(async function GET(req) {
if (!req.auth && getEnv("SitePassword")) {
redirect("/api/auth/signin");
redirect("/");
}
const response = (await GetNezhaData()) as NezhaDataResponse;

View File

@ -14,7 +14,7 @@ export default function TabSwitch({
setCurrentTab: (tab: string) => void;
}) {
return (
<div className="z-50 flex flex-col items-start overflow-x-scroll rounded-[50px]">
<div className="z-50 flex flex-col items-start rounded-[50px]">
<div className="flex items-center gap-1 rounded-[50px] bg-stone-100 p-[3px] dark:bg-stone-800">
{tabs.map((tab: string) => (
<div

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3020",
"dev": "next dev -p 3020 --turbo",
"start": "node .next/standalone/server.js",
"lint": "next lint",
"build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/",

1638
styles/flag-icons.min.css vendored Normal file

File diff suppressed because it is too large Load Diff