Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
guide-eazy
Advanced tools
Guide-Eazy 是一个用于实现引导教程的强大库,支持动画、异步请求和全局使用,具有极高的灵活性和完美的类型提示。它还支持 JSX 定制,使得创建引导步骤变得简单直观。
使用 npm 或 yarn 安装:
npm install guide-eazy
# 或者
yarn add guide-eazy
以下是一个简单的使用示例,展示了如何使用 Guide-Eazy 创建引导教程:
import { GuideCoreProvider } from 'guide-eazy';
import { Card, Typography, Stack, Button } from '@mui/material';
import Iconify from '@iconify/react';
<GuideCoreProvider guideIns={guideIns} steps={{
showProgress: true,
steps: [
{
id: 'start',
customPopRender({ api }) {
return (
<Card sx={{ position: 'relative', bottom: 50, padding: '12px' }} onClick={() => {
dpChain('appStore').setMenuOpen(true);
api.setGuideIndex(1);
}}>
<Typography>Welcome to scaling</Typography>
<Stack direction={'row'} justifyContent={'end'}>
<Button endIcon={<Iconify icon={'material-symbols:arrow-right-alt-rounded'} />}>
Next
</Button>
</Stack>
</Card>
);
},
},
// 其他步骤...
],
}}>
自定义步骤 每个步骤都可以通过 customPopRender 方法进行自定义渲染,并可以在 beforeWork 中执行异步操作。
贡献 欢迎贡献代码!请提交 Pull Request 或报告问题。
许可证 Guide-Eazy 使用 MIT 许可证。
通过 Guide-Eazy,您可以轻松创建引导教程,提升用户体验。希望这对您有帮助!如果有其他问题,请随时告诉我。
FAQs
Guide for React
We found that guide-eazy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.