@nyris/nyris-webapp 0.3.23 → 0.3.25

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 (117) hide show
  1. package/README.md +1 -1
  2. package/build/asset-manifest.json +12 -18
  3. package/build/index.html +1 -1
  4. package/build/{precache-manifest.550e76235499efc131a68c80392f6bfc.js → precache-manifest.3eed67031bd288eaf7ff98cd02aef6d7.js} +11 -35
  5. package/build/service-worker.js +1 -1
  6. package/build/static/css/main.0d30f026.chunk.css +2 -0
  7. package/build/static/css/main.0d30f026.chunk.css.map +1 -0
  8. package/build/static/js/2.ad8c5320.chunk.js +3 -0
  9. package/build/static/js/{2.f0507df9.chunk.js.LICENSE.txt → 2.ad8c5320.chunk.js.LICENSE.txt} +0 -15
  10. package/build/static/js/2.ad8c5320.chunk.js.map +1 -0
  11. package/build/static/js/main.7c54ad4d.chunk.js +3 -0
  12. package/build/static/js/main.7c54ad4d.chunk.js.map +1 -0
  13. package/package.json +5 -3
  14. package/src/App.tsx +24 -15
  15. package/src/Router.tsx +6 -41
  16. package/src/Store/Store.ts +14 -23
  17. package/src/Store/{Auth.ts → auth/Auth.ts} +6 -17
  18. package/src/Store/auth/types.ts +11 -0
  19. package/src/Store/constants.ts +21 -0
  20. package/src/Store/nyris/Nyris.ts +67 -0
  21. package/src/Store/nyris/types.ts +11 -0
  22. package/src/Store/{Search.ts → search/Search.ts} +3 -63
  23. package/src/Store/search/search.initialState.ts +28 -0
  24. package/src/Store/search/types.ts +34 -0
  25. package/src/components/DetailItem.tsx +29 -25
  26. package/src/components/DragDropFile.tsx +8 -3
  27. package/src/components/Feedback.tsx +11 -14
  28. package/src/components/FooterMobile.tsx +3 -51
  29. package/src/components/FooterResult.tsx +1 -1
  30. package/src/components/Header.tsx +29 -30
  31. package/src/components/HeaderMobile.tsx +14 -21
  32. package/src/components/Layout.tsx +11 -27
  33. package/src/components/PanelResult/index.tsx +1 -1
  34. package/src/components/{LoadingScreen → ProductList}/index.tsx +3 -3
  35. package/src/components/appMobile.scss +2 -21
  36. package/src/components/carousel/ImagePreviewCarousel.tsx +2 -1
  37. package/src/components/clear-refinements/clear-refinements.tsx +1 -1
  38. package/src/components/common.scss +2 -0
  39. package/src/components/drawer/cameraCustom.tsx +7 -14
  40. package/src/components/input/inputSearch.tsx +9 -8
  41. package/src/components/pre-filter/{desktop/index.tsx → index.tsx} +5 -5
  42. package/src/components/results/ItemResult.tsx +40 -34
  43. package/src/constants.ts +12 -0
  44. package/src/hooks/useVisualSearch.tsx +2 -2
  45. package/src/i18n.ts +10 -0
  46. package/src/index.css +13 -0
  47. package/src/index.tsx +0 -20
  48. package/src/{modules/LandingPage/indexNewVersion.tsx → page/landingPage/AppMD.tsx} +2 -4
  49. package/src/{modules/LandingPage → page/landingPage}/AppMobile.tsx +4 -5
  50. package/src/{modules/LandingPage → page/landingPage}/common.scss +2 -8
  51. package/src/page/result/index.tsx +8 -10
  52. package/src/services/Feedback.ts +48 -71
  53. package/src/services/{filter.tsx → filter.ts} +1 -1
  54. package/src/services/types.ts +30 -39
  55. package/src/translations.ts +22 -0
  56. package/src/types.ts +13 -66
  57. package/build/js/test.js +0 -84
  58. package/build/static/css/main.c956b74c.chunk.css +0 -2
  59. package/build/static/css/main.c956b74c.chunk.css.map +0 -1
  60. package/build/static/js/2.f0507df9.chunk.js +0 -3
  61. package/build/static/js/2.f0507df9.chunk.js.map +0 -1
  62. package/build/static/js/main.247c7b7e.chunk.js +0 -3
  63. package/build/static/js/main.247c7b7e.chunk.js.map +0 -1
  64. package/build/static/media/Rectangle.4dd8b747.png +0 -0
  65. package/build/static/media/icon_company.2b2a0a61.svg +0 -3
  66. package/build/static/media/icon_email.132d632b.svg +0 -3
  67. package/build/static/media/icon_phone.09335da9.svg +0 -3
  68. package/build/static/media/icon_textArea.f6d78b61.svg +0 -3
  69. package/build/static/media/icon_users.2013c76e.svg +0 -3
  70. package/public/js/test.js +0 -84
  71. package/src/App.css +0 -65
  72. package/src/Store/Nyris.ts +0 -77
  73. package/src/components/AppContainer.tsx +0 -126
  74. package/src/components/CategoryFilter.tsx +0 -17
  75. package/src/components/Codes.tsx +0 -20
  76. package/src/components/CustomHits/index.tsx +0 -47
  77. package/src/components/Footer.tsx +0 -96
  78. package/src/components/FooterMD.tsx +0 -54
  79. package/src/components/FooterNewVersion.tsx +0 -12
  80. package/src/components/HeaderMd.tsx +0 -38
  81. package/src/components/HeaderNewVersion.tsx +0 -112
  82. package/src/components/Navigation.tsx +0 -34
  83. package/src/components/PredictedCategories.tsx +0 -14
  84. package/src/components/Refine.tsx +0 -28
  85. package/src/components/RelevantSort.tsx +0 -12
  86. package/src/components/Result.tsx +0 -210
  87. package/src/components/Saved/AllItem.tsx +0 -32
  88. package/src/components/Saved/Category.tsx +0 -16
  89. package/src/components/auto-complete/basic.tsx +0 -153
  90. package/src/components/autocomplete/plugins/popular-searches/popular-searches.css +0 -3
  91. package/src/components/autocomplete/plugins/popular-searches/popular-searches.tsx +0 -75
  92. package/src/components/button/clear-fillter.tsx +0 -30
  93. package/src/components/camera/screenshot.tsx +0 -33
  94. package/src/components/count/count.tsx +0 -20
  95. package/src/components/hitItem/hits.tsx +0 -50
  96. package/src/components/hitItem/infinitiHits.tsx +0 -33
  97. package/src/components/icon/icon.tsx +0 -13
  98. package/src/components/icon_textArea.svg +0 -3
  99. package/src/components/refinement-list/index.tsx +0 -42
  100. package/src/components/results/pagination.tsx +0 -34
  101. package/src/components/search/ListSearch.tsx +0 -209
  102. package/src/defaults.ts +0 -37
  103. package/src/modules/LandingPage/App.tsx +0 -318
  104. package/src/modules/LandingPage/AppMD.tsx +0 -399
  105. package/src/modules/LandingPage/index.tsx +0 -186
  106. package/src/modules/LandingPage/propsType.ts +0 -43
  107. package/src/page/Auth/login.tsx +0 -7
  108. package/src/page/Exception/404.tsx +0 -11
  109. package/src/page/History/index.tsx +0 -76
  110. package/src/page/Profile/index.tsx +0 -140
  111. package/src/page/ResultMobile/index.tsx +0 -12
  112. package/src/page/Saved/MockData.ts +0 -223
  113. package/src/page/Saved/index.tsx +0 -166
  114. package/src/page/Support/MockData.ts +0 -45
  115. package/src/page/Support/index.tsx +0 -492
  116. package/src/page/result/MockData.ts +0 -50
  117. /package/build/static/js/{main.247c7b7e.chunk.js.LICENSE.txt → main.7c54ad4d.chunk.js.LICENSE.txt} +0 -0
@@ -1,166 +0,0 @@
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;
@@ -1,45 +0,0 @@
1
- export const rows: any = [
2
- { id: 1, lastName: "Snow", firstName: "Jon", age: 35, date: "21/2" },
3
- { id: 2, lastName: "Lannister", firstName: "Cersei", age: 42, date: "21/2" },
4
- { id: 3, lastName: "Lannister", firstName: "Jaime", age: 45, date: "21/2" },
5
- { id: 4, lastName: "Stark", firstName: "Arya", age: 16, date: "21/2" },
6
- {
7
- id: 5,
8
- lastName: "Targaryen",
9
- firstName: "Daenerys",
10
- age: null,
11
- date: "21/2",
12
- },
13
- { id: 6, lastName: "Melisandre", firstName: null, age: 150, date: "21/2" },
14
- { id: 7, lastName: "Clifford", firstName: "Ferrara", age: 44, date: "21/2" },
15
- { id: 8, lastName: "Frances", firstName: "Rossini", age: 36, date: "21/2" },
16
- { id: 9, lastName: "Roxie", firstName: "Harvey", age: 65, date: "21/2" },
17
- ];
18
-
19
- export const columns: any = [
20
- { field: "id", headerName: "Ticket number", width: 640 / 5 - 14, sortable: false, },
21
- {
22
- field: "firstName",
23
- headerName: "Brand",
24
- width: 640 / 5 - 14,
25
- },
26
- {
27
- field: "lastName",
28
- headerName: "Message",
29
- width: 640 / 5 - 14,
30
- sortable: false,
31
- },
32
- {
33
- field: "age",
34
- headerName: "Search (Atachments)",
35
- type: "number",
36
- width: 640 / 5,
37
- sortable: false,
38
- },
39
- {
40
- field: "date",
41
- headerName: "Date",
42
- type: "date",
43
- // width: 640 / 5 - 14,
44
- },
45
- ];