Add length informations & fix issues
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -34,11 +34,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const leakName = dataleak.Name;
|
const columns = samples[0].join(",");
|
||||||
const columns = samples[0].join(", ");
|
const sampleRows = samples.slice(1).map(r => r.join(",")).join("\n");
|
||||||
const sampleRows = samples.slice(1).map(r => r.join(", ")).join("\n");
|
|
||||||
|
|
||||||
const textToCopy = `Leak Name: ${leakName}\nColumns: ${columns}\nSample:\n${sampleRows}`;
|
const textToCopy = `Leak Name: ${dataleak.Name}\nLength: ${dataleak.Length}\nColumns: ${columns}\nSample:\n${sampleRows}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await navigator.clipboard.writeText(textToCopy);
|
await navigator.clipboard.writeText(textToCopy);
|
||||||
@@ -56,6 +55,7 @@
|
|||||||
class="text-nowrap flex gap-2 items-center hover:text-base-content/70"
|
class="text-nowrap flex gap-2 items-center hover:text-base-content/70"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
popupOpen = true;
|
popupOpen = true;
|
||||||
|
samples = [];
|
||||||
getSample();
|
getSample();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
: ""}
|
: ""}
|
||||||
/>
|
/>
|
||||||
</th>
|
</th>
|
||||||
<th class="">
|
<th>
|
||||||
<DatawellPopup dataleak={item}/>
|
<DatawellPopup dataleak={item}/>
|
||||||
</th>
|
</th>
|
||||||
<td>{item.Length.toLocaleString("fr")}</td>
|
<td>{item.Length.toLocaleString("fr")}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user