Commit Graph

2 Commits

Author SHA1 Message Date
b1f1fa8780 Fix linting and formatting issues
- Run Prettier to fix code style in 7 files
- Auto-fix ESLint errors with --fix flag
- Replace ++ with += 1 in commandTracking.ts
- Add eslint-disable comments for intentional console.error usage
- Fix destructuring, array types, and template literals
- Remove trivial type annotations
2026-02-27 19:21:13 +01:00
1ed675fcf5 Replace hardcoded password words with Random Word API
Improve password generator by using dynamic word sources instead of
static hardcoded lists.

Changes:
- Created useRandomWords composable:
  - Primary: Random Word API (https://random-word-api.herokuapp.com)
  - Fallback: EFF Diceware word list (576 memorable words)
  - Automatic fallback if API fails or is unavailable

- Updated PasswordGenerator component:
  - Remove 80+ lines of hardcoded word lists (adjectives, nouns, verbs, objects)
  - Use async getRandomWords() for passphrase generation
  - Better word variety and unpredictability
  - Maintains same UX (no visible changes to users)

Benefits:
- More secure: Larger word pool (thousands vs 80 words)
- Always fresh: API provides truly random words
- Reliable: Built-in fallback ensures it always works
- Maintainable: No need to curate word lists
- Smaller bundle: Removed ~80 hardcoded words from component
2026-02-27 19:21:13 +01:00