Skip to content

Commit

Permalink
feat: mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jul 19, 2023
1 parent c84c699 commit 12cc66b
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/pages/mermaid/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,13 @@ const gitChart = `gitGraph
commit
commit
`

const diagramChart = `
---
title: Animal example
---
classDiagram
note "From Duck till Zebra"
Animal <|-- Duck
note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
`

const Mermaid = () => (
<>
<FixTabPanel>
<h2>Meraid: http://https://mermaid.js.org/</h2>

<h3>演示1:Git Diagram </h3>
<MermaidHooks chart={gitChart} />

<h3>演示2:Class Diagram</h3>
<MermaidHooks chart={diagramChart} />
</FixTabPanel>
</>
)
Expand Down

1 comment on commit 12cc66b

@vercel
Copy link

@vercel vercel bot commented on 12cc66b Jul 19, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

pro-react-admin – ./

pro-react-admin.vercel.app
pro-react-admin-git-main-wkylin.vercel.app
pro-react-admin-wkylin.vercel.app

Please sign in to comment.