liiinder / ramverk1-module
ramverk1课程的天气模块。
v1.0.4
2019-12-07 03:46 UTC
Requires
- php: ^7.2
- anax/commons: ^2.0.0@alpha
- anax/configure: ^2.0.0@alpha
- anax/controller: ^2.0.0@beta
- anax/di: ^2.0.0@alpha
- anax/page: ^2.0.0@beta
- anax/request: ^2.0.0@beta
- anax/response: ^2.0.0@beta
- anax/url: ^2.0.0@alpha
- anax/view: ^2.0.0@beta
- opencage/geocode: ^2.1
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-11 04:31:29 UTC
README
ANAX框架的天气模块
使用composer安装 composer require liiinder/ramverk1-module
手动安装
然后您需要将这些特定文件夹从模块移动到框架中
rsync -av vendor/liiinder/ramverk1-module/view/ view/
rsync -av vendor/liiinder/ramverk1-module/config/ config/
rsync -av vendor/liiinder/ramverk1-module/content/ content/
它们包含模块的视图文件
最后一步,将 api_sample.php 重命名为 api.php,并将 [xxxxx] 替换为您的 API 密钥。
脚手架安装
bash vendor/liiinder/ramverk1-module/.anax/scaffold/postprocess.d/300_weathermodule.bash
如果是全新安装,您需要在 config/api.php 中添加您的 API 密钥。
天气地图
天气地图的高度被硬编码为 500px,但很容易在 view/weather/main.php 第 24 行 中更改。只需删除样式属性,并将地图 id 与您喜欢的样式添加到项目的 CSS 中。