Skip to content

Commit 553ffce

Browse files
committed
chore: ESLint cleanup - remove unused imports and patch security vulnerabilities
- Fix TypeScript error in NDKContext.tsx (connectivityStatus → connectivity) - Run npm audit fix - patched 8 vulnerabilities (0 remaining) - Remove unused imports from 15+ files - ESLint issues reduced from 364 to 300 (17.5% reduction) - Update sitemap.xml with /inventory and /settings routes - Add SEO meta tags, skip link, and OG tags to index.html - All features verified working in browser tests
1 parent e308be3 commit 553ffce

20 files changed

+285
-78
lines changed

index.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,71 @@
44
<head>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
8+
<!-- Fallback SEO for crawlers that don't execute JS -->
9+
<title>Stock Yo Space - Smart Home Inventory Tracker</title>
10+
<meta name="description"
11+
content="Decentralized, private-first inventory management for your home. Track pantry, freezer, and household items with real-time sync powered by Nostr." />
12+
<link rel="canonical" href="https://www.stockyospace.com/" />
13+
14+
<!-- Open Graph / Facebook (fallback) -->
15+
<meta property="og:type" content="website" />
16+
<meta property="og:url" content="https://www.stockyospace.com/" />
17+
<meta property="og:title" content="Stock Yo Space - Smart Home Inventory Tracker" />
18+
<meta property="og:description"
19+
content="Decentralized, private-first inventory management for your home. Track pantry, freezer, and household items with real-time sync." />
20+
<meta property="og:image" content="https://www.stockyospace.com/pwa-512x512.png" />
21+
<meta property="og:image:width" content="1200" />
22+
<meta property="og:image:height" content="630" />
23+
24+
<!-- Twitter Card (fallback) -->
25+
<meta name="twitter:card" content="summary_large_image" />
26+
<meta name="twitter:url" content="https://www.stockyospace.com/" />
27+
<meta name="twitter:title" content="Stock Yo Space - Smart Home Inventory Tracker" />
28+
<meta name="twitter:description"
29+
content="Decentralized, private-first inventory management for your home. Track pantry, freezer, and household items with real-time sync." />
30+
<meta name="twitter:image" content="https://www.stockyospace.com/pwa-512x512.png" />
31+
32+
<!-- Prerender hint for AJAX crawlers -->
33+
<meta name="fragment" content="!" />
34+
35+
<!-- CSP -->
736
<meta http-equiv="content-security-policy"
837
content="default-src 'none'; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https:; font-src 'self'; base-uri 'self'; manifest-src 'self'; connect-src 'self' blob: https: wss:; img-src 'self' data: blob: https:; media-src 'self' https:">
38+
39+
<!-- Favicon & PWA -->
40+
<link rel="icon" href="/favicon.ico" />
941
<link rel="manifest" href="/manifest.webmanifest">
42+
43+
<!-- Skip Link Styles -->
44+
<style>
45+
.skip-link {
46+
position: absolute;
47+
top: -40px;
48+
left: 0;
49+
background: #4f46e5;
50+
color: white;
51+
padding: 8px 16px;
52+
z-index: 100;
53+
text-decoration: none;
54+
font-family: system-ui, -apple-system, sans-serif;
55+
font-size: 14px;
56+
border-radius: 0 0 4px 0;
57+
transition: top 0.2s;
58+
}
59+
60+
.skip-link:focus {
61+
top: 0;
62+
}
63+
</style>
1064
</head>
1165

1266
<body>
67+
<!-- Skip to main content (accessibility) -->
68+
<a href="#main-content" class="skip-link">Skip to main content</a>
69+
1370
<div id="root"></div>
71+
<main id="main-content"></main>
1472
<script type="module" src="/src/main.tsx"></script>
1573
</body>
1674

package-lock.json

Lines changed: 183 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)