Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@ekingdom/roulette
Advanced tools
This package is supplied with dist
and lib
folders included.
lib
directory contains raw ES-6 components. You can copy/paste them into your application and use directly.dist
is the compiled CommonJS module.NOTE: It is not backwards compatible with its predecessor.
Notable changes:
70-90%
to 5-10%
)layout
phase from animationA complete example of implementation could be found in src/app
dir-ry.
The code is pretty thoroughly covered with comments.
npm i -S @ekingdom/roulette
import { Roulette, RouletteItem, RouletteStack, AudioProvider } from '@ekingdom/roulette'
.scss
files are also available):import '@ekingdom/roulette/dist/css/roulette-core-styles.min.css'
@ekingdom/roulette/dist/audio
:import roll400Sound from '@ekingdom/roulette/dist/audio/roll400.wav'
import startSound from '@ekingdom/roulette/dist/audio/start.wav'
import finishSound from '@ekingdom/roulette/dist/audio/finish.wav'
src/app
for details):...
render() {
return (
<AudioProvider
audioEnabled={true}
audioLoop={roll400Sound}
audioStart={startSound}
audioFinish={finishSound}
volume={1}
>
<RouletteStack
run={this.state.run}
poolMultiplier={4}
onComplete={this.handleComplete}
loading={this.state.loading}
afterStopLootStyles={{
transform: 'scale(1.1)',
backgroundColor: 'yellow',
}}
>
{
createArray(this.state.count).map((el, i) => (
<Roulette
key={this.state[`RID_${i}`]}
rouletteID={i}
itemID={this.state[`LID_${i}`]}
>
{
caseBox.caseItems.map(item => (
<RouletteItem key={item.id} itemID={item.id}>
<div className="roulette-item-img">
<img src={item.img} alt="" />
</div>
<span>{item.id}</span>
</RouletteItem>
))
}
</Roulette>
))
}
</RouletteStack>
</AudioProvider>
)
}
The documentation complied with jsdoc is available from within docs
directory
git clone https://github.com/skinholdings/roulette.git
cd roulette/docs
open index.html
Via pull requests
To build the package locally (shall generate a file heathmont-roulette-1.1.2.tgz
in root dir-ry):
npm run pack
Go to your project, and install the package:
cd ../path/to/my/project
npm i -S ../path/to/roulette/heathmont-roulette-1.1.2.tgz
FAQs
Roulette react component for lootbox websites
The npm package @ekingdom/roulette receives a total of 1 weekly downloads. As such, @ekingdom/roulette popularity was classified as not popular.
We found that @ekingdom/roulette demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.