Merge branch 'HKUDS:main' into main

This commit is contained in:
superhua
2025-04-15 15:07:36 +08:00
committed by GitHub
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" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title>
<script type="module" crossorigin src="/webui/assets/index-CK7D4HV6.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-BJDb04H1.css">
<script type="module" crossorigin src="/webui/assets/index-DV9z38_m.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-CWu3545z.css">
</head>
<body>
<div id="root"></div>

View File

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

View File

@@ -232,7 +232,7 @@ const PropertyRow = ({
<span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>:
<Text
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}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left"

View File

@@ -42,10 +42,10 @@ interface 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
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
tooltipClassName="max-w-80"
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis whitespace-nowrap"
tooltipClassName="max-w-80 -translate-x-15"
text={value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left"

View File

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

View File

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

View File

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

View File

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

View File

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