imio.smartweb.core 1.2.12__py3-none-any.whl → 1.2.68__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/behaviors/categorization.py +24 -0
- imio/smartweb/core/behaviors/configure.zcml +7 -0
- imio/smartweb/core/browser/configure.zcml +41 -1
- imio/smartweb/core/browser/controlpanel.py +41 -0
- imio/smartweb/core/browser/dashboards/configure.zcml +0 -2
- imio/smartweb/core/browser/dashboards/plausible.py +4 -4
- imio/smartweb/core/browser/faceted/block_view.pt +4 -4
- imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
- imio/smartweb/core/browser/forms.py +3 -3
- imio/smartweb/core/browser/redirect_to_main_react_view.py +52 -0
- imio/smartweb/core/browser/search/search.pt +2 -1
- imio/smartweb/core/browser/search/search.py +4 -0
- imio/smartweb/core/browser/sitemap.py +148 -0
- imio/smartweb/core/browser/static/icons/action-delete.svg +3 -0
- imio/smartweb/core/browser/static/icons/action-e-guichet.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-email.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-engagement-2.svg +4 -0
- imio/smartweb/core/browser/static/icons/action-engagement.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-nous-contacter.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-nous-rejoindre.svg +2 -1
- imio/smartweb/core/browser/static/icons/action-organiser-un-evenement.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-panneaux.svg +3 -0
- imio/smartweb/core/browser/static/icons/action-signaler-un-probleme.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-voir-plan.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-vote.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-associations.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-attention.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-avis-et-enquetes.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-cinema.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-commerce.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-concert.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-culture.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-demarches.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-enfance.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-enseignement.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-environnement-gestion-des-dechets.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-exposition.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-horaires.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-infos-travaux-2.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-infos-travaux.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mandataires.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mobilite.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mon-dossier.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-nature.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-parc-de-stationnement.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-parcs-a-conteneurs.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-parcs-et-jardins.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-plus.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-primes-2.svg +5 -0
- imio/smartweb/core/browser/static/icons/categorie-primes.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-sport-courir.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-sport-natation.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-sport-velo.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-tourisme.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-academie-musique.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-centre-sportif.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-cpas.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-ecole-des-arts.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-ecole-sac.svg +4 -0
- imio/smartweb/core/browser/static/icons/organisation-ecole.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-mobilite.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-scout.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-behance.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-facebook.svg +1 -1
- imio/smartweb/core/browser/static/icons/reseausocial-linkedin.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-twitter.svg +3 -13
- imio/smartweb/core/browser/static/icons/reseausocial-vimeo.svg +1 -1
- imio/smartweb/core/browser/static/icons/reseausocial-youtube.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-actualites.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-agenda.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-annuaire.svg +1 -1
- imio/smartweb/core/browser/static/smartweb-edit-compiled.css +1 -1
- imio/smartweb/core/browser/static/smartweb-edit-compiled.js +1 -1
- imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
- imio/smartweb/core/browser/static/smartweb-view-compiled.js +1 -1
- imio/smartweb/core/browser/static/src/edit.js +5 -0
- imio/smartweb/core/browser/static/src/edit.less +42 -0
- imio/smartweb/core/browser/static/src/view.js +11 -0
- imio/smartweb/core/browser/static/src/view.less +4 -0
- imio/smartweb/core/browser/utils.py +5 -32
- imio/smartweb/core/browser/vocabulary.py +40 -0
- imio/smartweb/core/contents/__init__.py +4 -0
- imio/smartweb/core/contents/configure.zcml +1 -0
- imio/smartweb/core/contents/cropping.py +1 -1
- imio/smartweb/core/contents/folder/block_view.pt +8 -8
- imio/smartweb/core/contents/folder/summary_view.pt +4 -4
- imio/smartweb/core/contents/pages/cirkwi/content.py +5 -0
- imio/smartweb/core/contents/pages/cirkwi/view.py +2 -1
- imio/smartweb/core/contents/pages/portal_page/view.py +3 -0
- imio/smartweb/core/contents/pages/views.py +3 -1
- imio/smartweb/core/contents/publication/configure.zcml +5 -0
- imio/smartweb/core/contents/publication/content.py +23 -0
- imio/smartweb/core/contents/rest/base.py +24 -10
- imio/smartweb/core/contents/rest/configure.zcml +7 -0
- imio/smartweb/core/contents/rest/directory/content.py +2 -2
- imio/smartweb/core/contents/rest/directory/endpoint.py +2 -2
- imio/smartweb/core/contents/rest/directory/view.pt +3 -1
- imio/smartweb/core/contents/rest/directory/view.py +3 -0
- imio/smartweb/core/contents/rest/events/content.py +15 -2
- imio/smartweb/core/contents/rest/events/endpoint.py +5 -7
- imio/smartweb/core/contents/rest/events/view.pt +6 -1
- imio/smartweb/core/contents/rest/events/view.py +15 -0
- imio/smartweb/core/contents/rest/news/content.py +8 -2
- imio/smartweb/core/contents/rest/news/endpoint.py +4 -2
- imio/smartweb/core/contents/rest/news/view.pt +5 -1
- imio/smartweb/core/contents/rest/news/view.py +11 -0
- imio/smartweb/core/contents/rest/search/endpoint.py +4 -4
- imio/smartweb/core/contents/rest/traversal.py +18 -0
- imio/smartweb/core/contents/rest/utils.py +98 -0
- imio/smartweb/core/contents/rest/view.py +11 -0
- imio/smartweb/core/contents/sections/common_templates/carousel.pt +6 -2
- imio/smartweb/core/contents/sections/common_templates/table.pt +22 -8
- imio/smartweb/core/contents/sections/configure.zcml +18 -0
- imio/smartweb/core/contents/sections/contact/content.py +2 -2
- imio/smartweb/core/contents/sections/contact/utils.py +2 -154
- imio/smartweb/core/contents/sections/events/content.py +12 -4
- imio/smartweb/core/contents/sections/events/view.py +20 -2
- imio/smartweb/core/contents/sections/external_content/configure.zcml +29 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +25 -7
- imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt +50 -0
- imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt +91 -0
- imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt +20 -0
- imio/smartweb/core/contents/sections/external_content/views.py +306 -125
- imio/smartweb/core/contents/sections/files/content.py +7 -1
- imio/smartweb/core/contents/sections/files/view.py +40 -12
- imio/smartweb/core/contents/sections/links/view.py +5 -0
- imio/smartweb/core/contents/sections/macros.pt +39 -9
- imio/smartweb/core/contents/sections/news/content.py +11 -3
- imio/smartweb/core/contents/sections/news/view.py +20 -2
- imio/smartweb/core/contents/sections/text/view.pt +5 -4
- imio/smartweb/core/contents/sections/text/views.py +2 -0
- imio/smartweb/core/contents/sections/views.py +81 -4
- imio/smartweb/core/interfaces.py +15 -0
- imio/smartweb/core/profiles/default/actions.xml +15 -0
- imio/smartweb/core/profiles/default/diff_tool.xml +8 -0
- imio/smartweb/core/profiles/default/metadata.xml +1 -1
- imio/smartweb/core/profiles/default/registry/plone.xml +21 -4
- imio/smartweb/core/profiles/default/repositorytool.xml +1 -0
- imio/smartweb/core/profiles/default/taxonomies/page_category.xml +16 -0
- imio/smartweb/core/profiles/default/taxonomies/procedure_category.xml +26 -0
- imio/smartweb/core/profiles/default/types/Collection.xml +13 -0
- imio/smartweb/core/profiles/default/types/File.xml +13 -0
- imio/smartweb/core/profiles/default/types/Image.xml +13 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.BlockLink.xml +5 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.CirkwiView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.DirectoryView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Folder.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +1 -0
- imio/smartweb/core/profiles/default/types.xml +1 -0
- imio/smartweb/core/profiles/icons/basic/registry.xml +120 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.DirectoryView.xml +11 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.EventsView.xml +11 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.NewsView.xml +11 -0
- imio/smartweb/core/profiles/validation/contentrules.xml +102 -0
- imio/smartweb/core/profiles.zcml +8 -0
- imio/smartweb/core/rest/authentic_sources.py +23 -11
- imio/smartweb/core/subscribers.py +24 -0
- imio/smartweb/core/subscribers.zcml +4 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
- imio/smartweb/core/tests/resources/json_rest_events.json +6 -2
- imio/smartweb/core/tests/resources/json_rest_news.json +2 -2
- imio/smartweb/core/tests/resources/json_rest_specific_events.json +1 -1
- imio/smartweb/core/tests/test_cropping.py +4 -4
- imio/smartweb/core/tests/test_htmx_in_sections.py +131 -0
- imio/smartweb/core/tests/test_iadeliberations.py +136 -0
- imio/smartweb/core/tests/test_icons.py +1 -1
- imio/smartweb/core/tests/test_redirect_to_main_react_view.py +79 -0
- imio/smartweb/core/tests/test_rest.py +283 -22
- imio/smartweb/core/tests/test_section_contact.py +2 -2
- imio/smartweb/core/tests/test_section_events.py +28 -5
- imio/smartweb/core/tests/test_section_external_content.py +26 -25
- imio/smartweb/core/tests/test_section_news.py +30 -8
- imio/smartweb/core/tests/test_sections.py +38 -15
- imio/smartweb/core/tests/test_sitemap.py +174 -0
- imio/smartweb/core/tests/test_vocabularies.py +61 -4
- imio/smartweb/core/tests/test_vocabulary.py +43 -0
- imio/smartweb/core/tests/utils.py +15 -0
- imio/smartweb/core/upgrades/configure.zcml +180 -0
- imio/smartweb/core/upgrades/profiles/1051_to_1052/actions.xml +20 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/diff_tool.xml +8 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/repositorytool.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/types/imio.smartweb.SectionHTML.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1053_to_1054/registry.xml +39 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Collection.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/File.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Image.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.BlockLink.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.CirkwiView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.DirectoryView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.EventsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Folder.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.NewsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Page.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.PortalPage.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Procedure.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1055_to_1056/types/imio.smartweb.SectionFiles.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.EventsView.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.NewsView.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionEvents.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionNews.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.cfg +9 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.xml +73 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.cfg +9 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.xml +118 -0
- imio/smartweb/core/upgrades/profiles/1058_to_1059/registry/linkedin-icon.xml +126 -0
- imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
- imio/smartweb/core/utils.py +65 -3
- imio/smartweb/core/viewlets/configure.zcml +43 -0
- imio/smartweb/core/viewlets/external_content.py +13 -5
- imio/smartweb/core/viewlets/footer.pt +5 -0
- imio/smartweb/core/viewlets/footer.py +5 -0
- imio/smartweb/core/viewlets/htmx.py +15 -0
- imio/smartweb/core/viewlets/htmx_js_header.pt +59 -0
- imio/smartweb/core/viewlets/httpheaders.py +13 -0
- imio/smartweb/core/viewlets/odwb_widget_header.pt +19 -0
- imio/smartweb/core/viewlets/offcanvas.pt +2 -1
- imio/smartweb/core/viewlets/ogp_tag_header.pt +19 -0
- imio/smartweb/core/viewlets/ogptags.py +144 -0
- imio/smartweb/core/viewlets/social.py +23 -0
- imio/smartweb/core/vocabularies.py +66 -2
- imio/smartweb/core/vocabularies.zcml +18 -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/css/373.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +16 -0
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js.LICENSE.txt +10 -0
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/499.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/{212.smartweb-webcomponents-compiled.js.LICENSE.txt → 499.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
- imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
- imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -0
- 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 +46 -44
- imio/smartweb/core/webcomponents/src/assets/contentIcon/download.svg +1 -0
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +160 -92
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +250 -157
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +113 -81
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +394 -188
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +26 -9
- imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +213 -100
- imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +86 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +615 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +67 -0
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +181 -103
- imio/smartweb/core/webcomponents/src/components/Events/Events.scss +316 -182
- imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +275 -80
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +136 -0
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +104 -0
- imio/smartweb/core/webcomponents/src/components/Filters/IamData.jsx +42 -0
- imio/smartweb/core/webcomponents/src/components/Filters/MainFilter.scss +227 -0
- imio/smartweb/core/webcomponents/src/components/Filters/PublicTargetData.jsx +94 -0
- imio/smartweb/core/webcomponents/src/components/Filters/SelectStyles.js +58 -0
- imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.jsx +149 -0
- imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.scss +70 -0
- imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +139 -83
- imio/smartweb/core/webcomponents/src/components/News/News.jsx +141 -74
- imio/smartweb/core/webcomponents/src/components/News/News.scss +41 -15
- imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +96 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +309 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +76 -0
- imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +28 -14
- imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +28 -14
- imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +51 -32
- imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +29 -15
- imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +18 -13
- imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
- imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +19 -6
- imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
- imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx +3 -0
- imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -6
- imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
- imio/smartweb/core/webcomponents/src/index.scss +246 -211
- imio/smartweb/core/webcomponents/src/utils/Map.jsx +159 -0
- imio/smartweb/core/webcomponents/src/{components/Annuaire/ContactMap/ContactMap.scss → utils/Map.scss} +2 -2
- imio/smartweb/core/webcomponents/src/utils/translation.js +283 -14
- imio.smartweb.core-1.2.68-py3.11-nspkg.pth +2 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/METADATA +548 -3
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/RECORD +317 -240
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/WHEEL +1 -1
- imio/smartweb/core/webcomponents/build/assets/location-bla.1423bcce16ddcb21141430cac1428dc1.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/next-react-white.819cb069ac8eec300a9db6a7707712d6.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/next-react.17bc43ff4a6a86f4520f5782f6a89a72.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/search.57bdbf5b191499cd77514097d1c4972c.svg +0 -1
- imio/smartweb/core/webcomponents/build/css/267.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/323.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/779.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/js/144.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/267.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/565.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/779.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -642
- imio/smartweb/core/webcomponents/pnpm-lock.yaml +0 -7066
- imio/smartweb/core/webcomponents/src/assets/facebook-news.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/location-bla.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/next-react.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/search.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/skeleton.svg +0 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactMap/ContactMap.jsx +0 -156
- imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/LoaderCss.jsx +0 -7
- imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +0 -49
- imio/smartweb/core/webcomponents/src/components/Events/ContactContent/ContactContent.jsx +0 -400
- imio/smartweb/core/webcomponents/src/components/Events/ContactList/ContactList.jsx +0 -42
- imio/smartweb/core/webcomponents/src/components/Events/ContactMap/ContactMap.jsx +0 -156
- imio/smartweb/core/webcomponents/src/components/Events/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +0 -78
- imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +0 -261
- imio/smartweb/core/webcomponents/src/components/News/ContactList/ContactList.jsx +0 -37
- imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.jsx +0 -127
- imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.scss +0 -4
- imio/smartweb/core/webcomponents/src/components/News/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/Search/Skeleton/Skeleton.jsx +0 -20
- imio.smartweb.core-1.2.12-py3.10-nspkg.pth +0 -3
- /imio/smartweb/core/{webcomponents/src/components/Events/ContactMap/ContactMap.scss → contents/publication/__init__.py} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{144.smartweb-webcomponents-compiled.js.LICENSE.txt → 799.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{9.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/top_level.txt +0 -0
@@ -1,21 +1,25 @@
|
|
1
1
|
.breadcrumb {
|
2
2
|
padding: 0;
|
3
3
|
}
|
4
|
+
|
4
5
|
.r-result-list {
|
5
6
|
margin-top: 50px;
|
6
7
|
padding-left: 0;
|
7
8
|
list-style: none;
|
8
9
|
}
|
10
|
+
|
9
11
|
#portal-column-content {
|
10
12
|
h1 {
|
11
13
|
font-size: 0px;
|
12
14
|
position: absolute;
|
13
15
|
}
|
14
16
|
}
|
17
|
+
|
15
18
|
#viewlet-below-content-title,
|
16
19
|
#viewlet-below-content-description {
|
17
20
|
display: none;
|
18
21
|
}
|
22
|
+
|
19
23
|
/* image */
|
20
24
|
/* text */
|
21
25
|
.r-item-text {
|
@@ -24,31 +28,29 @@
|
|
24
28
|
display: flex;
|
25
29
|
flex-direction: column;
|
26
30
|
}
|
31
|
+
|
27
32
|
.r-item-title {
|
28
33
|
display: block;
|
29
34
|
}
|
30
35
|
|
31
|
-
|
32
|
-
width: 100%;
|
33
|
-
margin-bottom: 0.5rem;
|
34
|
-
span {
|
35
|
-
font-weight: bold;
|
36
|
-
}
|
37
|
-
}
|
36
|
+
|
38
37
|
// content
|
39
38
|
|
40
39
|
.r-content-img {
|
41
|
-
padding-bottom:
|
40
|
+
padding-bottom: 60%;
|
42
41
|
}
|
42
|
+
|
43
43
|
.new-content {
|
44
44
|
max-width: 700px;
|
45
45
|
margin: 0 auto;
|
46
46
|
}
|
47
|
+
|
47
48
|
//// for bla ////
|
48
49
|
/* list item */
|
49
50
|
.r-load-more {
|
50
51
|
text-align: center;
|
51
52
|
margin-bottom: 2rem;
|
53
|
+
|
52
54
|
button {
|
53
55
|
background: #000;
|
54
56
|
border: solid 1px transparent;
|
@@ -61,13 +63,16 @@
|
|
61
63
|
font-size: 14px;
|
62
64
|
margin: 0 auto;
|
63
65
|
display: block;
|
66
|
+
|
64
67
|
&:hover {
|
65
68
|
background: rgba(0, 0, 0, 0.871);
|
66
69
|
}
|
67
70
|
}
|
68
71
|
}
|
72
|
+
|
69
73
|
.r-actu-wrapper {
|
70
74
|
position: relative;
|
75
|
+
|
71
76
|
&:after {
|
72
77
|
width: 495px;
|
73
78
|
display: block;
|
@@ -78,6 +83,7 @@
|
|
78
83
|
right: 0;
|
79
84
|
transform: translateY(-20%);
|
80
85
|
}
|
86
|
+
|
81
87
|
.r-list-item-group {
|
82
88
|
max-width: 900px;
|
83
89
|
margin: 30px auto;
|
@@ -86,38 +92,43 @@
|
|
86
92
|
border: 1px solid #D1D1D1;
|
87
93
|
}
|
88
94
|
}
|
95
|
+
|
89
96
|
/* text */
|
90
97
|
.r-item-title {
|
91
98
|
font-size: 18px;
|
92
99
|
font-weight: bold;
|
93
100
|
}
|
101
|
+
|
94
102
|
.r-item-description {
|
95
103
|
font-size: 16px;
|
96
104
|
color: #444444;
|
97
105
|
margin-top: 10px;
|
98
106
|
}
|
107
|
+
|
99
108
|
/* image */
|
100
109
|
.r-item-img {
|
101
110
|
border-radius: 15px 15px 15px 0px;
|
102
111
|
}
|
112
|
+
|
103
113
|
.r-actu-wrapper {
|
104
114
|
.r-item-img {
|
105
|
-
|
106
|
-
|
115
|
+
width: 100%;
|
116
|
+
aspect-ratio: 1.674107142857143;
|
107
117
|
background-position: top;
|
108
118
|
background-size: cover;
|
109
119
|
background-repeat: no-repeat;
|
120
|
+
|
110
121
|
@media screen and (min-width:775px) {
|
111
122
|
width: 323px;
|
112
|
-
height: 220px;
|
113
|
-
flex: 0 0 323px;
|
114
123
|
}
|
115
124
|
}
|
116
125
|
}
|
126
|
+
|
117
127
|
/* arrow more */
|
118
128
|
.r-item-read-more {
|
119
129
|
margin-top: auto;
|
120
130
|
}
|
131
|
+
|
121
132
|
.r-item-arrow-more {
|
122
133
|
width: 50px;
|
123
134
|
height: 50px;
|
@@ -127,15 +138,16 @@
|
|
127
138
|
margin-left: auto;
|
128
139
|
align-self: center;
|
129
140
|
margin-right: 30px;
|
130
|
-
background: url(
|
141
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20.44 10'%3E%3Cg id='Calque_2' data-name='Calque 2'%3E%3Cg id='Calque_1-2' data-name='Calque 1'%3E%3Cg id='ui-arrow-right'%3E%3Cg id='arrow'%3E%3Cline id='Ligne_7' data-name='Ligne 7' x1='1' y1='5' x2='19.44' y2='5' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-width:2px'/%3E%3Cline id='Ligne_8' data-name='Ligne 8' x1='14.83' y1='1' x2='19.44' y2='5' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-width:2px'/%3E%3Cline id='Ligne_9' data-name='Ligne 9' x1='14.83' y1='9' x2='19.44' y2='5' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-width:2px'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
131
142
|
background-repeat: no-repeat;
|
132
143
|
background-size: 20px;
|
133
144
|
background-position: center;
|
134
145
|
}
|
146
|
+
|
135
147
|
.r-list-item-group {
|
136
148
|
&:hover {
|
137
149
|
.r-item-arrow-more {
|
138
|
-
background: url(
|
150
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20.44 10'%3E%3Cg data-name='Calque 2'%3E%3Cg data-name='Calque 1'%3E%3Cpath d='M1 5h18.44' data-name='Ligne 7' style='fill:none;stroke:%23fff;stroke-linecap:round;stroke-width:2px'/%3E%3Cpath d='m14.83 1 4.61 4' data-name='Ligne 8' style='fill:none;stroke:%23fff;stroke-linecap:round;stroke-width:2px'/%3E%3Cpath d='m14.83 9 4.61-4' data-name='Ligne 9' style='fill:none;stroke:%23fff;stroke-linecap:round;stroke-width:2px'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), #F9B331;
|
139
151
|
background-repeat: no-repeat;
|
140
152
|
background-size: 20px;
|
141
153
|
background-position: center;
|
@@ -144,10 +156,11 @@
|
|
144
156
|
}
|
145
157
|
|
146
158
|
.r-list-item {
|
147
|
-
@media screen and (max-width:
|
159
|
+
@media screen and (max-width:774px) {
|
148
160
|
flex-direction: column;
|
149
161
|
}
|
150
162
|
}
|
163
|
+
|
151
164
|
.r-item-read-more {
|
152
165
|
@media screen and (max-width:600px) {
|
153
166
|
position: relative;
|
@@ -158,6 +171,7 @@
|
|
158
171
|
display: inline-flex;
|
159
172
|
align-self: center;
|
160
173
|
margin-right: 0.4rem;
|
174
|
+
|
161
175
|
svg {
|
162
176
|
top: .125em;
|
163
177
|
position: relative;
|
@@ -165,6 +179,7 @@
|
|
165
179
|
width: 1em;
|
166
180
|
}
|
167
181
|
}
|
182
|
+
|
168
183
|
.dpinlb {
|
169
184
|
display: inline-block;
|
170
185
|
vertical-align: top;
|
@@ -175,12 +190,15 @@
|
|
175
190
|
width: 30px;
|
176
191
|
height: 30px;
|
177
192
|
}
|
193
|
+
|
178
194
|
ul {
|
179
195
|
display: flex;
|
180
196
|
align-items: center;
|
181
197
|
margin: 0;
|
198
|
+
|
182
199
|
li {
|
183
200
|
list-style: none;
|
201
|
+
|
184
202
|
a {
|
185
203
|
&:hover {
|
186
204
|
opacity: .7;
|
@@ -188,4 +206,12 @@
|
|
188
206
|
}
|
189
207
|
}
|
190
208
|
}
|
209
|
+
}
|
210
|
+
|
211
|
+
.r-item-categorie {
|
212
|
+
margin-top: 5px;
|
213
|
+
text-transform: uppercase;
|
214
|
+
color: #747474;
|
215
|
+
font-weight: 400;
|
216
|
+
font-size: 13px;
|
191
217
|
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import React, { useEffect, useState, useContext } from "react";
|
2
|
+
import moment from "moment";
|
3
|
+
import ReactMarkdown from "react-markdown";
|
4
|
+
import { Translate } from "react-translated";
|
5
|
+
import { LanguageContext } from "../News.jsx";
|
6
|
+
const NewsCard = ({ item, showCategoriesOrTopics, contextAuthenticatedUser }) => {
|
7
|
+
const [limitDescription, setLimitDescription] = useState();
|
8
|
+
const [itemTopic, setItemTopic] = useState(null);
|
9
|
+
|
10
|
+
const numberLimit = 150;
|
11
|
+
const title = item.title && item.title;
|
12
|
+
const description = item.description || "";
|
13
|
+
|
14
|
+
useEffect(() => {
|
15
|
+
if (description.length >= numberLimit) {
|
16
|
+
let truncatedDescription = description.substring(0, numberLimit);
|
17
|
+
if (description.endsWith("**")) {
|
18
|
+
truncatedDescription += "**";
|
19
|
+
}
|
20
|
+
setLimitDescription(truncatedDescription + "...");
|
21
|
+
} else {
|
22
|
+
setLimitDescription(description);
|
23
|
+
}
|
24
|
+
if (item.topics && item.topics.length > 0) {
|
25
|
+
setItemTopic(item.topics[0].title);
|
26
|
+
} else {
|
27
|
+
setItemTopic(null);
|
28
|
+
}
|
29
|
+
}, [item]);
|
30
|
+
moment.locale(useContext(LanguageContext));
|
31
|
+
const created = moment(item.created).startOf("minute").fromNow();
|
32
|
+
const lastModified = moment(item.modified).startOf("minute").fromNow();
|
33
|
+
return (
|
34
|
+
<>
|
35
|
+
<div className="r-list-item">
|
36
|
+
<div
|
37
|
+
className={
|
38
|
+
item.image_vignette_scale
|
39
|
+
? "r-item-img"
|
40
|
+
: "r-item-img r-item-img-placeholder"
|
41
|
+
}
|
42
|
+
style={{
|
43
|
+
backgroundImage: item.image_vignette_scale
|
44
|
+
? "url(" + item.image_vignette_scale + ")"
|
45
|
+
: "",
|
46
|
+
}}
|
47
|
+
/>
|
48
|
+
<div className="r-item-text">
|
49
|
+
<span className="r-item-title">{title}</span>
|
50
|
+
{showCategoriesOrTopics === "topic" ? (
|
51
|
+
itemTopic && (
|
52
|
+
<span className="r-item-categorie">{item.topics[0].title}</span>
|
53
|
+
)
|
54
|
+
) : showCategoriesOrTopics === "category" ? (
|
55
|
+
item.local_category ? (
|
56
|
+
<span className="r-item-categorie">{item.local_category.title}</span>
|
57
|
+
) : (
|
58
|
+
item.category && (
|
59
|
+
<span className="r-item-categorie">{item.category.title}</span>
|
60
|
+
)
|
61
|
+
)
|
62
|
+
) : (
|
63
|
+
""
|
64
|
+
)}
|
65
|
+
{description ? (
|
66
|
+
<ReactMarkdown className="r-item-description">
|
67
|
+
{limitDescription}
|
68
|
+
</ReactMarkdown>
|
69
|
+
) : (
|
70
|
+
""
|
71
|
+
)}
|
72
|
+
<div className="r-item-read-more" style={{ textDecoration: "none" }}>
|
73
|
+
{created === lastModified ? (
|
74
|
+
<div className="r-card-date-last">
|
75
|
+
<span>
|
76
|
+
<Translate text="Publié" />{" "}
|
77
|
+
</span>
|
78
|
+
<span>{created}</span>
|
79
|
+
</div>
|
80
|
+
) : (
|
81
|
+
<div className="r-card-date-last">
|
82
|
+
<span>
|
83
|
+
<Translate text="Actualisé" />{" "}
|
84
|
+
</span>
|
85
|
+
<span>{lastModified}</span>
|
86
|
+
</div>
|
87
|
+
)}
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div className="r-item-arrow-more"></div>
|
91
|
+
</div>
|
92
|
+
</>
|
93
|
+
);
|
94
|
+
};
|
95
|
+
|
96
|
+
export default NewsCard;
|
@@ -0,0 +1,309 @@
|
|
1
|
+
import { useNavigate } from "react-router-dom";
|
2
|
+
import React, { useEffect, useState } from "react";
|
3
|
+
import useAxios from "../../../hooks/useAxios";
|
4
|
+
import useFilterQuery from "../../../hooks/useFilterQuery";
|
5
|
+
import moment from "moment";
|
6
|
+
import Moment from "react-moment";
|
7
|
+
import ReactMarkdown from "react-markdown";
|
8
|
+
import Spotlight from "spotlight.js";
|
9
|
+
import "../../../../node_modules/flexbin/flexbin.css";
|
10
|
+
import { Translate } from "react-translated";
|
11
|
+
import queryString from "query-string";
|
12
|
+
|
13
|
+
const ContactContent = ({ queryUrl, onChange, contextAuthenticatedUser }) => {
|
14
|
+
let navigate = useNavigate();
|
15
|
+
const parsed = queryString.parse(useFilterQuery().toString());
|
16
|
+
const parsed2 = { ...parsed, UID: parsed["u"], fullobjects: 1 };
|
17
|
+
const [params, setParams] = useState(parsed2);
|
18
|
+
const [item, setitem] = useState({});
|
19
|
+
const [files, setFiles] = useState();
|
20
|
+
const [gallery, setGallery] = useState();
|
21
|
+
const { response, error, isLoading } = useAxios(
|
22
|
+
{
|
23
|
+
method: "get",
|
24
|
+
url: "",
|
25
|
+
baseURL: queryUrl,
|
26
|
+
headers: {
|
27
|
+
Accept: "application/json",
|
28
|
+
},
|
29
|
+
params: params,
|
30
|
+
},
|
31
|
+
[]
|
32
|
+
);
|
33
|
+
useEffect(() => {
|
34
|
+
if (response !== null) {
|
35
|
+
setitem(response.items[0]);
|
36
|
+
}
|
37
|
+
window.scrollTo({
|
38
|
+
top: 0,
|
39
|
+
left: 0,
|
40
|
+
behavior: "instant",
|
41
|
+
});
|
42
|
+
}, [response]);
|
43
|
+
|
44
|
+
/// use to set file and gallery items
|
45
|
+
useEffect(() => {
|
46
|
+
if (item.items && item.items.length > 0) {
|
47
|
+
setFiles(item.items.filter((files) => files["@type"] === "File"));
|
48
|
+
setGallery(item.items.filter((files) => files["@type"] === "Image"));
|
49
|
+
}
|
50
|
+
}, [item]);
|
51
|
+
|
52
|
+
function handleClick() {
|
53
|
+
navigate("..");
|
54
|
+
onChange(null);
|
55
|
+
}
|
56
|
+
moment.locale("fr");
|
57
|
+
const created = moment(item.created).startOf("minute").fromNow();
|
58
|
+
const lastModified = moment(item.modified).startOf("minute").fromNow();
|
59
|
+
return (
|
60
|
+
<div className="new-content r-content">
|
61
|
+
<button type="button" onClick={handleClick}>
|
62
|
+
<Translate text="Retour" />
|
63
|
+
</button>
|
64
|
+
|
65
|
+
{contextAuthenticatedUser === "False" ? (
|
66
|
+
<a
|
67
|
+
href={item["@id"]}
|
68
|
+
target="_blank"
|
69
|
+
title="Editer la fiche"
|
70
|
+
className="edit-rest-elements edit-rest-elements-content"
|
71
|
+
>
|
72
|
+
<svg
|
73
|
+
xmlns="http://www.w3.org/2000/svg"
|
74
|
+
width="16"
|
75
|
+
height="16"
|
76
|
+
fill="currentColor"
|
77
|
+
class="bi bi-pencil-square"
|
78
|
+
viewBox="0 0 16 16"
|
79
|
+
>
|
80
|
+
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" />
|
81
|
+
<path
|
82
|
+
fill-rule="evenodd"
|
83
|
+
d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"
|
84
|
+
/>
|
85
|
+
</svg>
|
86
|
+
</a>
|
87
|
+
) : (
|
88
|
+
""
|
89
|
+
)}
|
90
|
+
|
91
|
+
<article>
|
92
|
+
<header>
|
93
|
+
<h2 className="r-content-title">{item.title}</h2>
|
94
|
+
<div className="r-content-description">
|
95
|
+
<ReactMarkdown>{item.description}</ReactMarkdown>
|
96
|
+
</div>
|
97
|
+
</header>
|
98
|
+
<figure>
|
99
|
+
<div
|
100
|
+
className="r-content-img"
|
101
|
+
style={{
|
102
|
+
backgroundImage: item.image_affiche_scale
|
103
|
+
? "url(" + item.image_affiche_scale + ")"
|
104
|
+
: "",
|
105
|
+
}}
|
106
|
+
/>
|
107
|
+
</figure>
|
108
|
+
<div className="r-content-news-info">
|
109
|
+
<div className="r-content-news-info-container">
|
110
|
+
{/* date */}
|
111
|
+
<div className="r-content-news-info-schedul">
|
112
|
+
<div className="icon-baseline">
|
113
|
+
<svg
|
114
|
+
xmlns="http://www.w3.org/2000/svg"
|
115
|
+
preserveAspectRatio="xMinYMin"
|
116
|
+
viewBox="0 0 19.41 19.41"
|
117
|
+
>
|
118
|
+
<path d="M16.09,2.74H14.35V.85a.44.44,0,0,0-.43-.44H12.47A.44.44,0,0,0,12,.85V2.74H7.38V.85A.44.44,0,0,0,7,.41H5.5a.44.44,0,0,0-.44.44V2.74H3.32A1.74,1.74,0,0,0,1.58,4.48V17.26A1.74,1.74,0,0,0,3.32,19H16.09a1.74,1.74,0,0,0,1.75-1.74V4.48A1.74,1.74,0,0,0,16.09,2.74Zm-.21,14.52H3.54A.22.22,0,0,1,3.32,17h0V6.22H16.09V17a.21.21,0,0,1-.21.22Z" />
|
119
|
+
</svg>
|
120
|
+
</div>
|
121
|
+
<div className="dpinlb">
|
122
|
+
<div className="r-content-news-info--date">
|
123
|
+
<div className="r-content-date">
|
124
|
+
{created === lastModified ? (
|
125
|
+
<div className="r-content-date-publish">
|
126
|
+
<span>
|
127
|
+
<Translate text="Publié" /> {created}
|
128
|
+
</span>
|
129
|
+
</div>
|
130
|
+
) : (
|
131
|
+
<div>
|
132
|
+
<div className="r-content-date-publish">
|
133
|
+
<span>
|
134
|
+
<Translate text="Publié" /> {created}
|
135
|
+
</span>
|
136
|
+
</div>
|
137
|
+
<div className="r-card-date-last">
|
138
|
+
<span>
|
139
|
+
<Translate text="Actualisé" />{" "}
|
140
|
+
{lastModified}{" "}
|
141
|
+
</span>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
)}
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
{/* link */}
|
150
|
+
{item.site_url === null && item.video_url === null ? (
|
151
|
+
""
|
152
|
+
) : (
|
153
|
+
<div className="r-content-news-info-link">
|
154
|
+
<div className="icon-baseline">
|
155
|
+
<svg
|
156
|
+
xmlns="http://www.w3.org/2000/svg"
|
157
|
+
viewBox="0 0 19.41 19.41"
|
158
|
+
>
|
159
|
+
<path d="M16.36,2.22H3.06a1.3,1.3,0,0,0-1.3,1.3h0v9a1.3,1.3,0,0,0,1.3,1.3H7.52v1.74h-.7a.8.8,0,0,0,0,1.6h5.79a.8.8,0,0,0,0-1.6h-.7V13.85h4.45a1.31,1.31,0,0,0,1.3-1.3v-9A1.3,1.3,0,0,0,16.36,2.22Zm-1.9,10.83a.37.37,0,1,1,.36-.37h0a.36.36,0,0,1-.36.36Zm1.6.08a.45.45,0,1,1,.44-.45h0a.44.44,0,0,1-.44.45h0Zm.53-1.35H2.82V3.52a.23.23,0,0,1,.23-.23H16.36a.23.23,0,0,1,.23.23h0v8.27Z" />
|
160
|
+
</svg>
|
161
|
+
</div>
|
162
|
+
<div className="dpinlb">
|
163
|
+
{item.site_url === null ? (
|
164
|
+
""
|
165
|
+
) : (
|
166
|
+
<div className="r-content-news-info-event_link">
|
167
|
+
<a href={item.site_url}>{item.site_url}</a>
|
168
|
+
</div>
|
169
|
+
)}
|
170
|
+
{item.video_url === null ? (
|
171
|
+
""
|
172
|
+
) : (
|
173
|
+
<div className="r-content-news-info--video">
|
174
|
+
<a href={item.video_url}>
|
175
|
+
<Translate text="Lien vers la vidéo" />
|
176
|
+
</a>
|
177
|
+
</div>
|
178
|
+
)}
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
)}
|
182
|
+
{/* Social */}
|
183
|
+
{item.facebook === null &&
|
184
|
+
item.instagram === null &&
|
185
|
+
item.twitter === null ? (
|
186
|
+
""
|
187
|
+
) : (
|
188
|
+
<div className="r-content-news-info-social">
|
189
|
+
<ul>
|
190
|
+
{!item.facebook ? (
|
191
|
+
""
|
192
|
+
) : (
|
193
|
+
<li>
|
194
|
+
<a href={item.facebook} target="_blank">
|
195
|
+
<svg
|
196
|
+
xmlns="http://www.w3.org/2000/svg"
|
197
|
+
height="800"
|
198
|
+
width="1200"
|
199
|
+
viewBox="-204.79995 -341.33325 1774.9329 2047.9995"
|
200
|
+
>
|
201
|
+
<path
|
202
|
+
d="M1365.333 682.667C1365.333 305.64 1059.693 0 682.667 0 305.64 0 0 305.64 0 682.667c0 340.738 249.641 623.16 576 674.373V880H402.667V682.667H576v-150.4c0-171.094 101.917-265.6 257.853-265.6 74.69 0 152.814 13.333 152.814 13.333v168h-86.083c-84.804 0-111.25 52.623-111.25 106.61v128.057h189.333L948.4 880H789.333v477.04c326.359-51.213 576-333.635 576-674.373"
|
203
|
+
fill="#100f0d"
|
204
|
+
/>
|
205
|
+
<path
|
206
|
+
d="M948.4 880l30.267-197.333H789.333V554.609C789.333 500.623 815.78 448 900.584 448h86.083V280s-78.124-13.333-152.814-13.333c-155.936 0-257.853 94.506-257.853 265.6v150.4H402.667V880H576v477.04a687.805 687.805 0 00106.667 8.293c36.288 0 71.91-2.84 106.666-8.293V880H948.4"
|
207
|
+
fill="#fff"
|
208
|
+
/>
|
209
|
+
</svg>
|
210
|
+
</a>
|
211
|
+
</li>
|
212
|
+
)}
|
213
|
+
{!item.instagram ? (
|
214
|
+
""
|
215
|
+
) : (
|
216
|
+
<li>
|
217
|
+
<a href={item.instagram} target="_blank">
|
218
|
+
<svg
|
219
|
+
xmlns="http://www.w3.org/2000/svg"
|
220
|
+
height="800"
|
221
|
+
width="1200"
|
222
|
+
viewBox="-100.7682 -167.947 873.3244 1007.682"
|
223
|
+
>
|
224
|
+
<g fill="#100f0d">
|
225
|
+
<path d="M335.895 0c-91.224 0-102.663.387-138.49 2.021-35.752 1.631-60.169 7.31-81.535 15.612-22.088 8.584-40.82 20.07-59.493 38.743-18.674 18.673-30.16 37.407-38.743 59.495C9.33 137.236 3.653 161.653 2.02 197.405.386 233.232 0 244.671 0 335.895c0 91.222.386 102.661 2.02 138.488 1.633 35.752 7.31 60.169 15.614 81.534 8.584 22.088 20.07 40.82 38.743 59.495 18.674 18.673 37.405 30.159 59.493 38.743 21.366 8.302 45.783 13.98 81.535 15.612 35.827 1.634 47.266 2.021 138.49 2.021 91.222 0 102.661-.387 138.488-2.021 35.752-1.631 60.169-7.31 81.534-15.612 22.088-8.584 40.82-20.07 59.495-38.743 18.673-18.675 30.159-37.407 38.743-59.495 8.302-21.365 13.981-45.782 15.612-81.534 1.634-35.827 2.021-47.266 2.021-138.488 0-91.224-.387-102.663-2.021-138.49-1.631-35.752-7.31-60.169-15.612-81.534-8.584-22.088-20.07-40.822-38.743-59.495-18.675-18.673-37.407-30.159-59.495-38.743-21.365-8.302-45.782-13.981-81.534-15.612C438.556.387 427.117 0 335.895 0zm0 60.521c89.686 0 100.31.343 135.729 1.959 32.75 1.493 50.535 6.965 62.37 11.565 15.68 6.094 26.869 13.372 38.622 25.126 11.755 11.754 19.033 22.944 25.127 38.622 4.6 11.836 10.072 29.622 11.565 62.371 1.616 35.419 1.959 46.043 1.959 135.73 0 89.687-.343 100.311-1.959 135.73-1.493 32.75-6.965 50.535-11.565 62.37-6.094 15.68-13.372 26.869-25.127 38.622-11.753 11.755-22.943 19.033-38.621 25.127-11.836 4.6-29.622 10.072-62.371 11.565-35.413 1.616-46.036 1.959-135.73 1.959-89.694 0-100.315-.343-135.73-1.96-32.75-1.492-50.535-6.964-62.37-11.564-15.68-6.094-26.869-13.372-38.622-25.127-11.754-11.753-19.033-22.943-25.127-38.621-4.6-11.836-10.071-29.622-11.565-62.371-1.616-35.419-1.959-46.043-1.959-135.73 0-89.687.343-100.311 1.959-135.73 1.494-32.75 6.965-50.535 11.565-62.37 6.094-15.68 13.373-26.869 25.126-38.622 11.754-11.755 22.944-19.033 38.622-25.127 11.836-4.6 29.622-10.072 62.371-11.565 35.419-1.616 46.043-1.959 135.73-1.959" />
|
226
|
+
<path d="M335.895 447.859c-61.838 0-111.966-50.128-111.966-111.964 0-61.838 50.128-111.966 111.966-111.966 61.836 0 111.964 50.128 111.964 111.966 0 61.836-50.128 111.964-111.964 111.964zm0-284.451c-95.263 0-172.487 77.224-172.487 172.487 0 95.261 77.224 172.485 172.487 172.485 95.261 0 172.485-77.224 172.485-172.485 0-95.263-77.224-172.487-172.485-172.487m219.608-6.815c0 22.262-18.047 40.307-40.308 40.307-22.26 0-40.307-18.045-40.307-40.307 0-22.261 18.047-40.308 40.307-40.308 22.261 0 40.308 18.047 40.308 40.308" />
|
227
|
+
</g>
|
228
|
+
</svg>
|
229
|
+
</a>
|
230
|
+
</li>
|
231
|
+
)}
|
232
|
+
{!item.twitter ? (
|
233
|
+
""
|
234
|
+
) : (
|
235
|
+
<li>
|
236
|
+
<a href={item.twitter} target="_blank">
|
237
|
+
<svg
|
238
|
+
xmlns="http://www.w3.org/2000/svg"
|
239
|
+
height="800"
|
240
|
+
width="1200"
|
241
|
+
viewBox="-44.7006 -60.54775 387.4052 363.2865"
|
242
|
+
>
|
243
|
+
<path
|
244
|
+
fill="#000"
|
245
|
+
d="M93.719 242.19c112.46 0 173.96-93.168 173.96-173.96 0-2.646-.054-5.28-.173-7.903a124.338 124.338 0 0030.498-31.66c-10.955 4.87-22.744 8.148-35.11 9.626 12.622-7.57 22.313-19.543 26.885-33.817a122.62 122.62 0 01-38.824 14.841C239.798 7.433 223.915 0 206.326 0c-33.764 0-61.144 27.381-61.144 61.132 0 4.798.537 9.465 1.586 13.941-50.815-2.557-95.874-26.886-126.03-63.88a60.977 60.977 0 00-8.279 30.73c0 21.212 10.794 39.938 27.208 50.893a60.685 60.685 0 01-27.69-7.647c-.009.257-.009.507-.009.781 0 29.61 21.075 54.332 49.051 59.934a61.218 61.218 0 01-16.122 2.152 60.84 60.84 0 01-11.491-1.103c7.784 24.293 30.355 41.971 57.115 42.465-20.926 16.402-47.287 26.171-75.937 26.171-4.929 0-9.798-.28-14.584-.846 27.059 17.344 59.189 27.464 93.722 27.464"
|
246
|
+
/>
|
247
|
+
</svg>
|
248
|
+
</a>
|
249
|
+
</li>
|
250
|
+
)}
|
251
|
+
</ul>
|
252
|
+
</div>
|
253
|
+
)}
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
<div
|
257
|
+
className="r-content-text"
|
258
|
+
dangerouslySetInnerHTML={{
|
259
|
+
__html: item.text && item.text.data,
|
260
|
+
}}
|
261
|
+
></div>
|
262
|
+
{/* add files to download */}
|
263
|
+
{files && (
|
264
|
+
<div className="r-content-files">
|
265
|
+
{files.map((file, i) => (
|
266
|
+
<div className="r-content-file">
|
267
|
+
<a
|
268
|
+
key={i}
|
269
|
+
href={file.targetUrl}
|
270
|
+
className="r-content-file-link"
|
271
|
+
rel="nofollow"
|
272
|
+
>
|
273
|
+
<span className="r-content-file-title">{file.title}</span>
|
274
|
+
<span className="r-content-file-icon">
|
275
|
+
<svg
|
276
|
+
width="21"
|
277
|
+
height="21"
|
278
|
+
viewBox="0 0 24 24"
|
279
|
+
fill="none"
|
280
|
+
stroke="#8899a4"
|
281
|
+
stroke-width="2"
|
282
|
+
stroke-linecap="square"
|
283
|
+
stroke-linejoin="arcs"
|
284
|
+
>
|
285
|
+
<path d="M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"></path>
|
286
|
+
</svg>{" "}
|
287
|
+
</span>
|
288
|
+
</a>
|
289
|
+
</div>
|
290
|
+
))}
|
291
|
+
</div>
|
292
|
+
)}
|
293
|
+
{/* add gallery */}
|
294
|
+
{gallery && (
|
295
|
+
<div className="r-content-gallery">
|
296
|
+
<div className="spotlight-group flexbin r-content-gallery">
|
297
|
+
{gallery.map((image, i) => (
|
298
|
+
<a key={i} className="spotlight" href={image.image_full_scale}>
|
299
|
+
<img src={image.image_preview_scale} alt="" />
|
300
|
+
</a>
|
301
|
+
))}
|
302
|
+
</div>
|
303
|
+
</div>
|
304
|
+
)}
|
305
|
+
</article>
|
306
|
+
</div>
|
307
|
+
);
|
308
|
+
};
|
309
|
+
export default ContactContent;
|