refactor: update bundle data and integrate new tool management API endpoints

This commit is contained in:
sebvtl728
2026-05-05 23:16:36 +02:00
parent 3fabebeb85
commit ccc2e1347d
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import axios from "axios"; import axios from "axios";
const API_URL = "https://preprod.octopusdesign.fr/api-octopus/server/wp-json"; const API_URL = "http://preprod.octopusdesign.fr/api-octopus/server/wp-json";
// 🔹 Instance Axios pour éviter de répéter l'URL // 🔹 Instance Axios pour éviter de répéter l'URL
const api = axios.create({ const api = axios.create({
+10 -2
View File
@@ -35,6 +35,13 @@ const toolsApps = [
url: "/app-photos/index.html?access-token=OCTO-ADMIN-2024", url: "/app-photos/index.html?access-token=OCTO-ADMIN-2024",
external: true, external: true,
}, },
{
id: "app-planning",
name: "Planning",
description: "Application de planification.",
url: "https://planning-arinfo.vercel.app/",
external: true,
},
]; ];
function Tools() { function Tools() {
@@ -175,7 +182,7 @@ function Tools() {
</Stack> </Stack>
</Stack> </Stack>
<Grid container spacing={3}> <Grid container spacing={3} rowSpacing={9}>
{toolsApps.map((app) => ( {toolsApps.map((app) => (
<Grid item xs={12} md={6} lg={4} key={app.id}> <Grid item xs={12} md={6} lg={4} key={app.id}>
<Card <Card
@@ -187,6 +194,7 @@ function Tools() {
flexDirection: "column", flexDirection: "column",
justifyContent: "space-between", justifyContent: "space-between",
p: { xs: 2.5, md: 3 }, p: { xs: 2.5, md: 3 },
}} }}
> >
<Stack spacing={1.8}> <Stack spacing={1.8}>
@@ -198,7 +206,7 @@ function Tools() {
</Typography> </Typography>
<Typography <Typography
variant="h6" variant="h6"
sx={{ color: "#0b1a3d", fontWeight: 700 }} sx={{ color: "#cfd2d8ff", fontWeight: 700 }}
> >
{app.name} {app.name}
</Typography> </Typography>
+1 -1
View File
File diff suppressed because one or more lines are too long