diff --git a/frontend/app/components/modules/project/components/popularity/forks.vue b/frontend/app/components/modules/project/components/popularity/forks.vue index a2cbe70dd..95d2b2128 100644 --- a/frontend/app/components/modules/project/components/popularity/forks.vue +++ b/frontend/app/components/modules/project/components/popularity/forks.vue @@ -56,7 +56,7 @@ import { ref, computed } from 'vue'; import { storeToRefs } from "pinia"; import LfxProjectLoadState from '../shared/load-state.vue'; import LfxSkeletonState from '../shared/skeleton-state.vue'; -import type { ForksData } from './types/popularity.types'; +import type { ForksData } from '~~/types/popularity/responses.types'; import { lineGranularities, barGranularities } from '~/components/shared/types/granularity'; import type { Summary } from '~~/types/shared/summary.types'; import LfxCard from '~/components/uikit/card/card.vue'; diff --git a/frontend/app/components/modules/project/components/popularity/github-mentions.vue b/frontend/app/components/modules/project/components/popularity/github-mentions.vue index 0e9ce5ec2..39ac97d95 100644 --- a/frontend/app/components/modules/project/components/popularity/github-mentions.vue +++ b/frontend/app/components/modules/project/components/popularity/github-mentions.vue @@ -41,7 +41,7 @@ import { useFetch, useRoute } from 'nuxt/app'; import { ref, computed, watch } from 'vue'; import { storeToRefs } from "pinia"; -import type { GithubMentions } from './types/mentions.types'; +import type { GithubMentions } from '~~/types/popularity/responses.types'; import type { Summary } from '~~/types/shared/summary.types'; import LfxCard from '~/components/uikit/card/card.vue'; import LfxDeltaDisplay from '~/components/uikit/delta-display/delta-display.vue'; diff --git a/frontend/app/components/modules/project/components/popularity/press-mentions.vue b/frontend/app/components/modules/project/components/popularity/press-mentions.vue index ca7948272..f266337d1 100644 --- a/frontend/app/components/modules/project/components/popularity/press-mentions.vue +++ b/frontend/app/components/modules/project/components/popularity/press-mentions.vue @@ -38,8 +38,8 @@ import { useFetch, useRoute } from 'nuxt/app'; import { ref, computed, watch } from 'vue'; import { storeToRefs } from "pinia"; -import type { PressMentions, PressMention } from './types/mentions.types'; import LfxProjectPressMentionLists from './fragments/press-mention-lists.vue'; +import type { PressMentions, PressMention } from '~~/types/popularity/responses.types'; import type { Summary } from '~~/types/shared/summary.types'; import LfxCard from '~/components/uikit/card/card.vue'; import LfxDeltaDisplay from '~/components/uikit/delta-display/delta-display.vue'; diff --git a/frontend/app/components/modules/project/components/popularity/social-mentions.vue b/frontend/app/components/modules/project/components/popularity/social-mentions.vue index d3d2b2cea..21bba2576 100644 --- a/frontend/app/components/modules/project/components/popularity/social-mentions.vue +++ b/frontend/app/components/modules/project/components/popularity/social-mentions.vue @@ -41,7 +41,7 @@ import { useFetch, useRoute } from 'nuxt/app'; import { ref, computed, watch } from 'vue'; import { storeToRefs } from "pinia"; -import type { SocialMentions } from './types/mentions.types'; +import type { SocialMentions } from '~~/types/popularity/responses.types'; import type { Summary } from '~~/types/shared/summary.types'; import LfxCard from '~/components/uikit/card/card.vue'; import LfxDeltaDisplay from '~/components/uikit/delta-display/delta-display.vue'; diff --git a/frontend/app/components/modules/project/components/popularity/stars.vue b/frontend/app/components/modules/project/components/popularity/stars.vue index 9dd3f92f7..f290be287 100644 --- a/frontend/app/components/modules/project/components/popularity/stars.vue +++ b/frontend/app/components/modules/project/components/popularity/stars.vue @@ -56,7 +56,7 @@ import { ref, computed } from 'vue'; import { storeToRefs } from "pinia"; import LfxProjectLoadState from '../shared/load-state.vue'; import LfxSkeletonState from '../shared/skeleton-state.vue'; -import type { StarsData } from './types/popularity.types'; +import type { StarsData } from '~~/types/popularity/responses.types'; import { lineGranularities, barGranularities } from '~/components/shared/types/granularity'; import type { Summary } from '~~/types/shared/summary.types'; import LfxCard from '~/components/uikit/card/card.vue'; diff --git a/frontend/app/components/modules/project/components/popularity/types/popularity.types.ts b/frontend/app/components/modules/project/components/popularity/types/popularity.types.ts deleted file mode 100644 index 5ebc0183d..000000000 --- a/frontend/app/components/modules/project/components/popularity/types/popularity.types.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { Summary } from '~~/types/shared/summary.types'; - -export interface StarsData { - summary: Summary; - data: { - dateFrom: string; - dateTo: string; - stars: number; - }[]; -} - -export interface ForksData { - summary: Summary; - data: { - dateFrom: string; - dateTo: string; - forks: number; - }[]; -} diff --git a/frontend/app/components/modules/project/components/popularity/types/mentions.types.ts b/frontend/types/popularity/responses.types.ts similarity index 67% rename from frontend/app/components/modules/project/components/popularity/types/mentions.types.ts rename to frontend/types/popularity/responses.types.ts index 1a9b4438e..be2c7f74b 100644 --- a/frontend/app/components/modules/project/components/popularity/types/mentions.types.ts +++ b/frontend/types/popularity/responses.types.ts @@ -1,4 +1,22 @@ -import type { Summary } from '~~/types/shared/summary.types'; +import type { Summary } from '../shared/summary.types'; + +export interface StarsData { + summary: Summary; + data: { + dateFrom: string; + dateTo: string; + stars: number; + }[]; +} + +export interface ForksData { + summary: Summary; + data: { + dateFrom: string; + dateTo: string; + forks: number; + }[]; +} export interface SocialMentions { summary: Summary;