Skip to content

Commit

Permalink
Merge branch 'master' into dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Tusharjain123 authored Jul 25, 2023
2 parents 3039ec3 + e017546 commit 410171e
Show file tree
Hide file tree
Showing 219 changed files with 10,322 additions and 3,788 deletions.
65 changes: 65 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,71 @@
"contributions": [
"doc"
]
},
{
"login": "Florence-Njeri",
"name": "Florence Njeri",
"avatar_url": "https://avatars.githubusercontent.com/u/40742916?v=4",
"profile": "https://florence-njeri.github.io/NjeriPortfolio",
"contributions": [
"code"
]
},
{
"login": "anshgoyalevil",
"name": "Ansh Goyal",
"avatar_url": "https://avatars.githubusercontent.com/u/94157520?v=4",
"profile": "https://ansh.live",
"contributions": [
"code",
"review"
]
},
{
"login": "SumantxD",
"name": "Sumant.xD",
"avatar_url": "https://avatars.githubusercontent.com/u/65810424?v=4",
"profile": "https://github.com/SumantxD",
"contributions": [
"infra"
]
},
{
"login": "Shriansh2002",
"name": "Shriansh Agarwal",
"avatar_url": "https://avatars.githubusercontent.com/u/41548480?v=4",
"profile": "http://shrianshagarwal.in",
"contributions": [
"code"
]
},
{
"login": "reachaadrika",
"name": "Aadrika Bhargava",
"avatar_url": "https://avatars.githubusercontent.com/u/64789514?v=4",
"profile": "https://github.com/reachaadrika",
"contributions": [
"code"
]
},
{
"login": "vishvamsinh28",
"name": "Vishvamsinh Vaghela",
"avatar_url": "https://avatars.githubusercontent.com/u/90895835?v=4",
"profile": "https://github.com/vishvamsinh28",
"contributions": [
"code"
]
},
{
"login": "AnimeshKumar923",
"name": "Animesh Kumar",
"avatar_url": "https://avatars.githubusercontent.com/u/99868037?v=4",
"profile": "https://github.com/AnimeshKumar923",
"contributions": [
"doc",
"review"
]
}
],
"contributorsPerLine": 7,
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!
At the moment the following comments are supported in pull requests:

- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
- \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
})

create_help_comment_issue:
Expand All @@ -51,10 +51,10 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!
At the moment the following comments are supported in issues:

- `/good-first-issue {js | ts | java | go | docs | design | ci-cd} ` or `/gfi {js | ts | java | go | docs | design | ci-cd} ` - label an issue as a `good first issue`.
example: `/gfi js` or `/good-first-issue ci-cd`
})
- \`/good-first-issue {js | ts | java | go | docs | design | ci-cd}\` or \`/gfi {js | ts | java | go | docs | design | ci-cd}\` - label an issue as a \`good first issue\`.
example: \`/gfi js\` or \`/good-first-issue ci-cd\``
})
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
)
id: should_run
name: Should Run
run: echo "::set-output name=shouldrun::true"
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
- if: steps.should_run.outputs.shouldrun == 'true'
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**
4 changes: 2 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
# For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/.

# The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file.
* @derberg @mcturco @akshatnema @magicmatatjahu @asyncapi-bot-eve
* @derberg @akshatnema @magicmatatjahu @mayaleeeee @asyncapi-bot-eve

# All .md files
*.md @alequetzalli @asyncapi-bot-eve

pages/blog/*.md @thulieblack @alequetzalli
pages/community/*.md @thulieblack @alequetzalli

README.md @alequetzalli @derberg @mcturco @akshatnema @magicmatatjahu @asyncapi-bot-eve
README.md @alequetzalli @derberg @akshatnema @magicmatatjahu @mayaleeeee @asyncapi-bot-eve
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-45-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-52-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

[![Netlify Status](https://api.netlify.com/api/v1/badges/b2137407-b765-46c4-95b5-a72d9b1592ab/deploy-status)](https://app.netlify.com/sites/asyncapi-website/deploys)
Expand Down Expand Up @@ -207,6 +207,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="https://linkfree.eddiehub.io/rukundob451"><img src="https://avatars.githubusercontent.com/u/67878128?v=4?s=100" width="100px;" alt="Benjamin Rukundo"/><br /><sub><b>Benjamin Rukundo</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=rukundob451" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tthijm"><img src="https://avatars.githubusercontent.com/u/59415467?v=4?s=100" width="100px;" alt="tthijm"/><br /><sub><b>tthijm</b></sub></a><br /><a href="#infra-tthijm" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://cynthiapeter.com"><img src="https://avatars.githubusercontent.com/u/33583060?v=4?s=100" width="100px;" alt="Cynthia Peter"/><br /><sub><b>Cynthia Peter</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=CynthiaPeter" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://florence-njeri.github.io/NjeriPortfolio"><img src="https://avatars.githubusercontent.com/u/40742916?v=4?s=100" width="100px;" alt="Florence Njeri"/><br /><sub><b>Florence Njeri</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=Florence-Njeri" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://ansh.live"><img src="https://avatars.githubusercontent.com/u/94157520?v=4?s=100" width="100px;" alt="Ansh Goyal"/><br /><sub><b>Ansh Goyal</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=anshgoyalevil" title="Code">💻</a> <a href="https://github.com/asyncapi/website/pulls?q=is%3Apr+reviewed-by%3Aanshgoyalevil" title="Reviewed Pull Requests">👀</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SumantxD"><img src="https://avatars.githubusercontent.com/u/65810424?v=4?s=100" width="100px;" alt="Sumant.xD"/><br /><sub><b>Sumant.xD</b></sub></a><br /><a href="#infra-SumantxD" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://shrianshagarwal.in"><img src="https://avatars.githubusercontent.com/u/41548480?v=4?s=100" width="100px;" alt="Shriansh Agarwal"/><br /><sub><b>Shriansh Agarwal</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=Shriansh2002" title="Code">💻</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/reachaadrika"><img src="https://avatars.githubusercontent.com/u/64789514?v=4?s=100" width="100px;" alt="Aadrika Bhargava"/><br /><sub><b>Aadrika Bhargava</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=reachaadrika" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vishvamsinh28"><img src="https://avatars.githubusercontent.com/u/90895835?v=4?s=100" width="100px;" alt="Vishvamsinh Vaghela"/><br /><sub><b>Vishvamsinh Vaghela</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=vishvamsinh28" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/AnimeshKumar923"><img src="https://avatars.githubusercontent.com/u/99868037?v=4?s=100" width="100px;" alt="Animesh Kumar"/><br /><sub><b>Animesh Kumar</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=AnimeshKumar923" title="Documentation">📖</a> <a href="https://github.com/asyncapi/website/pulls?q=is%3Apr+reviewed-by%3AAnimeshKumar923" title="Reviewed Pull Requests">👀</a></td>
</tr>
</tbody>
</table>
Expand Down
23 changes: 23 additions & 0 deletions assets/docs/fragments/how-to-contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## How to contribute to AsyncAPI Docs

Did you know that you can contribute Docs to AsyncAPI as well? Code isn't the only way to contribute to OSS; Dev Docs are a **huge** help that benefit the entire OSS ecosystem. At AsyncAPI, we value Doc contributions as much as every other type of contribution. ❤️

To get started as a Docs contributor:

1. Familiarize yourself with our [project's Contribution Guide](https://github.com/asyncapi/community/blob/master/CONTRIBUTING.md) and our [Code of Conduct](https://github.com/asyncapi/.github/blob/master/CODE_OF_CONDUCT.md).

2. Head over to our Docs GH Board [here](https://github.com/orgs/asyncapi/projects/12).

3. Pick an issue you would like to contribute to and leave a comment introducing yourself. This is also the perfect place to leave any questions you may have on how to get started.

4. If there is no work done in that Docs issue yet, feel free to open a PR and get started!

### Tag me in your AsyncAPI Doc PRs

Do you have a documentation contributor question and you're wondering how to tag me into a GitHub discussion or PR? Never fear!

Tag me in your AsyncAPI Doc PRs or [GitHub Discussions](https://github.com/asyncapi/community/discussions/categories/docs) via my GitHub handle, [`/alequetzalli`](https://github.com/alequetzalli) 🐙.

### Talk to me

I want and need to listen 👂🏽 to all of your perspectives and ideas. Please don't be shy to express to me what you think needs to be documented first or what is missing. 📝 There's a lot of good work ahead, but **you** determine _our content roadmap_ because the OSS community needs should always come first.✨
12 changes: 3 additions & 9 deletions components/AlgoliaSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DOCS_INDEX_NAME = 'asyncapi-docs';
const APP_ID = 'Z621OGRI9Y';
const API_KEY = '5a4122ae46ce865146d23d3530595d38';

const SearchContext = createContext()
const SearchContext = createContext({});

export default function AlgoliaSearch({ children }) {
const [isOpen, setIsOpen] = useState(false);
Expand Down Expand Up @@ -47,14 +47,7 @@ export default function AlgoliaSearch({ children }) {
<Head>
<link rel="preconnect" href={`https://${APP_ID}-dsn.algolia.net`} crossOrigin="true" />
</Head>
<SearchContext.Provider
value={{
isOpen,
onOpen,
onClose,
onInput,
}}
>
<SearchContext.Provider value={{ isOpen, onOpen, onClose, onInput }}>
{children}
</SearchContext.Provider>
{isOpen && <AlgoliaModal initialQuery={initialQuery} onClose={onClose} indexName={indexName} />}
Expand Down Expand Up @@ -169,6 +162,7 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }) {
onOpen(indexName);
}}
{...props}
data-testid="Search-Button"
>
{typeof children === 'function' ? children({ actionKey }) : children}
</button>
Expand Down
30 changes: 20 additions & 10 deletions components/AuthorAvatars.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import React from 'react'
export default function AuthorAvatars({ authors = [] }) {
return (
authors.map((author, index) => {
let avatar = <img
key={index}
title={author.name}
className={`${index > 0 ? `absolute left-${index * 7} top-0` : `relative mr-${(authors.length - 1) * 7}`} z-${(authors.length - 1 - index) * 10} h-10 w-10 border-2 border-white rounded-full object-cover hover:z-50`}
src={author.photo}
loading="lazy"
/>
let avatar = (
<img
key={index}
title={author.name}
className={`${index > 0 ? `absolute left-${index * 7} top-0` : `relative mr-${(authors.length - 1) * 7}`} z-${(authors.length - 1 - index) * 10} h-10 w-10 border-2 border-white rounded-full object-cover hover:z-50`}
src={author.photo}
loading="lazy"
data-testid="AuthorAvatars-img"
/>
);

return author.link ? <a alt={author.name} href={author.link}>{avatar}</a> : {avatar}
return author.link ? (
<a alt={author.name} href={author.link} data-testid="AuthorAvatars-link">
{avatar}
</a>
) : (
<React.Fragment key={index}>{avatar}</React.Fragment>
);
})
)
}
);
}
4 changes: 2 additions & 2 deletions components/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Calendar({ className = '', size, text="text-left" }) {
</Heading>
<ul>
{getEvents(eventsData, size).map((event, index) => (
<li key={index}>
<li key={index} data-testid="Calendar-list-item">
<a
href={event.url}
className="flex-grow flex sm:items-center items-start flex-col sm:flex-row mb-1 mt-2"
Expand All @@ -40,7 +40,7 @@ export default function Calendar({ className = '', size, text="text-left" }) {
))}
</ul>
{eventsExist ?
<div className='pt-4'>
<div className='pt-4' data-testid="Calendar-button">
<GoogleCalendarButton
href={CALENDAR_URL}
text="View Calendar"
Expand Down
2 changes: 1 addition & 1 deletion components/Caption.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function Caption ({children}) {
return (
<p className="text-center text-xs text-gray-500 mt-2">
<p className="text-center text-xs text-gray-500 mt-2" data-testid="Caption-paragraph">
{children}
</p>
)
Expand Down
4 changes: 2 additions & 2 deletions components/Feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Feedback(className = '') {
<div className='block mx-auto w-fit'>
<img src='/img/illustrations/icons/icon-check.svg' className='md:w-14' />
</div>
<div className='text-center mx-auto text-lg mt-4'>
<div className='text-center mx-auto text-lg mt-4' data-testid="Feedback-div">
Thank you for your feedback!
</div>
<div className='text-center mx-auto text-md text-gray-500'>
Expand All @@ -71,7 +71,7 @@ export default function Feedback(className = '') {
<div className='block mx-auto w-fit'>
<img src='/img/illustrations/icons/icon-x.svg' className='md:w-14' />
</div>
<div className='text-center mx-auto text-lg mt-4'>
<div className='text-center mx-auto text-lg mt-4' data-testid="Feedback-error">
Oops! Something went wrong...
</div>
<div className='text-center mx-auto text-md text-gray-500'>
Expand Down
4 changes: 2 additions & 2 deletions components/Figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default function Figure ({ src, caption, widthClass, className, float, al
}

return (
<figure className={`${className} ${floatClassNames} ${widthClass || 'w-full'}`}>
<figure className={`${className} ${floatClassNames} ${widthClass || 'w-full'}`} data-testid="Figure-div">
<div className='flex flex-col'>
<img className={`${imageClass}`} src={src} alt={alt} />
<img className={`${imageClass}`} src={src} alt={alt} data-testid="Figure-img" />
{ caption && (<Caption>{caption}</Caption>) }
</div>
</figure>
Expand Down
Loading

0 comments on commit 410171e

Please sign in to comment.