-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Added Giscus discussions and reactions (#1579)
* added giscus package * added giscus component * removed reaction component and it's style * removed the link to profile page in dropdown * removed unused props * delete profiles pages * cleaned up apiService.js * remove unused var * fixed repo name * added strict option to giscus * fixed repo name * added strict option to giscus * Revert "removed the link to profile page in dropdown" This reverts commit d292331. * Revert "removed unused props" This reverts commit cdc20db. * Revert "delete profiles pages" This reverts commit a942df6. * Revert "cleaned up apiService.js" This reverts commit 78d5628. * Revert "remove unused var" This reverts commit eac9235.
- Loading branch information
1 parent
646f76f
commit 079efd6
Showing
9 changed files
with
120 additions
and
291 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
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,32 @@ | ||
import Giscus from '@giscus/react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const Discussion = (props) => { | ||
return ( | ||
<div className="discussion-box"> | ||
<Giscus | ||
id="comments" | ||
repo="SSWConsulting/SSW.Rules.Content" | ||
repoId={process.env.GISCUS_REPO_ID} | ||
categoryId={process.env.GISCUS_CATEGORY_ID} | ||
mapping="specific" | ||
strict="1" | ||
term={props.ruleGuid} | ||
reactionsEnabled="1" | ||
emitMetadata="0" | ||
inputPosition="bottom" | ||
theme="light" | ||
lang="en" | ||
loading="lazy" | ||
async | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Discussion; | ||
|
||
Discussion.propTypes = { | ||
ruleGuid: PropTypes.string.isRequired, | ||
}; |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.