Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgoyalevil authored Mar 5, 2024
2 parents 17e4f3c + de480f2 commit d3e1d8d
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 124 deletions.
2 changes: 1 addition & 1 deletion components/navigation/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function NavBar({

<div className="flex flex-row items-center justify-content">
<SearchButton
className="flex items-center text-left space-x-2 p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"
className="flex items-center text-left space-x-2 p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out mr-2"
aria-label="Open Search"
>
<IconLoupe />
Expand Down
52 changes: 26 additions & 26 deletions config/tools-automated.json
Original file line number Diff line number Diff line change
Expand Up @@ -635,19 +635,15 @@
"description": "The following is a list of templates compatible with AsyncAPI Generator. You can use them to generate apps, clients or documentation from your AsyncAPI documents.",
"toolsList": [
{
"title": "Java Spring Template",
"description": "Java Spring template for the AsyncAPI Generator",
"title": "Node.js Multiprotocol Template",
"description": "This template generates a server using your AsyncAPI document. It supports multiple different protocols, like Kafka or MQTT. It is designed in the way that generated code is a library and with it's API you can start the server, send messages or register a middleware for listening incoming messages. Runtime message validation included.",
"links": {
"repoUrl": "https://github.com/asyncapi/java-spring-template"
"repoUrl": "https://github.com/asyncapi/nodejs-template"
},
"filters": {
"language": [
"javascript"
],
"language": "javascript",
"technology": [
"Springboot",
"Maven",
"Gradle"
"Node.js"
],
"categories": [
"generator-template"
Expand All @@ -657,15 +653,15 @@
}
},
{
"title": "HTML Template",
"description": "HTML template for AsyncAPI Generator. Use it to generate a static docs. It is using AsyncAPI React component under the hood.",
"title": "Node.js Websockets Template",
"description": "Node.js WebSockets template for the AsyncAPI Generator. It showcases how from a single AsyncAPI document you can generate a server and a client at the same time.",
"links": {
"repoUrl": "https://github.com/asyncapi/html-template"
"repoUrl": "https://github.com/asyncapi/nodejs-ws-template"
},
"filters": {
"language": "javascript",
"technology": [
"HTML"
"Node.js"
],
"categories": [
"generator-template"
Expand All @@ -675,15 +671,15 @@
}
},
{
"title": "Node.js Multiprotocol Template",
"description": "This template generates a server using your AsyncAPI document. It supports multiple different protocols, like Kafka or MQTT. It is designed in the way that generated code is a library and with it's API you can start the server, send messages or register a middleware for listening incoming messages. Runtime message validation included.",
"title": "HTML Template",
"description": "HTML template for AsyncAPI Generator. Use it to generate a static docs. It is using AsyncAPI React component under the hood.",
"links": {
"repoUrl": "https://github.com/asyncapi/nodejs-template"
"repoUrl": "https://github.com/asyncapi/html-template"
},
"filters": {
"language": "javascript",
"technology": [
"Node.js"
"HTML"
],
"categories": [
"generator-template"
Expand All @@ -693,17 +689,19 @@
}
},
{
"title": "Java Template",
"description": "Java template for the AsyncAPI Generator",
"title": "Java Spring Template",
"description": "Java Spring template for the AsyncAPI Generator",
"links": {
"repoUrl": "https://github.com/asyncapi/java-template"
"repoUrl": "https://github.com/asyncapi/java-spring-template"
},
"filters": {
"language": [
"javascript"
],
"technology": [
"Java"
"Springboot",
"Maven",
"Gradle"
],
"categories": [
"generator-template"
Expand All @@ -713,15 +711,17 @@
}
},
{
"title": "Node.js Websockets Template",
"description": "Node.js WebSockets template for the AsyncAPI Generator. It showcases how from a single AsyncAPI document you can generate a server and a client at the same time.",
"title": "Java Template",
"description": "Java template for the AsyncAPI Generator",
"links": {
"repoUrl": "https://github.com/asyncapi/nodejs-ws-template"
"repoUrl": "https://github.com/asyncapi/java-template"
},
"filters": {
"language": "javascript",
"language": [
"javascript"
],
"technology": [
"Node.js"
"Java"
],
"categories": [
"generator-template"
Expand Down
10 changes: 7 additions & 3 deletions cypress/test/scripts/dashboard/build-dashboard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ describe('getLabel function', () => {
describe('monthsSince function', () => {
// Define some sample dates and expected results
const today = new Date();
const oneMonthAgo = new Date(today.getFullYear(), today.getMonth() - 1, today.getDate());
const twoMonthsAgo = new Date(today.getFullYear(), today.getMonth() - 2, today.getDate());
const threeMonthsAgo = new Date(today.getFullYear(), today.getMonth() - 3, today.getDate());

// number of miliseconds in a month
const month = 30 * 24 * 60 * 60 * 1000;

const oneMonthAgo = today - month;
const twoMonthsAgo = today - 2 * month;
const threeMonthsAgo = today - 3 * month;

// Write the test cases
it('should return 0 for the same date', () => {
Expand Down
124 changes: 57 additions & 67 deletions dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"resourcePath": "/asyncapi/website/pull/2331",
"repo": "asyncapi/website",
"labels": [],
"score": 27.28158593117958
"score": 27.56876051992884
},
{
"id": "PR_kwDOBW5R_c5fbyLb",
Expand All @@ -31,7 +31,7 @@
"resourcePath": "/asyncapi/community/pull/897",
"repo": "asyncapi/community",
"labels": [],
"score": 20.38939580119737
"score": 21.538094156194408
},
{
"id": "I_kwDOBW5R_c5J6qNe",
Expand All @@ -53,6 +53,26 @@
],
"score": 20.102221212448114
},
{
"id": "I_kwDODou01c5AqLB8",
"isPR": false,
"isAssigned": false,
"title": "\"Open with Studio\" button for Markdown files.",
"author": "smoya",
"resourcePath": "/asyncapi/studio/issues/218",
"repo": "asyncapi/studio",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "keep-open",
"color": "f9dd4b"
}
],
"score": 19.527872034949596
},
{
"id": "I_kwDOFDnrNc51TZDT",
"isPR": false,
Expand Down Expand Up @@ -102,18 +122,23 @@
"color": "84b6eb"
}
],
"score": 16.08177696995849
"score": 16.65612614745701
},
{
"id": "PR_kwDODou01c5Iv4zR",
"isPR": true,
"id": "I_kwDODou01c5E_LV0",
"isPR": false,
"isAssigned": false,
"title": "docs: added table of contents and introduction document for Studio tool",
"author": "Jagrutiti",
"resourcePath": "/asyncapi/studio/pull/553",
"title": "Create onboarding for features of Studio",
"author": "mcturco",
"resourcePath": "/asyncapi/studio/issues/284",
"repo": "asyncapi/studio",
"labels": [],
"score": 14.933078614961456
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
}
],
"score": 16.36895155870775
},
{
"id": "PR_kwDOKp3ICM5g9w8f",
Expand All @@ -124,7 +149,18 @@
"resourcePath": "/asyncapi/learning-paths/pull/9",
"repo": "asyncapi/learning-paths",
"labels": [],
"score": 14.645904026212197
"score": 15.220253203710714
},
{
"id": "PR_kwDODou01c5Iv4zR",
"isPR": true,
"isAssigned": false,
"title": "docs: added table of contents and introduction document for Studio tool",
"author": "Jagrutiti",
"resourcePath": "/asyncapi/studio/pull/553",
"repo": "asyncapi/studio",
"labels": [],
"score": 14.933078614961456
},
{
"id": "I_kwDODou01c5BZZv-",
Expand All @@ -144,49 +180,22 @@
"color": "f9dd4b"
}
],
"score": 13.78438025996442
},
{
"id": "PR_kwDODou01c5YJ7kV",
"isPR": true,
"isAssigned": false,
"title": "Add Form component",
"author": "KhudaDad414",
"resourcePath": "/asyncapi/studio/pull/773",
"repo": "asyncapi/studio",
"labels": [
{
"name": "autoupdate",
"color": "ededed"
}
],
"score": 13.78438025996442
},
{
"id": "I_kwDOFLhIt85bebeO",
"isPR": false,
"isAssigned": false,
"title": "Meeting Banners Storage",
"author": "AceTheCreator",
"resourcePath": "/asyncapi/community/issues/568",
"repo": "asyncapi/community",
"labels": [],
"score": 12.635681904967385
"score": 14.645904026212197
}
],
"goodFirstIssues": [
{
"id": "I_kwDODyzcIc6AItqs",
"title": "bug fix in bug template 😃 ",
"isAssigned": false,
"resourcePath": "/asyncapi/.github/issues/271",
"repo": "asyncapi/.github",
"author": "derberg",
"id": "I_kwDODou01c6Aib3a",
"title": "Disable the generators that are not yet supported in V3",
"isAssigned": true,
"resourcePath": "/asyncapi/studio/issues/979",
"repo": "asyncapi/studio",
"author": "Amzani",
"area": "Unknown",
"labels": [
{
"name": "bug",
"color": "d73a4a"
"name": "enhancement",
"color": "a2eeef"
}
]
},
Expand Down Expand Up @@ -224,25 +233,6 @@
}
]
},
{
"id": "I_kwDOE8Qh3858hQCM",
"title": "Add OpenAPI 3.1 support",
"isAssigned": false,
"resourcePath": "/asyncapi/modelina/issues/1749",
"repo": "asyncapi/modelina",
"author": "jonaslagoni",
"area": "typescript",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "openapi",
"color": "960C58"
}
]
},
{
"id": "I_kwDOCVQpZM58chHc",
"title": "Workflows failing because of some leftovers scripts",
Expand Down Expand Up @@ -461,7 +451,7 @@
{
"id": "I_kwDODou01c531nlO",
"title": "Misalignment of Code Editor Highlight Box",
"isAssigned": false,
"isAssigned": true,
"resourcePath": "/asyncapi/studio/issues/861",
"repo": "asyncapi/studio",
"author": "princerajpoot20",
Expand Down
4 changes: 2 additions & 2 deletions pages/[lang]/tools/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function CliPage() {
className="block mt-2 md:mt-0 md:inline-block w-full sm:w-auto"
href="https://www.github.com/asyncapi/cli"
/>
<Button text={t("cli.docsButton")} href="/docs/tools/cli" className="ml-2 block mt-2 md:mt-0 md:inline-block w-full sm:w-auto" />
<Button text={t("cli.docsButton")} href="/docs/tools/cli" className="md:ml-2 block mt-2 md:mt-0 md:inline-block w-full sm:w-auto" />
</div>
);
}
Expand Down Expand Up @@ -156,7 +156,7 @@ export default function CliPage() {
</div>

<div>
<Heading level="h3" typeStyle="heading-sm-semibold" className="text-center md:text-left">
<Heading level="h3" typeStyle="heading-sm-semibold" className="mb-4 text-center md:text-left">
{t("cli.exampleTitle")}
</Heading>
<div className="space-y-5">
Expand Down
Loading

0 comments on commit d3e1d8d

Please sign in to comment.