From b4f4104e3e91ac13698c9b0bb8f62c8ad6183286 Mon Sep 17 00:00:00 2001 From: fahed Date: Thu, 26 Mar 2026 17:16:40 +0300 Subject: [PATCH] chore: remove Slides page and Salla console output - Remove Slides route, import, and mobile nav link from App.tsx - Remove Salla route mounting and console output from server Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/index.ts | 17 +++-------------- src/App.tsx | 10 ---------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/server/src/index.ts b/server/src/index.ts index ffbe941..f1f13a8 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -1,7 +1,6 @@ import express from 'express'; import cors from 'cors'; -import { server, salla, erp } from './config'; -import sallaRoutes from './routes/salla'; +import { server, erp } from './config'; import erpRoutes from './routes/erp'; const app = express(); @@ -9,25 +8,15 @@ app.use(cors()); app.use(express.json()); // Mount routes -app.use(sallaRoutes); app.use('/api/erp', erpRoutes); app.listen(server.port, () => { console.log(`\nServer running on http://localhost:${server.port}`); - console.log('\nERP API:'); if (erp.apiUrl && erp.username) { - console.log(` GET /api/erp/sales?startDate=...&endDate=...`); - console.log(` GET /api/erp/status`); + console.log(' GET /api/erp/sales?startDate=...&endDate=...'); + console.log(' GET /api/erp/status'); } else { console.log(' WARNING: ERP_API_URL / ERP_USERNAME not set in .env'); } - - console.log('\nSalla:'); - if (salla.clientId && salla.clientSecret) { - console.log(' GET /auth/login, /auth/callback, /auth/status'); - console.log(' GET /api/store, /api/orders, /api/products, /api/customers'); - } else { - console.log(' WARNING: SALLA_CLIENT_ID / SALLA_CLIENT_SECRET not set in .env'); - } }); diff --git a/src/App.tsx b/src/App.tsx index 4fb05dd..dd5f567 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,6 @@ import { BrowserRouter as Router, Routes, Route, Link, useLocation } from 'react const Dashboard = lazy(() => import('./components/Dashboard')); const Comparison = lazy(() => import('./components/Comparison')); -const Slides = lazy(() => import('./components/Slides')); import LoadingSkeleton from './components/shared/LoadingSkeleton'; import { fetchData, getCacheStatus, refreshData } from './services/dataService'; import { useLanguage } from './contexts/LanguageContext'; @@ -240,7 +239,6 @@ function App() { } /> } /> - } /> @@ -264,14 +262,6 @@ function App() { {t('nav.compare')} - - - {t('nav.slides')} -