Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(migrate): migrate tools pages #2876

Merged
merged 11 commits into from
Apr 27, 2024

Conversation

Shurtu-gal
Copy link
Contributor

Description

  • Migrates tools pages to TS.

Related issue(s)
#2636

Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 003c71d
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/662bf75f5f9fab0008fc6d24
😎 Deploy Preview https://deploy-preview-2876--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.

Copy link
Member

@akshatnema akshatnema left a comment

Choose a reason for hiding this comment

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

image

@Shurtu-gal Can you change the CodeComponent such that the numbers appear same as they are in master?

pages/404.tsx Outdated Show resolved Hide resolved
@akshatnema
Copy link
Member

@Shurtu-gal Can you change the CodeComponent such that the numbers appear same as they are in master?

Take the reference from this PR - #2867

@Shurtu-gal
Copy link
Contributor Author

@akshatnema done

Comment on lines 280 to 282
padding: '0 0.5em',
background: isHighlighted ? '#252f3f' : 'inherit',
color: isHighlighted ? '#A3ACAD' : '#8B9394'
Copy link
Member

Choose a reason for hiding this comment

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

how you got these colors and properties? is this part of master branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From

website/tailwind.config.js

Lines 122 to 125 in 48cb678

'code-editor': {
dark: '#252f3f',
'dark-highlight': '#3e4d64',
},

Copy link
Member

Choose a reason for hiding this comment

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

So, why it isn't taking color directly from tailwind?

@@ -18,7 +18,7 @@ interface IGithubButtonProps extends IButtonDefaultProps {
* @param {string} props.className - The class name to be applied to the button.
*/
export default function GithubButton({
text = 'githubButton',
text = 'View on GitHub',
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be githubButton for the translation string to work

Copy link
Member

@anshgoyalevil anshgoyalevil left a comment

Choose a reason for hiding this comment

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

Kindly include the pages/[lang]/tools/cli.js file to migrate in this PR, if possible.

@anshgoyalevil
Copy link
Member

Some changes required on /tools page:

  • The Pricing Filter is not working. Selecting Commerical or Open-Souce doesn't show the respective items.

Some UI changes:

There needs to be a space after the:
image

Deployed This PR
image image
image image
image The left padding between indexes and code image

@Shurtu-gal
Copy link
Contributor Author

Sorry, my exams just ended today 🙏🏻. @akshatnema has solved the issue I suppose, or is there something I should be doing?

Copy link
Member

@anshgoyalevil anshgoyalevil left a comment

Choose a reason for hiding this comment

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

🚢

@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 1a0f970 into asyncapi:migrate-ts Apr 27, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants