1.2.1 • Published 4 years ago
commento-react-material-ui v1.2.1
commento-react-material-ui
Warning ⚠ : This package is not ready to be used in production, also the current layout of the application is synchronized for a special internal usecase. Hence, it won't work with a regular commento installation.
Future Releases: The plan is to make this package work cohesively with a regular commento installtion as described on Commento.io
This package has been derived from
COMMENTO-REACT npm package.
Your project must use material-ui to use this as a dependency.
A react based frontend for Commento
Visit Commento.io to know more about how to setup the backend.
Install
npm i commento-react-material-ui
Usage
import React from 'react'
import { CommnetoAuthProvider, CommentsPage } from 'commento-react-material-ui'
import 'commento-react-material-ui/dist/commento-style.css'
const dummyAuthToken = process.env.REACT_APP_AUTH_TOKEN // your commento auth token
const App = () => {
return (
<div>
<CommnetoAuthProvider
sso={true}
commentoOrigin={process.env.REACT_APP_COMMENTO_ORIGIN as string} // your commento origin URL
ssoToken={dummyAuthToken}
>
<CommentsPage
pageId={
'your-awesome-commento-pageid'
}
pageType={'popup'}
height={600}
width={400}
commentSystem={'organization'}>
<CommentsCountLib
pageId={`your-awesome-page-id`} // to see the count of comments for a particular pag
>
{(
count,
countLoaded,
isAuthenticated,
isAuthenticating
) => (
<div style={{marginTop: '200px'}}>
{count}
{countLoaded}
{isAuthenticating}
{isAuthenticated}
</div>
)}
</CommentsCountLib>
</CommnetoAuthProvider>
</div>
)
}
License
MIT © rbrishabh
1.2.1
4 years ago
1.2.0
4 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1-alpha
5 years ago
1.0.58-beta
5 years ago
1.0.57-beta
5 years ago
1.0.56-beta
5 years ago
1.0.55-beta
5 years ago
1.0.54-beta
5 years ago
1.0.53-beta
5 years ago
1.0.52-beta
5 years ago
1.0.51-beta
5 years ago
1.0.50-beta
5 years ago
1.0.41-beta
5 years ago
1.0.40-beta
5 years ago
1.0.32-beta
5 years ago
1.0.31-beta
5 years ago
1.0.30-beta
5 years ago
1.0.29-beta
5 years ago
1.0.28-beta
5 years ago
1.0.27-beta
5 years ago
1.0.25-beta
5 years ago
1.0.26-beta
5 years ago
1.0.23-beta
5 years ago
1.0.22-beta
5 years ago
1.0.21-beta
5 years ago
1.0.20-beta
5 years ago
1.0.19-beta
5 years ago
1.0.18-beta
5 years ago
1.0.17-beta
5 years ago
1.0.16-beta
5 years ago
1.0.15-beta
5 years ago
1.0.14-beta
5 years ago
1.0.12-beta
5 years ago
1.0.13-beta
5 years ago
1.0.11-beta
5 years ago
1.0.10-beta
5 years ago
1.0.9-beta
5 years ago
1.0.8-beta
5 years ago
1.0.7-beta
5 years ago
1.0.6-beta
5 years ago
1.0.5-beta
5 years ago
1.0.3-beta
5 years ago
1.0.4-beta
5 years ago
1.0.2-beta
5 years ago
1.0.1-beta
5 years ago
1.0.0-beta
5 years ago
1.2.4-beta
5 years ago