fix: lint

This commit is contained in:
amhsirak
2025-04-30 19:57:38 +05:30
parent f1d0cbdaae
commit f1c148817a
2 changed files with 137 additions and 138 deletions

View File

@@ -50,7 +50,6 @@
"lodash": "^4.17.21", "lodash": "^4.17.21",
"loglevel": "^1.8.0", "loglevel": "^1.8.0",
"loglevel-plugin-remote": "^0.6.8", "loglevel-plugin-remote": "^0.6.8",
"maxun-core": "^0.0.15",
"minio": "^8.0.1", "minio": "^8.0.1",
"moment-timezone": "^0.5.45", "moment-timezone": "^0.5.45",
"node-cron": "^3.0.3", "node-cron": "^3.0.3",

View File

@@ -62,8 +62,8 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
if (!row.serializableOutput) return; if (!row.serializableOutput) return;
if (!row.serializableOutput.scrapeSchema && if (!row.serializableOutput.scrapeSchema &&
!row.serializableOutput.scrapeList && !row.serializableOutput.scrapeList &&
Object.keys(row.serializableOutput).length > 0) { Object.keys(row.serializableOutput).length > 0) {
setIsLegacyData(true); setIsLegacyData(true);
processLegacyData(row.serializableOutput); processLegacyData(row.serializableOutput);
@@ -308,7 +308,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
startIcon={<DownloadIcon />} startIcon={<DownloadIcon />}
onClick={() => { onClick={() => {
if (isPaginatedList) { if (isPaginatedList) {
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex+1}.csv`); downloadCSV(currentData, currentColumns, `list_table_${currentListIndex + 1}.csv`);
} else { } else {
downloadCSV(data, columns, csvFilename); downloadCSV(data, columns, csvFilename);
} }
@@ -321,7 +321,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
startIcon={<DataObjectIcon />} startIcon={<DataObjectIcon />}
onClick={() => { onClick={() => {
if (isPaginatedList) { if (isPaginatedList) {
downloadJSON(currentData, `list_table_${currentListIndex+1}.json`); downloadJSON(currentData, `list_table_${currentListIndex + 1}.json`);
} else { } else {
downloadJSON(data, jsonFilename); downloadJSON(data, jsonFilename);
} }
@@ -430,7 +430,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
size="small" size="small"
onClick={() => { onClick={() => {
if (isPaginatedList) { if (isPaginatedList) {
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex+1}.csv`); downloadCSV(currentData, currentColumns, `list_table_${currentListIndex + 1}.csv`);
} else { } else {
downloadCSV(data, columns, csvFilename); downloadCSV(data, columns, csvFilename);
} }
@@ -443,7 +443,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
size="small" size="small"
onClick={() => { onClick={() => {
if (isPaginatedList) { if (isPaginatedList) {
downloadJSON(currentData, `list_table_${currentListIndex+1}.json`); downloadJSON(currentData, `list_table_${currentListIndex + 1}.json`);
} else { } else {
downloadJSON(data, jsonFilename); downloadJSON(data, jsonFilename);
} }
@@ -588,9 +588,9 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
if (index >= 0 && index < listData.length) { if (index >= 0 && index < listData.length) {
data = listData[index]; data = listData[index];
columns = listColumns[index]; columns = listColumns[index];
title = `${t('run_content.captured_data.list_title')} - Table ${index+1}`; title = `${t('run_content.captured_data.list_title')} - Table ${index + 1}`;
csvFilename = `list_table_${index+1}.csv`; csvFilename = `list_table_${index + 1}.csv`;
jsonFilename = `list_table_${index+1}.json`; jsonFilename = `list_table_${index + 1}.json`;
} }
} else { } else {
switch (dataTypeWithIndex) { switch (dataTypeWithIndex) {
@@ -967,7 +967,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
<Box sx={{ display: 'flex', alignItems: 'center' }}> <Box sx={{ display: 'flex', alignItems: 'center' }}>
<ImageIcon sx={{ color: '#FF00C3' }} /> <ImageIcon sx={{ color: '#FF00C3' }} />
<Typography variant='h6' sx={{ ml: 2 }}> <Typography variant='h6' sx={{ ml: 2 }}>
Screenshot {index+1} Screenshot {index + 1}
</Typography> </Typography>
</Box> </Box>
</AccordionSummary> </AccordionSummary>