From dddbc232c24c21c0486a599aa55b10697526959e Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 23 Jul 2023 10:14:58 +0200 Subject: [PATCH] Move mercure module to shlink-web-component --- src/container/index.ts | 2 +- src/container/types.ts | 2 +- src/{ => shlink-web-component}/mercure/helpers/Topics.ts | 0 .../mercure/helpers/boundToMercureHub.tsx | 2 +- src/{ => shlink-web-component}/mercure/helpers/index.ts | 0 .../mercure/reducers/mercureInfo.ts | 6 +++--- .../mercure/services/provideServices.ts | 0 src/shlink-web-component/overview/Overview.tsx | 4 ++-- src/shlink-web-component/short-urls/ShortUrlsList.tsx | 4 ++-- src/shlink-web-component/tags/TagsList.tsx | 4 ++-- src/shlink-web-component/visits/DomainVisits.tsx | 4 ++-- src/shlink-web-component/visits/NonOrphanVisits.tsx | 4 ++-- src/shlink-web-component/visits/OrphanVisits.tsx | 4 ++-- src/shlink-web-component/visits/ShortUrlVisits.tsx | 4 ++-- src/shlink-web-component/visits/TagVisits.tsx | 4 ++-- test/mercure/helpers/index.test.tsx | 4 ++-- test/mercure/reducers/mercureInfo.test.ts | 2 +- test/servers/Overview.test.tsx | 2 +- test/short-urls/ShortUrlsList.test.tsx | 2 +- test/tags/TagsList.test.tsx | 2 +- test/visits/DomainVisits.test.tsx | 2 +- test/visits/NonOrphanVisits.test.tsx | 2 +- test/visits/OrphanVisits.test.tsx | 2 +- test/visits/ShortUrlVisits.test.tsx | 2 +- test/visits/TagVisits.test.tsx | 2 +- 25 files changed, 33 insertions(+), 33 deletions(-) rename src/{ => shlink-web-component}/mercure/helpers/Topics.ts (100%) rename src/{ => shlink-web-component}/mercure/helpers/boundToMercureHub.tsx (95%) rename src/{ => shlink-web-component}/mercure/helpers/index.ts (100%) rename src/{ => shlink-web-component}/mercure/reducers/mercureInfo.ts (85%) rename src/{ => shlink-web-component}/mercure/services/provideServices.ts (100%) diff --git a/src/container/index.ts b/src/container/index.ts index 9ce49776..ea362314 100644 --- a/src/container/index.ts +++ b/src/container/index.ts @@ -5,11 +5,11 @@ import { connect as reduxConnect } from 'react-redux'; import { provideServices as provideApiServices } from '../api/services/provideServices'; import { provideServices as provideAppServices } from '../app/services/provideServices'; import { provideServices as provideCommonServices } from '../common/services/provideServices'; -import { provideServices as provideMercureServices } from '../mercure/services/provideServices'; import { provideServices as provideServersServices } from '../servers/services/provideServices'; import { provideServices as provideSettingsServices } from '../settings/services/provideServices'; import { provideServices as provideWebComponentServices } from '../shlink-web-component/container/provideServices'; import { provideServices as provideDomainsServices } from '../shlink-web-component/domains/services/provideServices'; +import { provideServices as provideMercureServices } from '../shlink-web-component/mercure/services/provideServices'; import { provideServices as provideShortUrlsServices } from '../shlink-web-component/short-urls/services/provideServices'; import { provideServices as provideTagsServices } from '../shlink-web-component/tags/services/provideServices'; import { provideServices as provideVisitsServices } from '../shlink-web-component/visits/services/provideServices'; diff --git a/src/container/types.ts b/src/container/types.ts index 017e149a..9d027174 100644 --- a/src/container/types.ts +++ b/src/container/types.ts @@ -1,8 +1,8 @@ import type { Sidebar } from '../common/reducers/sidebar'; -import type { MercureInfo } from '../mercure/reducers/mercureInfo'; import type { SelectedServer, ServersMap } from '../servers/data'; import type { Settings } from '../settings/reducers/settings'; import type { DomainsList } from '../shlink-web-component/domains/reducers/domainsList'; +import type { MercureInfo } from '../shlink-web-component/mercure/reducers/mercureInfo'; import type { ShortUrlCreation } from '../shlink-web-component/short-urls/reducers/shortUrlCreation'; import type { ShortUrlDeletion } from '../shlink-web-component/short-urls/reducers/shortUrlDeletion'; import type { ShortUrlDetail } from '../shlink-web-component/short-urls/reducers/shortUrlDetail'; diff --git a/src/mercure/helpers/Topics.ts b/src/shlink-web-component/mercure/helpers/Topics.ts similarity index 100% rename from src/mercure/helpers/Topics.ts rename to src/shlink-web-component/mercure/helpers/Topics.ts diff --git a/src/mercure/helpers/boundToMercureHub.tsx b/src/shlink-web-component/mercure/helpers/boundToMercureHub.tsx similarity index 95% rename from src/mercure/helpers/boundToMercureHub.tsx rename to src/shlink-web-component/mercure/helpers/boundToMercureHub.tsx index ff9592eb..854c9a4c 100644 --- a/src/mercure/helpers/boundToMercureHub.tsx +++ b/src/shlink-web-component/mercure/helpers/boundToMercureHub.tsx @@ -2,7 +2,7 @@ import { pipe } from 'ramda'; import type { FC } from 'react'; import { useEffect } from 'react'; import { useParams } from 'react-router-dom'; -import type { CreateVisit } from '../../shlink-web-component/visits/types'; +import type { CreateVisit } from '../../visits/types'; import type { MercureInfo } from '../reducers/mercureInfo'; import { bindToMercureTopic } from './index'; diff --git a/src/mercure/helpers/index.ts b/src/shlink-web-component/mercure/helpers/index.ts similarity index 100% rename from src/mercure/helpers/index.ts rename to src/shlink-web-component/mercure/helpers/index.ts diff --git a/src/mercure/reducers/mercureInfo.ts b/src/shlink-web-component/mercure/reducers/mercureInfo.ts similarity index 85% rename from src/mercure/reducers/mercureInfo.ts rename to src/shlink-web-component/mercure/reducers/mercureInfo.ts index 6b3898fe..feed0cf4 100644 --- a/src/mercure/reducers/mercureInfo.ts +++ b/src/shlink-web-component/mercure/reducers/mercureInfo.ts @@ -1,7 +1,7 @@ import { createSlice } from '@reduxjs/toolkit'; -import type { ShlinkApiClientBuilder } from '../../api/services/ShlinkApiClientBuilder'; -import type { ShlinkMercureInfo } from '../../api/types'; -import { createAsyncThunk } from '../../utils/helpers/redux'; +import type { ShlinkApiClientBuilder } from '../../../api/services/ShlinkApiClientBuilder'; +import type { ShlinkMercureInfo } from '../../../api/types'; +import { createAsyncThunk } from '../../../utils/helpers/redux'; const REDUCER_PREFIX = 'shlink/mercure'; diff --git a/src/mercure/services/provideServices.ts b/src/shlink-web-component/mercure/services/provideServices.ts similarity index 100% rename from src/mercure/services/provideServices.ts rename to src/shlink-web-component/mercure/services/provideServices.ts diff --git a/src/shlink-web-component/overview/Overview.tsx b/src/shlink-web-component/overview/Overview.tsx index 2e2b3220..7f81c014 100644 --- a/src/shlink-web-component/overview/Overview.tsx +++ b/src/shlink-web-component/overview/Overview.tsx @@ -3,14 +3,14 @@ import { useEffect } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { Card, CardBody, CardHeader, Row } from 'reactstrap'; import type { ShlinkShortUrlsListParams } from '../../api/types'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import type { SelectedServer } from '../../servers/data'; import { getServerId } from '../../servers/data'; import { HighlightCard } from '../../servers/helpers/HighlightCard'; import { VisitsHighlightCard } from '../../servers/helpers/VisitsHighlightCard'; import type { Settings } from '../../settings/reducers/settings'; import { prettify } from '../../utils/helpers/numbers'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { CreateShortUrlProps } from '../short-urls/CreateShortUrl'; import type { ShortUrlsList as ShortUrlsListState } from '../short-urls/reducers/shortUrlsList'; import { ITEMS_IN_OVERVIEW_PAGE } from '../short-urls/reducers/shortUrlsList'; diff --git a/src/shlink-web-component/short-urls/ShortUrlsList.tsx b/src/shlink-web-component/short-urls/ShortUrlsList.tsx index f9f92f9d..f25bed60 100644 --- a/src/shlink-web-component/short-urls/ShortUrlsList.tsx +++ b/src/shlink-web-component/short-urls/ShortUrlsList.tsx @@ -3,8 +3,6 @@ import { useEffect, useState } from 'react'; import { useLocation, useParams } from 'react-router-dom'; import { Card } from 'reactstrap'; import type { ShlinkShortUrlsListParams, ShlinkShortUrlsOrder } from '../../api/types'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import type { SelectedServer } from '../../servers/data'; import { getServerId } from '../../servers/data'; import type { Settings } from '../../settings/reducers/settings'; @@ -12,6 +10,8 @@ import { DEFAULT_SHORT_URLS_ORDERING } from '../../settings/reducers/settings'; import type { OrderDir } from '../../utils/helpers/ordering'; import { determineOrderDir } from '../../utils/helpers/ordering'; import { TableOrderIcon } from '../../utils/table/TableOrderIcon'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import { useFeature } from '../utils/features'; import type { ShortUrlsOrder, ShortUrlsOrderableFields } from './data'; import { useShortUrlsQuery } from './helpers/hooks'; diff --git a/src/shlink-web-component/tags/TagsList.tsx b/src/shlink-web-component/tags/TagsList.tsx index 79056abd..1ac63ad5 100644 --- a/src/shlink-web-component/tags/TagsList.tsx +++ b/src/shlink-web-component/tags/TagsList.tsx @@ -3,8 +3,6 @@ import type { FC } from 'react'; import { useEffect, useState } from 'react'; import { Row } from 'reactstrap'; import { ShlinkApiError } from '../../api/ShlinkApiError'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import type { SelectedServer } from '../../servers/data'; import type { Settings } from '../../settings/reducers/settings'; import { determineOrderDir, sortList } from '../../utils/helpers/ordering'; @@ -12,6 +10,8 @@ import { Message } from '../../utils/Message'; import { OrderingDropdown } from '../../utils/OrderingDropdown'; import { Result } from '../../utils/Result'; import { SearchField } from '../../utils/SearchField'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { SimplifiedTag } from './data'; import type { TagsOrder, TagsOrderableFields } from './data/TagsListChildrenProps'; import { TAGS_ORDERABLE_FIELDS } from './data/TagsListChildrenProps'; diff --git a/src/shlink-web-component/visits/DomainVisits.tsx b/src/shlink-web-component/visits/DomainVisits.tsx index 9f1cdc59..345e2ce5 100644 --- a/src/shlink-web-component/visits/DomainVisits.tsx +++ b/src/shlink-web-component/visits/DomainVisits.tsx @@ -1,9 +1,9 @@ import { useParams } from 'react-router-dom'; import type { ShlinkVisitsParams } from '../../api/types'; import type { ReportExporter } from '../../common/services/ReportExporter'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import { useGoBack } from '../../utils/helpers/hooks'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { DomainVisits as DomainVisitsState, LoadDomainVisits } from './reducers/domainVisits'; import type { NormalizedVisit } from './types'; import type { CommonVisitsProps } from './types/CommonVisitsProps'; diff --git a/src/shlink-web-component/visits/NonOrphanVisits.tsx b/src/shlink-web-component/visits/NonOrphanVisits.tsx index b7b6c957..aad15a70 100644 --- a/src/shlink-web-component/visits/NonOrphanVisits.tsx +++ b/src/shlink-web-component/visits/NonOrphanVisits.tsx @@ -1,7 +1,7 @@ import type { ReportExporter } from '../../common/services/ReportExporter'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import { useGoBack } from '../../utils/helpers/hooks'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { LoadVisits, VisitsInfo } from './reducers/types'; import type { NormalizedVisit, VisitsParams } from './types'; import type { CommonVisitsProps } from './types/CommonVisitsProps'; diff --git a/src/shlink-web-component/visits/OrphanVisits.tsx b/src/shlink-web-component/visits/OrphanVisits.tsx index 0f3b91bd..fec22e5a 100644 --- a/src/shlink-web-component/visits/OrphanVisits.tsx +++ b/src/shlink-web-component/visits/OrphanVisits.tsx @@ -1,7 +1,7 @@ import type { ReportExporter } from '../../common/services/ReportExporter'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import { useGoBack } from '../../utils/helpers/hooks'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { LoadOrphanVisits } from './reducers/orphanVisits'; import type { VisitsInfo } from './reducers/types'; import type { NormalizedVisit, VisitsParams } from './types'; diff --git a/src/shlink-web-component/visits/ShortUrlVisits.tsx b/src/shlink-web-component/visits/ShortUrlVisits.tsx index 08c754f3..a1e82aaf 100644 --- a/src/shlink-web-component/visits/ShortUrlVisits.tsx +++ b/src/shlink-web-component/visits/ShortUrlVisits.tsx @@ -1,10 +1,10 @@ import { useEffect } from 'react'; import { useLocation, useParams } from 'react-router-dom'; import type { ReportExporter } from '../../common/services/ReportExporter'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import { useGoBack } from '../../utils/helpers/hooks'; import { parseQuery } from '../../utils/helpers/query'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { ShortUrlIdentifier } from '../short-urls/data'; import { urlDecodeShortCode } from '../short-urls/helpers'; import type { ShortUrlDetail } from '../short-urls/reducers/shortUrlDetail'; diff --git a/src/shlink-web-component/visits/TagVisits.tsx b/src/shlink-web-component/visits/TagVisits.tsx index 105b216e..311fe5bf 100644 --- a/src/shlink-web-component/visits/TagVisits.tsx +++ b/src/shlink-web-component/visits/TagVisits.tsx @@ -1,10 +1,10 @@ import { useParams } from 'react-router-dom'; import type { ShlinkVisitsParams } from '../../api/types'; import type { ReportExporter } from '../../common/services/ReportExporter'; -import { boundToMercureHub } from '../../mercure/helpers/boundToMercureHub'; -import { Topics } from '../../mercure/helpers/Topics'; import { useGoBack } from '../../utils/helpers/hooks'; import type { ColorGenerator } from '../../utils/services/ColorGenerator'; +import { boundToMercureHub } from '../mercure/helpers/boundToMercureHub'; +import { Topics } from '../mercure/helpers/Topics'; import type { LoadTagVisits, TagVisits as TagVisitsState } from './reducers/tagVisits'; import { TagVisitsHeader } from './TagVisitsHeader'; import type { NormalizedVisit } from './types'; diff --git a/test/mercure/helpers/index.test.tsx b/test/mercure/helpers/index.test.tsx index 0d620272..05899f02 100644 --- a/test/mercure/helpers/index.test.tsx +++ b/test/mercure/helpers/index.test.tsx @@ -1,8 +1,8 @@ import { fromPartial } from '@total-typescript/shoehorn'; import { EventSourcePolyfill } from 'event-source-polyfill'; import { identity } from 'ramda'; -import { bindToMercureTopic } from '../../../src/mercure/helpers'; -import type { MercureInfo } from '../../../src/mercure/reducers/mercureInfo'; +import { bindToMercureTopic } from '../../../src/shlink-web-component/mercure/helpers'; +import type { MercureInfo } from '../../../src/shlink-web-component/mercure/reducers/mercureInfo'; vi.mock('event-source-polyfill'); diff --git a/test/mercure/reducers/mercureInfo.test.ts b/test/mercure/reducers/mercureInfo.test.ts index 2e1f0b45..c891cdd5 100644 --- a/test/mercure/reducers/mercureInfo.test.ts +++ b/test/mercure/reducers/mercureInfo.test.ts @@ -1,7 +1,7 @@ import { fromPartial } from '@total-typescript/shoehorn'; import type { ShlinkApiClient } from '../../../src/api/services/ShlinkApiClient'; import type { GetState } from '../../../src/container/types'; -import { mercureInfoReducerCreator } from '../../../src/mercure/reducers/mercureInfo'; +import { mercureInfoReducerCreator } from '../../../src/shlink-web-component/mercure/reducers/mercureInfo'; describe('mercureInfoReducer', () => { const mercureInfo = { diff --git a/test/servers/Overview.test.tsx b/test/servers/Overview.test.tsx index e28bbf18..795c5eeb 100644 --- a/test/servers/Overview.test.tsx +++ b/test/servers/Overview.test.tsx @@ -1,7 +1,7 @@ import { screen, waitFor } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { MemoryRouter } from 'react-router-dom'; -import type { MercureInfo } from '../../src/mercure/reducers/mercureInfo'; +import type { MercureInfo } from '../../src/shlink-web-component/mercure/reducers/mercureInfo'; import { Overview as overviewCreator } from '../../src/shlink-web-component/overview/Overview'; import { prettify } from '../../src/utils/helpers/numbers'; import { renderWithEvents } from '../__helpers__/setUpTest'; diff --git a/test/short-urls/ShortUrlsList.test.tsx b/test/short-urls/ShortUrlsList.test.tsx index 42583d63..119195be 100644 --- a/test/short-urls/ShortUrlsList.test.tsx +++ b/test/short-urls/ShortUrlsList.test.tsx @@ -1,8 +1,8 @@ import { screen } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { MemoryRouter, useNavigate } from 'react-router-dom'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; import type { Settings } from '../../src/settings/reducers/settings'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import type { ShortUrlsOrder } from '../../src/shlink-web-component/short-urls/data'; import type { ShortUrlsList as ShortUrlsListModel } from '../../src/shlink-web-component/short-urls/reducers/shortUrlsList'; import { ShortUrlsList as createShortUrlsList } from '../../src/shlink-web-component/short-urls/ShortUrlsList'; diff --git a/test/tags/TagsList.test.tsx b/test/tags/TagsList.test.tsx index 254aa7b1..e4bb0ca9 100644 --- a/test/tags/TagsList.test.tsx +++ b/test/tags/TagsList.test.tsx @@ -1,7 +1,7 @@ import { screen, waitFor } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { identity } from 'ramda'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import type { TagsList } from '../../src/shlink-web-component/tags/reducers/tagsList'; import type { TagsListProps } from '../../src/shlink-web-component/tags/TagsList'; import { TagsList as createTagsList } from '../../src/shlink-web-component/tags/TagsList'; diff --git a/test/visits/DomainVisits.test.tsx b/test/visits/DomainVisits.test.tsx index e62ffbf8..a50565ae 100644 --- a/test/visits/DomainVisits.test.tsx +++ b/test/visits/DomainVisits.test.tsx @@ -2,7 +2,7 @@ import { screen } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { formatISO } from 'date-fns'; import { MemoryRouter } from 'react-router-dom'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import { DomainVisits as createDomainVisits } from '../../src/shlink-web-component/visits/DomainVisits'; import type { DomainVisits } from '../../src/shlink-web-component/visits/reducers/domainVisits'; import { renderWithEvents } from '../__helpers__/setUpTest'; diff --git a/test/visits/NonOrphanVisits.test.tsx b/test/visits/NonOrphanVisits.test.tsx index 91a5237d..2c34d205 100644 --- a/test/visits/NonOrphanVisits.test.tsx +++ b/test/visits/NonOrphanVisits.test.tsx @@ -2,7 +2,7 @@ import { screen } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { formatISO } from 'date-fns'; import { MemoryRouter } from 'react-router-dom'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import { NonOrphanVisits as createNonOrphanVisits } from '../../src/shlink-web-component/visits/NonOrphanVisits'; import type { VisitsInfo } from '../../src/shlink-web-component/visits/reducers/types'; import { renderWithEvents } from '../__helpers__/setUpTest'; diff --git a/test/visits/OrphanVisits.test.tsx b/test/visits/OrphanVisits.test.tsx index f1c8f673..1cd56646 100644 --- a/test/visits/OrphanVisits.test.tsx +++ b/test/visits/OrphanVisits.test.tsx @@ -2,7 +2,7 @@ import { screen } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { formatISO } from 'date-fns'; import { MemoryRouter } from 'react-router-dom'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import { OrphanVisits as createOrphanVisits } from '../../src/shlink-web-component/visits/OrphanVisits'; import type { VisitsInfo } from '../../src/shlink-web-component/visits/reducers/types'; import { renderWithEvents } from '../__helpers__/setUpTest'; diff --git a/test/visits/ShortUrlVisits.test.tsx b/test/visits/ShortUrlVisits.test.tsx index 6d6fc2f1..d41bdc60 100644 --- a/test/visits/ShortUrlVisits.test.tsx +++ b/test/visits/ShortUrlVisits.test.tsx @@ -3,7 +3,7 @@ import { fromPartial } from '@total-typescript/shoehorn'; import { formatISO } from 'date-fns'; import { identity } from 'ramda'; import { MemoryRouter } from 'react-router-dom'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import type { ShortUrlVisits as ShortUrlVisitsState } from '../../src/shlink-web-component/visits/reducers/shortUrlVisits'; import type { ShortUrlVisitsProps } from '../../src/shlink-web-component/visits/ShortUrlVisits'; import { ShortUrlVisits as createShortUrlVisits } from '../../src/shlink-web-component/visits/ShortUrlVisits'; diff --git a/test/visits/TagVisits.test.tsx b/test/visits/TagVisits.test.tsx index df153872..31908c23 100644 --- a/test/visits/TagVisits.test.tsx +++ b/test/visits/TagVisits.test.tsx @@ -2,7 +2,7 @@ import { screen } from '@testing-library/react'; import { fromPartial } from '@total-typescript/shoehorn'; import { formatISO } from 'date-fns'; import { MemoryRouter } from 'react-router'; -import type { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub'; +import type { MercureBoundProps } from '../../src/shlink-web-component/mercure/helpers/boundToMercureHub'; import type { TagVisits as TagVisitsStats } from '../../src/shlink-web-component/visits/reducers/tagVisits'; import type { TagVisitsProps } from '../../src/shlink-web-component/visits/TagVisits'; import { TagVisits as createTagVisits } from '../../src/shlink-web-component/visits/TagVisits';