Skip to content

Conversation

@jamesdaniels
Copy link
Member

@jamesdaniels jamesdaniels commented Feb 19, 2025

I could not get a local environment setup, it turns out everything is very outdated. Starting the dust off effort with the frontend, will move to modernize the Cloud Functions and add an App Hosting category in follow up PRs.

  • Migrate from Nuxt 2 to 3
  • Upgrade firebase and move to modular & firestore lite
  • Add dompurify to reduce XSS vulnerability
  • Upgrade and bring @docsearch/js into package.json
  • Clean up some error handling
  • Remove unneeded dependencies
  • Preload on interaction
  • Added typecheck command
  • Since I don't have access to fir-oss yet, staged here https://web-frameworks-e2e.web.app/
  • Fix the logo on mobile
  • Update the branding
  • Figure out if we need to add client-side fetching or is pure SSG fine
  • Add GitHub actions
  • stage on fir-oss
  • Figure out the shared types/classes, Nuxt 3 hates it
  • Can new docsearch operate more like old?
  • Can we prerender the search box?

@jamesdaniels jamesdaniels marked this pull request as ready for review February 20, 2025 00:16
Copy link
Contributor

@jhuleatt jhuleatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for trudging through this upgrade @jamesdaniels! I clicked around https://web-frameworks-e2e.web.app/ and all seems to work

Comment on lines -57 to -59
export function daysAgo (date: Date) {
return formatDistanceToNow(date) + ' ago'
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this unused now? just double checking it wasn't removed by accident

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i don't think it's worth having a separate util function just to add "ago", heh. If we weren't using a node module for fuzzy dates and it were anymore complex, i could see it

Comment on lines 17 to 18
"deploy": "npm run generate && npx -y firebase-tools --project=default deploy",
"deploy:hosting": "npm run generate && npx -y firebase-tools --project=default deploy --only hosting"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these redundant since the makefile does the same thing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems the makefile is unused in the ci/cd pipeline, i'll clean that up when i update functions

@jamesdaniels jamesdaniels merged commit 2d98bc1 into master Feb 20, 2025
3 checks passed
@jamesdaniels jamesdaniels deleted the jamesdaniels_nuxt3 branch February 20, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants