GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: migrate leftover components to typescript by ashmitjsg · Pull Request #2825 · asyncapi/website

Conversation

@ashmitjsg

@ashmitjsg ashmitjsg commented Mar 30, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description
This PR migrates the components inside the following folder to TypeScript:

  • NewsletterSubscribe
  • CaseTOC
  • GeneratorInstallation
  • Features
  • Hero
  • InlineHelp
  • MDX
  • Testimonial

Related issue(s)
#2636

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ashmitjsg
migrated newsletter subscription form
2fd21ad
@netlify

netlify Bot commented Mar 30, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1ef0b9d
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/66122edf6bed7800088b806d
😎 Deploy Preview https://deploy-preview-2825--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot
asyncapi-bot requested a review from sambhavgupta0705 March 30, 2024 08:19
@ashmitjsg ashmitjsg changed the title Migrate leftover components to typescript feat: migrate leftover components to typescript Mar 30, 2024
ashmitjsg and others added 7 commits March 30, 2024 14:11
@ashmitjsg
migrated testimonial
5127b32
@ashmitjsg
migrated CaseTOC
14aeaf9
@ashmitjsg
Merge branch 'migrate-ts' into ag-ts-components
7708638
@ashmitjsg
migrated Inline Help and it's dependency
a6a4b3d
@ashmitjsg
migrated GeneratorInstallation
5d47a4b
@ashmitjsg
migrated Hero and feature component
e52c139
@ashmitjsg
migrated MDX
5373f5e
@ashmitjsg
ashmitjsg marked this pull request as ready for review April 5, 2024 15:13
@ashmitjsg
ashmitjsg requested review from Mayaleeeee, akshatnema, anshgoyalevil, asyncapi-bot-eve, derberg and magicmatatjahu as code owners April 5, 2024 15:13
akshatnema
akshatnema requested changes Apr 6, 2024
View reviewed changes
Comment thread components/CaseTOC.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread components/CaseTOC.tsx Outdated
closeMenu();
setOpen(false);
};
const active = useMemo(() => checkIfActive(item, currSelected), [item, currSelected]);

@akshatnema akshatnema Apr 6, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Define this above, in next line of open state.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ashmitjsg ashmitjsg Apr 6, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread components/Testimonial.tsx Outdated
Comment on lines +32 to +38
<svg
className='absolute left-0 top-0 size-8 -translate-y-2 text-primary-500'
fill='currentColor'
viewBox='0 0 32 32'
>
<path d='M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z' />
</svg>

@akshatnema akshatnema Apr 6, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Make separate icon for this SVG.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ashmitjsg ashmitjsg Apr 6, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ashmitjsg and others added 2 commits April 6, 2024 16:17
@ashmitjsg
incorporated suggested changes
ef8c6b0
@ashmitjsg
Merge branch 'migrate-ts' into ag-ts-components
acd4974
@asyncapi-bot
asyncapi-bot requested review from BhaswatiRoy, J0SAL, TRohit20, VaishnaviNandakumar and octonawish-akcodes April 6, 2024 10:47
@ashmitjsg
ashmitjsg requested a review from akshatnema April 6, 2024 10:49
akshatnema
akshatnema reviewed Apr 6, 2024
View reviewed changes
Comment thread components/MDX.tsx
Comment on lines +87 to +103
useLayoutEffect(() => {
if (!graph) {
return;
}

try {
const svgElement = document.createElement('div');

mermaid.mermaidAPI.render(uuid(), graph, svgElement).then(() => {
setSvg(svgElement.innerHTML);
});
} catch (e) {
setSvg(null);
// eslint-disable-next-line no-console
console.error(e);
}
}, [graph]);

@akshatnema akshatnema Apr 6, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Add comment for this hook

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ashmitjsg ashmitjsg Apr 7, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ashmitjsg
added comment to useLayoutEffect hook
1ef0b9d
@ashmitjsg
ashmitjsg requested a review from akshatnema April 7, 2024 05:28
akshatnema
akshatnema approved these changes Apr 7, 2024
View reviewed changes
@akshatnema

akshatnema commented Apr 7, 2024

Copy link
Copy Markdown
Member

/rtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot asyncapi-bot added the ready-to-merge label Apr 7, 2024
@asyncapi-bot
asyncapi-bot merged commit d01560f into asyncapi:migrate-ts Apr 7, 2024
@ashmitjsg
ashmitjsg deleted the ag-ts-components branch April 7, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@akshatnema akshatnema akshatnema approved these changes
@sambhavgupta0705 sambhavgupta0705 Awaiting requested review from sambhavgupta0705
@derberg derberg Awaiting requested review from derberg
@magicmatatjahu magicmatatjahu Awaiting requested review from magicmatatjahu
@anshgoyalevil anshgoyalevil Awaiting requested review from anshgoyalevil
@Mayaleeeee Mayaleeeee Awaiting requested review from Mayaleeeee
@asyncapi-bot-eve asyncapi-bot-eve Awaiting requested review from asyncapi-bot-eve
@BhaswatiRoy BhaswatiRoy Awaiting requested review from BhaswatiRoy
@J0SAL J0SAL Awaiting requested review from J0SAL
@octonawish-akcodes octonawish-akcodes Awaiting requested review from octonawish-akcodes
@TRohit20 TRohit20 Awaiting requested review from TRohit20
@VaishnaviNandakumar VaishnaviNandakumar Awaiting requested review from VaishnaviNandakumar

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

ready-to-merge

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@ashmitjsg @akshatnema @asyncapi-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.