Fixes: 1) Replace deprecated context usage in `useAvatarUpload` mutation; 2) Resolve incorrect locale parsing in `useDate` utility and fix non-reactive cart state in `profile/cart.vue`; 3) Update stale imports and standardize type naming across composables; Extra: 1) Refactor i18n strings including order status and search-related texts; 2) Replace temporary workarounds with `apollo-upload-client` configuration and add `apollo-upload-link.ts` plugin; 3) Cleanup redundant files, comments, and improve SCSS structure with new variables and placeholders.
18 lines
No EOL
558 B
TypeScript
18 lines
No EOL
558 B
TypeScript
import combineQuery from 'graphql-combine-query'
|
|
import {GET_WISHLIST} from "~/graphql/queries/standalone/wishlist";
|
|
import {GET_PROMOCODES} from "~/graphql/queries/standalone/promocodes";
|
|
import {GET_ORDERS} from "~/graphql/queries/standalone/orders";
|
|
|
|
export const getUserBaseData = (
|
|
orderVariables?: {
|
|
userEmail?: string;
|
|
status?: string;
|
|
}
|
|
) => {
|
|
const { document, variables } = combineQuery('getUserBaseData')
|
|
.add(GET_WISHLIST)
|
|
.add(GET_PROMOCODES)
|
|
.add(GET_ORDERS, orderVariables || {})
|
|
|
|
return { document, variables };
|
|
}; |