From 9559158bfeeb274e9ccf1b4563f1b23b42afc493 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Wed, 5 Jul 2023 10:04:55 +0200 Subject: Decompose Kotlin/Java analysis (#3034) * Extract analysis into separate modules --- .../base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx | 4 ++-- plugins/base/frontend/src/main/components/search/search.tsx | 8 ++++---- plugins/base/frontend/src/main/components/utils/requests.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/base/frontend/src/main/components') diff --git a/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx b/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx index 1d0c8c10..d5150dd5 100644 --- a/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx +++ b/plugins/base/frontend/src/main/components/search/dokkaFuzzyFilter.tsx @@ -2,7 +2,7 @@ import Select from '@jetbrains/ring-ui/components/select/select'; import {Option, OptionWithHighlightComponent, OptionWithSearchResult} from "./types"; import fuzzyHighlight from '@jetbrains/ring-ui/components/global/fuzzy-highlight.js' import React from "react"; -import {SearchResultRow, signatureFromSearchResult} from "./searchResultRow"; +import {SearchResultRow} from "./searchResultRow"; import _ from "lodash"; const orderRecords = (records: OptionWithSearchResult[], searchPhrase: string): OptionWithSearchResult[] => { @@ -94,4 +94,4 @@ export class DokkaFuzzyFilterComponent extends Select { return highlightMatchedPhrases(orderRecords(matchedRecords, filterPhrase)) } -} \ No newline at end of file +} diff --git a/plugins/base/frontend/src/main/components/search/search.tsx b/plugins/base/frontend/src/main/components/search/search.tsx index d4e406bf..045f6365 100644 --- a/plugins/base/frontend/src/main/components/search/search.tsx +++ b/plugins/base/frontend/src/main/components/search/search.tsx @@ -1,12 +1,12 @@ -import React, { useCallback, useEffect, useState } from 'react'; +import React, {useCallback, useEffect, useState} from 'react'; import List from '@jetbrains/ring-ui/components/list/list'; import Select from '@jetbrains/ring-ui/components/select/select'; import '@jetbrains/ring-ui/components/input-size/input-size.css'; import './search.scss'; import {CustomAnchorProps, IWindow, Option, Props} from "./types"; -import { DokkaSearchAnchor } from "./dokkaSearchAnchor"; -import { DokkaFuzzyFilterComponent } from "./dokkaFuzzyFilter"; -import { relativizeUrlForRequest } from '../utils/requests'; +import {DokkaSearchAnchor} from "./dokkaSearchAnchor"; +import {DokkaFuzzyFilterComponent} from "./dokkaFuzzyFilter"; +import {relativizeUrlForRequest} from '../utils/requests'; const WithFuzzySearchFilterComponent: React.FC = ({ data }: Props) => { const [selected, onSelected] = useState