imio.smartweb.core 1.2.12__py3-none-any.whl → 1.2.19__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 (98) hide show
  1. imio/smartweb/core/browser/configure.zcml +1 -1
  2. imio/smartweb/core/browser/dashboards/configure.zcml +0 -2
  3. imio/smartweb/core/browser/dashboards/plausible.py +4 -4
  4. imio/smartweb/core/browser/static/smartweb-edit-compiled.js +1 -1
  5. imio/smartweb/core/browser/static/src/edit.js +5 -0
  6. imio/smartweb/core/browser/utils.py +4 -30
  7. imio/smartweb/core/contents/__init__.py +2 -0
  8. imio/smartweb/core/contents/rest/base.py +12 -0
  9. imio/smartweb/core/contents/rest/configure.zcml +7 -0
  10. imio/smartweb/core/contents/rest/directory/content.py +2 -2
  11. imio/smartweb/core/contents/rest/directory/view.pt +2 -1
  12. imio/smartweb/core/contents/rest/directory/view.py +3 -0
  13. imio/smartweb/core/contents/rest/events/content.py +2 -2
  14. imio/smartweb/core/contents/rest/events/view.pt +2 -1
  15. imio/smartweb/core/contents/rest/events/view.py +3 -0
  16. imio/smartweb/core/contents/rest/news/content.py +2 -2
  17. imio/smartweb/core/contents/rest/news/view.pt +2 -1
  18. imio/smartweb/core/contents/rest/news/view.py +3 -0
  19. imio/smartweb/core/contents/rest/search/endpoint.py +1 -1
  20. imio/smartweb/core/contents/rest/traversal.py +18 -0
  21. imio/smartweb/core/contents/rest/view.py +7 -0
  22. imio/smartweb/core/contents/sections/events/view.py +1 -1
  23. imio/smartweb/core/contents/sections/news/view.py +1 -1
  24. imio/smartweb/core/interfaces.py +4 -0
  25. imio/smartweb/core/profiles/default/actions.xml +15 -0
  26. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  27. imio/smartweb/core/rest/authentic_sources.py +21 -11
  28. imio/smartweb/core/tests/test_rest.py +120 -0
  29. imio/smartweb/core/tests/utils.py +15 -0
  30. imio/smartweb/core/upgrades/configure.zcml +18 -0
  31. imio/smartweb/core/upgrades/profiles/1051_to_1052/actions.xml +20 -0
  32. imio/smartweb/core/utils.py +31 -0
  33. imio/smartweb/core/viewlets/configure.zcml +11 -0
  34. imio/smartweb/core/viewlets/httpheaders.py +13 -0
  35. imio/smartweb/core/viewlets/ogp_tag_header.pt +10 -0
  36. imio/smartweb/core/viewlets/ogptags.py +8 -0
  37. imio/smartweb/core/webcomponents/build/css/54.smartweb-webcomponents-compiled.css +1 -0
  38. imio/smartweb/core/webcomponents/build/css/647.smartweb-webcomponents-compiled.css +1 -0
  39. imio/smartweb/core/webcomponents/build/js/3.smartweb-webcomponents-compiled.js +2 -0
  40. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +1 -1
  41. imio/smartweb/core/webcomponents/build/js/363.smartweb-webcomponents-compiled.js +2 -0
  42. imio/smartweb/core/webcomponents/build/js/493.smartweb-webcomponents-compiled.js +1 -0
  43. imio/smartweb/core/webcomponents/build/js/54.smartweb-webcomponents-compiled.js +1 -0
  44. imio/smartweb/core/webcomponents/build/js/647.smartweb-webcomponents-compiled.js +2 -0
  45. imio/smartweb/core/webcomponents/build/js/647.smartweb-webcomponents-compiled.js.LICENSE.txt +1 -0
  46. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  47. imio/smartweb/core/webcomponents/package.json +14 -17
  48. imio/smartweb/core/webcomponents/src/assets/contentIcon/download.svg +1 -0
  49. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +85 -84
  50. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +22 -23
  51. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +109 -93
  52. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/download.svg +1 -0
  53. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +7 -7
  54. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +43 -0
  55. imio/smartweb/core/webcomponents/src/components/Events/{ContactContent/ContactContent.jsx → EventContent/EventContent.jsx} +76 -81
  56. imio/smartweb/core/webcomponents/src/components/Events/{ContactList/ContactList.jsx → EventList/EventList.jsx} +9 -9
  57. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +99 -98
  58. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +1 -1
  59. imio/smartweb/core/webcomponents/src/components/News/News.jsx +23 -25
  60. imio/smartweb/core/webcomponents/src/components/News/News.scss +3 -5
  61. imio/smartweb/core/webcomponents/src/components/News/{ContactCard/ContactCard.jsx → NewsCard/NewsCard.jsx} +14 -27
  62. imio/smartweb/core/webcomponents/src/components/News/{ContactContent/ContactContent.jsx → NewsContent/NewsContent.jsx} +37 -40
  63. imio/smartweb/core/webcomponents/src/components/News/{ContactList/ContactList.jsx → NewsList/NewsList.jsx} +9 -9
  64. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +5 -5
  65. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +5 -5
  66. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
  67. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +3 -3
  68. imio/smartweb/core/webcomponents/src/{components/Events/ContactMap/ContactMap.jsx → utils/Map.jsx} +60 -64
  69. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/METADATA +59 -1
  70. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/RECORD +80 -82
  71. imio/smartweb/core/webcomponents/build/css/267.smartweb-webcomponents-compiled.css +0 -1
  72. imio/smartweb/core/webcomponents/build/css/779.smartweb-webcomponents-compiled.css +0 -1
  73. imio/smartweb/core/webcomponents/build/js/267.smartweb-webcomponents-compiled.js +0 -1
  74. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +0 -2
  75. imio/smartweb/core/webcomponents/build/js/565.smartweb-webcomponents-compiled.js +0 -1
  76. imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js +0 -2
  77. imio/smartweb/core/webcomponents/build/js/779.smartweb-webcomponents-compiled.js +0 -1
  78. imio/smartweb/core/webcomponents/pnpm-lock.yaml +0 -7066
  79. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactMap/ContactMap.jsx +0 -156
  80. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/LoaderCss.jsx +0 -7
  81. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/Skeleton.jsx +0 -20
  82. imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +0 -49
  83. imio/smartweb/core/webcomponents/src/components/Events/ContactMap/ContactMap.scss +0 -0
  84. imio/smartweb/core/webcomponents/src/components/Events/Skeleton/Skeleton.jsx +0 -20
  85. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.jsx +0 -127
  86. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.scss +0 -4
  87. imio/smartweb/core/webcomponents/src/components/News/Skeleton/Skeleton.jsx +0 -20
  88. imio/smartweb/core/webcomponents/src/components/Search/Skeleton/Skeleton.jsx +0 -20
  89. /imio/smartweb/core/webcomponents/build/css/{552.smartweb-webcomponents-compiled.css → 363.smartweb-webcomponents-compiled.css} +0 -0
  90. /imio/smartweb/core/webcomponents/build/js/{552.smartweb-webcomponents-compiled.js.LICENSE.txt → 3.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  91. /imio/smartweb/core/webcomponents/build/js/{612.smartweb-webcomponents-compiled.js.LICENSE.txt → 363.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  92. /imio/smartweb/core/webcomponents/src/{components/Annuaire/ContactMap/ContactMap.scss → utils/Map.scss} +0 -0
  93. /imio.smartweb.core-1.2.12-py3.10-nspkg.pth → /imio.smartweb.core-1.2.19-py3.10-nspkg.pth +0 -0
  94. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/LICENSE.GPL +0 -0
  95. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/LICENSE.rst +0 -0
  96. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/WHEEL +0 -0
  97. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/namespace_packages.txt +0 -0
  98. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.19.dist-info}/top_level.txt +0 -0
@@ -1,156 +0,0 @@
1
- import React, { useState, useEffect } from "react";
2
- import { MapContainer, TileLayer, Marker, Popup, useMap } from "react-leaflet";
3
- import L from "leaflet";
4
- import iconSvg from "../../../assets/pin-react.svg";
5
- import iconSvgActivated from "../../../assets/pin-react-active.svg";
6
- import { Link } from "react-router-dom";
7
- import "./ContactMap.scss";
8
- import "leaflet/dist/leaflet.css";
9
- import removeAccents from "remove-accents";
10
-
11
- function ChangeMapView({ activeItem, arrayOfLatLngs }) {
12
- const map = useMap();
13
- if (activeItem) {
14
- const activeCoord = [];
15
- activeCoord.push(activeItem.geolocation.latitude);
16
- activeCoord.push(activeItem.geolocation.longitude);
17
- map.setView(activeCoord, 15);
18
- } else {
19
- let bounds = new L.LatLngBounds(arrayOfLatLngs);
20
- map.fitBounds(bounds);
21
- }
22
- return null;
23
- }
24
-
25
- function ContentMap(props) {
26
- const [activeItem, setActiveItem] = useState(null);
27
- const [hoverItem, setHoverItem] = useState(null);
28
- const [filterGeoArray, setFilterGeoArray] = useState([]);
29
- const [allPosition, setAllPosition] = useState(null);
30
-
31
- useEffect(() => {
32
- const filterArray = props.items.filter((isgeo) => isgeo.geolocation.latitude && isgeo.geolocation.latitude !== 50.4989185 && isgeo.geolocation.longitude !== 4.7184485);
33
- setFilterGeoArray(filterArray);
34
- }, [props]);
35
-
36
- function mapIcon(url) {
37
- return new L.Icon({
38
- iconUrl: url,
39
- iconSize: [29, 37],
40
- });
41
- }
42
-
43
- const getMarkerIcon = (index) => {
44
- if (index === props.clickId) {
45
- return mapIcon(iconSvgActivated);
46
- }
47
- if (index === props.hoverId) {
48
- return mapIcon(iconSvgActivated);
49
- }
50
- return mapIcon(iconSvg);
51
- };
52
- const getMarkerZindex = (index) => {
53
- if (index === props.clickId) {
54
- return 999;
55
- }
56
- if (index === props.hoverId) {
57
- return 999;
58
- }
59
- return 1;
60
- };
61
-
62
- useEffect(() => {
63
- if (props.clickId !== null) {
64
- var result =
65
- filterGeoArray &&
66
- filterGeoArray.filter((obj) => {
67
- return obj.UID === props.clickId;
68
- });
69
- setActiveItem(result[0]);
70
- } else setActiveItem(null);
71
- }, [props.clickId]);
72
-
73
- useEffect(() => {
74
- if (props.hoverId) {
75
- var result =
76
- filterGeoArray &&
77
- filterGeoArray.filter((obj) => {
78
- return obj.UID === props.hoverId;
79
- });
80
- setHoverItem(result[0]);
81
- } else setHoverItem(null);
82
- }, [props.hoverId]);
83
-
84
- useEffect(() => {
85
- if (filterGeoArray.length > 0) {
86
- let posArray = [];
87
- filterGeoArray.map((pos, i) => {
88
- let lat = pos.geolocation.latitude;
89
- let long = pos.geolocation.longitude;
90
- posArray.push([lat, long]);
91
- });
92
- setAllPosition(posArray);
93
- }
94
- }, [filterGeoArray]);
95
- const position = [50.85034, 4.35171];
96
-
97
- return (
98
- <div>
99
- <MapContainer
100
- style={{ height: `calc(100vh - ${props.headerHeight}px)`, minHeight: "600px" }}
101
- center={position}
102
- zoom={15}
103
- >
104
- <TileLayer
105
- attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
106
- url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
107
- />
108
- {allPosition != null ? (
109
- <ChangeMapView
110
- activeItem={activeItem}
111
- arrayOfLatLngs={allPosition && allPosition}
112
- />
113
- ) : (
114
- ""
115
- )}
116
- {filterGeoArray &&
117
- filterGeoArray.map((mark) => (
118
- <Marker
119
- key={mark.UID}
120
- icon={getMarkerIcon(mark.UID)}
121
- zIndexOffset={getMarkerZindex(mark.UID)}
122
- position={[
123
- mark.geolocation ? mark.geolocation.latitude : "",
124
- mark.geolocation ? mark.geolocation.longitude : "",
125
- ]}
126
- eventHandlers={{
127
- mouseover: (e) => {
128
- },
129
- }}
130
- >
131
- <Popup closeButton={false}>
132
- <Link
133
- className="r-map-popup"
134
- style={{ textDecoration: "none" }}
135
- to={{
136
- pathname: removeAccents(
137
- mark.title.replace(/\s/g, "-").toLowerCase()
138
- ),
139
- search: `?u=${mark.UID}`,
140
- state: {
141
- idItem: mark.UID,
142
- },
143
- }}
144
- >
145
- <span className="r-map-popup-title">{mark.title}</span>
146
- <p className="r-map-popup-category">{mark.taxonomy_contact_category && mark.taxonomy_contact_category[0].title}</p>
147
- </Link>
148
- </Popup>
149
- </ Marker>
150
- ))}
151
- </MapContainer>
152
- </div>
153
- );
154
- }
155
-
156
- export default ContentMap;
@@ -1,7 +0,0 @@
1
- const LoaderCss = () => {
2
- return (
3
- <div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
4
- )
5
- };
6
-
7
- export default LoaderCss;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import ContentLoader from "react-content-loader";
3
-
4
- const Skeleton = (props) => (
5
- <ContentLoader
6
- speed={2}
7
- viewBox="0 0 710.04 150"
8
- backgroundColor="#f3f3f3"
9
- foregroundColor="#ecebeb"
10
- className="skeleton"
11
- {...props}
12
- >
13
- <rect className="cls-1" width="246" height="150" />
14
- <rect className="cls-1" x="275.74" width="225.04" height="18.87" />
15
- <rect className="cls-1" x="275.74" y="47.43" width="434.3" height="10.19" />
16
- <rect className="cls-1" x="275.74" y="78.06" width="434.3" height="10.19" />
17
- </ContentLoader>
18
- );
19
-
20
- export default Skeleton;
@@ -1,49 +0,0 @@
1
- import React from "react";
2
- import moment from "moment";
3
- import Moment from "react-moment";
4
- const ContactCard = ({ contactItem }) => {
5
- const title = contactItem.title && contactItem.title;
6
- const category =
7
- contactItem.taxonomy_contact_category && contactItem.taxonomy_contact_category[0];
8
- const start = moment(contactItem.start && contactItem.start);
9
-
10
- const number = contactItem.number ? contactItem.number : "";
11
- const street = contactItem.street ? contactItem.street : "";
12
- const complement = contactItem.complement ? contactItem.complement : "";
13
- const zipcode = contactItem.zipcode ? contactItem.zipcode : "";
14
- const city = contactItem.city ? contactItem.city : "";
15
- const country = contactItem.country ? contactItem.country : "";
16
- const phones = contactItem.phones ? contactItem.phones : "";
17
- const mails = contactItem.mails ? contactItem.mails : "";
18
- const topics = contactItem.topics ? contactItem.topics : "";
19
- return (
20
- <div className="r-list-item">
21
- <div
22
- className={contactItem.image_vignette_scale?"r-item-img":"r-item-img r-item-img-placeholder"}
23
- style={{
24
- backgroundImage: contactItem.image_vignette_scale
25
- ? "url(" + contactItem.image_vignette_scale + ")"
26
- : "",
27
- }}
28
- />
29
-
30
- <div className="r-item-text">
31
- {contactItem.category ? (
32
- <span className="r-item-categorie">{contactItem.category.title}</span>
33
- ) : (
34
- ""
35
- )}
36
- <span className="r-item-title">{title}</span>
37
- {start ? (
38
- <span className="r-item-date">
39
- <Moment format="DD-MM-YYYY">{start}</Moment>
40
- </span>
41
- ) : (
42
- ""
43
- )}
44
- </div>
45
- </div>
46
- );
47
- };
48
-
49
- export default ContactCard;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import ContentLoader from "react-content-loader";
3
-
4
- const Skeleton = (props) => (
5
- <ContentLoader
6
- speed={2}
7
- viewBox="0 0 710.04 150"
8
- backgroundColor="#f3f3f3"
9
- foregroundColor="#ecebeb"
10
- className="skeleton"
11
- {...props}
12
- >
13
- <rect className="cls-1" width="246" height="150" />
14
- <rect className="cls-1" x="275.74" width="225.04" height="18.87" />
15
- <rect className="cls-1" x="275.74" y="47.43" width="434.3" height="10.19" />
16
- <rect className="cls-1" x="275.74" y="78.06" width="434.3" height="10.19" />
17
- </ContentLoader>
18
- );
19
-
20
- export default Skeleton;
@@ -1,127 +0,0 @@
1
- import React, { useState, useEffect } from "react";
2
- import { MapContainer, TileLayer, Marker, Popup, useMap } from "react-leaflet";
3
- import L from "leaflet";
4
- import iconSvg from "../../../assets/location-bla.svg";
5
- import iconSvgActivated from "../../../assets/location-active-bla.svg";
6
-
7
- import "./ContactMap.scss";
8
- import "leaflet/dist/leaflet.css";
9
-
10
- function ChangeMapView({ activeItem, arrayOfLatLngs }) {
11
- const map = useMap();
12
- if (activeItem) {
13
- const activeCoord = [];
14
- activeCoord.push(activeItem.geolocation.latitude);
15
- activeCoord.push(activeItem.geolocation.longitude);
16
- map.setView(activeCoord, 15);
17
- } else {
18
- let bounds = new L.LatLngBounds(arrayOfLatLngs);
19
- map.fitBounds(bounds);
20
- }
21
- return null;
22
- }
23
-
24
- function ContentMap(props) {
25
- const [activeItem, setActiveItem] = useState(null);
26
- const [hoverItem, setHoverItem] = useState(null);
27
- const [filterGeoArray, setFilterGeoArray] = useState(null);
28
- const [allPosition, setAllPosition] = useState(null);
29
-
30
- useEffect(() => {
31
- const filterArray = props.items.filter((isgeo) => isgeo.is_geolocated);
32
- setFilterGeoArray(filterArray);
33
- }, [props]);
34
-
35
- function mapIcon(url) {
36
- return new L.Icon({
37
- iconUrl: url,
38
- iconSize: [29, 37],
39
- });
40
- }
41
-
42
- const getMarkerIcon = (index) => {
43
- if (index === props.clickId) {
44
- return mapIcon(iconSvgActivated);
45
- }
46
- if (index === props.hoverId) {
47
- return mapIcon(iconSvgActivated);
48
- }
49
- return mapIcon(iconSvg);
50
- };
51
- const getMarkerZindex = (index) => {
52
- if (index === props.clickId) {
53
- return 999;
54
- }
55
- if (index === props.hoverId) {
56
- return 999;
57
- }
58
- return 1;
59
- };
60
-
61
- useEffect(() => {
62
- if (props.clickId !== null) {
63
- var result =
64
- filterGeoArray &&
65
- filterGeoArray.filter((obj) => {
66
- return obj.UID === props.clickId;
67
- });
68
- setActiveItem(result[0]);
69
- } else setActiveItem(null);
70
- }, [props.clickId]);
71
-
72
- useEffect(() => {
73
- if (props.hoverId) {
74
- var result =
75
- filterGeoArray &&
76
- filterGeoArray.filter((obj) => {
77
- return obj.UID === props.hoverId;
78
- });
79
- setHoverItem(result[0]);
80
- } else setHoverItem(null);
81
- }, [props.hoverId]);
82
-
83
- useEffect(() => {
84
- if (filterGeoArray && filterGeoArray.length > 0) {
85
- let posArray = [];
86
- filterGeoArray.map((pos, i) => {
87
- let lat = pos.geolocation.latitude;
88
- let long = pos.geolocation.longitude;
89
- posArray.push([lat, long]);
90
- });
91
- setAllPosition(posArray);
92
- }
93
- }, [props]);
94
-
95
- const position = [50.85034, 4.35171];
96
- return (
97
- <div className="r-map annuaire-map">
98
- <MapContainer center={position} zoom={15}>
99
- <TileLayer
100
- attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
101
- url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
102
- />
103
- {allPosition != null && (
104
- <ChangeMapView activeItem={activeItem} arrayOfLatLngs={allPosition} />
105
- )}
106
- {filterGeoArray &&
107
- filterGeoArray.map((mark, id) => (
108
- <Marker
109
- key={mark.UID}
110
- icon={getMarkerIcon(mark.UID)}
111
- zIndexOffset={getMarkerZindex(mark.UID)}
112
- position={[
113
- mark.geolocation ? mark.geolocation.latitude : "",
114
- mark.geolocation ? mark.geolocation.longitude : "",
115
- ]}
116
- onClick={() => {
117
- setActiveItem(mark);
118
- }}
119
- />
120
- ))}
121
- ;
122
- </MapContainer>
123
- </div>
124
- );
125
- }
126
-
127
- export default ContentMap;
@@ -1,4 +0,0 @@
1
- .leaflet-container{
2
- height: 100vh;
3
- }
4
-
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import ContentLoader from "react-content-loader";
3
-
4
- const Skeleton = (props) => (
5
- <ContentLoader
6
- speed={2}
7
- viewBox="0 0 710.04 150"
8
- backgroundColor="#f3f3f3"
9
- foregroundColor="#ecebeb"
10
- className="skeleton"
11
- {...props}
12
- >
13
- <rect className="cls-1" width="246" height="150" />
14
- <rect className="cls-1" x="275.74" width="225.04" height="18.87" />
15
- <rect className="cls-1" x="275.74" y="47.43" width="434.3" height="10.19" />
16
- <rect className="cls-1" x="275.74" y="78.06" width="434.3" height="10.19" />
17
- </ContentLoader>
18
- );
19
-
20
- export default Skeleton;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import ContentLoader from "react-content-loader";
3
-
4
- const Skeleton = (props) => (
5
- <ContentLoader
6
- speed={2}
7
- viewBox="0 0 710.04 150"
8
- backgroundColor="#f3f3f3"
9
- foregroundColor="#ecebeb"
10
- className="skeleton"
11
- {...props}
12
- >
13
- <rect className="cls-1" width="246" height="150" />
14
- <rect className="cls-1" x="275.74" width="225.04" height="18.87" />
15
- <rect className="cls-1" x="275.74" y="47.43" width="434.3" height="10.19" />
16
- <rect className="cls-1" x="275.74" y="78.06" width="434.3" height="10.19" />
17
- </ContentLoader>
18
- );
19
-
20
- export default Skeleton;