imio.smartweb.core 1.2.38__py3-none-any.whl → 1.2.40__py3-none-any.whl

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 (90) hide show
  1. imio/smartweb/core/contents/rest/events/content.py +13 -0
  2. imio/smartweb/core/contents/rest/events/endpoint.py +1 -0
  3. imio/smartweb/core/contents/rest/events/view.pt +3 -1
  4. imio/smartweb/core/contents/rest/events/view.py +8 -0
  5. imio/smartweb/core/contents/rest/news/content.py +6 -0
  6. imio/smartweb/core/contents/rest/news/endpoint.py +1 -0
  7. imio/smartweb/core/contents/rest/news/view.pt +2 -1
  8. imio/smartweb/core/contents/rest/news/view.py +4 -0
  9. imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
  10. imio/smartweb/core/contents/sections/common_templates/table.pt +6 -2
  11. imio/smartweb/core/contents/sections/events/content.py +7 -0
  12. imio/smartweb/core/contents/sections/events/view.py +7 -0
  13. imio/smartweb/core/contents/sections/external_content/view.pt +3 -3
  14. imio/smartweb/core/contents/sections/news/content.py +7 -0
  15. imio/smartweb/core/contents/sections/news/view.py +7 -0
  16. imio/smartweb/core/contents/sections/views.py +4 -0
  17. imio/smartweb/core/tests/test_rest.py +2 -0
  18. imio/smartweb/core/webcomponents/build/10512eee43c7b5ed4757.svg +1 -0
  19. imio/smartweb/core/webcomponents/build/10dd862b2cdd9c68e1a8.svg +1 -0
  20. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  21. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  22. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  23. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  24. imio/smartweb/core/webcomponents/build/a38272f263f8328349f2.svg +1 -0
  25. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
  26. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
  27. imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -1
  28. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
  29. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  30. imio/smartweb/core/webcomponents/build/f79b479fdc5c0fe0d553.svg +1 -0
  31. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
  32. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +5 -8
  33. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
  34. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
  35. imio/smartweb/core/webcomponents/build/js/496.smartweb-webcomponents-compiled.js +2 -0
  36. imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 496.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  37. imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -1
  38. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js +2 -0
  39. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  40. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
  41. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  42. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
  43. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  44. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  45. imio/smartweb/core/webcomponents/package.json +40 -40
  46. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +17 -9
  47. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +227 -141
  48. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +7 -6
  49. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +2 -2
  50. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +18 -18
  51. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  52. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +2 -2
  53. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +8 -8
  54. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +2 -2
  55. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +20 -11
  56. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +244 -161
  57. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +9 -8
  58. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +27 -27
  59. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +10 -7
  60. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +11 -12
  61. imio/smartweb/core/webcomponents/src/components/News/News.jsx +53 -45
  62. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +101 -100
  63. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +3 -3
  64. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +11 -11
  65. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +11 -11
  66. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +4 -5
  67. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
  68. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +5 -4
  69. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
  70. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +2 -2
  71. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  72. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
  73. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  74. imio/smartweb/core/webcomponents/src/index.jsx +3 -3
  75. imio/smartweb/core/webcomponents/src/index.scss +86 -22
  76. imio/smartweb/core/webcomponents/src/utils/Map.jsx +10 -10
  77. imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
  78. imio/smartweb/core/webcomponents/src/utils/translation.js +8 -8
  79. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/METADATA +25 -3
  80. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/RECORD +87 -78
  81. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/WHEEL +1 -1
  82. imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
  83. imio/smartweb/core/webcomponents/build/js/40.smartweb-webcomponents-compiled.js +0 -1
  84. imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
  85. /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  86. /imio.smartweb.core-1.2.38-py3.8-nspkg.pth → /imio.smartweb.core-1.2.40-py3.10-nspkg.pth +0 -0
  87. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/LICENSE.GPL +0 -0
  88. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/LICENSE.rst +0 -0
  89. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/namespace_packages.txt +0 -0
  90. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/top_level.txt +0 -0
@@ -32,7 +32,7 @@ const ContactResult = (props) => {
32
32
  <Translate text="Contacts" />
33
33
  </h2>
34
34
  <p className="r-search-header-count">
35
- {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
35
+ {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
36
36
  </p>
37
37
  </div>
38
38
  <ul className="r-search-list">
@@ -40,15 +40,15 @@ const ContactResult = (props) => {
40
40
  <li key={i} className="r-search-item">
41
41
  <a href={item["_url"]}>
42
42
  <div className="r-search-img">
43
- {
44
- item.has_leadimage[0] ? (
45
- <div className="r-search-img" style={{
46
- backgroundImage:"url(" + item.image_url +")"
47
- }}></div>
48
- ):(
49
- <div className="r-search-img no-search-item-img"></div>
50
- )
51
- }
43
+ {
44
+ item.has_leadimage[0] ? (
45
+ <div className="r-search-img" style={{
46
+ backgroundImage: "url(" + item.image_url + ")"
47
+ }}></div>
48
+ ) : (
49
+ <div className="r-search-img no-search-item-img"></div>
50
+ )
51
+ }
52
52
  </div>
53
53
  <Highlighter
54
54
  highlightClassName="r-search-highlighter"
@@ -62,4 +62,4 @@ const ContactResult = (props) => {
62
62
  </div>
63
63
  );
64
64
  };
65
- export default ContactResult;
65
+ export default ContactResult;
@@ -32,7 +32,7 @@ const EventsResult = (props) => {
32
32
  <Translate text="Événements" />
33
33
  </h2>
34
34
  <p className="r-search-header-count">
35
- {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
35
+ {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
36
36
  </p>
37
37
  </div>
38
38
  <ul className="r-search-list">
@@ -40,15 +40,15 @@ const EventsResult = (props) => {
40
40
  <li key={i} className="r-search-item">
41
41
  <a href={item["_url"]}>
42
42
  <div className="r-search-img">
43
- {
44
- item.has_leadimage[0] ? (
45
- <div className="r-search-img" style={{
46
- backgroundImage:"url(" + item.image_url +")"
47
- }}></div>
48
- ):(
49
- <div className="r-search-img no-search-item-img"></div>
50
- )
51
- }
43
+ {
44
+ item.has_leadimage[0] ? (
45
+ <div className="r-search-img" style={{
46
+ backgroundImage: "url(" + item.image_url + ")"
47
+ }}></div>
48
+ ) : (
49
+ <div className="r-search-img no-search-item-img"></div>
50
+ )
51
+ }
52
52
  </div>
53
53
  <Highlighter
54
54
  highlightClassName="r-search-highlighter"
@@ -62,4 +62,4 @@ const EventsResult = (props) => {
62
62
  </div>
63
63
  );
64
64
  };
65
- export default EventsResult;
65
+ export default EventsResult;
@@ -1,13 +1,12 @@
1
1
  import React, { useEffect, useCallback, useRef, useState } from "react";
2
2
  import Select from "react-select";
3
- import { useHistory } from "react-router-dom";
3
+ import { useNavigate } from "react-router-dom";
4
4
  import axios from "axios";
5
5
  import { Translate, Translator } from "react-translated";
6
+ import queryString from 'query-string';
6
7
 
7
8
  function Filters(props) {
8
- let history = useHistory();
9
- const queryString = require("query-string");
10
-
9
+ let navigate = useNavigate();
11
10
  const [inputValues, setInputValues] = useState(props.activeFilter);
12
11
  const [searchValues, setSearchValues] = useState({});
13
12
  const [topicsFilter, setTopicsFilter] = useState(null);
@@ -109,7 +108,7 @@ function Filters(props) {
109
108
  firstUpdate.current = false;
110
109
  return;
111
110
  }
112
- history.push({
111
+ navigate({
113
112
  pathname: "./",
114
113
  search: queryString.stringify(inputValues),
115
114
  });
@@ -29,10 +29,10 @@ const NewsResult = (props) => {
29
29
  <div className="search-news">
30
30
  <div className="r-search-header">
31
31
  <h2 className="r-search-header-title">
32
- <Translate text="Actualités"/>
32
+ <Translate text="Actualités" />
33
33
  </h2>
34
34
  <p className="r-search-header-count">
35
- {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
35
+ {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
36
36
  </p>
37
37
  </div>
38
38
  <ul className="r-search-list">
@@ -43,9 +43,9 @@ const NewsResult = (props) => {
43
43
  {
44
44
  item.has_leadimage[0] ? (
45
45
  <div className="r-search-img" style={{
46
- backgroundImage:"url(" + item.image_url +")"
46
+ backgroundImage: "url(" + item.image_url + ")"
47
47
  }}></div>
48
- ):(
48
+ ) : (
49
49
  <div className="r-search-img no-search-item-img"></div>
50
50
  )
51
51
  }
@@ -62,4 +62,4 @@ const NewsResult = (props) => {
62
62
  </div>
63
63
  );
64
64
  };
65
- export default NewsResult;
65
+ export default NewsResult;
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import { BrowserRouter as Router } from "react-router-dom";
2
+ import { BrowserRouter } from "react-router-dom";
3
3
  import Filters from "./Filters/Filter";
4
4
  import ContactResult from "./ContactResult/ContactResult";
5
5
  import NewsResult from "./NewsResult/NewsResult";
@@ -8,11 +8,13 @@ import WebResult from "./WebResult/WebResult";
8
8
  import useFilterQuery from "../../hooks/useFilterQuery";
9
9
  import { Provider } from "react-translated";
10
10
  import translation from '../../utils/translation';
11
+ import queryString from 'query-string';
12
+
11
13
  import "./Search.scss";
12
14
 
13
15
  export default function Search(props) {
14
16
  return (
15
- <Router>
17
+ <BrowserRouter>
16
18
  <Provider language={props.currentLanguage} translation={translation}>
17
19
  <SearchView
18
20
  queryFilterUrl={props.queryFilterUrl}
@@ -20,11 +22,10 @@ export default function Search(props) {
20
22
  resultOption={JSON.parse(props.resultOption)}
21
23
  />
22
24
  </Provider>
23
- </Router >
25
+ </BrowserRouter >
24
26
  );
25
27
  }
26
28
  const SearchView = (props) => {
27
- const queryString = require("query-string");
28
29
  const parsed = queryString.parse(useFilterQuery().toString());
29
30
  const { SearchableText, iam, topics } = parsed;
30
31
  const parsed2 = { 'SearchableText': SearchableText, 'iam': iam, 'topics': topics };
@@ -1,127 +1,147 @@
1
- .userrole-authenticated{
2
- .r-search-container{
3
- padding: 0 20px 0 123px;
1
+ .userrole-authenticated {
2
+ .r-search-container {
3
+ padding: 0 20px 0 123px;
4
4
  }
5
5
  }
6
- .r-search-container{
7
- max-width: 1330px;
8
- margin: 0 auto;
9
- padding: 0 20px 0 20px;
10
- .full-width {
11
- width: 100vw;
12
- position: relative;
13
- left: 50%;
14
- right: 50%;
15
- margin-left: -50vw;
16
- margin-right: -50vw;
17
- }
18
6
 
19
- .r-search-highlighter{
20
- padding: 0;
21
- font-weight: bold;
22
- background:transparent;
7
+ .r-search-container {
8
+ max-width: 1330px;
9
+ margin: 0 auto;
10
+ padding: 0 20px 0 20px;
11
+
12
+ .full-width {
13
+ width: 100vw;
14
+ position: relative;
15
+ left: 50%;
16
+ right: 50%;
17
+ margin-left: -50vw;
18
+ margin-right: -50vw;
19
+ }
20
+
21
+ .r-search-highlighter {
22
+ padding: 0;
23
+ font-weight: bold;
24
+ background: transparent;
25
+ position: relative;
26
+ border-bottom: 2px solid #F9B300;
27
+ }
28
+
29
+ .r-search-header {
30
+ border-bottom: 1px solid #000;
31
+ }
32
+
33
+ .r-search-header-title {
34
+ font-weight: bold;
35
+ font-size: 15px;
36
+ text-transform: uppercase;
37
+ }
38
+
39
+ .r-search-header-count {
40
+ font-size: 10px;
41
+ text-transform: uppercase;
42
+ color: #808080;
43
+ }
44
+
45
+ .r-search-result {
46
+ margin-top: 2rem;
47
+ display: grid;
48
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
49
+ gap: 1.5rem;
50
+ }
51
+
52
+ .r-search.search-bar-filter {
53
+ position: relative;
54
+
55
+ form {
23
56
  position: relative;
24
- border-bottom: 2px solid #F9B300;
25
57
  }
26
- .r-search-header{
27
- border-bottom: 1px solid #000;
58
+
59
+ label,
60
+ input {
61
+ width: 100%;
28
62
  }
29
- .r-search-header-title{
63
+
64
+ input {
65
+ line-height: 50px;
66
+ border: 1px solid #CCCCCC;
67
+ height: 50px;
68
+ padding: 0 10px;
30
69
  font-weight: bold;
31
- font-size: 15px;
32
- text-transform: uppercase;
33
- }
34
- .r-search-header-count{
35
- font-size: 10px;
36
- text-transform: uppercase;
37
- color: #808080;
38
- }
39
- .r-search-result{
40
- margin-top: 2rem;
41
- display: grid;
42
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
43
- gap: 1.5rem;
44
- }
70
+ color: #000;
71
+ letter-spacing: 1.2px;
45
72
 
46
- .r-search.search-bar-filter{
47
- position: relative;
48
- form{
49
- position: relative;
50
- }
51
- label, input{
52
- width: 100%;
53
- }
54
- input{
55
- line-height: 50px;
56
- border: 1px solid #CCCCCC;
57
- height: 50px;
58
- padding: 0 10px;
59
- font-weight: bold;
73
+ &::placeholder {
60
74
  color: #000;
61
- letter-spacing:1.2px;
62
- &::placeholder {
63
- color: #000;
64
- font-size: 12px;
65
- opacity: 1;
66
- text-transform: uppercase;
67
- letter-spacing:1.2px;
68
- }
69
-
70
- }
71
- button{
72
- background: url(../../assets/search.svg) no-repeat;
73
- background-position: center;
74
- background-size: 80%;
75
- border: none;
76
- width: 20px;
77
- position: absolute;
78
- right: 10px;
79
- top: 0;
80
- bottom: 0;
75
+ font-size: 12px;
76
+ opacity: 1;
77
+ text-transform: uppercase;
78
+ letter-spacing: 1.2px;
81
79
  }
80
+
82
81
  }
83
82
 
84
- .r-search-select{
85
- height: 50px;
86
- border-radius: 0px;
83
+ button {
84
+ background: url(../../assets/search.svg) no-repeat;
85
+ background-position: center;
86
+ background-size: 80%;
87
+ border: none;
88
+ width: 20px;
89
+ position: absolute;
90
+ right: 10px;
91
+ top: 0;
92
+ bottom: 0;
87
93
  }
88
- .r-search-list{
89
- margin-top: 20px;
90
- @media screen and (min-width:992px){
91
- max-height: 375px;
92
- }
93
- overflow-y: scroll;
94
- .r-search-item{
95
- list-style: none;
96
- border-bottom: 1px solid rgba(0,0,0,.25);
97
- padding: 1rem 0;
98
- font-size: 14px;
99
- display: flex;
100
- gap: 10px;
101
- .r-search-img {
102
- width: 91px;
103
- height: 61px;
104
- background-size: cover;
105
- background-repeat: no-repeat;
106
- flex-basis: 100%;
107
- flex-basis: 91px;
108
- flex-grow: 0;
109
- flex-shrink: 0;
110
- }
94
+ }
95
+
96
+ .r-search-select {
97
+ height: 50px;
98
+ border-radius: 0px;
99
+ }
100
+
101
+ .r-search-list {
102
+ margin-top: 20px;
103
+
104
+ @media screen and (min-width:992px) {
105
+ max-height: 375px;
106
+ }
107
+
108
+ overflow-y: scroll;
109
+
110
+ .r-search-item {
111
+ list-style: none;
112
+ border-bottom: 1px solid rgba(0, 0, 0, .25);
113
+ padding: 1rem 0;
114
+ font-size: 14px;
115
+ display: flex;
116
+ gap: 10px;
117
+
118
+ .r-search-img {
119
+ width: 91px;
120
+ height: 61px;
121
+ background-size: cover;
122
+ background-repeat: no-repeat;
123
+ flex-basis: 100%;
124
+ flex-basis: 91px;
125
+ flex-grow: 0;
126
+ flex-shrink: 0;
111
127
  }
112
128
  }
129
+ }
113
130
  }
131
+
114
132
  .offcanvas-header .btn-close {
115
- right: 10px;
116
- position: absolute;
117
- top: 10px;
133
+ right: 10px;
134
+ position: absolute;
135
+ top: 10px;
118
136
  }
119
137
 
120
- .search-contact .r-search-img, .search-events .r-search-img, .search-news .r-search-img {
121
- float: left;
122
- margin-right: .5rem;
138
+ .search-contact .r-search-img,
139
+ .search-events .r-search-img,
140
+ .search-news .r-search-img {
141
+ float: left;
142
+ margin-right: .5rem;
123
143
  }
124
144
 
125
145
  .r-search-result mark {
126
- display: initial;
127
- }
146
+ display: initial;
147
+ }
@@ -33,7 +33,7 @@ const WebResult = (props) => {
33
33
 
34
34
  </h2>
35
35
  <p className="r-search-header-count">
36
- {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
36
+ {resultArray.length > 0 ? <> {resultArray.length} {" "} <Translate text='Résultats' /> </> : <Translate text='Aucun résultat' />}
37
37
  </p>
38
38
  </div>
39
39
  <ul className="r-search-list">
@@ -52,4 +52,4 @@ const WebResult = (props) => {
52
52
  </div>
53
53
  );
54
54
  };
55
- export default WebResult;
55
+ export default WebResult;
@@ -1,2 +1,2 @@
1
1
  import loadable from "@loadable/component";
2
- export default loadable(() => import("./Search"));
2
+ export default loadable(() => import("./Search"));
@@ -31,10 +31,10 @@ const useAxios = (params) => {
31
31
  }
32
32
  };
33
33
  useEffect(() => {
34
- fetchData({...params,signal: controller.signal});
35
- return() => controller.abort()
34
+ fetchData({ ...params, signal: controller.signal });
35
+ return () => controller.abort()
36
36
  }, [params.params]);
37
37
  return { response, error, isLoading, isMore };
38
38
  };
39
39
 
40
- export default useAxios;
40
+ export default useAxios;
@@ -1,5 +1,4 @@
1
- import React from "react";
2
- import { BrowserRouter as Router, Link, useLocation } from "react-router-dom";
1
+ import { useLocation } from "react-router-dom";
3
2
 
4
3
  function useFilterQuery() {
5
4
  return new URLSearchParams(useLocation().search);
@@ -16,6 +16,6 @@ ReactWebComponent.create(<Events />, "smartweb-events", false);
16
16
  ReactWebComponent.create(<Search />, "smartweb-search", false);
17
17
 
18
18
  if (module.hot) {
19
- // Accept hot module replacement (HMR) while live-reloading
20
- module.hot.accept();
21
- }
19
+ // Accept hot module replacement (HMR) while live-reloading
20
+ module.hot.accept();
21
+ }