docs: added customer storefront guides (#7685)

* added customer guides

* fixes to sidebar

* remove old customer registration guide

* fix build error

* generate files

* run linter
This commit is contained in:
Shahed Nasser
2024-06-13 12:21:54 +03:00
committed by GitHub
parent d862d03de0
commit c1db40b564
80 changed files with 2301 additions and 701 deletions
@@ -67,12 +67,12 @@ export const serviceHighlights = [
this.client_ = axios.create({
baseURL: `https://api.erp-example.com`,
headers: {
Authorization: `Bearer ${apiKey}`
}
Authorization: `Bearer ${apiKey}`,
},
})
}
async getProductData (id: string) {
async getProductData(id: string) {
const { data: erpProduct } = await this.client_.get(`/product/${id}`)
return erpProduct
@@ -109,10 +109,10 @@ export const serviceHighlights = [
Then, create the module's definition file at `src/modules/erp/index.ts` with the following content:
```ts title="src/modules/erp/index.ts"
import ErpModuleService from "./service";
import ErpModuleService from "./service"
export default {
service: ErpModuleService
service: ErpModuleService,
}
```
@@ -125,10 +125,10 @@ export const serviceHighlights = [
erpModuleService: {
resolve: "./modules/erp",
options: {
apiKey: process.env.ERP_API_KEY
}
apiKey: process.env.ERP_API_KEY,
},
},
}
},
})
```