
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
dialog-react
Advanced tools
Toast
Confirm
ConfirmAuto
Prompt
Notification
npm install --save-dev dialog-react style-loader css-loader
// add loader
{
test: /\.css$/,
loader: "style-loader!css-loader"
}
import {Toast, Confirm, Prompt, ConfirmAuto, Notificaion} from "dialog-react"
many or one more
<Toast
content="测试用例"
show={this.state.showDialog}
long={1}
close={() => this.setState({showDialog: false})} />
<Confirm
content="测试用例"
confirm="好的"
show={this.state.showDialog}
close={() => this.setState({showDialog: false})} />
<Prompt
content="测试用例"
confirm="好的"
other="重新输入"
show={this.state.showDialog}
fun={() => this.setState({showDialog: false})}
close={() => this.setState({showDialog: false})} />
<ConfirmAuto
content="测试用例"
show={this.state.showDialog}
close={() => this.setState({showDialog: false})} />
<Notification
content={this.state.content}
fun={_funClick}
funName="下一条"
show={this.state.showDialog}
close={() => this.setState({showDialog: false})}/>
FAQs
toast confirm prompt confirmAuto
The npm package dialog-react receives a total of 1 weekly downloads. As such, dialog-react popularity was classified as not popular.
We found that dialog-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.