npm-pkg-hook 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +132 -132
- package/.vscode/extensions.json +6 -0
- package/.vscode/settings.json +8 -0
- package/next.config.js +1 -0
- package/package.json +44 -46
- package/src/config/client/errors.js +1 -2
- package/src/hooks/index.js +20 -25
- package/src/hooks/useAnimationText/index.jsx +13 -11
- package/src/hooks/useCatWithProduct/index.js +4 -37
- package/src/hooks/useCatWithProduct/queries.js +16 -0
- package/src/hooks/useChartData/index.js +170 -1
- package/src/hooks/useChartData/useChartDataAllOrders/index.js +14 -9
- package/src/hooks/useCheckbox/index.js +2 -5
- package/src/hooks/useClients/index.js +8 -17
- package/src/hooks/useCreateProduct/index.js +64 -94
- package/src/hooks/useDrag/index.js +1 -0
- package/src/hooks/useEmployee/index.js +8 -11
- package/src/hooks/useFormTools/index.js +1 -1
- package/src/hooks/useFullScreenMode/index.js +8 -8
- package/src/hooks/useGoogleLogin/index.js +161 -0
- package/src/hooks/useGoogleLogin/loadScript.js +15 -0
- package/src/hooks/useGoogleLogin/removeScript.js +7 -0
- package/src/hooks/useHover/index.js +1 -1
- package/src/hooks/useImagesStore/index.js +144 -176
- package/src/hooks/useImagesStore/queries.js +28 -1
- package/src/hooks/useKeypress/index.js +1 -7
- package/src/hooks/useLogout/index.js +27 -22
- package/src/hooks/useManageQueryParams/index.js +1 -1
- package/src/hooks/useProductsFood/queriesStore.js +16 -3
- package/src/hooks/useReport/index.js +30 -26
- package/src/hooks/useReport/queries.js +32 -47
- package/src/hooks/useSales/index.js +21 -52
- package/src/hooks/useSales/queries.js +38 -48
- package/src/hooks/useSales/useGetSale.js +2 -16
- package/src/hooks/useSalesClient/index.js +1 -0
- package/src/hooks/useSchedule/index.jsx +23 -0
- package/src/hooks/useStoreContacts/index.js +1 -5
- package/src/hooks/useUpdateExistingOrders/index.js +8 -8
- package/src/hooks/useUser/index.js +2 -2
- package/src/hooks/useUser/queries.js +40 -40
- package/src/hooks/useWindowSize/index.js +1 -1
- package/src/index.jsx +1 -2
- package/src/security/index.js +0 -0
|
@@ -7,6 +7,46 @@ mutation login($input: LoginInput){
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
`
|
|
10
|
+
export const GET_USER_PROFILE = gql`
|
|
11
|
+
query getOneUserProfile($id: ID) {
|
|
12
|
+
getOneUserProfile(id: $id){
|
|
13
|
+
upId
|
|
14
|
+
id
|
|
15
|
+
upPhone
|
|
16
|
+
upImage
|
|
17
|
+
upDateBir
|
|
18
|
+
upBloodG
|
|
19
|
+
upAddress
|
|
20
|
+
ctId
|
|
21
|
+
dId
|
|
22
|
+
upZipCode
|
|
23
|
+
cId
|
|
24
|
+
upLatitude
|
|
25
|
+
upLongitude
|
|
26
|
+
user {
|
|
27
|
+
id
|
|
28
|
+
name
|
|
29
|
+
username
|
|
30
|
+
lastName
|
|
31
|
+
email
|
|
32
|
+
avatar
|
|
33
|
+
uToken
|
|
34
|
+
uPhoNum
|
|
35
|
+
ULocation
|
|
36
|
+
upLat
|
|
37
|
+
uState
|
|
38
|
+
upLon
|
|
39
|
+
upIdeDoc
|
|
40
|
+
siteWeb
|
|
41
|
+
description
|
|
42
|
+
password
|
|
43
|
+
createAt
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`
|
|
49
|
+
|
|
10
50
|
export const GET_USER = gql`
|
|
11
51
|
query getUser($id: ID){
|
|
12
52
|
getUser(id: $id ){
|
|
@@ -84,44 +124,4 @@ export const SET_USER_PROFILE = gql`
|
|
|
84
124
|
upZipCode
|
|
85
125
|
}
|
|
86
126
|
}
|
|
87
|
-
`
|
|
88
|
-
|
|
89
|
-
export const GET_USER_PROFILE = gql`
|
|
90
|
-
query getOneUserProfile($id: ID) {
|
|
91
|
-
getOneUserProfile(id: $id){
|
|
92
|
-
upId
|
|
93
|
-
id
|
|
94
|
-
upPhone
|
|
95
|
-
upImage
|
|
96
|
-
upDateBir
|
|
97
|
-
upBloodG
|
|
98
|
-
upAddress
|
|
99
|
-
ctId
|
|
100
|
-
dId
|
|
101
|
-
upZipCode
|
|
102
|
-
cId
|
|
103
|
-
upLatitude
|
|
104
|
-
upLongitude
|
|
105
|
-
user {
|
|
106
|
-
id
|
|
107
|
-
name
|
|
108
|
-
username
|
|
109
|
-
lastName
|
|
110
|
-
email
|
|
111
|
-
avatar
|
|
112
|
-
uToken
|
|
113
|
-
uPhoNum
|
|
114
|
-
ULocation
|
|
115
|
-
upLat
|
|
116
|
-
uState
|
|
117
|
-
upLon
|
|
118
|
-
upIdeDoc
|
|
119
|
-
siteWeb
|
|
120
|
-
description
|
|
121
|
-
password
|
|
122
|
-
createAt
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
127
|
`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export function useWindowSize() {
|
|
4
4
|
// Initialize state with undefined width/height so server and client renders match
|
|
5
5
|
// Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/
|
|
6
6
|
const [windowSize, setWindowSize] = useState({
|
package/src/index.jsx
CHANGED
|
File without changes
|