@nyris/nyris-webapp 0.2.5 → 0.3.2

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.
Files changed (199) hide show
  1. package/build/asset-manifest.json +32 -18
  2. package/build/index.html +1 -1
  3. package/build/js/test.js +62 -0
  4. package/build/{precache-manifest.497998bf0df450969bab5608621be10a.js → precache-manifest.8f85a4fff2063a7498a608ec69549bb1.js} +89 -13
  5. package/build/service-worker.js +1 -1
  6. package/build/static/css/2.8285176a.chunk.css +2 -0
  7. package/build/static/css/2.8285176a.chunk.css.map +1 -0
  8. package/build/static/css/main.6676fe1f.chunk.css +2 -0
  9. package/build/static/css/main.6676fe1f.chunk.css.map +1 -0
  10. package/build/static/js/2.efc0ab83.chunk.js +3 -0
  11. package/build/static/js/2.efc0ab83.chunk.js.LICENSE.txt +133 -0
  12. package/build/static/js/2.efc0ab83.chunk.js.map +1 -0
  13. package/build/static/js/main.3bfed050.chunk.js +2 -0
  14. package/build/static/js/main.3bfed050.chunk.js.map +1 -0
  15. package/build/static/js/{runtime-main.f5553a9b.js → runtime-main.b418ff16.js} +1 -1
  16. package/build/static/js/{runtime-main.f5553a9b.js.map → runtime-main.b418ff16.js.map} +1 -1
  17. package/build/static/media/Fill.37094b44.svg +3 -0
  18. package/build/static/media/Montserrat-Bold.5a052e98.otf +0 -0
  19. package/build/static/media/Montserrat-Light.21789e89.otf +0 -0
  20. package/build/static/media/Montserrat-Medium.a53e0373.otf +0 -0
  21. package/build/static/media/Montserrat-Regular.71cdc681.otf +0 -0
  22. package/build/static/media/Montserrat-SemiBold.f613d915.otf +0 -0
  23. package/build/static/media/Rectangle.4dd8b747.png +0 -0
  24. package/build/static/media/admin.9529c7f6.svg +3 -0
  25. package/build/static/media/bg-support-page.6ac55268.svg +9 -0
  26. package/build/static/media/book_mark.8e294c0b.svg +3 -0
  27. package/build/static/media/icon_dislike.94607ca6.svg +3 -0
  28. package/build/static/media/icon_like.a4fb1b18.svg +3 -0
  29. package/build/static/media/icon_modal_image.3068d0ea.svg +21 -0
  30. package/build/static/media/icon_search_image.c2c728c0.svg +3 -0
  31. package/build/static/media/nyris_logo.22d8f250.svg +3 -0
  32. package/build/static/media/reload_icon.4b579a74.svg +3 -0
  33. package/build/static/media/save_search.bebaeebf.svg +3 -0
  34. package/build/static/media/support.289c3a3c.svg +3 -0
  35. package/build/static/media/translate_icon.f0492297.svg +3 -0
  36. package/package.json +30 -6
  37. package/public/js/test.js +62 -0
  38. package/src/App.css +27 -11
  39. package/src/App.tsx +19 -235
  40. package/src/Router.tsx +97 -0
  41. package/src/Store/Auth.ts +44 -0
  42. package/src/Store/Nyris.ts +77 -0
  43. package/src/Store/Search.ts +269 -0
  44. package/src/Store/Store.ts +46 -0
  45. package/src/Store/common.d.ts +10 -0
  46. package/src/{epics → Store/epics}/feedback.ts +0 -0
  47. package/src/{epics → Store/epics}/types.ts +1 -1
  48. package/src/common/assets/fonts/Montserrat_OTF/Montserrat-Bold.otf +0 -0
  49. package/src/common/assets/fonts/Montserrat_OTF/Montserrat-Light.otf +0 -0
  50. package/src/common/assets/fonts/Montserrat_OTF/Montserrat-Medium.otf +0 -0
  51. package/src/common/assets/fonts/Montserrat_OTF/Montserrat-Regular.otf +0 -0
  52. package/src/common/assets/fonts/Montserrat_OTF/Montserrat-SemiBold.otf +0 -0
  53. package/src/{fonts → common/assets/fonts}/roboto-bold-webfont.woff +0 -0
  54. package/src/{fonts → common/assets/fonts}/roboto-bold-webfont.woff2 +0 -0
  55. package/src/{fonts → common/assets/fonts}/roboto-italic-webfont.woff +0 -0
  56. package/src/{fonts → common/assets/fonts}/roboto-italic-webfont.woff2 +0 -0
  57. package/src/{fonts → common/assets/fonts}/roboto-regular-webfont.woff +0 -0
  58. package/src/{fonts → common/assets/fonts}/roboto-regular-webfont.woff2 +0 -0
  59. package/src/{fonts → common/assets/fonts}/robotocondensed-bold-webfont.woff +0 -0
  60. package/src/{fonts → common/assets/fonts}/robotocondensed-bold-webfont.woff2 +0 -0
  61. package/src/{fonts → common/assets/fonts}/robotocondensed-bolditalic-webfont.woff +0 -0
  62. package/src/{fonts → common/assets/fonts}/robotocondensed-bolditalic-webfont.woff2 +0 -0
  63. package/src/common/assets/icons/Fill.png +0 -0
  64. package/src/common/assets/icons/Fill.svg +3 -0
  65. package/src/common/assets/icons/Icon_wechat.png +0 -0
  66. package/src/common/assets/icons/Icon_whatsapp.png +0 -0
  67. package/src/common/assets/icons/admin.png +0 -0
  68. package/src/common/assets/icons/admin.svg +3 -0
  69. package/src/common/assets/icons/book_mark.png +0 -0
  70. package/src/common/assets/icons/book_mark.svg +3 -0
  71. package/src/common/assets/icons/icon_barcode.png +0 -0
  72. package/src/common/assets/icons/icon_camera.png +0 -0
  73. package/src/common/assets/icons/icon_dislike.svg +3 -0
  74. package/src/common/assets/icons/icon_disslike.png +0 -0
  75. package/src/common/assets/icons/icon_email.png +0 -0
  76. package/src/common/assets/icons/icon_like.png +0 -0
  77. package/src/common/assets/icons/icon_like.svg +3 -0
  78. package/src/common/assets/icons/icon_modal_image.png +0 -0
  79. package/src/common/assets/icons/icon_modal_image.svg +21 -0
  80. package/src/common/assets/icons/icon_picture.png +0 -0
  81. package/src/common/assets/icons/icon_search_image.png +0 -0
  82. package/src/common/assets/icons/icon_search_image.svg +3 -0
  83. package/src/common/assets/icons/nyris_logo.svg +3 -0
  84. package/src/common/assets/icons/reload_icon.png +0 -0
  85. package/src/common/assets/icons/reload_icon.svg +3 -0
  86. package/src/common/assets/icons/save_search.png +0 -0
  87. package/src/common/assets/icons/save_search.svg +3 -0
  88. package/src/common/assets/icons/setting_search_icon.png +0 -0
  89. package/src/common/assets/icons/support.png +0 -0
  90. package/src/common/assets/icons/support.svg +3 -0
  91. package/src/common/assets/icons/translate_icon.png +0 -0
  92. package/src/common/assets/icons/translate_icon.svg +3 -0
  93. package/src/common/assets/icons/view_off.png +0 -0
  94. package/src/common/assets/images/Rectangle.png +0 -0
  95. package/src/common/assets/images/bg-support-page.svg +9 -0
  96. package/src/{images → common/assets/images}/fav/android-icon-192x192.png +0 -0
  97. package/src/{images → common/assets/images}/fav/apple-icon-114x114.png +0 -0
  98. package/src/{images → common/assets/images}/fav/apple-icon-120x120.png +0 -0
  99. package/src/{images → common/assets/images}/fav/apple-icon-144x144.png +0 -0
  100. package/src/{images → common/assets/images}/fav/apple-icon-152x152.png +0 -0
  101. package/src/{images → common/assets/images}/fav/apple-icon-180x180.png +0 -0
  102. package/src/{images → common/assets/images}/fav/apple-icon-57x57.png +0 -0
  103. package/src/{images → common/assets/images}/fav/apple-icon-60x60.png +0 -0
  104. package/src/{images → common/assets/images}/fav/apple-icon-72x72.png +0 -0
  105. package/src/{images → common/assets/images}/fav/apple-icon-76x76.png +0 -0
  106. package/src/{images → common/assets/images}/fav/browserconfig.xml +0 -0
  107. package/src/{images → common/assets/images}/fav/favicon-16x16.png +0 -0
  108. package/src/{images → common/assets/images}/fav/favicon-32x32.png +0 -0
  109. package/src/{images → common/assets/images}/fav/favicon-96x96.png +0 -0
  110. package/src/{images → common/assets/images}/fav/manifest.json +0 -0
  111. package/src/{images → common/assets/images}/ic_cam.png +0 -0
  112. package/src/{images → common/assets/images}/ic_cam.svg +0 -0
  113. package/src/{images → common/assets/images}/ic_cam_large.png +0 -0
  114. package/src/{images → common/assets/images}/ic_cam_large.svg +0 -0
  115. package/src/{images → common/assets/images}/ic_cam_large_noimage.png +0 -0
  116. package/src/{images → common/assets/images}/ic_close_feedback.png +0 -0
  117. package/src/{images → common/assets/images}/ic_close_feedback.svg +0 -0
  118. package/src/{images → common/assets/images}/ic_shopNow.png +0 -0
  119. package/src/{images → common/assets/images}/ic_shopNow.svg +0 -0
  120. package/src/{images → common/assets/images}/ic_shopNowLight.png +0 -0
  121. package/src/{images → common/assets/images}/ic_shopNowLight.svg +0 -0
  122. package/src/common/assets/images/image_test.png +0 -0
  123. package/src/{images → common/assets/images}/nyris_logo.png +0 -0
  124. package/src/{images → common/assets/images}/rewe.svg +0 -0
  125. package/src/{images → common/assets/images}/sectionTransBack.png +0 -0
  126. package/src/{images → common/assets/images}/sectionTransBack.svg +0 -0
  127. package/src/{images → common/assets/images}/sectionTransTop.png +0 -0
  128. package/src/{images → common/assets/images}/sectionTransTop.svg +0 -0
  129. package/src/components/DetailItem.tsx +175 -0
  130. package/src/components/DragDropFile.tsx +188 -0
  131. package/src/components/ExampleImages.tsx +32 -17
  132. package/src/components/Feedback.tsx +87 -48
  133. package/src/components/FilterComponent.tsx +33 -0
  134. package/src/components/Footer.tsx +29 -0
  135. package/src/components/FooterMD.tsx +54 -0
  136. package/src/components/FooterNewVersion.tsx +12 -0
  137. package/src/components/FooterResult.tsx +47 -0
  138. package/src/components/Header.tsx +35 -0
  139. package/src/components/HeaderMd.tsx +39 -0
  140. package/src/components/HeaderNewVersion.tsx +92 -0
  141. package/src/components/Layout.tsx +46 -0
  142. package/src/components/LoadingScreen/index.tsx +29 -0
  143. package/src/components/Navigation.tsx +34 -0
  144. package/src/components/Panigation/Pagination.tsx +140 -0
  145. package/src/components/Panigation/cx.js +3 -0
  146. package/src/components/Panigation/isModifierClick.js +10 -0
  147. package/src/components/Result.tsx +186 -113
  148. package/src/components/Saved/AllItem.tsx +32 -0
  149. package/src/components/Saved/Category.tsx +16 -0
  150. package/src/components/carousel/DefaultCarousel.tsx +48 -0
  151. package/src/components/common.d.ts +9 -0
  152. package/src/components/common.scss +54 -0
  153. package/src/components/default-select.tsx +44 -0
  154. package/src/components/hitItem/hits.tsx +50 -0
  155. package/src/components/hitItem/infinitiHits.tsx +33 -0
  156. package/src/components/input/inputSearch.tsx +77 -0
  157. package/src/components/modal/DefaultModal.tsx +28 -0
  158. package/src/components/preview/preview.tsx +433 -0
  159. package/src/components/results/ItemResult.tsx +155 -0
  160. package/src/components/search/ListSearch.tsx +209 -0
  161. package/src/defaults.ts +4 -3
  162. package/src/index.css +577 -306
  163. package/src/index.tsx +39 -187
  164. package/src/modules/LandingPage/common.scss +1304 -0
  165. package/src/modules/LandingPage/indexApp.tsx +474 -0
  166. package/src/modules/LandingPage/indexAppMD.tsx +494 -0
  167. package/src/modules/LandingPage/indexNewVersion.tsx +117 -0
  168. package/src/page/Auth/login.tsx +7 -0
  169. package/src/page/Exception/404.tsx +11 -0
  170. package/src/page/History/index.tsx +76 -0
  171. package/src/page/Profile/index.tsx +87 -0
  172. package/src/page/Saved/MockData.ts +223 -0
  173. package/src/page/Saved/index.tsx +166 -0
  174. package/src/page/Support/index.tsx +160 -0
  175. package/src/page/result/MockData.ts +36 -0
  176. package/src/page/result/index.tsx +473 -0
  177. package/src/services/Feedback.ts +65 -0
  178. package/src/services/findByImage.ts +24 -0
  179. package/src/services/findRegionsCustom.ts +212 -0
  180. package/src/services/image.ts +110 -0
  181. package/src/services/nyris.ts +123 -0
  182. package/src/services/session.ts +20 -0
  183. package/src/services/types.ts +96 -0
  184. package/src/types.ts +43 -3
  185. package/tsconfig.json +3 -8
  186. package/build/static/css/2.43a1c8b7.chunk.css +0 -2
  187. package/build/static/css/2.43a1c8b7.chunk.css.map +0 -1
  188. package/build/static/css/main.f6ed5f12.chunk.css +0 -2
  189. package/build/static/css/main.f6ed5f12.chunk.css.map +0 -1
  190. package/build/static/js/2.a591d52a.chunk.js +0 -3
  191. package/build/static/js/2.a591d52a.chunk.js.LICENSE.txt +0 -79
  192. package/build/static/js/2.a591d52a.chunk.js.map +0 -1
  193. package/build/static/js/main.28bb3581.chunk.js +0 -2
  194. package/build/static/js/main.28bb3581.chunk.js.map +0 -1
  195. package/src/AppMD.tsx +0 -320
  196. package/src/actions/nyrisAppActions.ts +0 -76
  197. package/src/actions/searchActions.ts +0 -143
  198. package/src/epics/index.ts +0 -149
  199. package/src/epics/search.ts +0 -114
@@ -0,0 +1,87 @@
1
+ import React from "react";
2
+ import { Box, Button, FormControlLabel, Grid, Typography } from "@material-ui/core";
3
+ import BgColor from "common/assets/images/Rectangle.png";
4
+
5
+ interface Props {}
6
+
7
+ function Profile(props: Props) {
8
+ return (
9
+ <Box className="wrap-main-profile">
10
+ <Grid container>
11
+ <Grid item xs={6} className="box-col-left">
12
+ <Box className="box-top">
13
+ <Typography className="text-f40 fw-600 text-dark">
14
+ Jose Luis Reyes
15
+ </Typography>
16
+ <Typography className="text-f13 text-dark2 fw-600">
17
+ Nyris GmbH
18
+ </Typography>
19
+ </Box>
20
+ <Box className="box-bottom">
21
+ <Box className="box-content">
22
+ <Typography className="text-f12 text-dark fw-700">Profile</Typography>
23
+ <Box mt={1}>
24
+ <FormControlLabel
25
+ labelPlacement="top"
26
+ control={<input />}
27
+ label="Name"
28
+ className="w-100"
29
+ style={{ alignItems: "flex-start", margin: 0 }}
30
+ />
31
+ </Box>
32
+ <Box mt={1}>
33
+ <FormControlLabel
34
+ labelPlacement="top"
35
+ control={<input />}
36
+ label="E-mail"
37
+ style={{ alignItems: "flex-start", margin: 0 }}
38
+ className="w-100"
39
+ />
40
+ </Box>
41
+ <Box mt={1}>
42
+ <FormControlLabel
43
+ labelPlacement="top"
44
+ control={<input />}
45
+ label="Password"
46
+ style={{ alignItems: "flex-start", margin: 0 }}
47
+ className="w-100"
48
+ />
49
+ </Box>
50
+ <Box className="w-100" mt={2}>
51
+ <Typography className="text-f12 text-dark fw-700">Account</Typography>
52
+ </Box>
53
+ <Box mt={1}>
54
+ <FormControlLabel
55
+ labelPlacement="top"
56
+ control={<input />}
57
+ label="Company"
58
+ style={{ alignItems: "flex-start", margin: 0 }}
59
+ className="w-100"
60
+ />
61
+ </Box>
62
+ <Box mt={1}>
63
+ <FormControlLabel
64
+ labelPlacement="top"
65
+ control={<input />}
66
+ label="Role"
67
+ style={{ alignItems: "flex-start", margin: 0 }}
68
+ className="w-100"
69
+ />
70
+ </Box>
71
+ <Box mt={2}>
72
+ <Button className="btn-log-out">Log out</Button>
73
+ </Box>
74
+ </Box>
75
+ </Box>
76
+ </Grid>
77
+ <Grid item xs={6} className="box-col-right">
78
+ <Box className="box-bg-image">
79
+ <img src={BgColor} alt="" />
80
+ </Box>
81
+ </Grid>
82
+ </Grid>
83
+ </Box>
84
+ );
85
+ }
86
+
87
+ export default Profile;
@@ -0,0 +1,223 @@
1
+ export const dataItem = [
2
+ {
3
+ av: {
4
+ t: "INVALID",
5
+ },
6
+ id: "9c5c2eeb72895300bdd3b4ff8e6b67c4",
7
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
8
+ mer: "demo.nyris.io",
9
+ title: "HOYA",
10
+ desc: "Pflanze",
11
+ var: [],
12
+ img: {
13
+ id: "46ffb718a24bf47125c09db0bb0643074a119f2eb14939863665414afd306c3e",
14
+ ifid: "",
15
+ url: "https://img.nyris.io/46f/46ffb718a24bf47125c09db0bb0643074a119f2eb14939863665414afd306c3e.jpg",
16
+ h: false,
17
+ },
18
+ cc: ["Dekoration", "Blumentöpfe, Pflanzen & Blumenständer", "Pflanzen"],
19
+ sku: "60392745",
20
+ position: 0,
21
+ },
22
+ {
23
+ av: {
24
+ t: "INVALID",
25
+ },
26
+ id: "65f857e9779856e18cd67a809fd9e23c",
27
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
28
+ mer: "demo.nyris.io",
29
+ title: "FEJKA",
30
+ desc: "Kunstpflanze",
31
+ var: [],
32
+ img: {
33
+ id: "25f72fedd3cc0ef399bf88086157df643638e5b6e755a08b20c61221b1186c49",
34
+ ifid: "",
35
+ url: "https://img.nyris.io/25f/25f72fedd3cc0ef399bf88086157df643638e5b6e755a08b20c61221b1186c49.jpg",
36
+ h: false,
37
+ },
38
+ cc: [
39
+ "Dekoration",
40
+ "Blumentöpfe, Pflanzen & Blumenständer",
41
+ "Kunstpflanzen & -blumen",
42
+ ],
43
+ sku: "20349532",
44
+ position: 1,
45
+ },
46
+ {
47
+ av: {
48
+ t: "INVALID",
49
+ },
50
+ id: "c66fd178c8125ae198089caff89245a9",
51
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
52
+ mer: "demo.nyris.io",
53
+ title: "BEGÄRLIG",
54
+ desc: "Vase",
55
+ var: [],
56
+ img: {
57
+ id: "3b99e5300504273d8b363a501344c7d06b7fb5a29b5e0a50caf1d3d036a015b7",
58
+ ifid: "",
59
+ url: "https://img.nyris.io/3b9/3b99e5300504273d8b363a501344c7d06b7fb5a29b5e0a50caf1d3d036a015b7.jpg",
60
+ h: false,
61
+ },
62
+ cc: ["Dekoration", "Vasen & Schalen", "Vasen"],
63
+ sku: "30309781",
64
+ position: 2,
65
+ },
66
+ {
67
+ av: {
68
+ t: "INVALID",
69
+ },
70
+ id: "9ffd0e329cc15d5489a6f2e2fc3f7497",
71
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
72
+ mer: "demo.nyris.io",
73
+ title: "INDUSTRIELL",
74
+ desc: "Teller",
75
+ var: [],
76
+ img: {
77
+ id: "60bd1dfa0229b9a9065ee6d74b969718c75a55383e830a627fb0f9decf407925",
78
+ ifid: "",
79
+ url: "https://img.nyris.io/60b/60bd1dfa0229b9a9065ee6d74b969718c75a55383e830a627fb0f9decf407925.jpg",
80
+ h: false,
81
+ },
82
+ cc: ["Essen", "Essgeschirr", "Teller"],
83
+ sku: "90387078",
84
+ position: 3,
85
+ },
86
+ {
87
+ av: {
88
+ t: "INVALID",
89
+ },
90
+ id: "939e4f8f643156cf81c14804174a9efd",
91
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
92
+ mer: "demo.nyris.io",
93
+ title: "CITRUS",
94
+ desc: "Topfpflanze",
95
+ var: [],
96
+ img: {
97
+ id: "a3bcf8cb031effb87e3d412a51cc218860a064543a39e4cd6b368ccda4e44b5f",
98
+ ifid: "",
99
+ url: "https://img.nyris.io/a3b/a3bcf8cb031effb87e3d412a51cc218860a064543a39e4cd6b368ccda4e44b5f.jpg",
100
+ h: false,
101
+ },
102
+ cc: ["Dekoration", "Blumentöpfe, Pflanzen & Blumenständer", "Pflanzen"],
103
+ sku: "60392665",
104
+ position: 4,
105
+ },
106
+ {
107
+ p: {
108
+ c: "EUR",
109
+ vi: 3199,
110
+ ve: 3198,
111
+ t: 0,
112
+ },
113
+ av: {
114
+ t: "INVALID",
115
+ },
116
+ l: "https://www.impressionen.de/de/Weihnachten/Weihnachtsbeleuchtung/LED-Kranz-mit-Tannenzapfen-und-Blumen/produkt/246278?fromSearch=Suche&ctp=cG9zPTIxODEmc2ltaT05Ni4w",
117
+ id: "116e947ef4685a8e941f0b7b6d06753c",
118
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
119
+ mer: "demo.nyris.io",
120
+ title: "LED-Kranz mit Tannenzapfen und Blumen",
121
+ desc: "",
122
+ var: [],
123
+ img: {
124
+ id: "a6b41a30d15214450fb33cc39f29519a0dec354b266901c199d4467bb605d1c0",
125
+ ifid: "",
126
+ url: "https://img.nyris.io/a6b/a6b41a30d15214450fb33cc39f29519a0dec354b266901c199d4467bb605d1c0.jpg",
127
+ h: false,
128
+ },
129
+ cc: ["Weihnachten", "Weihnachtsbeleuchtung"],
130
+ sku: "246278",
131
+ position: 5,
132
+ },
133
+ {
134
+ av: {
135
+ t: "INVALID",
136
+ },
137
+ id: "19543b4d71e5591892cb36f0cc45918f",
138
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
139
+ mer: "demo.nyris.io",
140
+ title: "SMYCKA",
141
+ desc: "Kunstblatt",
142
+ var: [],
143
+ img: {
144
+ id: "af4a0c55b0d9a7a8ac96ca85f8302ee7f97f01a133f51dc5126ede9a5969b86e",
145
+ ifid: "",
146
+ url: "https://img.nyris.io/af4/af4a0c55b0d9a7a8ac96ca85f8302ee7f97f01a133f51dc5126ede9a5969b86e.jpg",
147
+ h: false,
148
+ },
149
+ cc: [
150
+ "Dekoration",
151
+ "Blumentöpfe, Pflanzen & Blumenständer",
152
+ "Kunstpflanzen & -blumen",
153
+ ],
154
+ sku: "80335773",
155
+ position: 6,
156
+ },
157
+ {
158
+ av: {
159
+ t: "INVALID",
160
+ },
161
+ id: "8342509d872959efa36170e1ed933243",
162
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
163
+ mer: "demo.nyris.io",
164
+ title: "STILREN",
165
+ desc: "Vase",
166
+ var: [],
167
+ img: {
168
+ id: "f1df581ba7e1ac05058a450ff1d222c8c1443e8582b515e447546e48e8ea5f6f",
169
+ ifid: "",
170
+ url: "https://img.nyris.io/f1d/f1df581ba7e1ac05058a450ff1d222c8c1443e8582b515e447546e48e8ea5f6f.jpg",
171
+ h: false,
172
+ },
173
+ cc: ["Dekoration", "Vasen & Schalen", "Vasen"],
174
+ sku: "10442045",
175
+ position: 7,
176
+ },
177
+ {
178
+ av: {
179
+ t: "INVALID",
180
+ },
181
+ id: "cbf502eb20d454e086e21ffe0d6dd474",
182
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
183
+ mer: "demo.nyris.io",
184
+ title: "STILREN",
185
+ desc: "Vase",
186
+ var: [],
187
+ img: {
188
+ id: "40b1a22c8610bfcd52e3acb59b39ee7a8c9a547db288344b0a9978d7f7353798",
189
+ ifid: "",
190
+ url: "https://img.nyris.io/40b/40b1a22c8610bfcd52e3acb59b39ee7a8c9a547db288344b0a9978d7f7353798.jpg",
191
+ h: false,
192
+ },
193
+ cc: ["Dekoration", "Vasen & Schalen", "Vasen"],
194
+ sku: "60442043",
195
+ position: 8,
196
+ },
197
+ {
198
+ p: {
199
+ c: "EUR",
200
+ vi: 795,
201
+ ve: 794,
202
+ t: 0,
203
+ },
204
+ av: {
205
+ t: "INVALID",
206
+ },
207
+ l: "https://www.dm.de/183-days-by-trend-it-up-lidschatten-cream-square-eyeshadow-palette-020-p4058172080852.html",
208
+ id: "cb6039515188564eac24d7b4c1c19e79",
209
+ mid: "3ab221c77f2058efb4dc4f9a4255f270",
210
+ mer: "demo.nyris.io",
211
+ title: "Lidschatten Cream Square Eyeshadow Palette 020, 8,1 g",
212
+ desc: "",
213
+ var: [],
214
+ img: {
215
+ id: "80abb67003ea310765db1dcadb3f7a65769ba0e5f2555397964b054e6a6d6a82",
216
+ ifid: "",
217
+ url: "https://img.nyris.io/80a/80abb67003ea310765db1dcadb3f7a65769ba0e5f2555397964b054e6a6d6a82.jpg",
218
+ h: false,
219
+ },
220
+ sku: "4058172080852",
221
+ position: 9,
222
+ },
223
+ ];
@@ -0,0 +1,166 @@
1
+ import { Box, Button } from "@material-ui/core";
2
+ import React from "react";
3
+ import { useState } from "react";
4
+ import {
5
+ NavLink,
6
+ useLocation,
7
+ useRouteMatch,
8
+ } from "react-router-dom";
9
+ import AllItem from "components/Saved/AllItem";
10
+ import CategoryItemSaved from "components/Saved/Category";
11
+ import { useEffect } from "react";
12
+ import AddOutlinedIcon from "@material-ui/icons/AddOutlined";
13
+ import { dataItem } from "./MockData";
14
+ interface Props {}
15
+
16
+ interface Option {
17
+ readonly label: string;
18
+ readonly value: string;
19
+ }
20
+
21
+ const collections = [
22
+ {
23
+ value: "all",
24
+ title: "All",
25
+ },
26
+ {
27
+ value: "collections",
28
+ title: "Collections",
29
+ },
30
+ ];
31
+
32
+ const useQuery = () => {
33
+ const { search } = useLocation();
34
+ return React.useMemo(() => new URLSearchParams(search), [search]);
35
+ };
36
+
37
+ function Saved(props: Props) {
38
+ let query = useQuery();
39
+ const getCategory = query.get("category");
40
+ let { url } = useRouteMatch();
41
+ const [nameCategory, setNameCategory] = useState<string>("all");
42
+ const [collectionParams] =
43
+ useState<any[any]>(collections);
44
+ useEffect(() => {
45
+ if (getCategory) {
46
+ setNameCategory(getCategory);
47
+ }
48
+ }, [getCategory]);
49
+
50
+ // console.log("history", history?.location);
51
+
52
+ // const handleCheckMatchLink = (match: any, location: any) => {
53
+ // let active = false;
54
+ // if (history?.location.search === location?.search) {
55
+ // active = true;
56
+ // }
57
+ // // if (match?.url === location.pathname) {
58
+ // // active = true;
59
+ // // }
60
+
61
+ // return active;
62
+ // };
63
+
64
+ // console.log("query", query.get("category"));
65
+
66
+ console.log("collectionParams", collectionParams);
67
+
68
+ return (
69
+ <Box className="wrap-main-saved">
70
+ <Box className="box-main-top">
71
+ <Box className="box-top">
72
+ <Box
73
+ className="box-input-search"
74
+ display={"flex"}
75
+ justifyContent={"center"}
76
+ >
77
+ {/* <InputSearch
78
+ inputValueInputSearch={inputValueInputSearch}
79
+ handleChange={handleChange}
80
+ handleKeyDown={handleKeyDown}
81
+ handleInputChange={handleInputChange}
82
+ valueInputSearch={valueInputSearch}
83
+ styleControl={{
84
+ width: 640,
85
+ background: "#FFFFFF",
86
+ boxShadow: "0px 0px 6.66667px rgba(0, 0, 0, 0.2)",
87
+ borderRadius: 21,
88
+ minHeight: 42,
89
+ display: "flex",
90
+ alignItems: "center",
91
+ paddingLeft: "16px",
92
+ }}
93
+ placeholder={"Search"}
94
+ customComponent={{
95
+ DropdownIndicator: () => {
96
+ return (
97
+ <Box mr={1}>
98
+ <button
99
+ className="btn-input-search"
100
+ onClick={() => {
101
+ console.log("321");
102
+ }}
103
+ >
104
+ <img src={IconSetting} alt="icon_search" />
105
+ </button>
106
+ </Box>
107
+ );
108
+ },
109
+ }}
110
+ /> */}
111
+ </Box>
112
+ {collectionParams?.length > 0 && (
113
+ <Box className="box-bottom">
114
+ {collectionParams.map((item: any, index: any) => {
115
+ console.log("itemmmmmmm", item);
116
+
117
+ return (
118
+ <Box mr={1}>
119
+ <NavLink
120
+ key={index}
121
+ // activeClassName="active"
122
+ // isActive={(match, location) => {
123
+ // console.log("match", match);
124
+
125
+ // return location?.search === history?.location.search
126
+ // ? true
127
+ // : false;
128
+ // }}
129
+ to={`${url}?category=${item.value}`}
130
+ className="nav-link p-0 menu-children rounded-0"
131
+ >
132
+ <span
133
+ className={`d-none d-sm-block ms-4 px-2 py-1 border-bottom-1 ${
134
+ nameCategory === "all" ? "active1" : "active2"
135
+ }`}
136
+ >
137
+ {item.title}
138
+ </span>
139
+ </NavLink>
140
+ </Box>
141
+ );
142
+ })}
143
+ <Button style={{ backgroundColor: "#D8D7F8" }}>
144
+ <AddOutlinedIcon style={{ color: "#3E36DC", fontSize: 12 }} />
145
+ </Button>
146
+ </Box>
147
+ )}
148
+ </Box>
149
+ </Box>
150
+
151
+ <Box className="box-main-bottom">
152
+ {collectionParams.length > 0 && (
153
+ <Box>
154
+ {nameCategory === "all" ? (
155
+ <AllItem dataItem={dataItem} isHover={true} />
156
+ ) : (
157
+ <CategoryItemSaved nameCategory={nameCategory} />
158
+ )}
159
+ </Box>
160
+ )}
161
+ </Box>
162
+ </Box>
163
+ );
164
+ }
165
+
166
+ export default Saved;
@@ -0,0 +1,160 @@
1
+ import {
2
+ Box,
3
+ Button,
4
+ CircularProgress,
5
+ IconButton,
6
+ TextareaAutosize,
7
+ Typography,
8
+ } from "@material-ui/core";
9
+ import React, { useState } from "react";
10
+ import PhotoCameraOutlinedIcon from "@material-ui/icons/PhotoCameraOutlined";
11
+ import CloseOutlinedIcon from "@material-ui/icons/CloseOutlined";
12
+ interface Props {}
13
+
14
+ function SupportPage(props: Props) {
15
+ const [imageUpload, setImageUpload] = useState<any[]>([]);
16
+ const [isLoading, setLoading] = useState<boolean>(false);
17
+ const onUploadImage = (e: any) => {
18
+ let newValue: any[] = [];
19
+ Object.values(e.target.files).forEach((val: any, index: any) => {
20
+ newValue.push({
21
+ value: index,
22
+ urlImage: URL.createObjectURL(val),
23
+ });
24
+ });
25
+ setImageUpload(newValue);
26
+ };
27
+
28
+ const onRemoveImage = (value: any) => {
29
+ setLoading(true);
30
+ const newArr = imageUpload;
31
+ setImageUpload(newArr);
32
+ setTimeout(() => {
33
+ setLoading(false);
34
+ }, 1000);
35
+ };
36
+ console.log("imageUpload", imageUpload);
37
+
38
+ return (
39
+ <Box className="wrap-main-support-page" display={"flex"}>
40
+ <Box className="col-left">
41
+ <Box
42
+ className="col-left__top"
43
+ display={"flex"}
44
+ alignItems={"center"}
45
+ justifyContent={"center"}
46
+ >
47
+ <Box
48
+ style={{ width: 640 }}
49
+ marginLeft={"auto"}
50
+ display={"flex"}
51
+ justifyContent={"center"}
52
+ >
53
+ <Typography
54
+ className="text-f40 text-white fw-700"
55
+ style={{ width: 442 }}
56
+ >
57
+ Didn’t find what you were looking for?
58
+ </Typography>
59
+ </Box>
60
+ </Box>
61
+ <Box className="col-left__bottom">
62
+ <Box style={{ width: 640 }} marginLeft={"auto"}>
63
+ <Box className="box-form">
64
+ <form>
65
+ <Box mb={1}>
66
+ <Typography className="text-white text-f12">
67
+ Share your search with our product expert:
68
+ </Typography>
69
+ </Box>
70
+ <Box className="box-btn-upload" mb={1}>
71
+ <input
72
+ accept="image/*"
73
+ id="contained-button-file"
74
+ multiple
75
+ type="file"
76
+ style={{ display: "none" }}
77
+ onChange={onUploadImage}
78
+ />
79
+ <label htmlFor="contained-button-file">
80
+ <IconButton
81
+ color="primary"
82
+ aria-label="upload picture"
83
+ component="span"
84
+ className="btn-upload"
85
+ >
86
+ Open file
87
+ <PhotoCameraOutlinedIcon style={{ fontSize: 12 }} />
88
+ </IconButton>
89
+ </label>
90
+ </Box>
91
+ {!isLoading ? (
92
+ <Box
93
+ className="box-preview-image"
94
+ display={"flex"}
95
+ flexWrap={"wrap"}
96
+ >
97
+ {imageUpload &&
98
+ imageUpload.map((item: any, index: any) => {
99
+ return (
100
+ <Box className="box-image w-100" key={index}>
101
+ <Button
102
+ className="btn-close w-100"
103
+ onClick={() => {
104
+ const newValue = index;
105
+ onRemoveImage(newValue);
106
+ }}
107
+ >
108
+ <CloseOutlinedIcon style={{ fontSize: 12 }} />
109
+ </Button>
110
+ <img
111
+ style={{ height: "100%" }}
112
+ src={item.urlImage}
113
+ key={index}
114
+ alt={`${index}`}
115
+ />
116
+ </Box>
117
+ );
118
+ })}
119
+ </Box>
120
+ ) : (
121
+ <CircularProgress />
122
+ )}
123
+
124
+ <Box mb={2}>
125
+ <Typography className="text-white text-f12">
126
+ Or leave a message:
127
+ </Typography>
128
+ </Box>
129
+ <Box mb={2}>
130
+ <Box mb={1}>
131
+ <Typography className="text-white text-f8">
132
+ Message
133
+ </Typography>
134
+ </Box>
135
+ <TextareaAutosize
136
+ placeholder="Message"
137
+ minRows={1}
138
+ // style={{height: 'fit-content'}}
139
+ className="text-f9 textarea-ct w-100"
140
+ />
141
+ </Box>
142
+ <Box display={"flex"}>
143
+ <Button className="text-white text-f9 fw-700 bg-dark w-50 border-rd-0">
144
+ Cancel
145
+ </Button>
146
+ <Button className="text-white text-f9 fw-700 bg-pink2 w-50 border-rd-0">
147
+ Send
148
+ </Button>
149
+ </Box>
150
+ </form>
151
+ </Box>
152
+ </Box>
153
+ </Box>
154
+ </Box>
155
+ <Box className="col-right"></Box>
156
+ </Box>
157
+ );
158
+ }
159
+
160
+ export default SupportPage;
@@ -0,0 +1,36 @@
1
+ export const dataFieldOne = [
2
+ {
3
+ value: "dataFieldOne",
4
+ title: "Filter one with a longer title",
5
+ },
6
+ ];
7
+ export const dataFieldTow = [
8
+ {
9
+ value: "dataFieldTow",
10
+ title: "Filter two",
11
+ },
12
+ ];
13
+ export const dataFieldThree = [
14
+ {
15
+ value: "dataFieldThree",
16
+ title: "Filter three with a smaller title",
17
+ },
18
+ ];
19
+ export const dataFieldFour = [
20
+ {
21
+ value: "dataFieldFour",
22
+ title: "Filter four",
23
+ },
24
+ ];
25
+ export const dataFieldFive = [
26
+ {
27
+ value: "dataFieldFive",
28
+ title: "Filter five",
29
+ },
30
+ ];
31
+ export const dataFieldSix = [
32
+ {
33
+ value: "dataFieldSix",
34
+ title: "Filter six",
35
+ },
36
+ ];