Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat: Read news from My JSON Server #240

Merged
merged 5 commits into from Nov 4, 2020
Merged

feat: Read news from My JSON Server #240

merged 5 commits into from Nov 4, 2020

Conversation

afc163
Copy link
Contributor

@afc163 afc163 commented Nov 2, 2020

AntV 系列官网首页有一个推广链接列表,目前依赖各站点手动维护,需要重新部署才能生效,批量修改的效率很低。

image

现在通过 https://my-json-server.typicode.com/ 服务建了一个免费简单的 Headless CMS,数据放在单独的仓库 https://github.com/antvis/antvis-sites-data ,后续需要修改直接在线修改 db.json 即可,提交即生效。

AntV 系列站点若未定义 Banner 的 notifications,会默认取这里的数据,否则走自定义的数据。这样统一修改 AntV 所有站点的通知内容会很方便。

可用数据接口请查看:https://my-json-server.typicode.com/antvis/antvis-sites-data

  • AntV 系列官网升级到最新版本的主题。
  • 若无必要,去掉各个官网内自己加的 notifications,统一读公用的版本。

antd 也有类似的需求:ant-design/ant-design#27389

@github-actions
Copy link

github-actions bot commented Nov 2, 2020

🎊 PR Preview 100b548 has been successfully built and deployed to https://antvis-gatsby-theme-antv-preview-pr-240.surge.sh

🕐 Build time: 349.882s

🤖 By surge-preview

@gatsby-cloud
Copy link

gatsby-cloud bot commented Nov 2, 2020

Gatsby Cloud Build Report

gatsby-theme-antv

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 3m

Performance

Lighthouse report

Metric Score
Performance 🔶 18
Accessibility 🔶 75
Best Practices 💚 93
SEO 🔶 75

🔗 View full report

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants