-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: migrated the whole template to react #207
base: master
Are you sure you want to change the base?
Conversation
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.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
@derberg Hey ! can you review the PR. |
Hey @derberg can you review the PR? |
sorry mate for delay, will look into it |
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.
sorry for late review 🙏🏼
|
||
// If there are no schemas, we expect to find an anonymous one embedded in a payload. If we do have schemas we assume we don't need this. | ||
// This will turn out to be a bug if we ever have a file with schemas, but which also has an anonymous schema embedded in an operation. | ||
if (hasSchema) { |
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.
is it not needed because of convertToFilename
implementation? why so?
or basically why template/payload.py
is no longer needed
@@ -0,0 +1,15 @@ | |||
const sanitizeFilename = require('sanitize-filename'); | |||
|
|||
function convertToFilename(string, options = { replacement: '-', maxLength: 255 }) { |
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.
why did you take this direction? did you face some issues while testing changes?
@@ -0,0 +1,52 @@ | |||
const _ = require('lodash'); |
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.
instead of partials people should rather opt in to use components
reference for reusable components - more natively common word in the context of react and react components concept
Description
As part of the template to migrate it to v3, I have completed the migration to react renderer engine
https://www.loom.com/share/b59f39be60be436ab7eac2f6e13bf56a?sid=cf9dae72-5816-442a-8ce9-6ee320767c8d
Related issue(s)
Part of #189