Fixes: 1) Correct missing semicolons in Pinia store definitions for cart, company, wishlist, and auth stores; 2) Refactor GraphQL queries to include fragments for improved modularity and readability; 3) Correct error handling in composables like `usePosts` and `useLanguages`; Extra: Enhanced App.vue to include dynamic company info and language fetching on mount; Added scoped styles for new components and pages.
16 lines
No EOL
307 B
JavaScript
16 lines
No EOL
307 B
JavaScript
import gql from 'graphql-tag'
|
|
import {PRODUCT_FRAGMENT} from "@/graphql/fragments/products.fragment.js";
|
|
|
|
export const WISHLIST_FRAGMENT = gql`
|
|
fragment Wishlist on WishlistType {
|
|
uuid
|
|
products {
|
|
edges {
|
|
node {
|
|
...Product
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${PRODUCT_FRAGMENT}
|
|
` |