new build
fix api alert
This commit is contained in:
parent
c5f380986d
commit
dfd7f702dc
7 changed files with 1083 additions and 1077 deletions
1065
lightrag/api/webui/assets/index-BMB0OroL.js
Normal file
1065
lightrag/api/webui/assets/index-BMB0OroL.js
Normal file
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
1
lightrag/api/webui/assets/index-CLgSwrjG.css
Normal file
1
lightrag/api/webui/assets/index-CLgSwrjG.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -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>
|
||||
</html>
|
||||
<!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>
|
||||
|
|
|
|||
|
|
@ -46,8 +46,10 @@ function App() {
|
|||
if (message) {
|
||||
if (message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)) {
|
||||
setApiKeyInvalid(true)
|
||||
return
|
||||
}
|
||||
}
|
||||
setApiKeyInvalid(false)
|
||||
}, [message, setApiKeyInvalid])
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue