forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'asyncapi:master' into master
- Loading branch information
Showing
32 changed files
with
9,288 additions
and
328 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'schyma/dist/esm/style.css'; | ||
|
||
import type { JSONSchema7Object } from 'json-schema'; | ||
import React from 'react'; | ||
import Schyma from 'schyma'; | ||
|
||
import schema from '../../config/3.0.0.json'; | ||
|
||
const typeSchema = schema as unknown as JSONSchema7Object; | ||
|
||
/** | ||
* @description This component renders the spec explorer. | ||
*/ | ||
function Visualizer() { | ||
return ( | ||
<div> | ||
<Schyma | ||
title='AsyncAPI Specification' | ||
description="The AsyncAPI Specification defines a set of fields that can be used in an AsyncAPI document to describe an application's API. The document may reference other files for additional details or shared fields, but it is typically a single, primary document that encapsulates the API description." | ||
schema={typeSchema} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default Visualizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* @description Icons for asyncapi website | ||
*/ | ||
export default function IconMenuCenter({ className = '' }) { | ||
return ( | ||
<svg fill='#000000' width='800px' height='800px' viewBox='-5 -7 24 24' className={className}> | ||
<path d='M3 0h8a1 1 0 0 1 0 2H3a1 1 0 1 1 0-2zm0 8h8a1 1 0 0 1 0 2H3a1 1 0 1 1 0-2zM1 4h12a1 1 0 0 1 0 2H1a1 1 0 1 1 0-2z' /> | ||
</svg> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @description Icons for asyncapi website | ||
*/ | ||
export default function IconExplorer({ className = '' }) { | ||
return ( | ||
<svg | ||
fill='#000000' | ||
className={className} | ||
width='35px' | ||
height='35px' | ||
viewBox='-2.4 -2.4 28.80 28.80' | ||
stroke='#000000' | ||
strokeWidth='0.1' | ||
transform='matrix(1, 0, 0, 1, 0, 0)rotate(0)' | ||
> | ||
<g id='SVGRepo_bgCarrier' strokeWidth='0'></g> | ||
<g | ||
id='SVGRepo_tracerCarrier' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
stroke='#CCCCCC' | ||
strokeWidth='0.384' | ||
></g> | ||
<path d='M6,6H4A1,1,0,0,1,4,4H6V2A1,1,0,0,1,8,2V4h2a1,1,0,0,1,0,2H8V8A1,1,0,0,1,6,8Zm15,4v4a1,1,0,0,1-1,1H16a1,1,0,0,1-1-1V13H8v6h7V18a1,1,0,0,1,1-1h4a1,1,0,0,1,1,1v4a1,1,0,0,1-1,1H16a1,1,0,0,1-1-1V21H7a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1h8V10a1,1,0,0,1,1-1h4A1,1,0,0,1,21,10ZM17,21h2V19H17Zm2-10H17v2h2Z'></path> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.