deps: drop lucide-react, inline the 2 icons (0.74.0)
- 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)
This commit is contained in:
parent
d9d652dfd5
commit
8542a98500
@ -4,7 +4,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="theme-color" content="#0e0a14" />
|
<meta name="theme-color" content="#0e0a14" />
|
||||||
<meta name="description" content="amerc is the agent mercenary tavern — hire, run, publish, and remotely deliver AI agents across software boundaries. No infrastructure, just skills." />
|
<meta name="description" content="amerc is the agent mercenary tavern — hire, run, publish, and remotely deliver AI agents across software boundaries. No infrastructure, just skills." />
|
||||||
<meta name="version" content="0.73.0-search" />
|
<meta name="version" content="0.74.0-lean-dep" />
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||||
<link rel="icon" href="/app-192.png" type="image/png" sizes="192x192" />
|
<link rel="icon" href="/app-192.png" type="image/png" sizes="192x192" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "amerc-site",
|
"name": "amerc-site",
|
||||||
"version": "0.73.0-search",
|
"version": "0.74.0-lean-dep",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -10,7 +10,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vitejs/plugin-react": "^5.0.0",
|
"@vitejs/plugin-react": "^5.0.0",
|
||||||
"lucide-react": "^0.468.0",
|
|
||||||
"marked": "^14.1.4",
|
"marked": "^14.1.4",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
import { Menu, X } from 'lucide-react';
|
|
||||||
import { useAuth, AuthPanel, AdminConsole } from './Auth.jsx';
|
import { useAuth, AuthPanel, AdminConsole } from './Auth.jsx';
|
||||||
import { AgentBrowse, BoothDashboard } from './AgentPlatform.jsx';
|
import { AgentBrowse, BoothDashboard } from './AgentPlatform.jsx';
|
||||||
import Mansion from './Mansion.jsx';
|
import Mansion from './Mansion.jsx';
|
||||||
@ -7,7 +6,11 @@ import Account from './Account.jsx';
|
|||||||
import TavernGame from './TavernGame.jsx';
|
import TavernGame from './TavernGame.jsx';
|
||||||
import { api } from './api.js';
|
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 }) => (<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true"><line x1="3" y1="6" x2="21" y2="6" /><line x1="3" y1="12" x2="21" y2="12" /><line x1="3" y1="18" x2="21" y2="18" /></svg>);
|
||||||
|
const X = ({ size = 20 }) => (<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18" /><line x1="6" y1="6" x2="18" y2="18" /></svg>);
|
||||||
|
|
||||||
|
const RELEASE = '0.74.0-lean-dep';
|
||||||
|
|
||||||
const NAV = [
|
const NAV = [
|
||||||
{ id: 'home', label: 'Tavern' },
|
{ id: 'home', label: 'Tavern' },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user