new build

fix api alert
This commit is contained in:
ArnoChen
2025-02-17 01:59:55 +08:00
parent c5f380986d
commit dfd7f702dc
7 changed files with 1083 additions and 1077 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,14 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title>
<script type="module" crossorigin src="./assets/index-CGBwpbZt.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BhTFLcnv.css">
</head>
<body>
<div id="root"></div>
</body>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title>
<script type="module" crossorigin src="./assets/index-BMB0OroL.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CLgSwrjG.css">
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@@ -46,8 +46,10 @@ function App() {
if (message) {
if (message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)) {
setApiKeyInvalid(true)
return
}
}
setApiKeyInvalid(false)
}, [message, setApiKeyInvalid])
return (

View File

@@ -4,8 +4,7 @@ import {
AlertDialogContent,
AlertDialogDescription,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger
AlertDialogTitle
} from '@/components/ui/AlertDialog'
import Button from '@/components/ui/Button'
import Input from '@/components/ui/Input'
@@ -51,7 +50,6 @@ const ApiKeyAlert = () => {
return (
<AlertDialog open={opened} onOpenChange={setOpened}>
<AlertDialogTrigger>Open</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>API Key is required</AlertDialogTitle>