diff --git a/src/ui/components/function/FunctionalDetail.tsx b/src/ui/components/function/FunctionalDetail.tsx index 48c45fc6..3289faf3 100644 --- a/src/ui/components/function/FunctionalDetail.tsx +++ b/src/ui/components/function/FunctionalDetail.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; import NoFunctionalDataRow from './NoFunctionalDataRow'; import FunctionalDataRow from './FunctionalDataRow'; -import LoaderRow from '../result/LoaderRow'; +import LoaderRow from '../../pages/result/LoaderRow'; import {getFunctionalData} from "../../../services/ProtVarService"; import {FunctionalResponse} from "../../../types/FunctionalResponse"; import {AMScore, ConservScore, ESMScore, EVEScore, TranslatedSequence} from "../../../types/MappingResponse"; diff --git a/src/ui/components/population/PopulationDetail.tsx b/src/ui/components/population/PopulationDetail.tsx index 166253d2..8464e2a4 100644 --- a/src/ui/components/population/PopulationDetail.tsx +++ b/src/ui/components/population/PopulationDetail.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import PopulationDataRow from './PopulationDataRow'; import NoPopulationDataRow from './NoPopulationDataRow'; -import LoaderRow from '../result/LoaderRow'; +import LoaderRow from '../../pages/result/LoaderRow'; import {getPopulationData} from "../../../services/ProtVarService"; import {PopulationObservationResponse} from "../../../types/PopulationObservationResponse"; diff --git a/src/ui/components/structure/StructuralDetail.tsx b/src/ui/components/structure/StructuralDetail.tsx index da0d1dea..8b991285 100644 --- a/src/ui/components/structure/StructuralDetail.tsx +++ b/src/ui/components/structure/StructuralDetail.tsx @@ -3,7 +3,7 @@ import PdbInfoTable from './PdbInfoTable'; import AlphafoldInfoTable from './AlphafoldInfoTable'; import PdbeMolstar from "./PdbeMolstar"; import InteractionInfoTable from "./InteractionInfoTable"; -import LoaderRow from "../result/LoaderRow"; +import LoaderRow from "../../pages/result/LoaderRow"; import PdbeRef from "./PdbeRef"; import {getPredictedStructure} from "../../../services/AlphafoldService"; import {getFunctionalData, getStructureData} from "../../../services/ProtVarService"; diff --git a/src/ui/layout/DefaultPageContent.tsx b/src/ui/layout/DefaultPageContent.tsx index f8fa640a..5bb3ee44 100644 --- a/src/ui/layout/DefaultPageContent.tsx +++ b/src/ui/layout/DefaultPageContent.tsx @@ -1,7 +1,7 @@ import { NavLink } from 'react-router-dom' import {DOWNLOAD, HOME, RESULT} from '../../constants/BrowserPaths' import {useEffect, useState} from "react"; -import ResultHistory from "../components/result/ResultHistory"; +import ResultHistory from "../pages/result/ResultHistory"; import {LOCAL_DOWNLOADS, LOCAL_RESULTS} from "../../constants/const"; import useLocalStorage from "../../hooks/useLocalStorage"; import {SET_ITEM} from "../../context/LocalStorageContext"; diff --git a/src/ui/layout/DefaultPageLayout.tsx b/src/ui/layout/DefaultPageLayout.tsx index 6cdfdc17..269a3c08 100644 --- a/src/ui/layout/DefaultPageLayout.tsx +++ b/src/ui/layout/DefaultPageLayout.tsx @@ -8,7 +8,7 @@ import DefaultPageContent from './DefaultPageContent' import EMBLEBILogo from '../../images/embl-ebi-logo.svg' import openTargetsLogo from '../../images/open-targets-logo.png' import SignUp from "./SignUp"; -import {WARN_ICON} from "../components/result/MsgRow"; +import {WARN_ICON} from "../pages/result/MsgRow"; import {CookieConsent} from "react-cookie-consent"; interface DefaultPageLayoutProps { content: JSX.Element diff --git a/src/ui/pages/query/QueryPage.tsx b/src/ui/pages/query/QueryPage.tsx index 45c32f4b..6ec3f6c7 100644 --- a/src/ui/pages/query/QueryPage.tsx +++ b/src/ui/pages/query/QueryPage.tsx @@ -1,6 +1,6 @@ import {useEffect, useState} from 'react' import {useLocation, useSearchParams} from 'react-router-dom' -import ResultTable from '../../components/result/ResultTable' +import ResultTable from '../result/ResultTable' import DefaultPageLayout from '../../layout/DefaultPageLayout' import DownloadModal from '../../modal/DownloadModal' import LegendModal from '../../modal/LegendModal' diff --git a/src/ui/components/result/AlternateIsoFormRow.tsx b/src/ui/pages/result/AlternateIsoFormRow.tsx similarity index 97% rename from src/ui/components/result/AlternateIsoFormRow.tsx rename to src/ui/pages/result/AlternateIsoFormRow.tsx index 4ea8a3fd..98ff4d6f 100644 --- a/src/ui/components/result/AlternateIsoFormRow.tsx +++ b/src/ui/pages/result/AlternateIsoFormRow.tsx @@ -5,7 +5,7 @@ import Tool from "../../elements/Tool"; import Spaces from "../../elements/Spaces"; import { EmptyElement } from "../../../constants/ConstElement"; import {Gene, GenomicInput, IsoFormMapping} from "../../../types/MappingResponse"; -import {aaChangeStr} from "../search/PrimaryRow"; +import {aaChangeStr} from "./PrimaryRow"; import {rowBg} from "./ResultTable"; export function aaChangeTip(change: string | undefined) { diff --git a/src/ui/components/result/LoaderRow.tsx b/src/ui/pages/result/LoaderRow.tsx similarity index 100% rename from src/ui/components/result/LoaderRow.tsx rename to src/ui/pages/result/LoaderRow.tsx diff --git a/src/ui/components/result/MsgRow.tsx b/src/ui/pages/result/MsgRow.tsx similarity index 100% rename from src/ui/components/result/MsgRow.tsx rename to src/ui/pages/result/MsgRow.tsx diff --git a/src/ui/components/search/PrimaryRow.css b/src/ui/pages/result/PrimaryRow.css similarity index 100% rename from src/ui/components/search/PrimaryRow.css rename to src/ui/pages/result/PrimaryRow.css diff --git a/src/ui/components/search/PrimaryRow.tsx b/src/ui/pages/result/PrimaryRow.tsx similarity index 94% rename from src/ui/components/search/PrimaryRow.tsx rename to src/ui/pages/result/PrimaryRow.tsx index 0dc6d4f9..4414f78a 100644 --- a/src/ui/components/search/PrimaryRow.tsx +++ b/src/ui/pages/result/PrimaryRow.tsx @@ -13,16 +13,16 @@ import { import { ALLELE, CONSEQUENCES } from "../../../constants/SearchResultTable"; import Spaces from "../../elements/Spaces"; import Tool from "../../elements/Tool"; -import {caddScoreAttr, formatCaddScore} from "../function/prediction/CaddScorePred"; -import {amScoreAttr, formatAMScore} from "../function/prediction/AlphaMissensePred"; +import {caddScoreAttr, formatCaddScore} from "../../components/function/prediction/CaddScorePred"; +import {amScoreAttr, formatAMScore} from "../../components/function/prediction/AlphaMissensePred"; import ProteinIcon from '../../../images/proteins.svg'; import StructureIcon from '../../../images/structures-3d.svg'; import PopulationIcon from '../../../images/human.svg'; -import LoaderRow from "../result/LoaderRow"; +import LoaderRow from "./LoaderRow"; import { ReactComponent as ChevronDownIcon } from "../../../images/chevron-down.svg" import { ReactComponent as ChevronUpIcon } from "../../../images/chevron-up.svg" import { EmptyElement } from "../../../constants/ConstElement"; -import {aaChangeTip, CanonicalIcon, getProteinName} from "../result/AlternateIsoFormRow"; +import {aaChangeTip, CanonicalIcon, getProteinName} from "./AlternateIsoFormRow"; import { INPUT_GEN, INPUT_PRO, @@ -33,11 +33,11 @@ import { IsoFormMapping, CustomInput, TranslatedSequence } from "../../../types/MappingResponse"; -import {rowBg} from "../result/ResultTable"; +import {rowBg} from "./ResultTable"; -const StructuralDetail = lazy(() => import(/* webpackChunkName: "StructuralDetail" */ "../structure/StructuralDetail")); -const PopulationDetail = lazy(() => import(/* webpackChunkName: "PopulationDetail" */ "../population/PopulationDetail")); -const FunctionalDetail = lazy(() => import(/* webpackChunkName: "FunctionalDetail" */ "../function/FunctionalDetail")); +const StructuralDetail = lazy(() => import(/* webpackChunkName: "StructuralDetail" */ "../../components/structure/StructuralDetail")); +const PopulationDetail = lazy(() => import(/* webpackChunkName: "PopulationDetail" */ "../../components/population/PopulationDetail")); +const FunctionalDetail = lazy(() => import(/* webpackChunkName: "FunctionalDetail" */ "../../components/function/FunctionalDetail")); export const getIdUrl = (id:string) => { if (id) { diff --git a/src/ui/components/result/ResultHistory.css b/src/ui/pages/result/ResultHistory.css similarity index 100% rename from src/ui/components/result/ResultHistory.css rename to src/ui/pages/result/ResultHistory.css diff --git a/src/ui/components/result/ResultHistory.tsx b/src/ui/pages/result/ResultHistory.tsx similarity index 100% rename from src/ui/components/result/ResultHistory.tsx rename to src/ui/pages/result/ResultHistory.tsx diff --git a/src/ui/pages/result/ResultPage.tsx b/src/ui/pages/result/ResultPage.tsx index 39491153..17ebc046 100644 --- a/src/ui/pages/result/ResultPage.tsx +++ b/src/ui/pages/result/ResultPage.tsx @@ -1,7 +1,7 @@ import DefaultPageLayout from "../../layout/DefaultPageLayout"; import LegendModal from "../../modal/LegendModal"; import {useLocation, useParams, useSearchParams} from "react-router-dom"; -import ResultTable from "../../components/result/ResultTable"; +import ResultTable from "./ResultTable"; import React, {useCallback, useEffect, useState} from "react"; import PaginationRow from "./PaginationRow"; import {DEFAULT_PAGE, DEFAULT_PAGE_SIZE, LOCAL_RESULTS, PERMITTED_PAGE_SIZES, TITLE} from "../../../constants/const"; diff --git a/src/ui/components/result/ResultTable.tsx b/src/ui/pages/result/ResultTable.tsx similarity index 99% rename from src/ui/components/result/ResultTable.tsx rename to src/ui/pages/result/ResultTable.tsx index 32266924..f54376d9 100644 --- a/src/ui/components/result/ResultTable.tsx +++ b/src/ui/pages/result/ResultTable.tsx @@ -11,7 +11,7 @@ import { } from "../../../types/MappingResponse"; import {StringVoidFun} from "../../../constants/CommonTypes"; import {getAlternateIsoFormRow} from "./AlternateIsoFormRow"; -import {getNewPrimaryRow} from "../search/PrimaryRow"; +import {getNewPrimaryRow} from "./PrimaryRow"; import {AppContext} from "../../App"; import Loader from "../../elements/Loader"; import MsgRow from "./MsgRow";