WICG / webmonetization

Proposed Web Monetization standard
https://webmonetization.org
Other
466 stars 152 forks source link

Update meta tag generator to link tag generator #319

Closed huijing closed 1 year ago

huijing commented 1 year ago

Closes https://github.com/WICG/webmonetization/issues/315

This PR addresses the issues mentioned in #315:

🎩 Top-hatting instructions (i.e. testing before merge)

  1. Pull down this branch
  2. Navigate to http://localhost:3000/meta-tag
  3. Check that the content updates are correct ("Meta" to "Link")
  4. Check the input:
    • Enter a proper URL like https://www.google.com and click "Generate", the generated code should have href="https://www.google.com"
    • Enter a shortened URL like $cows.dev and click "Generate", the generated code should have href="https://cow.dev"
    • Enter a rubbish string like fdjsaklfjdsklfdjas and click "Generate", the error message should trigger and the generated code will not update