osln / weather
显示天气的模块
V1.1.1
2019-12-19 18:41 UTC
Requires
- anax/anax-ramverk1-me: ^1.0.0
- anax/commons: ^2.0
Requires (Dev)
- anax/anax-lite: ^1.0
- anax/page: v2.0.0-beta.1
- phpunit/phpunit: ^7
README
anax框架的天气模块
composer require osln/weather
通过运行后处理脚本来安装此模块
bash /vendor/osln/weather/.anax/scaffold/postprocces.d/350_weather.bash
手动安装
站在anax框架的根目录下。
1:复制配置文件
rsync -av vendor/osln/weather/config/di ./config/di
rsync -av vendor/osln/weather/config/router ./config/router
2:复制视图文件
rsync -av vendor/osln/weather/view/ view/osln/weather
3:安装leaflet
cd $PWD/vendor/osln/weather/ | npm install
4:复制leaflet的CSS文件和图像
rsync -av vendor/osln/weather/node_modules/leaflet/dist/leaflet.css htdocs/css/
rsync -av vendor/osln/weather/node_modules/leaflet/dist/images/ htdocs/css/images/