Fixes: 1) Replace `ElNotification` with `useNotification` across all components and composables; 2) Add missing semicolons, consistent formatting, and type annotations in multiple files; 3) Resolve non-reactive elements in wishlist and cart state management; Extra: 1) Update i18n translations with new strings for promocodes, balance, authentication, and profile settings; 2) Refactor SCSS styles including variable additions and component-specific tweaks; 3) Remove redundant queries, unused imports, and `storePage.ts` file for cleanup.
57 lines
No EOL
1,016 B
TypeScript
57 lines
No EOL
1,016 B
TypeScript
import {USER_FRAGMENT} from "~/graphql/fragments/user.fragment";
|
|
|
|
export const ACTIVATE_USER = gql`
|
|
mutation activateUser(
|
|
$token: String!,
|
|
$uid: String!
|
|
) {
|
|
activateUser(
|
|
token: $token,
|
|
uid: $uid
|
|
) {
|
|
success
|
|
}
|
|
}
|
|
`
|
|
|
|
export const UPDATE_USER = gql`
|
|
mutation updateUser(
|
|
$uuid: UUID!,
|
|
$firstName: String,
|
|
$lastName: String,
|
|
$email: String,
|
|
$phoneNumber: String,
|
|
$password: String,
|
|
$confirmPassword: String,
|
|
) {
|
|
updateUser(
|
|
uuid: $uuid,
|
|
firstName: $firstName,
|
|
lastName: $lastName,
|
|
email: $email,
|
|
phoneNumber: $phoneNumber,
|
|
password: $password,
|
|
confirmPassword: $confirmPassword,
|
|
) {
|
|
user {
|
|
...User
|
|
}
|
|
}
|
|
}
|
|
${USER_FRAGMENT}
|
|
`
|
|
|
|
export const UPLOAD_AVATAR = gql`
|
|
mutation uploadAvatar(
|
|
$avatar: Upload!
|
|
) {
|
|
uploadAvatar(
|
|
avatar: $avatar
|
|
) {
|
|
user {
|
|
...User
|
|
}
|
|
}
|
|
}
|
|
${USER_FRAGMENT}
|
|
` |