dumi icon indicating copy to clipboard operation
dumi copied to clipboard

feat: support demo.frontmatter.mobile

Open CJY0208 opened this issue 2 years ago • 3 comments

🤔 这个变动的性质是?/ What is the nature of this change?

  • [x] 新特性提交 / New feature

🔗 相关 Issue / Related Issue

💡 需求背景和解决方案 / Background or solution

通过在 demo.FrontMatter 中增加 mobile 属性来控制不同 previewer block 对 theme-mobile 的启用情况

related: #876、#531

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English support demo.FrontMatter.mobile
🇨🇳 Chinese 支持 demo.FrontMatter.mobile

CJY0208 avatar Sep 13 '21 13:09 CJY0208

🎊 PR Preview has been successfully built and deployed to https://dumi-preview-pr-877.surge.sh

github-actions[bot] avatar Sep 13 '21 13:09 github-actions[bot]

🎊 PR Mobile Preview has been successfully built and deployed to https://dumi-mobile-preview-pr-877.surge.sh

github-actions[bot] avatar Sep 13 '21 13:09 github-actions[bot]

Codecov Report

Merging #877 (142cc88) into master (cdd9635) will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #877      +/-   ##
==========================================
+ Coverage   94.67%   94.69%   +0.02%     
==========================================
  Files         112      112              
  Lines        2608     2618      +10     
  Branches      861      865       +4     
==========================================
+ Hits         2469     2479      +10     
  Misses        135      135              
  Partials        4        4              
Impacted Files Coverage Δ
packages/theme-mobile/src/builtins/Previewer.tsx 97.50% <100.00%> (+0.83%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cdd9635...142cc88. Read the comment docs.

codecov[bot] avatar Sep 13 '21 13:09 codecov[bot]

❤️ 感谢贡献,dumi v1 不再更新,PR 将会关闭;dumi v2 已发布,欢迎继续参与 dumi 的建设,https://d.umijs.org/

PeachScript avatar Jan 28 '23 09:01 PeachScript