Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev 1.7.0: donate button, optimized mobile experience and more #399

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

LolipopJ
Copy link
Collaborator

是时候遵循通用 x.y.z 版本号规则,让 v1.7.0 来到了(尽管未能全部实现最初规划的功能)。接下来的 Archer 主题发布版本号规则可参考:

  • 小型更新和修补递增 z 版本号
  • 中、大型功能性更新递增 y 版本号
  • 项目重构与不兼容性更新递增 x 版本号。

话不多说,更新的情报请看:

新特性 / Feature

  • 翻译的文章:允许配置文章 Front-matter,添加原文章的作者、名称和链接信息。(Footer 提供对翻译文章的支持 #265@Stark-X
  • 文章打赏:支持配置文章打赏信息;支持配置文章 Front-matter,指定文章启用或关闭打赏功能。目前仅支持桌面端,移动端的文章打赏功能正在开发中……(增加打赏 #131;参考 h5player for tampermonkey 作者的文章,请对打赏功能的收益做好一定的预期)
  • 打开侧边菜单和打赏弹窗时,将相应的按钮置为高亮状态。
  • 桌面端:允许通过 ESC 和点击遮盖层的方式关闭 Algolia 搜索弹窗。

修复 / Fix

样式 / Style

变更 / Change

其它 / Chore

Stark-X and others added 30 commits June 10, 2023 17:28
- 去除生成的 html 里多余的空行
- 因 node-sass 官方废弃,根据官网指引,改用 sass
- Lock file `package-lock.json` is removed.
- Script `replace-ejs-tag.js` is optimized.
- Trailing commas are added by default, due to `[email protected]`

Tested on Node.js v14.21.3
Distribute source files based on browser cache control mechanism to avoid unexpected behaviors.
And:
- avoid unexpected behaviors of CSS pseudo class :hover in mobile device
- make initScroll() a function
Also:
- Center profile link items in mobile device
Also:
- Add blur filter when popup is opening
Only support desktop currently.
- adjust chapter orders.
- remove writing enhancement chapter, due to the bad generic.
- optimize hide logic of donate button.
Set `<img loading="lazy"></img>` not works, so I remove them.

Upgrade version of fancybox.
@@ -3,6 +3,7 @@ node_modules
_config_.yml
_config__.yml
.jsbeautifyrc
package-lock.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package-lock.json等各种 lock 文件是为了保证所有人工构建项目时使用到的依赖版本是一致的,不能不提交到仓库的。 关联:#396

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

锁文件保留与否各有优劣,优势如您述,可以保证构建环境依赖版本的稳定。

去除的话依赖版本按照 package.json 的规范控制:

尽管有的依赖在 Minor 更新中出现不兼容的情况(例如 [email protected]),但总体可控。相信社区的力量,保持技术栈的迭代跟进。

对于必须要锁版本的依赖,也可以按照规范之三,去除版本前面的标识符号。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lock文件不应该删除

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

Successfully merging this pull request may close these issues.

None yet

3 participants