Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
@peerboard/core
Advanced tools
See more detailed tutorial in our community
yarn add @peerboard/core
or
npm install @peerboard/core
// ...
import { createForum } from '@peerboard/core';
class Forum extends React.Component {
containerRef = React.createRef();
constructor(props) {
super(props);
this.jwtToken = null;
this.prefix = 'community';
this.state = {
authReady: false,
forumReady: false,
error: null,
};
}
componentDidMount() {
http.generateBearerToken((document.location.pathname || "/").replace('/' + this.prefix, '')).then((result) => {
this.jwtToken = result.token;
this.setState({
authReady: true,
});
createForum(413170950, this.containerRef.current, {
prefix: this.prefix,
jwtToken: this.jwtToken,
minHeight: "900px",
onReady: () => {
this.setState({
forumReady: true,
});
},
onFail: () => {
this.setState({
error: "Failed to load forum",
});
},
onTitleChanged: (title) => window.document.title = "Community: " + title,
onPathChanged: (location) => {
// Browser counts iframe state changes.
this.props.history.replace(location);
},
onCustomProfile: (url) => {
this.props.history.push(url.replace(window.location.origin, ''));
},
});
})
}
renderForum() {
return <div>
{!(this.state.authReady && this.state.forumReady) && 'Loading...'}
<div ref={this.containerRef} style={{
visibility: this.state.forumReady ? 'visible' : 'hidden',
}}>
</div>
</div>
}
render() {
return (
<div>
{this.state.error ? (this.state.error) : (this.renderForum())}
</div>
);
}
}
// ...
FAQs
peerboard.com frontend components
The npm package @peerboard/core receives a total of 15 weekly downloads. As such, @peerboard/core popularity was classified as not popular.
We found that @peerboard/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.