Widgetastic的Patternfly4小部件库。
项目描述
widgetastic.patternfly4
Patternfly v4(又称Next)组件库,适用于Widgetastic。
组件列表
警告 - https://www.patternfly.org/v4/components/alert
面包屑导航 - https://www.patternfly.org/v4/components/breadcrumb
按钮 - https://www.patternfly.org/v4/components/button
子弹图表 - https://www.patternfly.org/v4/charts/bullet-chart
月历 - https://www.patternfly.org/v4/components/calendar-month
卡片 - https://www.patternfly.org/v4/components/card
标签组 - https://www.patternfly.org/v4/components/chip-group
剪贴板复制 - https://www.patternfly.org/v4/components/clipboard-copy
上下文选择器 - https://www.patternfly.org/v4/components/context-selector
描述列表 - https://www.patternfly.org/v4/components/description-list
甜甜圈图表 - https://www.patternfly.org/v4/charts/donut-chart
双重列表选择器 - https://www.patternfly.org/v4/components/dual-list-selector
抽屉 - https://www.patternfly.org/v4/components/drawer
下拉菜单 - https://www.patternfly.org/v4/components/dropdown
表单选择 - https://www.patternfly.org/v4/components/form-select
折线图 - https://www.patternfly.org/v4/charts/line-chart
菜单 - https://www.patternfly.org/v4/components/menu
模态框 - https://www.patternfly.org/v4/components/modal
导航 - https://www.patternfly.org/v4/components/navigation
选项菜单 - https://www.patternfly.org/v4/components/options-menu
分页 - https://www.patternfly.org/v4/components/pagination
饼图 - https://www.patternfly.org/v4/charts/pie-chart
弹出框 - https://www.patternfly.org/v4/components/popover
进度条 - https://www.patternfly.org/v4/components/progress
单选按钮 - https://www.patternfly.org/v4/components/radio
选择框 - https://www.patternfly.org/v4/components/select
滑块 - https://www.patternfly.org/v4/components/slider
开关 - https://www.patternfly.org/v4/components/switch
表格 - https://www.patternfly.org/v4/components/table
标签页 - https://www.patternfly.org/v4/components/tabs
标题 - https://www.patternfly.org/v4/components/title
贡献指南
# create a virtual environment
python3 -m venv /path/to/your/virtualenv/wt.pf4
source /path/to/your/virtualenv/wt.pf4/bin/activate
# update pip and its friends
pip install -U pip setuptools wheel
# clone the repo
git clone https://github.com/RedHatQE/widgetastic.patternfly4.git
# install pre-commit
cd widgetastic.patternfly4
# install the package in editable mode
pip install -e .[dev]
pre-commit install
测试
该库包含针对Patternfly React 文档进行的 selenium 测试。它还配置为在页面发布新版本时运行测试。
测试将从一个官方的 selenium 镜像中启动一个容器 - selenium/standalone-{chrome/firefox}。我们可以通过 vnc https://127.0.0.1:7900
检查本地运行情况。
注意:测试使用 podman
来管理容器。请在运行之前安装它。
可以并行运行测试以加快执行速度。请确保已安装 xdist python 插件。
使用 -n
键指定工作进程的数量
BROWSER=firefox pytest -v testing -n 4
项目详情
哈希值 for widgetastic.patternfly4-1.2.7-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 455bd6da864acf8cdd8203b062241e7410c37728a21ed89cc72abb02c0539260 |
|
MD5 | 169e156b72de01ddc9133e5ea115018f |
|
BLAKE2b-256 | e6dcd6bf7a31f8133d11ba535222d969ff1af8e8c0e3515fb5fdd513c0fb2195 |