From 895345f9bbdd560643647ea7058c595b186fdb06 Mon Sep 17 00:00:00 2001 From: Marine LM Date: Mon, 14 Oct 2024 15:47:51 +0200 Subject: [PATCH] [frontend] fix eslint error Signed-off-by: Marine LM --- openbas-front/src/actions/User.js | 1 - .../simulations/simulation/reports/convertMarkdownToPdfMake.ts | 1 - .../simulations/simulation/reports/getExerciseReportPdfDoc.ts | 1 - openbas-front/src/components/ExportPdfButton.tsx | 2 -- openbas-front/src/utils/Localization.js | 1 - 5 files changed, 6 deletions(-) diff --git a/openbas-front/src/actions/User.js b/openbas-front/src/actions/User.js index 8468c8c942..bf4c8799d0 100644 --- a/openbas-front/src/actions/User.js +++ b/openbas-front/src/actions/User.js @@ -1,6 +1,5 @@ import * as schema from './Schema'; import { delReferential, getReferential, postReferential, putReferential, simplePostCall } from '../utils/Action'; -import * as Constants from '../constants/ActionTypes'; // region players export const fetchPlayers = () => (dispatch) => getReferential(schema.arrayOfUsers, '/api/players')(dispatch); diff --git a/openbas-front/src/admin/components/simulations/simulation/reports/convertMarkdownToPdfMake.ts b/openbas-front/src/admin/components/simulations/simulation/reports/convertMarkdownToPdfMake.ts index 064bf3281c..8fad53dc08 100644 --- a/openbas-front/src/admin/components/simulations/simulation/reports/convertMarkdownToPdfMake.ts +++ b/openbas-front/src/admin/components/simulations/simulation/reports/convertMarkdownToPdfMake.ts @@ -1,4 +1,3 @@ -// @ts-ignore import pdfMake from 'pdfmake'; type PdfMakeText = pdfMake.Content; diff --git a/openbas-front/src/admin/components/simulations/simulation/reports/getExerciseReportPdfDoc.ts b/openbas-front/src/admin/components/simulations/simulation/reports/getExerciseReportPdfDoc.ts index a820bc1fa3..b0dad3c55b 100644 --- a/openbas-front/src/admin/components/simulations/simulation/reports/getExerciseReportPdfDoc.ts +++ b/openbas-front/src/admin/components/simulations/simulation/reports/getExerciseReportPdfDoc.ts @@ -1,5 +1,4 @@ import { toPng } from 'html-to-image'; -// @ts-ignore import pdfMake from 'pdfmake'; import type { InjectResultDTO, Report } from '../../../../../utils/api-types'; import convertMarkdownToPdfMake from './convertMarkdownToPdfMake'; diff --git a/openbas-front/src/components/ExportPdfButton.tsx b/openbas-front/src/components/ExportPdfButton.tsx index 1e81c9ce95..dcd29839ea 100644 --- a/openbas-front/src/components/ExportPdfButton.tsx +++ b/openbas-front/src/components/ExportPdfButton.tsx @@ -1,9 +1,7 @@ import React, { useState } from 'react'; import { Dialog, ToggleButton, Tooltip } from '@mui/material'; import { FilePdfBox } from 'mdi-material-ui'; -// @ts-ignore import pdfMake from 'pdfmake'; -// @ts-ignore import pdfFonts from 'pdfmake/build/vfs_fonts'; import { useDispatch } from 'react-redux'; diff --git a/openbas-front/src/utils/Localization.js b/openbas-front/src/utils/Localization.js index b5370ab559..4260942e10 100644 --- a/openbas-front/src/utils/Localization.js +++ b/openbas-front/src/utils/Localization.js @@ -2146,7 +2146,6 @@ const i18n = { 'Score details': '分数详情', 'Injects results': '注入结果', 'Global observation': '全球观察', - 'Global observation': '全球观察', 'This report is not available': '该报告不可用', 'Simulation definition statistics': '模拟定义统计', 'Simulation definition scores': '模拟定义分数',