Skip to content

Commit

Permalink
Improved: logic to use oms-api for gitbook search (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Jun 19, 2024
1 parent 0b58762 commit 79d9c45
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 46 deletions.
89 changes: 47 additions & 42 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@hotwax/app-version-info": "^1.0.0",
"@hotwax/apps-theme": "^1.2.6",
"@hotwax/dxp-components": "file:../dxp-components",
"@hotwax/oms-api": "^1.14.0",
"@hotwax/oms-api": "file:../oms-api",
"@ionic/core": "^7.6.0",
"@ionic/vue": "^7.6.0",
"@ionic/vue-router": "^7.6.0",
Expand Down
5 changes: 4 additions & 1 deletion src/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { api, client, getConfig, getProductIdentificationPref, getUserFacilities, initialise, logout, resetConfig, setProductIdentificationPref, updateInstanceUrl, updateToken } from '@hotwax/oms-api'
import { api, askQuery, client, getConfig, getGitBookPage, getProductIdentificationPref, getUserFacilities, initialise, logout, resetConfig, searchQuery, setProductIdentificationPref, updateInstanceUrl, updateToken } from '@hotwax/oms-api'

export {
api,
askQuery,
client,
getConfig,
getGitBookPage,
getProductIdentificationPref,
getUserFacilities,
initialise,
logout,
resetConfig,
searchQuery,
setProductIdentificationPref,
updateInstanceUrl,
updateToken
Expand Down
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { DateTime } from "luxon";
import logger from './logger';
import { dxpComponents } from "@hotwax/dxp-components"
import { login, logout, loader } from "@/user-utils";
import { getConfig, initialise } from '@/adapter';
import { askQuery, getConfig, getGitBookPage, initialise, searchQuery } from '@/adapter';

const app = createApp(App)
.use(IonicVue, {
Expand All @@ -49,8 +49,11 @@ const app = createApp(App)
logout,
loader,
appLoginUrl: process.env.VUE_APP_LOGIN_URL as string,
askQuery,
getConfig,
initialise
getGitBookPage,
initialise,
searchQuery
});

// Filters are removed in Vue 3 and global filter introduced https://v3.vuejs.org/guide/migration/filters.html#global-filters
Expand Down

0 comments on commit 79d9c45

Please sign in to comment.