Maj gestion des articles

This commit is contained in:
sebvtl728
2025-01-31 20:05:03 +01:00
parent 841161cb9b
commit 0d42ce54fc
7 changed files with 518 additions and 113 deletions
+5 -1
View File
@@ -6,6 +6,7 @@ import theme from "./theme";
import { HelmetProvider } from "react-helmet-async";
import SimpleReactLightbox from "simple-react-lightbox";
import NotFound from "./components/Pages/NotFound.jsx";
import GestionArticles from "./components/Pages/GestionArticles";
// Lazy loading des pages
@@ -13,6 +14,7 @@ const Home = lazy(() => import('./components/Pages/Home.jsx'));
const About = lazy(() => import('./components/Pages/About'));
const Contact = lazy(() => import('./components/Pages/Contact'));
const Post = lazy(() => import('./components/Pages/Post'));
const PostDetails = lazy(() => import('./components/PostDetails')) ;
const Search = lazy(() => import('./components/Pages/Search')); // Nouveau composant pour la recherche
const BureauEtude = lazy(() => import('./components/Pages/BureauEtude'));
const CreatePost = lazy(() => import('./components/Pages/CreatePost'));
@@ -45,10 +47,12 @@ function YourApp() {
<Route path="/services/prestation-maitrise-oeuvre" element={<ServiceUn />} />
<Route path="/services/structure-beton-charpente-metallique-bois" element={<ServiceDeux />} />
<Route path="/services/formation-video" element={<ServiceTrois />} />
<Route path="/create-post" element={<CreatePost />} />
<Route path="/admin/create-post" element={<CreatePost />} />
<Route path="/post/:id" element={<PostDetails />} />
<Route path="/admin/posts" element={<PostList />} />
<Route path="/admin/login" element={<Login />} />
<Route path="/admin/dashboard" element={<Dashboard />} />
<Route path="/admin/gestion-articles" element={<GestionArticles />} />
<Route path="*" element={<NotFound />} />
</Routes>
<Footer />