imio.smartweb.core 1.2.37__py3-none-any.whl → 1.2.39__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.
- imio/smartweb/core/contents/rest/events/content.py +7 -0
- imio/smartweb/core/contents/rest/events/view.pt +1 -0
- imio/smartweb/core/contents/rest/events/view.py +4 -0
- imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
- imio/smartweb/core/contents/sections/events/content.py +7 -0
- imio/smartweb/core/contents/sections/events/view.py +7 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +3 -3
- imio/smartweb/core/contents/sections/news/content.py +7 -0
- imio/smartweb/core/contents/sections/news/view.py +7 -0
- imio/smartweb/core/contents/sections/views.py +4 -0
- imio/smartweb/core/webcomponents/build/10512eee43c7b5ed4757.svg +1 -0
- imio/smartweb/core/webcomponents/build/10dd862b2cdd9c68e1a8.svg +1 -0
- imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
- imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
- imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
- imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
- imio/smartweb/core/webcomponents/build/a38272f263f8328349f2.svg +1 -0
- imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/f79b479fdc5c0fe0d553.svg +1 -0
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +5 -8
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/496.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 496.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
- imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
- imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
- imio/smartweb/core/webcomponents/package.json +40 -40
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +17 -9
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +227 -141
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +7 -6
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +18 -18
- imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +8 -8
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +20 -11
- imio/smartweb/core/webcomponents/src/components/Events/Events.scss +244 -161
- imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +9 -8
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +27 -27
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +10 -7
- imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +11 -12
- imio/smartweb/core/webcomponents/src/components/News/News.jsx +53 -45
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +101 -100
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +3 -3
- imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +11 -11
- imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +11 -11
- imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +4 -5
- imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
- imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +5 -4
- imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
- imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
- imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
- imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
- imio/smartweb/core/webcomponents/src/index.jsx +3 -3
- imio/smartweb/core/webcomponents/src/index.scss +86 -22
- imio/smartweb/core/webcomponents/src/utils/Map.jsx +10 -10
- imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
- imio/smartweb/core/webcomponents/src/utils/translation.js +8 -8
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/METADATA +23 -1
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/RECORD +80 -71
- imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/804.smartweb-webcomponents-compiled.js +0 -1
- /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.2.37-py3.10-nspkg.pth → /imio.smartweb.core-1.2.39-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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 {
|
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
|
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
|
-
|
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
|
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
|
-
<
|
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
|
-
</
|
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
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
27
|
-
|
58
|
+
|
59
|
+
label,
|
60
|
+
input {
|
61
|
+
width: 100%;
|
28
62
|
}
|
29
|
-
|
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
|
-
|
32
|
-
|
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
|
-
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
|
-
|
85
|
-
|
86
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
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
|
-
|
116
|
-
|
117
|
-
|
133
|
+
right: 10px;
|
134
|
+
position: absolute;
|
135
|
+
top: 10px;
|
118
136
|
}
|
119
137
|
|
120
|
-
.search-contact .r-search-img,
|
121
|
-
|
122
|
-
|
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
|
-
|
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;
|
@@ -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
|
-
|
20
|
-
|
21
|
-
}
|
19
|
+
// Accept hot module replacement (HMR) while live-reloading
|
20
|
+
module.hot.accept();
|
21
|
+
}
|