rn-erxes-sdk 0.1.4 → 0.1.6
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/README.md +39 -20
- package/lib/commonjs/App.js +9 -44
- package/lib/commonjs/App.js.map +1 -1
- package/lib/commonjs/FAQ.js +175 -0
- package/lib/commonjs/FAQ.js.map +1 -0
- package/lib/commonjs/Greetings.js +57 -0
- package/lib/commonjs/Greetings.js.map +1 -0
- package/lib/commonjs/Social.js +46 -0
- package/lib/commonjs/Social.js.map +1 -0
- package/lib/commonjs/Support.js +93 -0
- package/lib/commonjs/Support.js.map +1 -0
- package/lib/commonjs/Supporters.js +73 -0
- package/lib/commonjs/Supporters.js.map +1 -0
- package/lib/commonjs/Widget.js +132 -0
- package/lib/commonjs/Widget.js.map +1 -0
- package/lib/commonjs/apolloClient.js +55 -0
- package/lib/commonjs/apolloClient.js.map +1 -0
- package/lib/commonjs/assets/images/Facebook.png +0 -0
- package/lib/commonjs/assets/images/Twitter.png +0 -0
- package/lib/commonjs/assets/images/Youtube.png +0 -0
- package/lib/commonjs/assets/images/avatar.png +0 -0
- package/lib/commonjs/assets/images/index.js +15 -0
- package/lib/commonjs/assets/images/index.js.map +1 -0
- package/lib/commonjs/graphql/graphql.js +108 -0
- package/lib/commonjs/graphql/graphql.js.map +1 -0
- package/lib/commonjs/graphql/mutation.js +47 -0
- package/lib/commonjs/graphql/mutation.js.map +1 -0
- package/lib/commonjs/icons/MaterialCommunityIcons.js +81 -0
- package/lib/commonjs/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/module/App.js +9 -44
- package/lib/module/App.js.map +1 -1
- package/lib/module/FAQ.js +165 -0
- package/lib/module/FAQ.js.map +1 -0
- package/lib/module/Greetings.js +48 -0
- package/lib/module/Greetings.js.map +1 -0
- package/lib/module/Social.js +37 -0
- package/lib/module/Social.js.map +1 -0
- package/lib/module/Support.js +84 -0
- package/lib/module/Support.js.map +1 -0
- package/lib/module/Supporters.js +64 -0
- package/lib/module/Supporters.js.map +1 -0
- package/lib/module/Widget.js +123 -0
- package/lib/module/Widget.js.map +1 -0
- package/lib/module/apolloClient.js +46 -0
- package/lib/module/apolloClient.js.map +1 -0
- package/lib/module/assets/images/Facebook.png +0 -0
- package/lib/module/assets/images/Twitter.png +0 -0
- package/lib/module/assets/images/Youtube.png +0 -0
- package/lib/module/assets/images/avatar.png +0 -0
- package/lib/module/assets/images/index.js +8 -0
- package/lib/module/assets/images/index.js.map +1 -0
- package/lib/module/graphql/graphql.js +99 -0
- package/lib/module/graphql/graphql.js.map +1 -0
- package/lib/module/graphql/mutation.js +41 -0
- package/lib/module/graphql/mutation.js.map +1 -0
- package/lib/module/icons/MaterialCommunityIcons.js +71 -0
- package/lib/module/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/typescript/App.d.ts +1 -1
- package/lib/typescript/App.d.ts.map +1 -1
- package/lib/typescript/FAQ.d.ts +4 -0
- package/lib/typescript/FAQ.d.ts.map +1 -0
- package/lib/typescript/Greetings.d.ts +4 -0
- package/lib/typescript/Greetings.d.ts.map +1 -0
- package/lib/typescript/Social.d.ts +4 -0
- package/lib/typescript/Social.d.ts.map +1 -0
- package/lib/typescript/Support.d.ts +4 -0
- package/lib/typescript/Support.d.ts.map +1 -0
- package/lib/typescript/Supporters.d.ts +4 -0
- package/lib/typescript/Supporters.d.ts.map +1 -0
- package/lib/typescript/Widget.d.ts +4 -0
- package/lib/typescript/Widget.d.ts.map +1 -0
- package/lib/typescript/apolloClient.d.ts +6 -0
- package/lib/typescript/apolloClient.d.ts.map +1 -0
- package/lib/typescript/assets/images/index.d.ts +8 -0
- package/lib/typescript/assets/images/index.d.ts.map +1 -0
- package/lib/typescript/graphql/graphql.d.ts +6 -0
- package/lib/typescript/graphql/graphql.d.ts.map +1 -0
- package/lib/typescript/graphql/mutation.d.ts +3 -0
- package/lib/typescript/graphql/mutation.d.ts.map +1 -0
- package/lib/typescript/icons/MaterialCommunityIcons.d.ts +22 -0
- package/lib/typescript/icons/MaterialCommunityIcons.d.ts.map +1 -0
- package/package.json +9 -5
- package/src/App.tsx +8 -42
- package/src/FAQ.tsx +166 -0
- package/src/Greetings.tsx +37 -0
- package/src/Social.tsx +46 -0
- package/src/Support.tsx +74 -0
- package/src/Supporters.tsx +63 -0
- package/src/Widget.tsx +138 -0
- package/src/apolloClient.ts +57 -0
- package/src/assets/images/Facebook.png +0 -0
- package/src/assets/images/Twitter.png +0 -0
- package/src/assets/images/Youtube.png +0 -0
- package/src/assets/images/avatar.png +0 -0
- package/src/assets/images/index.ts +8 -0
- package/src/graphql/graphql.ts +108 -0
- package/src/graphql/mutation.ts +42 -0
- package/src/icons/MaterialCommunityIcons.tsx +95 -0
- package/lib/commonjs/index.html +0 -114
- package/lib/module/index.html +0 -114
- package/src/index.html +0 -114
package/lib/commonjs/index.html
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
3
|
-
<meta charset="utf-8" />
|
|
4
|
-
|
|
5
|
-
<body id="mbody" onload="openMessenger()"></body>
|
|
6
|
-
<script>
|
|
7
|
-
function openMessenger() {
|
|
8
|
-
setTimeout(function () {
|
|
9
|
-
window.Erxes.showMessenger();
|
|
10
|
-
}, 3000);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
window.addEventListener('message', (e) => {
|
|
14
|
-
const { data } = e;
|
|
15
|
-
const { notificationCount } = data;
|
|
16
|
-
|
|
17
|
-
if (notificationCount !== undefined) {
|
|
18
|
-
window.ReactNativeWebView.postMessage(JSON.stringify(data));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style>
|
|
24
|
-
#mbody {
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background-color: rgb(189, 189, 188);
|
|
28
|
-
display: flex;
|
|
29
|
-
/* flex-direction: column; */
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.topbar-button {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.loader {
|
|
37
|
-
border: 5px solid #f3f3f3;
|
|
38
|
-
/* Light grey */
|
|
39
|
-
border-top: 5px solid #3498db;
|
|
40
|
-
/* Blue */
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
width: 50px;
|
|
43
|
-
height: 50px;
|
|
44
|
-
animation: spin 5s linear infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@keyframes spin {
|
|
48
|
-
0% {
|
|
49
|
-
transform: rotate(0deg);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
100% {
|
|
53
|
-
transform: rotate(360deg);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* CSS */
|
|
58
|
-
.button-75 {
|
|
59
|
-
align-items: center;
|
|
60
|
-
background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
|
|
61
|
-
border: 0;
|
|
62
|
-
border-radius: 10px;
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
color: #fff;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
/* font-family: "Codec cold", sans-serif; */
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
font-weight: 700;
|
|
71
|
-
height: 54px;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
letter-spacing: 0.4px;
|
|
74
|
-
line-height: 1;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
padding-left: 20px;
|
|
77
|
-
padding-right: 20px;
|
|
78
|
-
padding-top: 3px;
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
user-select: none;
|
|
82
|
-
-webkit-user-select: none;
|
|
83
|
-
touch-action: manipulation;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.button-75:active {
|
|
87
|
-
outline: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button-75:hover {
|
|
91
|
-
outline: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.button-75 span {
|
|
95
|
-
transition: all 200ms;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.button-75:hover span {
|
|
99
|
-
transform: scale(0.9);
|
|
100
|
-
opacity: 0.75;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media screen and (max-width: 991px) {
|
|
104
|
-
.button-75 {
|
|
105
|
-
font-size: 15px;
|
|
106
|
-
height: 50px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.button-75 span {
|
|
110
|
-
line-height: 50px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
114
|
-
</html>
|
package/lib/module/index.html
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
3
|
-
<meta charset="utf-8" />
|
|
4
|
-
|
|
5
|
-
<body id="mbody" onload="openMessenger()"></body>
|
|
6
|
-
<script>
|
|
7
|
-
function openMessenger() {
|
|
8
|
-
setTimeout(function () {
|
|
9
|
-
window.Erxes.showMessenger();
|
|
10
|
-
}, 3000);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
window.addEventListener('message', (e) => {
|
|
14
|
-
const { data } = e;
|
|
15
|
-
const { notificationCount } = data;
|
|
16
|
-
|
|
17
|
-
if (notificationCount !== undefined) {
|
|
18
|
-
window.ReactNativeWebView.postMessage(JSON.stringify(data));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style>
|
|
24
|
-
#mbody {
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background-color: rgb(189, 189, 188);
|
|
28
|
-
display: flex;
|
|
29
|
-
/* flex-direction: column; */
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.topbar-button {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.loader {
|
|
37
|
-
border: 5px solid #f3f3f3;
|
|
38
|
-
/* Light grey */
|
|
39
|
-
border-top: 5px solid #3498db;
|
|
40
|
-
/* Blue */
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
width: 50px;
|
|
43
|
-
height: 50px;
|
|
44
|
-
animation: spin 5s linear infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@keyframes spin {
|
|
48
|
-
0% {
|
|
49
|
-
transform: rotate(0deg);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
100% {
|
|
53
|
-
transform: rotate(360deg);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* CSS */
|
|
58
|
-
.button-75 {
|
|
59
|
-
align-items: center;
|
|
60
|
-
background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
|
|
61
|
-
border: 0;
|
|
62
|
-
border-radius: 10px;
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
color: #fff;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
/* font-family: "Codec cold", sans-serif; */
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
font-weight: 700;
|
|
71
|
-
height: 54px;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
letter-spacing: 0.4px;
|
|
74
|
-
line-height: 1;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
padding-left: 20px;
|
|
77
|
-
padding-right: 20px;
|
|
78
|
-
padding-top: 3px;
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
user-select: none;
|
|
82
|
-
-webkit-user-select: none;
|
|
83
|
-
touch-action: manipulation;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.button-75:active {
|
|
87
|
-
outline: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button-75:hover {
|
|
91
|
-
outline: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.button-75 span {
|
|
95
|
-
transition: all 200ms;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.button-75:hover span {
|
|
99
|
-
transform: scale(0.9);
|
|
100
|
-
opacity: 0.75;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media screen and (max-width: 991px) {
|
|
104
|
-
.button-75 {
|
|
105
|
-
font-size: 15px;
|
|
106
|
-
height: 50px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.button-75 span {
|
|
110
|
-
line-height: 50px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
114
|
-
</html>
|
package/src/index.html
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
3
|
-
<meta charset="utf-8" />
|
|
4
|
-
|
|
5
|
-
<body id="mbody" onload="openMessenger()"></body>
|
|
6
|
-
<script>
|
|
7
|
-
function openMessenger() {
|
|
8
|
-
setTimeout(function () {
|
|
9
|
-
window.Erxes.showMessenger();
|
|
10
|
-
}, 3000);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
window.addEventListener('message', (e) => {
|
|
14
|
-
const { data } = e;
|
|
15
|
-
const { notificationCount } = data;
|
|
16
|
-
|
|
17
|
-
if (notificationCount !== undefined) {
|
|
18
|
-
window.ReactNativeWebView.postMessage(JSON.stringify(data));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style>
|
|
24
|
-
#mbody {
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
background-color: rgb(189, 189, 188);
|
|
28
|
-
display: flex;
|
|
29
|
-
/* flex-direction: column; */
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.topbar-button {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.loader {
|
|
37
|
-
border: 5px solid #f3f3f3;
|
|
38
|
-
/* Light grey */
|
|
39
|
-
border-top: 5px solid #3498db;
|
|
40
|
-
/* Blue */
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
width: 50px;
|
|
43
|
-
height: 50px;
|
|
44
|
-
animation: spin 5s linear infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@keyframes spin {
|
|
48
|
-
0% {
|
|
49
|
-
transform: rotate(0deg);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
100% {
|
|
53
|
-
transform: rotate(360deg);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* CSS */
|
|
58
|
-
.button-75 {
|
|
59
|
-
align-items: center;
|
|
60
|
-
background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
|
|
61
|
-
border: 0;
|
|
62
|
-
border-radius: 10px;
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
color: #fff;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
/* font-family: "Codec cold", sans-serif; */
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
font-weight: 700;
|
|
71
|
-
height: 54px;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
letter-spacing: 0.4px;
|
|
74
|
-
line-height: 1;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
padding-left: 20px;
|
|
77
|
-
padding-right: 20px;
|
|
78
|
-
padding-top: 3px;
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
user-select: none;
|
|
82
|
-
-webkit-user-select: none;
|
|
83
|
-
touch-action: manipulation;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.button-75:active {
|
|
87
|
-
outline: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.button-75:hover {
|
|
91
|
-
outline: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.button-75 span {
|
|
95
|
-
transition: all 200ms;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.button-75:hover span {
|
|
99
|
-
transform: scale(0.9);
|
|
100
|
-
opacity: 0.75;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media screen and (max-width: 991px) {
|
|
104
|
-
.button-75 {
|
|
105
|
-
font-size: 15px;
|
|
106
|
-
height: 50px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.button-75 span {
|
|
110
|
-
line-height: 50px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
114
|
-
</html>
|