* refactor: optimize JavaScript performance and robustness - Replace deprecated navigator.platform with userAgentData - Add comprehensive null checks for all DOM operations (23+ locations) - Cache frequently queried DOM elements to eliminate repeated queries - Remove dead code (installCmds, osCmds objects) - Improve clipboard copy with execCommand fallback and visual error feedback - Fix Easter egg animation with null-safety wrapper - Update font loading comment for clarity Performance improvements: - Eliminated 4 DOM queries per state update cycle - Reduced bundle size by ~13 lines of dead code - Added visual feedback for clipboard failures See OPTIMIZATIONS_SUMMARY.md for detailed before/after comparisons * chore: clean up redundant lock files - Remove package-lock.json and pnpm-lock.yaml - Keep bun.lock as primary lock file (per README) - Update .gitignore to prevent future lock file conflicts This prevents dependency version mismatches when different contributors use different package managers. * fix: always cleanup clipboard fallback textarea --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
41 lines
383 B
Plaintext
41 lines
383 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Lock files (keep only bun.lock - see README)
|
|
package-lock.json
|
|
pnpm-lock.yaml
|
|
|
|
# Build output
|
|
dist/
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Editor
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Astro
|
|
.astro/
|
|
|
|
# Local AI cache
|
|
.claude/
|
|
|
|
# Debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.vercel
|
|
.env*.local
|
|
|
|
# Local files
|
|
.local/
|