Merge branch 'HKUDS:main' into main

This commit is contained in:
superhua 2025-04-15 15:07:36 +08:00 committed by GitHub
commit accd9d471e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 31 additions and 20 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

@ -8,8 +8,8 @@
<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-CK7D4HV6.js"></script> <script type="module" crossorigin src="/webui/assets/index-DV9z38_m.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-BJDb04H1.css"> <link rel="stylesheet" crossorigin href="/webui/assets/index-CWu3545z.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View file

@ -116,7 +116,7 @@ const EditablePropertyRow = ({
} }
return ( return (
<div className="flex items-center gap-1"> <div className="flex items-center gap-1 overflow-hidden">
<PropertyName name={name} /> <PropertyName name={name} />
<EditIcon onClick={handleEditClick} />: <EditIcon onClick={handleEditClick} />:
<PropertyValue <PropertyValue

View file

@ -232,7 +232,7 @@ const PropertyRow = ({
<span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>: <span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>:
<Text <Text
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis" className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
tooltipClassName="max-w-80" tooltipClassName="max-w-80 -translate-x-10"
text={value} text={value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))} tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left" side="left"

View file

@ -42,10 +42,10 @@ interface PropertyValueProps {
} }
export const PropertyValue = ({ value, onClick, tooltip }: PropertyValueProps) => ( export const PropertyValue = ({ value, onClick, tooltip }: PropertyValueProps) => (
<div className="flex items-center gap-1"> <div className="flex items-center gap-1 overflow-hidden">
<Text <Text
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis" className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis whitespace-nowrap"
tooltipClassName="max-w-80" tooltipClassName="max-w-80 -translate-x-15"
text={value} text={value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))} tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left" side="left"

View file

@ -266,7 +266,9 @@
"entity_type": "النوع", "entity_type": "النوع",
"source_id": "معرف المصدر", "source_id": "معرف المصدر",
"Neighbour": "الجار", "Neighbour": "الجار",
"file_path": "المصدر" "file_path": "المصدر",
"keywords": "الكلمات الرئيسية",
"weight": "الوزن"
} }
}, },
"edge": { "edge": {

View file

@ -266,7 +266,9 @@
"entity_type": "Type", "entity_type": "Type",
"source_id": "SrcID", "source_id": "SrcID",
"Neighbour": "Neigh", "Neighbour": "Neigh",
"file_path": "Source" "file_path": "Source",
"keywords": "Keys",
"weight": "Weight"
} }
}, },
"edge": { "edge": {

View file

@ -266,7 +266,9 @@
"entity_type": "Type", "entity_type": "Type",
"source_id": "ID source", "source_id": "ID source",
"Neighbour": "Voisin", "Neighbour": "Voisin",
"file_path": "Source" "file_path": "Source",
"keywords": "Keys",
"weight": "Poids"
} }
}, },
"edge": { "edge": {

View file

@ -266,7 +266,10 @@
"entity_type": "类型", "entity_type": "类型",
"source_id": "信源ID", "source_id": "信源ID",
"Neighbour": "邻接", "Neighbour": "邻接",
"file_path": "信源" "file_path": "信源",
"keywords": "Keys",
"weight": "权重"
} }
}, },
"edge": { "edge": {

View file

@ -266,8 +266,10 @@
"entity_type": "類型", "entity_type": "類型",
"source_id": "來源ID", "source_id": "來源ID",
"Neighbour": "鄰接", "Neighbour": "鄰接",
"file_path": "來源" "file_path": "來源",
} "keywords": "Keys",
"weight": "權重"
}
}, },
"edge": { "edge": {
"title": "關係", "title": "關係",