-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 🎸 chaingpt demo * refactor: 💡 move chainGPT to src/theme; upgrade to 0.1.1 * ci: 🎡 update chaingpt-component * feat: 🎸 chaingpt/api/chat -> /api/chaingpt
- Loading branch information
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
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,8 @@ | ||
.chainGPTContainer { | ||
position: fixed; | ||
right: 18px; | ||
bottom: 18px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: end; | ||
} |
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,16 @@ | ||
import React from "react"; | ||
import 'chaingpt-component/dist/index.css'; | ||
import styles from "./index.module.css"; | ||
import {ChatBoxButton} from 'chaingpt-component'; | ||
|
||
export default function ChainGPT(): JSX.Element { | ||
return ( | ||
<> | ||
<div className={styles.chainGPTContainer}> | ||
<ChatBoxButton | ||
apiUri="/api/chaingpt" | ||
/> | ||
</div> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import React from "react"; | ||
import ThemedImage from "@theme/ThemedImage"; | ||
import useBaseUrl from "@docusaurus/useBaseUrl"; | ||
import ChainGPT from '@site/src/theme/ChainGPT'; | ||
|
||
/** | ||
* Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images | ||
*/ | ||
export default function Logo(): JSX.Element { | ||
return ( | ||
<ThemedImage | ||
alt="aelf" | ||
sources={{ | ||
light: useBaseUrl("/img/Logo.aelf.svg"), | ||
dark: useBaseUrl("/img/Logo.aelf.white.svg"), | ||
}} | ||
/> | ||
<> | ||
<ThemedImage | ||
alt="aelf" | ||
sources={{ | ||
light: useBaseUrl("/img/Logo.aelf.svg"), | ||
dark: useBaseUrl("/img/Logo.aelf.white.svg"), | ||
}} | ||
/> | ||
<div> | ||
<ChainGPT /> | ||
</div> | ||
</> | ||
); | ||
} |