From d4a6c17bdf13fe5e669b53745f51aa2bd380eb79 Mon Sep 17 00:00:00 2001 From: anibilag Date: Mon, 14 Jul 2025 22:39:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.4.2=20?= =?UTF-8?q?=D0=9E=D1=82=D0=BB=D0=B0=D0=B4=D0=BE=D1=87=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D1=8C=20=D0=B2=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/ZoneCard.tsx | 1 + src/services/api.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ddcce3a..2b6da83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.4.1", + "version": "0.4.2", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/src/components/ZoneCard.tsx b/src/components/ZoneCard.tsx index 33c39d8..14d0305 100644 --- a/src/components/ZoneCard.tsx +++ b/src/components/ZoneCard.tsx @@ -33,6 +33,7 @@ const ZoneCard: React.FC = ({ }; const getStatusText = (zone: Zone) => { + console.log(zone); if (zone.isNew) { return 'Еще не косилась'; } else if (zone.isOverdue) { diff --git a/src/services/api.ts b/src/services/api.ts index 74ec4a3..604ecb1 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -6,8 +6,8 @@ const API_BASE = APP_MODE == "development" ? new URL('api', import.meta.env.VITE export const api = { async getZones(): Promise { const response = await fetch(`${API_BASE}/zones`); - console.log(`${APP_MODE}`); - console.log(`${API_BASE}/zones`); + //console.log(`${APP_MODE}`); + //console.log(`${API_BASE}/zones`); if (!response.ok) throw new Error('Failed to fetch zones'); return response.json(); },