Yatharth
AAlokai
•Created by Yatharth on 5/2/2023 in #🙋|general-help
how to send an API content-type:multipart/form-data of this format in api-client?
how to send an API content-type:
multipart/form-data of this format in api-client?
7 replies
AAlokai
•Created by Yatharth on 4/7/2023 in #🙋|general-help
Unable to make API call on server
21 replies
AAlokai
•Created by Yatharth on 4/5/2023 in #🙋|general-help
getting this error while trying to deploy
jenkins@ip-172-31-24-212:~/workspace/auction-frontend$ npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: linux
npm ERR! notsup Valid Arch: ia32
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2023-04-05T17_25_03_477Z-debug.log
how to resolve this
3 replies
AAlokai
•Created by Yatharth on 3/31/2023 in #🙋|general-help
Unable to access cookies in composables
context.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token);
my context does not have this config object and I am unable to figure out how to set this. Please help
20 replies
AAlokai
•Created by Yatharth on 3/16/2023 in #🙋|general-help
How to add custom function to a composable
import {
Context,
useFacetFactory,
FacetSearchResult
} from '@vue-storefront/core';
import type {
UseFacetSearchParams as SearchParams
} from '../types';
const factoryParams = {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
search: async (context: Context, params: FacetSearchResult<SearchParams>) => {
console.log('Mocked: useFacet.search');
const data = await context.$bagisto.api.getProduct(params?.input?.page);
return data;
}
};
export const useFacet = useFacetFactory<SearchParams>(factoryParams);
This is my useFacet composable what changes need to be done if I want to add a favorite method to it
If I am adding a favorite method here I am unable to use it in my pages directly it says favorite is not a function
12 replies
AAlokai
•Created by Yatharth on 2/16/2023 in #🙋|general-help
Unable to change the color of the SFheader
unable to change the background-color of Sf header can someone please help
7 replies
AAlokai
•Created by Yatharth on 2/15/2023 in #🙋|general-help
Can't we use REST Apis with Vue storefront
Is it necessary to use GraphQl in vuestorefront?
3 replies
AAlokai
•Created by Yatharth on 2/14/2023 in #🙋|general-help
Is Bagisto integration with Vue Storefront Deprecated?
Please explain
2 replies