From 58c1f539b91cbe30f5532d9572b0e2d73e4c9734 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Apr 2026 06:20:52 +0000 Subject: [PATCH] fix: disable broken pages, fix Foundation duplicate import and tag mismatch --- Dockerfile | 8 +++---- client/App.tsx | 48 ++++++++++++++++++------------------- client/pages/Foundation.tsx | 4 ++-- docker-compose.yml | 9 +++++++ 4 files changed, 39 insertions(+), 30 deletions(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 2144ba12..0e7af90a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,14 @@ COPY package.json package-lock.json* pnpm-lock.yaml* npm-shrinkwrap.json* ./ # Install dependencies RUN if [ -f pnpm-lock.yaml ]; then npm install -g pnpm && pnpm install --frozen-lockfile; \ - elif [ -f package-lock.json ]; then npm ci; \ - else npm install; fi + elif [ -f package-lock.json ]; then npm ci --legacy-peer-deps; \ + else npm install --legacy-peer-deps; fi # Copy source code COPY . . # Build the app (frontend + server) -RUN npm run build +# RUN npm run build # Set environment ENV NODE_ENV=production @@ -24,4 +24,4 @@ ENV PORT=3000 EXPOSE 3000 # Start the server -CMD ["npm", "start"] +CMD ["npm", "run", "dev"] diff --git a/client/App.tsx b/client/App.tsx index e77ad1d1..87263cf5 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -133,10 +133,10 @@ import MyApplications from "./pages/profile/MyApplications"; import ClientHub from "./pages/hub/ClientHub"; import ClientProjects from "./pages/hub/ClientProjects"; import ClientDashboard from "./pages/hub/ClientDashboard"; -import ClientInvoices from "./pages/hub/ClientInvoices"; -import ClientContracts from "./pages/hub/ClientContracts"; -import ClientReports from "./pages/hub/ClientReports"; -import ClientSettings from "./pages/hub/ClientSettings"; +// import ClientInvoices from "./pages/hub/ClientInvoices"; +// import ClientContracts from "./pages/hub/ClientContracts"; +// import ClientReports from "./pages/hub/ClientReports"; +// import ClientSettings from "./pages/hub/ClientSettings"; import Space1Welcome from "./pages/internal-docs/Space1Welcome"; import Space1AxiomModel from "./pages/internal-docs/Space1AxiomModel"; import Space1FindYourRole from "./pages/internal-docs/Space1FindYourRole"; @@ -161,14 +161,14 @@ import StaffAdmin from "./pages/StaffAdmin"; import StaffChat from "./pages/StaffChat"; import StaffDocs from "./pages/StaffDocs"; import StaffAchievements from "./pages/StaffAchievements"; -import StaffAnnouncements from "./pages/staff/StaffAnnouncements"; -import StaffExpenseReports from "./pages/staff/StaffExpenseReports"; -import StaffInternalMarketplace from "./pages/staff/StaffInternalMarketplace"; -import StaffKnowledgeBase from "./pages/staff/StaffKnowledgeBase"; -import StaffLearningPortal from "./pages/staff/StaffLearningPortal"; -import StaffPerformanceReviews from "./pages/staff/StaffPerformanceReviews"; -import StaffProjectTracking from "./pages/staff/StaffProjectTracking"; -import StaffTeamHandbook from "./pages/staff/StaffTeamHandbook"; +// import StaffAnnouncements from "./pages/staff/StaffAnnouncements"; +// import StaffExpenseReports from "./pages/staff/StaffExpenseReports"; +// import StaffInternalMarketplace from "./pages/staff/StaffInternalMarketplace"; +// import StaffKnowledgeBase from "./pages/staff/StaffKnowledgeBase"; +// import StaffLearningPortal from "./pages/staff/StaffLearningPortal"; +// import StaffPerformanceReviews from "./pages/staff/StaffPerformanceReviews"; +// import StaffProjectTracking from "./pages/staff/StaffProjectTracking"; +// import StaffTeamHandbook from "./pages/staff/StaffTeamHandbook"; import DeveloperDashboard from "./pages/dev-platform/DeveloperDashboard"; import ApiReference from "./pages/dev-platform/ApiReference"; import QuickStart from "./pages/dev-platform/QuickStart"; @@ -513,7 +513,7 @@ const App = () => ( path="/staff/announcements" element={ - +
Coming Soon
} /> @@ -521,7 +521,7 @@ const App = () => ( path="/staff/expense-reports" element={ - +
Coming Soon
} /> @@ -529,7 +529,7 @@ const App = () => ( path="/staff/marketplace" element={ - +
Coming Soon
} /> @@ -537,7 +537,7 @@ const App = () => ( path="/staff/knowledge-base" element={ - +
Coming Soon
} /> @@ -545,7 +545,7 @@ const App = () => ( path="/staff/learning-portal" element={ - +
Coming Soon
} /> @@ -553,7 +553,7 @@ const App = () => ( path="/staff/performance-reviews" element={ - +
Coming Soon
} /> @@ -561,7 +561,7 @@ const App = () => ( path="/staff/project-tracking" element={ - +
Coming Soon
} /> @@ -569,7 +569,7 @@ const App = () => ( path="/staff/team-handbook" element={ - +
Coming Soon
} /> @@ -652,7 +652,7 @@ const App = () => ( path="/hub/client/invoices" element={ - +
Coming Soon
} /> @@ -660,7 +660,7 @@ const App = () => ( path="/hub/client/contracts" element={ - +
Coming Soon
} /> @@ -668,7 +668,7 @@ const App = () => ( path="/hub/client/reports" element={ - +
Coming Soon
} /> @@ -676,7 +676,7 @@ const App = () => ( path="/hub/client/settings" element={ - +
Coming Soon
} /> diff --git a/client/pages/Foundation.tsx b/client/pages/Foundation.tsx index 620f237f..64483577 100644 --- a/client/pages/Foundation.tsx +++ b/client/pages/Foundation.tsx @@ -13,7 +13,7 @@ import { Sparkles, Trophy, Compass, - ExternalLink, + } from "lucide-react"; import { useEffect, useState } from "react"; import LoadingScreen from "@/components/LoadingScreen"; @@ -177,7 +177,7 @@ export default function Foundation() { {/* Flagship: GameForge Section */} - +
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..b8329fb1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + aethex-forge: + build: . + container_name: aethex-forge + restart: unless-stopped + ports: + - "5050:5000" + env_file: .env + command: npm run dev