From 8542a98500c6d6d77cdd05db5de50bea1ddbf2c5 Mon Sep 17 00:00:00 2001 From: artheru Date: Wed, 10 Jun 2026 10:58:49 +0800 Subject: [PATCH] deps: drop lucide-react, inline the 2 icons (0.74.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lucide-react was a runtime dependency used only for the mobile menu's hamburger + close icons in Scene2D.jsx - replaced with two tiny inline SVG components (lucide's exact Menu/X paths), removed lucide-react from package.json — aligns with the project's minimal-dependency philosophy (zero-dep backend) - build is clean with no lucide in the bundle; icons render identically - (deploy note: re-deployed after a transient fail2ban block from this session's rapid deploy cadence — site stayed healthy on 0.73 throughout) --- index.html | 2 +- package.json | 3 +-- src/Scene2D.jsx | 7 +++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 406ac49..444e615 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + diff --git a/package.json b/package.json index 4350692..00d6dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amerc-site", - "version": "0.73.0-search", + "version": "0.74.0-lean-dep", "private": true, "type": "module", "scripts": { @@ -10,7 +10,6 @@ }, "dependencies": { "@vitejs/plugin-react": "^5.0.0", - "lucide-react": "^0.468.0", "marked": "^14.1.4", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/src/Scene2D.jsx b/src/Scene2D.jsx index 1aded2f..353a0bc 100644 --- a/src/Scene2D.jsx +++ b/src/Scene2D.jsx @@ -1,5 +1,4 @@ import React, { useCallback, useEffect, useRef, useState } from 'react'; -import { Menu, X } from 'lucide-react'; import { useAuth, AuthPanel, AdminConsole } from './Auth.jsx'; import { AgentBrowse, BoothDashboard } from './AgentPlatform.jsx'; import Mansion from './Mansion.jsx'; @@ -7,7 +6,11 @@ import Account from './Account.jsx'; import TavernGame from './TavernGame.jsx'; import { api } from './api.js'; -const RELEASE = '0.73.0-search'; +// Inline hamburger + close icons (was lucide-react — dropped for one fewer dep). +const Menu = ({ size = 20 }) => (); +const X = ({ size = 20 }) => (); + +const RELEASE = '0.74.0-lean-dep'; const NAV = [ { id: 'home', label: 'Tavern' },