From 71f7a8f7d41224cfe44f1ccf9315349626f7846f Mon Sep 17 00:00:00 2001 From: Tom Herold Date: Wed, 25 Sep 2024 16:52:57 +0200 Subject: [PATCH] remove unused imports while linting --- biome.json | 3 ++- frontend/javascripts/admin/api/mesh.ts | 1 - .../javascripts/admin/auth/accept_invite_view.tsx | 2 +- frontend/javascripts/admin/auth/auth_token_view.tsx | 2 +- .../javascripts/admin/auth/change_password_view.tsx | 1 - .../admin/auth/finish_reset_password_view.tsx | 1 - frontend/javascripts/admin/auth/login_form.tsx | 1 - frontend/javascripts/admin/auth/login_view.tsx | 1 - .../admin/auth/registration_form_wkorg.tsx | 2 +- .../javascripts/admin/auth/registration_view.tsx | 2 +- .../admin/auth/start_reset_password_view.tsx | 1 - .../javascripts/admin/auth/verify_email_view.tsx | 2 +- .../composition_wizard/01_select_import_type.tsx | 1 - .../dataset/composition_wizard/02_upload_files.tsx | 1 - .../composition_wizard/03_select_datasets.tsx | 2 +- .../admin/dataset/dataset_add_compose_view.tsx | 2 +- .../admin/dataset/dataset_url_import.tsx | 1 - .../admin/organization/organization_edit_view.tsx | 2 +- .../admin/project/project_create_view.tsx | 2 +- .../admin/project/transfer_all_tasks_modal.tsx | 2 +- .../admin/scripts/script_create_view.tsx | 2 +- .../admin/statistic/available_tasks_report_view.tsx | 2 +- .../admin/statistic/team_selection_form.tsx | 1 - .../admin/statistic/time_tracking_detail_view.tsx | 1 - .../admin/statistic/time_tracking_overview.tsx | 3 +-- .../javascripts/admin/task/task_annotation_view.tsx | 2 +- .../admin/task/task_create_bulk_view.tsx | 2 +- .../javascripts/admin/task/task_create_view.tsx | 1 - .../javascripts/admin/task/task_search_form.tsx | 2 +- .../admin/tasktype/task_type_create_view.tsx | 2 +- .../admin/team/create_team_modal_view.tsx | 1 - .../javascripts/admin/team/edit_team_modal_view.tsx | 1 - .../admin/user/experience_modal_view.tsx | 2 +- .../admin/user/user_selection_component.tsx | 1 - .../admin/voxelytics/ai_model_list_view.tsx | 4 ++-- .../javascripts/admin/voxelytics/artifacts_view.tsx | 1 - frontend/javascripts/admin/voxelytics/dag_view.tsx | 2 +- frontend/javascripts/admin/voxelytics/log_tab.tsx | 2 +- .../javascripts/admin/voxelytics/statistics_tab.tsx | 2 +- frontend/javascripts/admin/voxelytics/task_view.tsx | 1 - .../javascripts/admin/voxelytics/workflow_view.tsx | 2 +- frontend/javascripts/components/color_picker.tsx | 2 +- frontend/javascripts/components/credits_footer.tsx | 1 - frontend/javascripts/components/formatted_date.tsx | 1 - frontend/javascripts/components/link_button.tsx | 1 - .../javascripts/components/permission_enforcer.tsx | 1 - .../javascripts/components/stacked_bar_chart.tsx | 1 - .../dataset/dataset_selection_component.tsx | 1 - .../dataset/dataset_settings_delete_tab.tsx | 2 +- .../dataset/dataset_settings_metadata_tab.tsx | 1 - .../dataset/dataset_settings_viewconfig_tab.tsx | 2 +- frontend/javascripts/dashboard/dataset/queries.tsx | 2 +- .../dashboard/folders/details_sidebar.tsx | 2 +- .../dashboard/folders/edit_folder_modal.tsx | 2 +- .../dashboard/folders/folder_selection.tsx | 2 +- .../javascripts/dashboard/folders/folder_tree.tsx | 3 +-- .../dashboard/publication_details_view.tsx | 2 +- frontend/javascripts/libs/UpdatableTexture.ts | 1 - frontend/javascripts/libs/browser_feature_check.tsx | 1 - .../libs/cuckoo/abstract_cuckoo_table.ts | 1 - frontend/javascripts/libs/render_independently.tsx | 1 - frontend/javascripts/messages.tsx | 1 - frontend/javascripts/navbar.tsx | 1 - .../oxalis/controller/combinations/move_handlers.ts | 1 - .../oxalis/controller/merger_mode_controller.tsx | 2 +- .../model/actions/skeletontracing_actions.tsx | 1 - .../bucket_data_handling/data_rendering_logic.tsx | 1 - .../oxalis/model/bucket_data_handling/pushqueue.ts | 1 - .../oxalis/model/sagas/quick_select_saga.ts | 1 - .../oxalis/model/sagas/volumetracing_saga.tsx | 1 - .../oxalis/shaders/thin_plate_spline.glsl.ts | 1 - .../view/action-bar/create_animation_modal.tsx | 1 - .../oxalis/view/action-bar/private_links_view.tsx | 1 - .../view/action-bar/quick_select_settings.tsx | 1 - .../action-bar/share_view_dataset_modal_view.tsx | 1 - .../view/action-bar/view_dataset_actions_view.tsx | 1 - .../oxalis/view/action-bar/view_modes_view.tsx | 2 +- .../oxalis/view/components/categorization_label.tsx | 2 +- .../view/components/input_with_update_on_blur.tsx | 2 +- .../oxalis/view/components/setting_input_views.tsx | 2 -- .../oxalis/view/distance_measurement_tooltip.tsx | 3 +-- .../view/left-border-tabs/layer_settings_tab.tsx | 2 +- .../modals/downsample_volume_modal.tsx | 2 +- .../oxalis/view/merger_mode_modal_view.tsx | 1 - .../view/novel_user_experiences/welcome_toast.tsx | 1 - .../javascripts/oxalis/view/recording_switch.tsx | 1 - .../right-border-tabs/delete_group_modal_view.tsx | 1 - .../view/right-border-tabs/hide_tree_eges_icon.tsx | 2 +- .../view/right-border-tabs/metadata_table.tsx | 1 - .../segments_tab/segment_statistics_modal.tsx | 1 - .../view/right-border-tabs/skeleton_tab_view.tsx | 13 +------------ .../view/right-border-tabs/tree_hierarchy_view.tsx | 2 +- frontend/javascripts/oxalis/view/scalebar.tsx | 1 - frontend/javascripts/oxalis/view/statusbar.tsx | 1 - .../javascripts/oxalis/view/td_view_controls.tsx | 1 - frontend/javascripts/oxalis/view/version_list.tsx | 2 +- .../test/libs/async_fifo_resolver.spec.ts | 1 - .../javascripts/test/libs/estimate_affine.spec.ts | 1 - frontend/javascripts/test/libs/format_utils.spec.ts | 1 - .../javascripts/test/libs/thin_plate_spline.spec.ts | 1 - .../test/model/cuckoo_table_uint32.spec.ts | 1 - .../test/model/cuckoo_table_uint64.spec.ts | 1 - .../test/model/transformation_helpers.spec.ts | 1 - frontend/javascripts/types/api_flow_types.ts | 2 +- 104 files changed, 47 insertions(+), 120 deletions(-) diff --git a/biome.json b/biome.json index eb7ba770971..d12455867a9 100644 --- a/biome.json +++ b/biome.json @@ -57,7 +57,8 @@ "correctness": { "noUnusedVariables": "error", "noRenderReturnValue": "off", - "useHookAtTopLevel": "error" + "useHookAtTopLevel": "error", + "noUnusedImports": "error" }, "suspicious": { "noExplicitAny": "off", diff --git a/frontend/javascripts/admin/api/mesh.ts b/frontend/javascripts/admin/api/mesh.ts index 880334bebd0..0c638d36fc4 100644 --- a/frontend/javascripts/admin/api/mesh.ts +++ b/frontend/javascripts/admin/api/mesh.ts @@ -1,5 +1,4 @@ import Request from "libs/request"; -import _ from "lodash"; import type { Vector3, Vector4 } from "oxalis/constants"; import type { APIDatasetId } from "types/api_flow_types"; import { doWithToken } from "./token"; diff --git a/frontend/javascripts/admin/auth/accept_invite_view.tsx b/frontend/javascripts/admin/auth/accept_invite_view.tsx index 9819c54a1e5..b99bd3acf45 100644 --- a/frontend/javascripts/admin/auth/accept_invite_view.tsx +++ b/frontend/javascripts/admin/auth/accept_invite_view.tsx @@ -2,7 +2,7 @@ import { Button, Result, Layout, Spin } from "antd"; import { GiftTwoTone } from "@ant-design/icons"; import { useHistory } from "react-router-dom"; import { AsyncButton } from "components/async_clickables"; -import React, { useState } from "react"; +import { useState } from "react"; import AuthenticationModal from "admin/auth/authentication_modal"; import { useFetch } from "libs/react_helpers"; import { diff --git a/frontend/javascripts/admin/auth/auth_token_view.tsx b/frontend/javascripts/admin/auth/auth_token_view.tsx index 9357ce54910..3286c872689 100644 --- a/frontend/javascripts/admin/auth/auth_token_view.tsx +++ b/frontend/javascripts/admin/auth/auth_token_view.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { CopyOutlined, SwapOutlined } from "@ant-design/icons"; import { Input, Button, Col, Row, Spin, Form, Space } from "antd"; import { getAuthToken, revokeAuthToken } from "admin/admin_rest_api"; diff --git a/frontend/javascripts/admin/auth/change_password_view.tsx b/frontend/javascripts/admin/auth/change_password_view.tsx index 731d9800178..6495f45886b 100644 --- a/frontend/javascripts/admin/auth/change_password_view.tsx +++ b/frontend/javascripts/admin/auth/change_password_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { type RouteComponentProps, withRouter } from "react-router-dom"; import { Form, Input, Button, Col, Row, Alert } from "antd"; import { LockOutlined } from "@ant-design/icons"; diff --git a/frontend/javascripts/admin/auth/finish_reset_password_view.tsx b/frontend/javascripts/admin/auth/finish_reset_password_view.tsx index 90c6c100578..eace6fb4bfe 100644 --- a/frontend/javascripts/admin/auth/finish_reset_password_view.tsx +++ b/frontend/javascripts/admin/auth/finish_reset_password_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { type RouteComponentProps, withRouter } from "react-router-dom"; import { Form, Input, Button, Col, Row, Card } from "antd"; import { LockOutlined } from "@ant-design/icons"; diff --git a/frontend/javascripts/admin/auth/login_form.tsx b/frontend/javascripts/admin/auth/login_form.tsx index c364cdff36d..589a215f541 100644 --- a/frontend/javascripts/admin/auth/login_form.tsx +++ b/frontend/javascripts/admin/auth/login_form.tsx @@ -1,7 +1,6 @@ import { Alert, Button, Form, Input } from "antd"; import { LockOutlined, MailOutlined } from "@ant-design/icons"; import { Link } from "react-router-dom"; -import React from "react"; import { getIsInIframe } from "libs/utils"; import { loginUser, requestSingleSignOnLogin } from "admin/admin_rest_api"; import { setActiveUserAction } from "oxalis/model/actions/user_actions"; diff --git a/frontend/javascripts/admin/auth/login_view.tsx b/frontend/javascripts/admin/auth/login_view.tsx index 333077c2fb0..1336a9e059a 100644 --- a/frontend/javascripts/admin/auth/login_view.tsx +++ b/frontend/javascripts/admin/auth/login_view.tsx @@ -1,7 +1,6 @@ import { Card, Col, Row } from "antd"; import type { RouteComponentProps } from "react-router-dom"; import { withRouter } from "react-router-dom"; -import React from "react"; import * as Utils from "libs/utils"; import window from "libs/window"; import LoginForm from "./login_form"; diff --git a/frontend/javascripts/admin/auth/registration_form_wkorg.tsx b/frontend/javascripts/admin/auth/registration_form_wkorg.tsx index da82d3e0f46..b18395a1388 100644 --- a/frontend/javascripts/admin/auth/registration_form_wkorg.tsx +++ b/frontend/javascripts/admin/auth/registration_form_wkorg.tsx @@ -1,6 +1,6 @@ import { Form, Input, Button, Row, Col, Checkbox } from "antd"; import { UserOutlined, LockOutlined, MailOutlined } from "@ant-design/icons"; -import React, { useRef, memo } from "react"; +import { useRef, memo } from "react"; import { loginUser } from "admin/admin_rest_api"; import { setActiveUserAction } from "oxalis/model/actions/user_actions"; import Request from "libs/request"; diff --git a/frontend/javascripts/admin/auth/registration_view.tsx b/frontend/javascripts/admin/auth/registration_view.tsx index b6042478a9c..25c32f23839 100644 --- a/frontend/javascripts/admin/auth/registration_view.tsx +++ b/frontend/javascripts/admin/auth/registration_view.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { Link, useHistory } from "react-router-dom"; import { Spin, Row, Col, Card } from "antd"; import messages from "messages"; diff --git a/frontend/javascripts/admin/auth/start_reset_password_view.tsx b/frontend/javascripts/admin/auth/start_reset_password_view.tsx index 7fb56b888a7..f9d38f07161 100644 --- a/frontend/javascripts/admin/auth/start_reset_password_view.tsx +++ b/frontend/javascripts/admin/auth/start_reset_password_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Link, type RouteComponentProps, withRouter } from "react-router-dom"; import { Form, Input, Button, Col, Row, Card } from "antd"; import { MailOutlined } from "@ant-design/icons"; diff --git a/frontend/javascripts/admin/auth/verify_email_view.tsx b/frontend/javascripts/admin/auth/verify_email_view.tsx index e104a01c70d..6ea36e27bc9 100644 --- a/frontend/javascripts/admin/auth/verify_email_view.tsx +++ b/frontend/javascripts/admin/auth/verify_email_view.tsx @@ -1,5 +1,5 @@ import { Spin } from "antd"; -import React, { useEffect } from "react"; +import { useEffect } from "react"; import { useFetch } from "libs/react_helpers"; import { requestVerificationMail, verifyEmail } from "admin/admin_rest_api"; import Toast from "libs/toast"; diff --git a/frontend/javascripts/admin/dataset/composition_wizard/01_select_import_type.tsx b/frontend/javascripts/admin/dataset/composition_wizard/01_select_import_type.tsx index cbfc60e5b5d..e22972cb679 100644 --- a/frontend/javascripts/admin/dataset/composition_wizard/01_select_import_type.tsx +++ b/frontend/javascripts/admin/dataset/composition_wizard/01_select_import_type.tsx @@ -1,5 +1,4 @@ import { Button, Radio, type RadioChangeEvent, Space } from "antd"; -import React from "react"; import type { WizardComponentProps } from "./common"; export default function SelectImportType({ diff --git a/frontend/javascripts/admin/dataset/composition_wizard/02_upload_files.tsx b/frontend/javascripts/admin/dataset/composition_wizard/02_upload_files.tsx index dddc9160665..8d183ddfad3 100644 --- a/frontend/javascripts/admin/dataset/composition_wizard/02_upload_files.tsx +++ b/frontend/javascripts/admin/dataset/composition_wizard/02_upload_files.tsx @@ -8,7 +8,6 @@ import { SoftError } from "libs/utils"; import _ from "lodash"; import type { Vector3 } from "oxalis/constants"; import { parseNml } from "oxalis/model/helpers/nml_helpers"; -import React from "react"; import { tryToFetchDatasetsByName, type WizardComponentProps, diff --git a/frontend/javascripts/admin/dataset/composition_wizard/03_select_datasets.tsx b/frontend/javascripts/admin/dataset/composition_wizard/03_select_datasets.tsx index 9e42a94cccf..bf7291ad210 100644 --- a/frontend/javascripts/admin/dataset/composition_wizard/03_select_datasets.tsx +++ b/frontend/javascripts/admin/dataset/composition_wizard/03_select_datasets.tsx @@ -3,7 +3,7 @@ import { AsyncButton } from "components/async_clickables"; import DatasetSelectionComponent, { type DatasetSelectionValue, } from "dashboard/dataset/dataset_selection_component"; -import React, { useState } from "react"; +import { useState } from "react"; import { tryToFetchDatasetsByName, type WizardComponentProps } from "./common"; import { useEffectOnlyOnce } from "libs/react_hooks"; diff --git a/frontend/javascripts/admin/dataset/dataset_add_compose_view.tsx b/frontend/javascripts/admin/dataset/dataset_add_compose_view.tsx index a303b8964f8..6760a83a952 100644 --- a/frontend/javascripts/admin/dataset/dataset_add_compose_view.tsx +++ b/frontend/javascripts/admin/dataset/dataset_add_compose_view.tsx @@ -1,5 +1,5 @@ import { CardContainer } from "admin/dataset/dataset_components"; -import React, { useState } from "react"; +import { useState } from "react"; import type { APIDataStore } from "types/api_flow_types"; import SelectImportType from "./composition_wizard/01_select_import_type"; import UploadFiles from "./composition_wizard/02_upload_files"; diff --git a/frontend/javascripts/admin/dataset/dataset_url_import.tsx b/frontend/javascripts/admin/dataset/dataset_url_import.tsx index 41429cbb505..0230fe10d9b 100644 --- a/frontend/javascripts/admin/dataset/dataset_url_import.tsx +++ b/frontend/javascripts/admin/dataset/dataset_url_import.tsx @@ -1,4 +1,3 @@ -import React from "react"; import DatasetAddRemoteView from "admin/dataset/dataset_add_remote_view"; import { useFetch } from "libs/react_helpers"; import { getDatastores } from "admin/admin_rest_api"; diff --git a/frontend/javascripts/admin/organization/organization_edit_view.tsx b/frontend/javascripts/admin/organization/organization_edit_view.tsx index 8db92e28e96..d1dac4264a1 100644 --- a/frontend/javascripts/admin/organization/organization_edit_view.tsx +++ b/frontend/javascripts/admin/organization/organization_edit_view.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { connect } from "react-redux"; import { Form, Button, Card, Input, Row, Col, Skeleton, Typography, Space } from "antd"; import { diff --git a/frontend/javascripts/admin/project/project_create_view.tsx b/frontend/javascripts/admin/project/project_create_view.tsx index eb2c4764261..d740e20d27e 100644 --- a/frontend/javascripts/admin/project/project_create_view.tsx +++ b/frontend/javascripts/admin/project/project_create_view.tsx @@ -1,5 +1,5 @@ import { Form, Input, Select, Button, Card, InputNumber, Checkbox } from "antd"; -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { useHistory } from "react-router-dom"; import { useSelector } from "react-redux"; import type { APIUser, APITeam } from "types/api_flow_types"; diff --git a/frontend/javascripts/admin/project/transfer_all_tasks_modal.tsx b/frontend/javascripts/admin/project/transfer_all_tasks_modal.tsx index 020d4fca86a..323d0a0bc9f 100644 --- a/frontend/javascripts/admin/project/transfer_all_tasks_modal.tsx +++ b/frontend/javascripts/admin/project/transfer_all_tasks_modal.tsx @@ -1,5 +1,5 @@ import { Modal, Table, Spin } from "antd"; -import React, { useState } from "react"; +import { useState } from "react"; import _ from "lodash"; import type { APIUser, APIProject, APIActiveUser } from "types/api_flow_types"; import { diff --git a/frontend/javascripts/admin/scripts/script_create_view.tsx b/frontend/javascripts/admin/scripts/script_create_view.tsx index c8dd97fcce6..698106f389a 100644 --- a/frontend/javascripts/admin/scripts/script_create_view.tsx +++ b/frontend/javascripts/admin/scripts/script_create_view.tsx @@ -2,7 +2,7 @@ import { Form, Input, Select, Button, Card } from "antd"; import type { RouteComponentProps } from "react-router-dom"; import { withRouter } from "react-router-dom"; import { connect } from "react-redux"; -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import type { APIUser } from "types/api_flow_types"; import type { OxalisState } from "oxalis/store"; import { enforceActiveUser } from "oxalis/model/accessors/user_accessor"; diff --git a/frontend/javascripts/admin/statistic/available_tasks_report_view.tsx b/frontend/javascripts/admin/statistic/available_tasks_report_view.tsx index ca3260bdea8..737ab2a906d 100644 --- a/frontend/javascripts/admin/statistic/available_tasks_report_view.tsx +++ b/frontend/javascripts/admin/statistic/available_tasks_report_view.tsx @@ -1,5 +1,5 @@ import { Spin, Table, Card, Typography, Tooltip, Tag } from "antd"; -import React, { useState } from "react"; +import { useState } from "react"; import type { APIAvailableTasksReport } from "types/api_flow_types"; import { getAvailableTasksReport } from "admin/admin_rest_api"; import { handleGenericError } from "libs/error_handling"; diff --git a/frontend/javascripts/admin/statistic/team_selection_form.tsx b/frontend/javascripts/admin/statistic/team_selection_form.tsx index d67cd988455..e4cd706db51 100644 --- a/frontend/javascripts/admin/statistic/team_selection_form.tsx +++ b/frontend/javascripts/admin/statistic/team_selection_form.tsx @@ -1,5 +1,4 @@ import { Row, Col, Form, Button } from "antd"; -import * as React from "react"; import type { APITeam } from "types/api_flow_types"; import TeamSelectionComponent from "dashboard/dataset/team_selection_component"; const FormItem = Form.Item; diff --git a/frontend/javascripts/admin/statistic/time_tracking_detail_view.tsx b/frontend/javascripts/admin/statistic/time_tracking_detail_view.tsx index ddcf6c74c30..1cba6c630d4 100644 --- a/frontend/javascripts/admin/statistic/time_tracking_detail_view.tsx +++ b/frontend/javascripts/admin/statistic/time_tracking_detail_view.tsx @@ -1,5 +1,4 @@ import { useFetch } from "libs/react_helpers"; -import React from "react"; import type { AnnotationTypeFilterEnum } from "./project_and_annotation_type_dropdown"; import { getTimeTrackingForUserSummedPerAnnotation } from "admin/admin_rest_api"; import dayjs from "dayjs"; diff --git a/frontend/javascripts/admin/statistic/time_tracking_overview.tsx b/frontend/javascripts/admin/statistic/time_tracking_overview.tsx index f3a58bb18b9..23de64918e8 100644 --- a/frontend/javascripts/admin/statistic/time_tracking_overview.tsx +++ b/frontend/javascripts/admin/statistic/time_tracking_overview.tsx @@ -1,8 +1,7 @@ import { getTeams, getTimeEntries, getTimeTrackingForUserSpans } from "admin/admin_rest_api"; import { Card, Select, Spin, Button, DatePicker, type TimeRangePickerProps, Table } from "antd"; import { useFetch } from "libs/react_helpers"; -import _ from "lodash"; -import React, { useState } from "react"; +import { useState } from "react"; import { DownloadOutlined, FilterOutlined } from "@ant-design/icons"; import saveAs from "file-saver"; import { formatMilliseconds } from "libs/format_utils"; diff --git a/frontend/javascripts/admin/task/task_annotation_view.tsx b/frontend/javascripts/admin/task/task_annotation_view.tsx index b872d31f99b..675f8a74801 100644 --- a/frontend/javascripts/admin/task/task_annotation_view.tsx +++ b/frontend/javascripts/admin/task/task_annotation_view.tsx @@ -12,7 +12,7 @@ import { DownOutlined, } from "@ant-design/icons"; import { connect } from "react-redux"; -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import type { APIUser, APITask, APIAnnotation } from "types/api_flow_types"; import type { OxalisState } from "oxalis/store"; import { formatSeconds } from "libs/format_utils"; diff --git a/frontend/javascripts/admin/task/task_create_bulk_view.tsx b/frontend/javascripts/admin/task/task_create_bulk_view.tsx index 6a89efbc743..da323050da6 100644 --- a/frontend/javascripts/admin/task/task_create_bulk_view.tsx +++ b/frontend/javascripts/admin/task/task_create_bulk_view.tsx @@ -1,5 +1,5 @@ import { Form, Input, Button, Card, Upload, Spin, Progress, Divider, App } from "antd"; -import React, { useState } from "react"; +import { useState } from "react"; import { InboxOutlined } from "@ant-design/icons"; import _ from "lodash"; import type { APITask } from "types/api_flow_types"; diff --git a/frontend/javascripts/admin/task/task_create_view.tsx b/frontend/javascripts/admin/task/task_create_view.tsx index 72a7891b6a7..a9f40ce6ef9 100644 --- a/frontend/javascripts/admin/task/task_create_view.tsx +++ b/frontend/javascripts/admin/task/task_create_view.tsx @@ -1,6 +1,5 @@ import { BarsOutlined, ScheduleOutlined } from "@ant-design/icons"; import { Tabs, type TabsProps } from "antd"; -import React from "react"; import TaskCreateBulkView from "admin/task/task_create_bulk_view"; import TaskCreateFormView from "admin/task/task_create_form_view"; diff --git a/frontend/javascripts/admin/task/task_search_form.tsx b/frontend/javascripts/admin/task/task_search_form.tsx index e5595177f53..e37df5bdbba 100644 --- a/frontend/javascripts/admin/task/task_search_form.tsx +++ b/frontend/javascripts/admin/task/task_search_form.tsx @@ -1,7 +1,7 @@ import { Form, Row, Dropdown, Col, Button, Input, Select } from "antd"; import { DownloadOutlined, DownOutlined, RetweetOutlined } from "@ant-design/icons"; import { PropTypes } from "@scalableminds/prop-types"; -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import _ from "lodash"; import type { APIUser, APIProject, APITaskType } from "types/api_flow_types"; import { getEditableUsers, getProjects, getTaskTypes } from "admin/admin_rest_api"; diff --git a/frontend/javascripts/admin/tasktype/task_type_create_view.tsx b/frontend/javascripts/admin/tasktype/task_type_create_view.tsx index f988aa10eaa..13bcc5ebb69 100644 --- a/frontend/javascripts/admin/tasktype/task_type_create_view.tsx +++ b/frontend/javascripts/admin/tasktype/task_type_create_view.tsx @@ -3,7 +3,7 @@ import { syncValidator } from "types/validation"; import { InfoCircleOutlined } from "@ant-design/icons"; import type { RouteComponentProps } from "react-router-dom"; import { withRouter } from "react-router-dom"; -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import _ from "lodash"; import { type APITaskType, diff --git a/frontend/javascripts/admin/team/create_team_modal_view.tsx b/frontend/javascripts/admin/team/create_team_modal_view.tsx index 56ef7752eae..0bcdc293abc 100644 --- a/frontend/javascripts/admin/team/create_team_modal_view.tsx +++ b/frontend/javascripts/admin/team/create_team_modal_view.tsx @@ -1,6 +1,5 @@ import { Modal, Input, Form } from "antd"; import { TagOutlined } from "@ant-design/icons"; -import * as React from "react"; import { createTeam } from "admin/admin_rest_api"; import Shortcut from "libs/shortcut_component"; const FormItem = Form.Item; diff --git a/frontend/javascripts/admin/team/edit_team_modal_view.tsx b/frontend/javascripts/admin/team/edit_team_modal_view.tsx index 3d787311d61..a6008b5efa0 100644 --- a/frontend/javascripts/admin/team/edit_team_modal_view.tsx +++ b/frontend/javascripts/admin/team/edit_team_modal_view.tsx @@ -2,7 +2,6 @@ import { MinusCircleOutlined, PlusCircleOutlined } from "@ant-design/icons"; import { getEditableUsers, updateUser } from "admin/admin_rest_api"; import { Modal, AutoComplete, Input, Spin, Tooltip } from "antd"; import type { DefaultOptionType } from "antd/lib/select"; -import * as React from "react"; import { useState } from "react"; import type { APITeam, APITeamMembership, APIUser } from "types/api_flow_types"; import { filterTeamMembersOf, renderUsersForTeam } from "./team_list_view"; diff --git a/frontend/javascripts/admin/user/experience_modal_view.tsx b/frontend/javascripts/admin/user/experience_modal_view.tsx index 9a12908cdd3..8667d9f8f74 100644 --- a/frontend/javascripts/admin/user/experience_modal_view.tsx +++ b/frontend/javascripts/admin/user/experience_modal_view.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { Modal, Tooltip, Table, InputNumber, Tag, Badge } from "antd"; import { CloseOutlined, DeleteOutlined, RollbackOutlined } from "@ant-design/icons"; import _ from "lodash"; diff --git a/frontend/javascripts/admin/user/user_selection_component.tsx b/frontend/javascripts/admin/user/user_selection_component.tsx index a96910a5bef..4d9a1cecd99 100644 --- a/frontend/javascripts/admin/user/user_selection_component.tsx +++ b/frontend/javascripts/admin/user/user_selection_component.tsx @@ -1,5 +1,4 @@ import { Spin, Select } from "antd"; -import * as React from "react"; import _ from "lodash"; import { getUsers } from "admin/admin_rest_api"; import { useFetch } from "libs/react_helpers"; diff --git a/frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx b/frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx index 92f19d2bf03..1bfa431b025 100644 --- a/frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx +++ b/frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx @@ -2,8 +2,8 @@ import _ from "lodash"; import { useState } from "react"; import { PlusOutlined, SyncOutlined } from "@ant-design/icons"; import { Table, Button, Modal, Space } from "antd"; -import { getAiModels, getTracingForAnnotationType } from "admin/admin_rest_api"; -import type { AiModel, APIAnnotation, ServerVolumeTracing } from "types/api_flow_types"; +import { getAiModels } from "admin/admin_rest_api"; +import type { AiModel, APIAnnotation } from "types/api_flow_types"; import FormattedDate from "components/formatted_date"; import { formatUserName } from "oxalis/model/accessors/user_accessor"; import { useSelector } from "react-redux"; diff --git a/frontend/javascripts/admin/voxelytics/artifacts_view.tsx b/frontend/javascripts/admin/voxelytics/artifacts_view.tsx index e9be5450928..3457b46ce7d 100644 --- a/frontend/javascripts/admin/voxelytics/artifacts_view.tsx +++ b/frontend/javascripts/admin/voxelytics/artifacts_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { JSONTree } from "react-json-tree"; import { Button, Card, message } from "antd"; import { CopyOutlined, ExportOutlined } from "@ant-design/icons"; diff --git a/frontend/javascripts/admin/voxelytics/dag_view.tsx b/frontend/javascripts/admin/voxelytics/dag_view.tsx index 20483258646..8756d1e1069 100644 --- a/frontend/javascripts/admin/voxelytics/dag_view.tsx +++ b/frontend/javascripts/admin/voxelytics/dag_view.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useState } from "react"; +import { useRef, useState } from "react"; import ReactFlow, { MiniMap, Background, diff --git a/frontend/javascripts/admin/voxelytics/log_tab.tsx b/frontend/javascripts/admin/voxelytics/log_tab.tsx index 229d8947f76..9789b18b715 100644 --- a/frontend/javascripts/admin/voxelytics/log_tab.tsx +++ b/frontend/javascripts/admin/voxelytics/log_tab.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState } from "react"; +import { useMemo, useState } from "react"; import { Button, message, Select, Switch } from "antd"; import chalk from "chalk"; import Ansi from "ansi-to-react"; diff --git a/frontend/javascripts/admin/voxelytics/statistics_tab.tsx b/frontend/javascripts/admin/voxelytics/statistics_tab.tsx index aa9bd4c7d00..44453c9666b 100644 --- a/frontend/javascripts/admin/voxelytics/statistics_tab.tsx +++ b/frontend/javascripts/admin/voxelytics/statistics_tab.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { Button, Tooltip } from "antd"; import { SyncOutlined } from "@ant-design/icons"; import { getVoxelyticsChunkStatistics } from "admin/admin_rest_api"; diff --git a/frontend/javascripts/admin/voxelytics/task_view.tsx b/frontend/javascripts/admin/voxelytics/task_view.tsx index c25eada23eb..e9eed30e35b 100644 --- a/frontend/javascripts/admin/voxelytics/task_view.tsx +++ b/frontend/javascripts/admin/voxelytics/task_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { JSONTree, type ShouldExpandNodeInitially, type LabelRenderer } from "react-json-tree"; import { Progress, Tabs, type TabsProps, Tooltip } from "antd"; import Markdown from "libs/markdown_adapter"; diff --git a/frontend/javascripts/admin/voxelytics/workflow_view.tsx b/frontend/javascripts/admin/voxelytics/workflow_view.tsx index 5db66cb5851..6c6ad07d206 100644 --- a/frontend/javascripts/admin/voxelytics/workflow_view.tsx +++ b/frontend/javascripts/admin/voxelytics/workflow_view.tsx @@ -1,5 +1,5 @@ import _ from "lodash"; -import React, { useEffect, useState, useMemo } from "react"; +import { useEffect, useState, useMemo } from "react"; import { useParams } from "react-router-dom"; import { useSelector } from "react-redux"; import { diff --git a/frontend/javascripts/components/color_picker.tsx b/frontend/javascripts/components/color_picker.tsx index baad9671011..a896ae00a8d 100644 --- a/frontend/javascripts/components/color_picker.tsx +++ b/frontend/javascripts/components/color_picker.tsx @@ -1,4 +1,4 @@ -import React, { useRef, useState } from "react"; +import { useRef, useState } from "react"; import { Popover } from "antd"; import * as Utils from "libs/utils"; import { HexColorInput, HexColorPicker } from "react-colorful"; diff --git a/frontend/javascripts/components/credits_footer.tsx b/frontend/javascripts/components/credits_footer.tsx index ecdafe0a0e5..c643feb1f58 100644 --- a/frontend/javascripts/components/credits_footer.tsx +++ b/frontend/javascripts/components/credits_footer.tsx @@ -1,6 +1,5 @@ import { Layout } from "antd"; import { Link, type RouteComponentProps, withRouter } from "react-router-dom"; -import * as React from "react"; const { Footer } = Layout; const creditsFooter = () => ( diff --git a/frontend/javascripts/components/formatted_date.tsx b/frontend/javascripts/components/formatted_date.tsx index 5f4c7fe4e08..d40845d4eab 100644 --- a/frontend/javascripts/components/formatted_date.tsx +++ b/frontend/javascripts/components/formatted_date.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import dayjs from "dayjs"; import FastTooltip from "./fast_tooltip"; diff --git a/frontend/javascripts/components/link_button.tsx b/frontend/javascripts/components/link_button.tsx index 03d78a54b8d..5077af5fda5 100644 --- a/frontend/javascripts/components/link_button.tsx +++ b/frontend/javascripts/components/link_button.tsx @@ -1,5 +1,4 @@ import { Button, type ButtonProps } from "antd"; -import * as React from "react"; // This component should be used instead of . // One advantage of this component is that clicking the link button won't scroll diff --git a/frontend/javascripts/components/permission_enforcer.tsx b/frontend/javascripts/components/permission_enforcer.tsx index 39cf58ee907..5f279aac6a9 100644 --- a/frontend/javascripts/components/permission_enforcer.tsx +++ b/frontend/javascripts/components/permission_enforcer.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Button, Result, Col, Row } from "antd"; import { Link } from "react-router-dom"; diff --git a/frontend/javascripts/components/stacked_bar_chart.tsx b/frontend/javascripts/components/stacked_bar_chart.tsx index 7b4d270369f..d27ecb4dfc4 100644 --- a/frontend/javascripts/components/stacked_bar_chart.tsx +++ b/frontend/javascripts/components/stacked_bar_chart.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import _ from "lodash"; export const colors = { finished: "#52c41a", diff --git a/frontend/javascripts/dashboard/dataset/dataset_selection_component.tsx b/frontend/javascripts/dashboard/dataset/dataset_selection_component.tsx index 1c3d6709c7c..920f069c2c3 100644 --- a/frontend/javascripts/dashboard/dataset/dataset_selection_component.tsx +++ b/frontend/javascripts/dashboard/dataset/dataset_selection_component.tsx @@ -1,6 +1,5 @@ import { getDatasets } from "admin/admin_rest_api"; import AsyncSelect from "components/async_select"; -import React from "react"; // Usage of AsyncSelect export interface DatasetSelectionValue { diff --git a/frontend/javascripts/dashboard/dataset/dataset_settings_delete_tab.tsx b/frontend/javascripts/dashboard/dataset/dataset_settings_delete_tab.tsx index b1aed31440b..225308170ac 100644 --- a/frontend/javascripts/dashboard/dataset/dataset_settings_delete_tab.tsx +++ b/frontend/javascripts/dashboard/dataset/dataset_settings_delete_tab.tsx @@ -1,5 +1,5 @@ import { Button } from "antd"; -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import type { APIDataset, APIDatasetId } from "types/api_flow_types"; import { getDataset, deleteDatasetOnDisk } from "admin/admin_rest_api"; import Toast from "libs/toast"; diff --git a/frontend/javascripts/dashboard/dataset/dataset_settings_metadata_tab.tsx b/frontend/javascripts/dashboard/dataset/dataset_settings_metadata_tab.tsx index 674968044af..1ef0e257afb 100644 --- a/frontend/javascripts/dashboard/dataset/dataset_settings_metadata_tab.tsx +++ b/frontend/javascripts/dashboard/dataset/dataset_settings_metadata_tab.tsx @@ -1,5 +1,4 @@ import { Input, Col, Row, DatePicker } from "antd"; -import React from "react"; import { FormItemWithInfo } from "./helper_components"; export default function DatasetSettingsMetadataTab() { diff --git a/frontend/javascripts/dashboard/dataset/dataset_settings_viewconfig_tab.tsx b/frontend/javascripts/dashboard/dataset/dataset_settings_viewconfig_tab.tsx index f8ca6100443..b1fe4b446cc 100644 --- a/frontend/javascripts/dashboard/dataset/dataset_settings_viewconfig_tab.tsx +++ b/frontend/javascripts/dashboard/dataset/dataset_settings_viewconfig_tab.tsx @@ -14,7 +14,7 @@ import { Slider, Divider, } from "antd"; -import React, { useMemo, useState } from "react"; +import { useMemo, useState } from "react"; import { Vector3Input } from "libs/vector_input"; import { validateLayerViewConfigurationObjectJSON, syncValidator } from "types/validation"; import { getDefaultLayerViewConfiguration } from "types/schemas/dataset_view_configuration.schema"; diff --git a/frontend/javascripts/dashboard/dataset/queries.tsx b/frontend/javascripts/dashboard/dataset/queries.tsx index e2c33933d32..e5a1fe4317c 100644 --- a/frontend/javascripts/dashboard/dataset/queries.tsx +++ b/frontend/javascripts/dashboard/dataset/queries.tsx @@ -16,7 +16,7 @@ import { updateFolder, } from "admin/api/folders"; import Toast from "libs/toast"; -import React, { useEffect, useRef } from "react"; +import { useEffect, useRef } from "react"; import { type APIDatasetId, type APIDatasetCompact, diff --git a/frontend/javascripts/dashboard/folders/details_sidebar.tsx b/frontend/javascripts/dashboard/folders/details_sidebar.tsx index 3ae7b85798e..ac3e946e65f 100644 --- a/frontend/javascripts/dashboard/folders/details_sidebar.tsx +++ b/frontend/javascripts/dashboard/folders/details_sidebar.tsx @@ -14,7 +14,7 @@ import { OwningOrganizationRow, VoxelSizeRow, } from "oxalis/view/right-border-tabs/dataset_info_tab_view"; -import React, { useEffect } from "react"; +import { useEffect } from "react"; import type { APIDatasetCompact, Folder } from "types/api_flow_types"; import { DatasetLayerTags, DatasetTags, TeamTags } from "../advanced_dataset/dataset_table"; import { useDatasetCollectionContext } from "../dataset/dataset_collection_context"; diff --git a/frontend/javascripts/dashboard/folders/edit_folder_modal.tsx b/frontend/javascripts/dashboard/folders/edit_folder_modal.tsx index 5569538c91e..00e748a4723 100644 --- a/frontend/javascripts/dashboard/folders/edit_folder_modal.tsx +++ b/frontend/javascripts/dashboard/folders/edit_folder_modal.tsx @@ -4,7 +4,7 @@ import { FormItemWithInfo } from "dashboard/dataset/helper_components"; import { useFolderQuery } from "dashboard/dataset/queries"; import TeamSelectionComponent from "dashboard/dataset/team_selection_component"; import Shortcut from "libs/shortcut_component"; -import React, { useEffect, useRef } from "react"; +import { useEffect, useRef } from "react"; import type { APITeam } from "types/api_flow_types"; diff --git a/frontend/javascripts/dashboard/folders/folder_selection.tsx b/frontend/javascripts/dashboard/folders/folder_selection.tsx index 4946d3d14ad..49681796820 100644 --- a/frontend/javascripts/dashboard/folders/folder_selection.tsx +++ b/frontend/javascripts/dashboard/folders/folder_selection.tsx @@ -1,6 +1,6 @@ import _ from "lodash"; import { TreeSelect } from "antd"; -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { useFolderHierarchyQuery } from "dashboard/dataset/queries"; import type { FolderItem } from "types/api_flow_types"; diff --git a/frontend/javascripts/dashboard/folders/folder_tree.tsx b/frontend/javascripts/dashboard/folders/folder_tree.tsx index 69d09fe02b0..e8c9703f047 100644 --- a/frontend/javascripts/dashboard/folders/folder_tree.tsx +++ b/frontend/javascripts/dashboard/folders/folder_tree.tsx @@ -10,13 +10,12 @@ import { import { DeleteOutlined, EditOutlined, PlusOutlined } from "@ant-design/icons"; import { Dropdown, Modal, type MenuProps, Tree } from "antd"; import Toast from "libs/toast"; -import type { AntTreeNodeSelectedEvent, DataNode, DirectoryTreeProps } from "antd/lib/tree"; +import type { DataNode, DirectoryTreeProps } from "antd/lib/tree"; import memoizeOne from "memoize-one"; import classNames from "classnames"; import type { FolderItem } from "types/api_flow_types"; import { PricingEnforcedSpan } from "components/pricing_enforcers"; import { PricingPlanEnum } from "admin/organization/pricing_plan_utils"; -import { AntTreeNodeBaseEvent } from "antd/es/tree/Tree"; const { DirectoryTree } = Tree; diff --git a/frontend/javascripts/dashboard/publication_details_view.tsx b/frontend/javascripts/dashboard/publication_details_view.tsx index 151a901d9aa..2c557b8afde 100644 --- a/frontend/javascripts/dashboard/publication_details_view.tsx +++ b/frontend/javascripts/dashboard/publication_details_view.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { Layout, Spin, Tooltip } from "antd"; import { ArrowLeftOutlined } from "@ant-design/icons"; import { getPublication } from "admin/admin_rest_api"; diff --git a/frontend/javascripts/libs/UpdatableTexture.ts b/frontend/javascripts/libs/UpdatableTexture.ts index 1ed5ff9f286..e920cff3872 100644 --- a/frontend/javascripts/libs/UpdatableTexture.ts +++ b/frontend/javascripts/libs/UpdatableTexture.ts @@ -1,5 +1,4 @@ import * as THREE from "three"; -import _ from "lodash"; /* The UpdatableTexture class exposes a way to partially update a texture. * Since we use this class for data which is usually only available in chunks, diff --git a/frontend/javascripts/libs/browser_feature_check.tsx b/frontend/javascripts/libs/browser_feature_check.tsx index c5aed5130bf..2cbcb1bd248 100644 --- a/frontend/javascripts/libs/browser_feature_check.tsx +++ b/frontend/javascripts/libs/browser_feature_check.tsx @@ -1,4 +1,3 @@ -import React from "react"; import Toast from "./toast"; export default function checkBrowserFeatures() { diff --git a/frontend/javascripts/libs/cuckoo/abstract_cuckoo_table.ts b/frontend/javascripts/libs/cuckoo/abstract_cuckoo_table.ts index 4b7dc388b3c..e17a6b6f6b7 100644 --- a/frontend/javascripts/libs/cuckoo/abstract_cuckoo_table.ts +++ b/frontend/javascripts/libs/cuckoo/abstract_cuckoo_table.ts @@ -2,7 +2,6 @@ import * as THREE from "three"; import type UpdatableTexture from "libs/UpdatableTexture"; import { getRenderer } from "oxalis/controller/renderer"; import { createUpdatableTexture } from "oxalis/geometries/materials/plane_material_factory_helpers"; -import _ from "lodash"; const DEFAULT_LOAD_FACTOR = 0.9; export const EMPTY_KEY_VALUE = 2 ** 32 - 1; diff --git a/frontend/javascripts/libs/render_independently.tsx b/frontend/javascripts/libs/render_independently.tsx index 902f160f677..275cdb8d6bd 100644 --- a/frontend/javascripts/libs/render_independently.tsx +++ b/frontend/javascripts/libs/render_independently.tsx @@ -1,5 +1,4 @@ import type React from "react"; -import ReactDOM from "react-dom"; import { document } from "libs/window"; import { Provider } from "react-redux"; import GlobalThemeProvider from "theme"; diff --git a/frontend/javascripts/messages.tsx b/frontend/javascripts/messages.tsx index 689703831f4..75695efab5d 100644 --- a/frontend/javascripts/messages.tsx +++ b/frontend/javascripts/messages.tsx @@ -1,4 +1,3 @@ -import React from "react"; import _ from "lodash"; import type { Vector4 } from "oxalis/constants"; import type { diff --git a/frontend/javascripts/navbar.tsx b/frontend/javascripts/navbar.tsx index c18c4b129be..ea809744fd2 100644 --- a/frontend/javascripts/navbar.tsx +++ b/frontend/javascripts/navbar.tsx @@ -14,7 +14,6 @@ import { type InputRef, ConfigProvider, } from "antd"; -import _ from "lodash"; import { SwapOutlined, TeamOutlined, diff --git a/frontend/javascripts/oxalis/controller/combinations/move_handlers.ts b/frontend/javascripts/oxalis/controller/combinations/move_handlers.ts index d891498452b..4ab6334c70f 100644 --- a/frontend/javascripts/oxalis/controller/combinations/move_handlers.ts +++ b/frontend/javascripts/oxalis/controller/combinations/move_handlers.ts @@ -12,7 +12,6 @@ import { import { setViewportAction, zoomTDViewAction } from "oxalis/model/actions/view_mode_actions"; import { getActiveResolutionInfo } from "oxalis/model/accessors/flycam_accessor"; import { setMousePositionAction } from "oxalis/model/actions/volumetracing_actions"; -import _ from "lodash"; export function setMousePosition(position: Point2 | null | undefined): void { if (position != null) { diff --git a/frontend/javascripts/oxalis/controller/merger_mode_controller.tsx b/frontend/javascripts/oxalis/controller/merger_mode_controller.tsx index b2d9a81a7f7..bbe0036df0f 100644 --- a/frontend/javascripts/oxalis/controller/merger_mode_controller.tsx +++ b/frontend/javascripts/oxalis/controller/merger_mode_controller.tsx @@ -1,5 +1,5 @@ import { connect } from "react-redux"; -import React, { PureComponent } from "react"; +import { PureComponent } from "react"; import type { OxalisState } from "oxalis/store"; import { enableMergerMode, disableMergerMode } from "oxalis/merger_mode"; import MergerModeModalView from "oxalis/view/merger_mode_modal_view"; diff --git a/frontend/javascripts/oxalis/model/actions/skeletontracing_actions.tsx b/frontend/javascripts/oxalis/model/actions/skeletontracing_actions.tsx index ad5235ce29f..a70e9b65726 100644 --- a/frontend/javascripts/oxalis/model/actions/skeletontracing_actions.tsx +++ b/frontend/javascripts/oxalis/model/actions/skeletontracing_actions.tsx @@ -1,6 +1,5 @@ import { Modal } from "antd"; import renderIndependently from "libs/render_independently"; -import _ from "lodash"; import messages from "messages"; import type { TreeType, Vector3 } from "oxalis/constants"; import { diff --git a/frontend/javascripts/oxalis/model/bucket_data_handling/data_rendering_logic.tsx b/frontend/javascripts/oxalis/model/bucket_data_handling/data_rendering_logic.tsx index f46614a9c05..2b09d17f8fb 100644 --- a/frontend/javascripts/oxalis/model/bucket_data_handling/data_rendering_logic.tsx +++ b/frontend/javascripts/oxalis/model/bucket_data_handling/data_rendering_logic.tsx @@ -1,4 +1,3 @@ -import React from "react"; import _ from "lodash"; import { document } from "libs/window"; import constants from "oxalis/constants"; diff --git a/frontend/javascripts/oxalis/model/bucket_data_handling/pushqueue.ts b/frontend/javascripts/oxalis/model/bucket_data_handling/pushqueue.ts index a2319545258..894261633a5 100644 --- a/frontend/javascripts/oxalis/model/bucket_data_handling/pushqueue.ts +++ b/frontend/javascripts/oxalis/model/bucket_data_handling/pushqueue.ts @@ -1,4 +1,3 @@ -import _ from "lodash"; import type { DataBucket } from "oxalis/model/bucket_data_handling/bucket"; import { createCompressedUpdateBucketActions } from "oxalis/model/bucket_data_handling/wkstore_adapter"; import type DataCube from "oxalis/model/bucket_data_handling/data_cube"; diff --git a/frontend/javascripts/oxalis/model/sagas/quick_select_saga.ts b/frontend/javascripts/oxalis/model/sagas/quick_select_saga.ts index 8b568aa4fe8..d863505aed4 100644 --- a/frontend/javascripts/oxalis/model/sagas/quick_select_saga.ts +++ b/frontend/javascripts/oxalis/model/sagas/quick_select_saga.ts @@ -1,4 +1,3 @@ -import _ from "lodash"; import ErrorHandling from "libs/error_handling"; import { type Saga, select } from "oxalis/model/sagas/effect-generators"; diff --git a/frontend/javascripts/oxalis/model/sagas/volumetracing_saga.tsx b/frontend/javascripts/oxalis/model/sagas/volumetracing_saga.tsx index 42ecceb0d37..e68f02071ec 100644 --- a/frontend/javascripts/oxalis/model/sagas/volumetracing_saga.tsx +++ b/frontend/javascripts/oxalis/model/sagas/volumetracing_saga.tsx @@ -102,7 +102,6 @@ import { import type VolumeLayer from "oxalis/model/volumetracing/volumelayer"; import { Model, api } from "oxalis/singletons"; import type { Flycam, SegmentMap, VolumeTracing } from "oxalis/store"; -import React from "react"; import { actionChannel, call, fork, put, takeEvery, takeLatest } from "typed-redux-saga"; import { applyLabeledVoxelMapToAllMissingResolutions, diff --git a/frontend/javascripts/oxalis/shaders/thin_plate_spline.glsl.ts b/frontend/javascripts/oxalis/shaders/thin_plate_spline.glsl.ts index 29ad68dd8d1..31db3a1aff1 100644 --- a/frontend/javascripts/oxalis/shaders/thin_plate_spline.glsl.ts +++ b/frontend/javascripts/oxalis/shaders/thin_plate_spline.glsl.ts @@ -1,5 +1,4 @@ import type TPS3D from "libs/thin_plate_spline"; -import _ from "lodash"; import { formatNumberAsGLSLFloat } from "./utils.glsl"; export function generateTpsInitialization( diff --git a/frontend/javascripts/oxalis/view/action-bar/create_animation_modal.tsx b/frontend/javascripts/oxalis/view/action-bar/create_animation_modal.tsx index 87367d24946..c973b0950c7 100644 --- a/frontend/javascripts/oxalis/view/action-bar/create_animation_modal.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/create_animation_modal.tsx @@ -4,7 +4,6 @@ import React, { useState } from "react"; import { startRenderAnimationJob } from "admin/admin_rest_api"; import Toast from "libs/toast"; -import _ from "lodash"; import Store, { type MeshInformation, type OxalisState, type UserBoundingBox } from "oxalis/store"; import { diff --git a/frontend/javascripts/oxalis/view/action-bar/private_links_view.tsx b/frontend/javascripts/oxalis/view/action-bar/private_links_view.tsx index f22fbc8dff5..62fdab65748 100644 --- a/frontend/javascripts/oxalis/view/action-bar/private_links_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/private_links_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { createPrivateLink, deletePrivateLink, diff --git a/frontend/javascripts/oxalis/view/action-bar/quick_select_settings.tsx b/frontend/javascripts/oxalis/view/action-bar/quick_select_settings.tsx index 38eabdacd1b..33653082be9 100644 --- a/frontend/javascripts/oxalis/view/action-bar/quick_select_settings.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/quick_select_settings.tsx @@ -6,7 +6,6 @@ import { import { updateUserSettingAction } from "oxalis/model/actions/settings_actions"; import { useDispatch, useSelector } from "react-redux"; import type { OxalisState } from "oxalis/store"; -import React from "react"; import defaultState from "oxalis/default_state"; import Shortcut from "libs/shortcut_component"; import { Radio, type RadioChangeEvent } from "antd"; diff --git a/frontend/javascripts/oxalis/view/action-bar/share_view_dataset_modal_view.tsx b/frontend/javascripts/oxalis/view/action-bar/share_view_dataset_modal_view.tsx index 55460465a12..4b6af0c9ffe 100644 --- a/frontend/javascripts/oxalis/view/action-bar/share_view_dataset_modal_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/share_view_dataset_modal_view.tsx @@ -1,7 +1,6 @@ import { CopyOutlined } from "@ant-design/icons"; import { Modal, Input, Button, Row, Col, Dropdown, Space } from "antd"; import { useSelector } from "react-redux"; -import React from "react"; import { makeComponentLazy } from "libs/react_helpers"; import messages from "messages"; import type { OxalisState } from "oxalis/store"; diff --git a/frontend/javascripts/oxalis/view/action-bar/view_dataset_actions_view.tsx b/frontend/javascripts/oxalis/view/action-bar/view_dataset_actions_view.tsx index ea634c22a30..74723d5c024 100644 --- a/frontend/javascripts/oxalis/view/action-bar/view_dataset_actions_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/view_dataset_actions_view.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { useSelector } from "react-redux"; import { Dropdown, type MenuProps } from "antd"; import { diff --git a/frontend/javascripts/oxalis/view/action-bar/view_modes_view.tsx b/frontend/javascripts/oxalis/view/action-bar/view_modes_view.tsx index 0e8d1313e0c..cb74404fe05 100644 --- a/frontend/javascripts/oxalis/view/action-bar/view_modes_view.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/view_modes_view.tsx @@ -1,7 +1,7 @@ import { Button, Dropdown, type MenuProps, Space } from "antd"; import { connect } from "react-redux"; import type { Dispatch } from "redux"; -import React, { PureComponent } from "react"; +import { PureComponent } from "react"; import { setViewModeAction, setFlightmodeRecordingAction, diff --git a/frontend/javascripts/oxalis/view/components/categorization_label.tsx b/frontend/javascripts/oxalis/view/components/categorization_label.tsx index 5d2bea266d7..a623a5b80b5 100644 --- a/frontend/javascripts/oxalis/view/components/categorization_label.tsx +++ b/frontend/javascripts/oxalis/view/components/categorization_label.tsx @@ -1,6 +1,6 @@ import { Tag, Tooltip } from "antd"; import UserLocalStorage from "libs/user_local_storage"; -import React, { type MouseEventHandler, useEffect } from "react"; +import { type MouseEventHandler, useEffect } from "react"; import { stringToColor } from "libs/format_utils"; import { useEffectOnlyOnce } from "libs/react_hooks"; type LabelProps = { diff --git a/frontend/javascripts/oxalis/view/components/input_with_update_on_blur.tsx b/frontend/javascripts/oxalis/view/components/input_with_update_on_blur.tsx index 95bcd8ee61b..743a3e782c2 100644 --- a/frontend/javascripts/oxalis/view/components/input_with_update_on_blur.tsx +++ b/frontend/javascripts/oxalis/view/components/input_with_update_on_blur.tsx @@ -1,4 +1,4 @@ -import { Input, InputNumber, type InputNumberProps, type InputProps } from "antd"; +import { Input, type InputProps } from "antd"; import FastTooltip from "components/fast_tooltip"; import { useCallback, useEffect, useState } from "react"; diff --git a/frontend/javascripts/oxalis/view/components/setting_input_views.tsx b/frontend/javascripts/oxalis/view/components/setting_input_views.tsx index e019c7be77e..e18e3829935 100644 --- a/frontend/javascripts/oxalis/view/components/setting_input_views.tsx +++ b/frontend/javascripts/oxalis/view/components/setting_input_views.tsx @@ -8,7 +8,6 @@ import { Select, Popover, type PopoverProps, - Dropdown, type MenuProps, } from "antd"; import { @@ -32,7 +31,6 @@ import type { APISegmentationLayer } from "types/api_flow_types"; import { api } from "oxalis/singletons"; import FastTooltip from "components/fast_tooltip"; import Toast from "libs/toast"; -import { handleGenericError } from "libs/error_handling"; const ROW_GUTTER = 1; diff --git a/frontend/javascripts/oxalis/view/distance_measurement_tooltip.tsx b/frontend/javascripts/oxalis/view/distance_measurement_tooltip.tsx index 522ad33a03b..85ded86875a 100644 --- a/frontend/javascripts/oxalis/view/distance_measurement_tooltip.tsx +++ b/frontend/javascripts/oxalis/view/distance_measurement_tooltip.tsx @@ -1,6 +1,5 @@ import { useDispatch, useSelector } from "react-redux"; -import _ from "lodash"; -import React, { useEffect, useRef } from "react"; +import { useEffect, useRef } from "react"; import type { OxalisState } from "oxalis/store"; import { AnnotationToolEnum, diff --git a/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx b/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx index 757db35bf95..2113876dc4a 100644 --- a/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx +++ b/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx @@ -1,4 +1,4 @@ -import { Button, Col, Divider, Dropdown, type MenuProps, Modal, Row, Switch, Tooltip } from "antd"; +import { Button, Col, Divider, Dropdown, type MenuProps, Modal, Row, Switch } from "antd"; import type { Dispatch } from "redux"; import { EditOutlined, diff --git a/frontend/javascripts/oxalis/view/left-border-tabs/modals/downsample_volume_modal.tsx b/frontend/javascripts/oxalis/view/left-border-tabs/modals/downsample_volume_modal.tsx index 18643d49d4e..22a77369817 100644 --- a/frontend/javascripts/oxalis/view/left-border-tabs/modals/downsample_volume_modal.tsx +++ b/frontend/javascripts/oxalis/view/left-border-tabs/modals/downsample_volume_modal.tsx @@ -1,5 +1,5 @@ import { Modal } from "antd"; -import React, { useState } from "react"; +import { useState } from "react"; import { AsyncButton } from "components/async_clickables"; import type { Vector3 } from "oxalis/constants"; import type { VolumeTracing } from "oxalis/store"; diff --git a/frontend/javascripts/oxalis/view/merger_mode_modal_view.tsx b/frontend/javascripts/oxalis/view/merger_mode_modal_view.tsx index a92cc666f4f..d8491256a56 100644 --- a/frontend/javascripts/oxalis/view/merger_mode_modal_view.tsx +++ b/frontend/javascripts/oxalis/view/merger_mode_modal_view.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Modal, Button, Spin, Tooltip } from "antd"; type Props = { diff --git a/frontend/javascripts/oxalis/view/novel_user_experiences/welcome_toast.tsx b/frontend/javascripts/oxalis/view/novel_user_experiences/welcome_toast.tsx index f37cd03072d..2e9b209fe80 100644 --- a/frontend/javascripts/oxalis/view/novel_user_experiences/welcome_toast.tsx +++ b/frontend/javascripts/oxalis/view/novel_user_experiences/welcome_toast.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Button, notification } from "antd"; import { useSelector } from "react-redux"; import features from "features"; diff --git a/frontend/javascripts/oxalis/view/recording_switch.tsx b/frontend/javascripts/oxalis/view/recording_switch.tsx index c515085dc9e..8d26d2a4019 100644 --- a/frontend/javascripts/oxalis/view/recording_switch.tsx +++ b/frontend/javascripts/oxalis/view/recording_switch.tsx @@ -1,6 +1,5 @@ import { Switch } from "antd"; import { connect } from "react-redux"; -import * as React from "react"; import type { Dispatch } from "redux"; import type { OxalisState } from "oxalis/store"; import { setFlightmodeRecordingAction } from "oxalis/model/actions/settings_actions"; diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/delete_group_modal_view.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/delete_group_modal_view.tsx index 619c5958d8c..bae50076b91 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/delete_group_modal_view.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/delete_group_modal_view.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Modal, Button } from "antd"; import messages from "messages"; diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/hide_tree_eges_icon.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/hide_tree_eges_icon.tsx index fb651899ead..6da4abfe650 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/hide_tree_eges_icon.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/hide_tree_eges_icon.tsx @@ -1,5 +1,5 @@ import type { OxalisState } from "oxalis/store"; -import React, { type CSSProperties, type StyleHTMLAttributes } from "react"; +import type { CSSProperties, StyleHTMLAttributes } from "react"; import { useSelector } from "react-redux"; export function HideTreeEdgesIcon({ diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/metadata_table.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/metadata_table.tsx index 2d75f653c1f..f55aa120a25 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/metadata_table.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/metadata_table.tsx @@ -13,7 +13,6 @@ import { type MetadataEntryProto, } from "types/api_flow_types"; import { InputWithUpdateOnBlur } from "../components/input_with_update_on_blur"; -import _ from "lodash"; import { memo } from "react"; import FastTooltip from "components/fast_tooltip"; diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_statistics_modal.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_statistics_modal.tsx index 5b0af3819fd..d7ac006d461 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_statistics_modal.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_statistics_modal.tsx @@ -6,7 +6,6 @@ import { useFetch } from "libs/react_helpers"; import { LongUnitToShortUnitMap, type Vector3 } from "oxalis/constants"; import { getMappingInfo, getResolutionInfo } from "oxalis/model/accessors/dataset_accessor"; import type { OxalisState, Segment } from "oxalis/store"; -import React from "react"; import { type SegmentHierarchyNode, type SegmentHierarchyGroup, diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/skeleton_tab_view.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/skeleton_tab_view.tsx index 94fa8e41b6d..4d49662dcdf 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/skeleton_tab_view.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/skeleton_tab_view.tsx @@ -1,15 +1,4 @@ -import { - Alert, - Button, - Dropdown, - Empty, - Spin, - Modal, - Tooltip, - notification, - type MenuProps, - Space, -} from "antd"; +import { Dropdown, Empty, Spin, Modal, Tooltip, notification, type MenuProps, Space } from "antd"; import type { Dispatch } from "redux"; import { DownloadOutlined, diff --git a/frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view.tsx b/frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view.tsx index e42f7901d1b..1be8545a2cc 100644 --- a/frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view.tsx +++ b/frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view.tsx @@ -1,4 +1,4 @@ -import { DownOutlined, TagsOutlined } from "@ant-design/icons"; +import { DownOutlined } from "@ant-design/icons"; import { Tree as AntdTree, type GetRef, type MenuProps, Modal, type TreeProps } from "antd"; import React, { memo, useCallback, useEffect, useRef, useState } from "react"; import AutoSizer from "react-virtualized-auto-sizer"; diff --git a/frontend/javascripts/oxalis/view/scalebar.tsx b/frontend/javascripts/oxalis/view/scalebar.tsx index 07ae11d5de8..54cc894d7ec 100644 --- a/frontend/javascripts/oxalis/view/scalebar.tsx +++ b/frontend/javascripts/oxalis/view/scalebar.tsx @@ -1,5 +1,4 @@ import { connect } from "react-redux"; -import * as React from "react"; import type { APIDataset } from "types/api_flow_types"; import type { OxalisState } from "oxalis/store"; import { formatNumberToLength } from "libs/format_utils"; diff --git a/frontend/javascripts/oxalis/view/statusbar.tsx b/frontend/javascripts/oxalis/view/statusbar.tsx index bf821ea778f..a4761f1c41e 100644 --- a/frontend/javascripts/oxalis/view/statusbar.tsx +++ b/frontend/javascripts/oxalis/view/statusbar.tsx @@ -35,7 +35,6 @@ import { } from "oxalis/model/accessors/volumetracing_accessor"; import { getGlobalDataConnectionInfo } from "oxalis/model/data_connection_info"; import { useInterval } from "libs/react_helpers"; -import _ from "lodash"; import type { AdditionalCoordinate } from "types/api_flow_types"; import FastTooltip from "components/fast_tooltip"; import { Store } from "oxalis/singletons"; diff --git a/frontend/javascripts/oxalis/view/td_view_controls.tsx b/frontend/javascripts/oxalis/view/td_view_controls.tsx index 7cb0f7b0fd8..266246411ba 100644 --- a/frontend/javascripts/oxalis/view/td_view_controls.tsx +++ b/frontend/javascripts/oxalis/view/td_view_controls.tsx @@ -16,7 +16,6 @@ import { BorderOuterOutlined, SettingOutlined, } from "@ant-design/icons"; -import * as React from "react"; import { connect } from "react-redux"; import type { Dispatch } from "redux"; import type { OxalisState } from "oxalis/store"; diff --git a/frontend/javascripts/oxalis/view/version_list.tsx b/frontend/javascripts/oxalis/view/version_list.tsx index 9ccdaac3bf5..be21599922e 100644 --- a/frontend/javascripts/oxalis/view/version_list.tsx +++ b/frontend/javascripts/oxalis/view/version_list.tsx @@ -1,5 +1,5 @@ import { Button, List, Spin } from "antd"; -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import _ from "lodash"; import dayjs from "dayjs"; import type { APIUpdateActionBatch } from "types/api_flow_types"; diff --git a/frontend/javascripts/test/libs/async_fifo_resolver.spec.ts b/frontend/javascripts/test/libs/async_fifo_resolver.spec.ts index 53db8fd27e0..38e18a405b6 100644 --- a/frontend/javascripts/test/libs/async_fifo_resolver.spec.ts +++ b/frontend/javascripts/test/libs/async_fifo_resolver.spec.ts @@ -1,6 +1,5 @@ import { sleep } from "libs/utils"; import test from "ava"; -import _ from "lodash"; import { AsyncFifoResolver } from "libs/async/async_fifo_resolver"; const createSubmitterFnWithProtocol = () => { diff --git a/frontend/javascripts/test/libs/estimate_affine.spec.ts b/frontend/javascripts/test/libs/estimate_affine.spec.ts index 2027162bcca..bca32c5e201 100644 --- a/frontend/javascripts/test/libs/estimate_affine.spec.ts +++ b/frontend/javascripts/test/libs/estimate_affine.spec.ts @@ -1,5 +1,4 @@ import "test/mocks/lz4"; -import _ from "lodash"; import test from "ava"; import type { Vector3 } from "oxalis/constants"; import Matrix from "ml-matrix"; diff --git a/frontend/javascripts/test/libs/format_utils.spec.ts b/frontend/javascripts/test/libs/format_utils.spec.ts index 08fb69be52e..425f8c877bc 100644 --- a/frontend/javascripts/test/libs/format_utils.spec.ts +++ b/frontend/javascripts/test/libs/format_utils.spec.ts @@ -1,5 +1,4 @@ import test from "ava"; -import _ from "lodash"; import { UnitShort, Unicode } from "oxalis/constants"; import { formatNumberToArea, formatNumberToLength, formatNumberToVolume } from "libs/format_utils"; diff --git a/frontend/javascripts/test/libs/thin_plate_spline.spec.ts b/frontend/javascripts/test/libs/thin_plate_spline.spec.ts index 42f01b80a00..fd4407c462c 100644 --- a/frontend/javascripts/test/libs/thin_plate_spline.spec.ts +++ b/frontend/javascripts/test/libs/thin_plate_spline.spec.ts @@ -1,5 +1,4 @@ import "test/mocks/lz4"; -import _ from "lodash"; import test from "ava"; import TPS3D from "libs/thin_plate_spline"; import { almostEqual, getPointsC555 } from "./transform_spec_helpers"; diff --git a/frontend/javascripts/test/model/cuckoo_table_uint32.spec.ts b/frontend/javascripts/test/model/cuckoo_table_uint32.spec.ts index 62d25f9f0ff..b942f37198c 100644 --- a/frontend/javascripts/test/model/cuckoo_table_uint32.spec.ts +++ b/frontend/javascripts/test/model/cuckoo_table_uint32.spec.ts @@ -1,6 +1,5 @@ import mock from "mock-require"; import test, { type ExecutionContext } from "ava"; -import _ from "lodash"; import "test/mocks/globals.mock"; import "test/mocks/updatable_texture.mock"; diff --git a/frontend/javascripts/test/model/cuckoo_table_uint64.spec.ts b/frontend/javascripts/test/model/cuckoo_table_uint64.spec.ts index b1eb8bc48b0..c2c14a0a65b 100644 --- a/frontend/javascripts/test/model/cuckoo_table_uint64.spec.ts +++ b/frontend/javascripts/test/model/cuckoo_table_uint64.spec.ts @@ -1,6 +1,5 @@ import mock from "mock-require"; import test, { type ExecutionContext } from "ava"; -import _ from "lodash"; import "test/mocks/globals.mock"; import "test/mocks/updatable_texture.mock"; diff --git a/frontend/javascripts/test/model/transformation_helpers.spec.ts b/frontend/javascripts/test/model/transformation_helpers.spec.ts index a3a4f7db51d..aca09109327 100644 --- a/frontend/javascripts/test/model/transformation_helpers.spec.ts +++ b/frontend/javascripts/test/model/transformation_helpers.spec.ts @@ -1,5 +1,4 @@ import "test/mocks/lz4"; -import _ from "lodash"; import test from "ava"; import type { Vector3 } from "oxalis/constants"; import { almostEqual } from "test/libs/transform_spec_helpers"; diff --git a/frontend/javascripts/types/api_flow_types.ts b/frontend/javascripts/types/api_flow_types.ts index efaca167c85..2ede117844c 100644 --- a/frontend/javascripts/types/api_flow_types.ts +++ b/frontend/javascripts/types/api_flow_types.ts @@ -24,7 +24,7 @@ import type { UnitLong, } from "oxalis/constants"; import type { PricingPlanEnum } from "admin/organization/pricing_plan_utils"; -import type { EmptyObject, ValueOf } from "./globals"; +import type { EmptyObject } from "./globals"; export type AdditionalCoordinate = { name: string; value: number };