magicsunday / webtrees-fan-chart
此模块为[webtrees](https://www.webtrees.net)家谱应用程序提供SVG祖先扇形图。
2.7.0
2024-03-20 10:44 UTC
Requires
- ext-dom: *
- ext-json: *
- fisharebest/webtrees: ~2.1.0
- magicsunday/webtrees-module-installer-plugin: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- overtrue/phplint: ^3.4 || ^9.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.0 || ^10.0 || ^11.0
- rector/rector: ^1.0
This package is auto-updated.
Last update: 2024-09-20 12:00:27 UTC
README
扇形图
此模块为webtrees家谱应用程序提供SVG祖先扇形图。
安装
需要Webtrees 2.2。
有几种安装模块的方法。使用composer的方法适合经验丰富的用户,作为开发者,您也可以使用git获取存储库的副本。然而,对于所有其他用户,建议手动安装。
手动安装
要手动安装模块,请执行以下步骤
- 下载模块的最新版本。
- 将下载的文件上传到您的Web服务器。
- 将包解压缩到您的
modules_v4
目录。 - 将文件夹重命名为
webtrees-fan-chart
如果一切顺利,您应该在modules_v4
目录中看到包含解压内容的子目录webtrees-fan-chart
。
现在需要在Webtrees中激活此模块。
配置
前往您的安装的控制面板(管理部分),滚动到模块
部分。单击图表
(在子部分家谱中)。启用扇形图
自定义模块(可选禁用已安装的原始扇形图模块)并保存您的设置。
用法
在图表菜单中,您将找到一个名为扇形图
的新链接。使用提供的配置选项根据您的需求调整图表布局。
右键单击单个项目将打开一个工具提示,提供当前个人的更多详细信息。
使用Composer
通常,要使用composer安装,请在Webtrees安装根目录中从命令行运行以下命令。
composer require magicsunday/webtrees-fan-chart --update-no-dev
模块将自动安装到Webtrees安装的modules_v4
目录。
要删除模块,运行
composer remove magicsunday/webtrees-fan-chart --update-no-dev
最新版本
如果您正在使用Webtrees的开发版本(主分支),您可能还需要安装模块的开发版本。为此,请使用以下命令
composer require magicsunday/webtrees-fan-chart:dev-master --update-no-dev
使用Git
如果您使用git
,您也可以通过调用将当前主分支直接克隆到您的modules_v4
目录中
git clone https://github.com/magicsunday/webtrees-fan-chart.git modules_v4/webtrees-fan-chart
开发
要构建/更新JavaScript,请运行以下命令
nvm install node npm install npm run prepare
运行测试
composer update composer ci:test composer ci:test:php:phpstan composer ci:test:php:lint composer ci:test:php:rector