Skip to content

Commit

Permalink
fix: 🐛 import from new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingallday committed Apr 18, 2024
1 parent 0cc1f88 commit 20033df
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>

<script setup lang="ts">
import { stripSiteId } from '@dpc-sdp/ripple-tide-api'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers'
interface Props {
feature: any
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt-app/mock-routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
{
"path": "/publication-page",
"fixture": "publication-page/sample-publication-page.json"
"fixture": "publication/sample-publication-page.json"
},
{
"path": "/",
Expand Down
1 change: 1 addition & 0 deletions examples/nuxt-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"dependencies": {
"@dpc-sdp/nuxt-ripple": "workspace:*",
"@dpc-sdp/nuxt-ripple-analytics": "workspace:*",
"@dpc-sdp/nuxt-ripple-cli": "workspace:*",
"@dpc-sdp/nuxt-ripple-preview": "workspace:*",
"@dpc-sdp/ripple-tide-event": "workspace:*",
"@dpc-sdp/ripple-tide-topic": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt-ripple-cli/src/commands/favicon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function rplFaviconCommand() {
'Absolute path to public directory',
`${process.cwd()}/public`
)
.parse(process.argv)
.action(() => favicon(rplFaviconCommand.opts()))

return rplFaviconCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
IContentCollectionSort
} from '../../../mapping/components/content-collection/content-collection-mapping'
import type { IRplFeatureFlags } from '@dpc-sdp/ripple-tide-api/types'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers'
const { public: config } = useRuntimeConfig()
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-tide-search/components/TideSearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FormKit } from '@formkit/vue'
import { SearchDriverOptions } from '@elastic/search-ui'
import { useRippleEvent } from '@dpc-sdp/ripple-ui-core'
import type { rplEventPayload } from '@dpc-sdp/ripple-ui-core'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers'
interface Props {
id: string
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-tide-search/composables/useSearchResult.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { computed } from 'vue'
import { getSearchResultValue, truncateText } from '#imports'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers'

interface ResultOptions {
summaryMaxLength: number | null
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-tide-search/pages/search.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { stripSiteId } from '@dpc-sdp/ripple-tide-api'
import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers'
import { AppSearchFilterConfigItem, MappedSearchResult } from '../types'
import { formatDate, useRuntimeConfig, useAppConfig } from '#imports'
Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
],
"paths": {
"@dpc-sdp/ripple-tide-api/errors": ["ripple-tide-api/src/errors/errors"],
"@dpc-sdp/ripple-tide-api/helpers": ["ripple-tide-api/src/helpers"],
"@dpc-sdp/ripple-tide-api": ["ripple-tide-api/src"],
"@dpc-sdp/ripple-ui-core": ["ripple-ui-core/src"],
"@dpc-sdp/ripple-tide-event": ["ripple-tide-event/src"],
Expand Down

0 comments on commit 20033df

Please sign in to comment.