Update webui assets

This commit is contained in:
yangdx 2025-03-25 22:44:53 +08:00
parent d456269718
commit 25db83f8e2
5 changed files with 159 additions and 167 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

View File

@ -1,17 +1,17 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/svg+xml" href="logo.png" /> <link rel="icon" type="image/svg+xml" href="logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title> <title>Lightrag</title>
<script type="module" crossorigin src="/webui/assets/index-DJ53id6i.js"></script> <script type="module" crossorigin src="/webui/assets/index-CSLDmoSD.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-BwFyYQzx.css"> <link rel="stylesheet" crossorigin href="/webui/assets/index-CR7GLPiB.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
</body> </body>
</html> </html>

View File

@ -39,8 +39,8 @@ const getDisplayFileName = (doc: DocStatusResponse, maxLength: number = 20): str
} }
// If filename is longer than maxLength, truncate it and add ellipsis // If filename is longer than maxLength, truncate it and add ellipsis
return fileName.length > maxLength return fileName.length > maxLength
? fileName.slice(0, maxLength) + '...' ? fileName.slice(0, maxLength) + '...'
: fileName; : fileName;
}; };
@ -140,7 +140,7 @@ export default function DocumentManager() {
onClick={() => setShowFileName(!showFileName)} onClick={() => setShowFileName(!showFileName)}
className="border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800" className="border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800"
> >
{showFileName {showFileName
? t('documentPanel.documentManager.hideButton') ? t('documentPanel.documentManager.hideButton')
: t('documentPanel.documentManager.showButton') : t('documentPanel.documentManager.showButton')
} }