Skip to content

Commit

Permalink
refactor: rename src/store => src/stores (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 5, 2024
1 parent 18d85a2 commit 036d539
Show file tree
Hide file tree
Showing 28 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/components/GeneLiteratureCard/GeneLiteratureCard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { describe, expect, test } from 'vitest'

import { setupMountedComponents } from '../../lib/testUtils'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import type { SearchResults } from '../../store/pubtator'
import { StoreState } from '../../store/types'
import type { SearchResults } from '../../stores/pubtator'
import { StoreState } from '../../stores/types'
import GeneLiteratureCard from './GeneLiteratureCard.vue'

// Load fixture data for gene TGDS (little data) and BRCA1 (lots of data).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { JsonValue } from '@protobuf-ts/runtime'
import type { Meta, StoryObj } from '@storybook/vue3'

import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'
import { usePubtatorStore } from '../../store/pubtator'
import { StoreState } from '../../stores'
import { usePubtatorStore } from '../../stores/pubtator'
import geneInfoBrca1Json from '../GenePathogenicityCard/fixture.geneInfo.BRCA1.json'
import geneInfoTgdsJson from '../GenePathogenicityCard/fixture.geneInfo.TGDS.json'
import GeneLiteratureCard from './GeneLiteratureCard.vue'
Expand Down
4 changes: 2 additions & 2 deletions src/components/GeneLiteratureCard/GeneLiteratureCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
type AnnotationLocation,
AnnotationType,
usePubtatorStore
} from '../../store/pubtator'
import { StoreState } from '../../store/types'
} from '../../stores/pubtator'
import { StoreState } from '../../stores/types'
import DocsLink from '../DocsLink/DocsLink.vue'
/** This component's props. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { Meta, StoryObj } from '@storybook/vue3'

import type { Strucvar } from '../../lib/genomicVars'
import { ResponseRecord as ClinvarSvRecord } from '../../pbs/annonars/clinvar/sv'
import { StoreState } from '../../store'
import { useStrucvarInfoStore } from '../../store/strucvarInfo'
import { StoreState } from '../../stores'
import { useStrucvarInfoStore } from '../../stores/strucvarInfo'
import StrucvarClinvarCard from './StrucvarClinvarCard.vue'
import clinvarSvRecordsJson from './fixture.clinvarSvRecords.BRCA1.json'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { StrucvarResult } from '../../api/mehari/types'
import { type Strucvar } from '../../lib/genomicVars'
import { setupMountedComponents } from '../../lib/testUtils'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'
import { StoreState } from '../../stores'
import StrucvarGeneListCard from './StrucvarGeneListCard.vue'

/** Example Strucvar */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import strucvarResultBrca1Json from '../../api/mehari/fixture.strucvarCsqRespons
import geneInfoBrca1Json from '../../components/GenePathogenicityCard/fixture.geneInfo.BRCA1.json'
import type { Strucvar } from '../../lib/genomicVars'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'
import { StoreState } from '../../stores'
import StrucvarGeneListCard from './StrucvarGeneListCard.vue'

// We define the fixtures inline here as they are small.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TX_EFFECT_LABELS } from '../../api/mehari/constants'
import type { GeneTranscriptEffects } from '../../api/mehari/types'
import { type Strucvar } from '../../lib/genomicVars'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'
import { StoreState } from '../../stores'
import DocsLink from '../DocsLink/DocsLink.vue'
import GeneListEntry from './GeneListEntry.vue'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createPinia, setActivePinia } from 'pinia'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import createFetchMock from 'vitest-fetch-mock'

import { StoreState } from '../../store'
import { StoreState } from '..'
import { useCadaPrioStore } from './store'

const predictResponseJson = JSON.parse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'

import { StoreState } from '..'
import { CadaPrioClient } from '../../api/cadaPrio'
import { StoreState } from '../../store'
import { GeneRank } from './types'

/** Options for `loadData()` */
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineStore } from 'pinia'
import { ref } from 'vue'

import { PubtatorClient } from '../../api/pubtator'
import { StoreState } from '../../store/types'
import { StoreState } from '../types'
import { type SearchResults } from './types'

export const usePubtatorStore = defineStore('pubtator', () => {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import equal from 'fast-deep-equal'
import { defineStore } from 'pinia'
import { ref } from 'vue'

import { StoreState } from '..'
import { AnnonarsClient, SeqvarInfoResult } from '../../api/annonars'
import { MehariClient, SeqvarResultEntry } from '../../api/mehari'
import { type HpoTerm, VigunoClient } from '../../api/viguno'
import { type Seqvar } from '../../lib/genomicVars'
import { ClinvarPerGeneRecord } from '../../pbs/annonars/clinvar/per_gene'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'

export const useSeqvarInfoStore = defineStore('seqvarInfo', () => {
/** The current store state. */
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { createPinia, setActivePinia } from 'pinia'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import createFetchMock from 'vitest-fetch-mock'

import { StoreState } from '..'
import type { Strucvar } from '../../lib/genomicVars'
import { Record as GeneInfoRecord } from '../../pbs/annonars/genes/base'
import { StoreState } from '../../store'
import { useStrucvarInfoStore } from './store'

/** Fixtures loaded from JSON files. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import equal from 'fast-deep-equal'
import { defineStore } from 'pinia'
import { ref } from 'vue'

import { StoreState } from '..'
import { AnnonarsClient } from '../../api/annonars'
import { MehariClient } from '../../api/mehari'
import { type Strucvar } from '../../lib/genomicVars'
import { StoreState } from '../../store'

/** `ClinvarSvRecord` is a type alias for easier future interface definition. */
export type ClinvarSvRecord = any | null
Expand Down
File renamed without changes.

0 comments on commit 036d539

Please sign in to comment.