跳转到主要内容

Widgetastic的Patternfly4小部件库。

项目描述

widgetastic.patternfly4

Build status codecov PyPI version Documentation status

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

项目详情


发行历史 发行通知 | RSS订阅

下载文件

下载适合您平台的文件。如果您不确定选择哪一个,请了解有关安装包的更多信息。

源分布

此版本没有可用的源分布文件。请参阅有关生成分布存档的教程。

构建分布

widgetastic.patternfly4-1.2.7-py3-none-any.whl (54.8 kB 查看哈希值)

上传时间 Python 3

支持者

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF 赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面