Lete

Results 17 issues of Lete

如果你使用了Hexo-MengD.(萌典)主题的话 可以在下方留下你的博客地址哦~~~ 博客地址:https://mengd.js.org

## 推荐项目 - 项目地址:https://github.com/Lete114/cache-hash - 类别:JavaScript - 项目标题:为静态资源创建 hash 以中断http缓存 - 项目描述:众所周知,http缓存分为两种缓存,**协商缓存**和**强制缓存**,他们都有各自的优缺点(自行上网查阅),该项目就是为了解决**强制缓存**的短板,能够及时更新本地缓存 - 亮点:它采用 AST(Abstract Syntax Tree) 对html,css,js代码进行分析,为所有引用的资源生成hash,在目前看来并没有任何项目使用 AST 处理,大多都是使用正则表达式匹配,这可能会导致匹配错误 - 后续更新计划: 1. 新增对指定资源的过滤 2. 只对指定目录下的资源生成hash等

## 项目推荐 - 项目地址:[Lete114/Simple-Unique](https://github.com/Lete114/Simple-Unique) - 类别:JavaScript - 项目后续更新计划: - 项目描述: - 必写:用于生成随机唯一字符串 ID - 推荐理由:对于小项目来说,体积特别小(180~ Byte),对于大型项目来说,速度非常快🚀,它和[HelloGitHub73期](https://github.com/521xueweihan/HelloGitHub/blob/ea47e621ac2954590708064330ffaadab8bb5572/content/73/HelloGitHub73.md#javascript-%E9%A1%B9%E7%9B%AE)的[nanoid](https://hellogithub.com/periodical/statistics/click/?target=https://github.com/ai/nanoid)类似,但是效率是nanoid的7倍,生成1千万个不重复的唯一ID,Simple-Unique只需约4秒,而nanoid则需要约27秒 - 示例代码: ```js const unique = require('simple-unique') const arr1 = [unique(), unique()] const arr2...

JavaScript 项目

**Summary** **What kind of change does this PR introduce?** (check at least one) - [ ] Bugfix - [ ] Feature - [ ] Code style update - [ ]...

我之前提交的 #137 close按钮悬浮有问题,当时没注意到此问题,最近我登陆时发现登陆页面不居中的问题 ![image](https://user-images.githubusercontent.com/48512251/117112383-90842100-adbb-11eb-8e7a-f720ddd431f0.png) ![image](https://user-images.githubusercontent.com/48512251/117113282-d4c3f100-adbc-11eb-9fb0-e3126bb48145.png) 添加`left: 100%;`移除`float: right;` ```css .tk-admin-close { position: sticky; display: block; /* float: right; */ top: 0; right: 0; left: 100%; width: 1rem; height: 1rem; padding:...

bug

如题,管理面板的评论搜索类别字体颜色bug ![image](https://user-images.githubusercontent.com/48512251/111498950-66c85980-877d-11eb-8fd3-795800363967.png) 调整后,建议设置居中,如下图,请尽快修复 ![image](https://user-images.githubusercontent.com/48512251/111499756-3af9a380-877e-11eb-9c05-51c5007afe2f.png)

bug

Because Hexo officially recommends that articles without titles need to be handled: [hexo-theme-unit-test](https://github.com/hexojs/hexo-theme-unit-test/blob/master/source/_posts/no-title.md)

## 推荐项目 - 项目地址:https://github.com/CreateWheel/mini-nrm - 类别:JavaScript - 项目标题:超轻量的 npm 镜像管理器 - 项目描述:能够方便的在各个镜像之间来回却换,特别是国内每次执行 `npm install` 时安装特别慢,如今你可以使用 `mini-nrm` 快速切换镜像安装项目依赖,比如切换至 `tencent` 等国内镜像 - 亮点: - - “零”依赖 - - 苗条 - - 完整的...

JavaScript 项目