rbetree
|
0c6b3a68e1
|
refactor: 重构侧边栏布局,新增独立子菜单面板
Fixes: #36
|
2026-01-17 02:01:50 +08:00 |
|
rbetree
|
1049566937
|
feat(theme): 新增主题模式配置,支持跟随系统
- 新增 site.theme.mode 配置(dark/light/system)
- 支持 prefers-color-scheme 系统主题跟随
- 用户手动切换后停止跟随并持久化
ref #36
|
2026-01-17 00:59:05 +08:00 |
|
rbetree
|
d19c4da51d
|
fix(icons): faviconV2 加入 drop_404_icon=true 参数避免404占位图以触发回退
- helpers:faviconV2Url / faviconFallbackUrl 统一追加 drop_404_icon=true
- runtime:新增站点的 faviconV2 com/cn URL 同步追加该参数
- docs:更新模板与 helper 文档示例
- test:新增用例防止参数回归
|
2026-01-16 22:52:39 +08:00 |
|
rbetree
|
8f81b430b9
|
feat(extension): 缩减配置注入并输出 menav-config.json
- 构建:生成 dist/menav-config.json 供扩展按需加载
- 页面:menav-config-data 仅注入扩展元信息(configUrl/pageTemplates/icons/homePageId/allowedSchemes)
- 运行时:模板判定优先 pageTemplates,兼容旧 cfg.data[pageId].template
- 文档:更新 README 的扩展接口说明
|
2026-01-07 19:35:20 +08:00 |
|
rbetree
|
efd1683e2b
|
feat(router): 支持?page=深链接&错误路由回退
- 导航/子菜单 href 统一为 ?page=<id>[#<slug>],支持复制/新开直达
- 启动时解析 ?page= 并同步导航高亮;子菜单跳转可组合 hash 定位分类
- 输入无效 pageId 时自动纠正 URL 到首页(replaceState,避免“内容回退但地址栏仍错误”)
- 构建生成 dist/404.html:将 /<id>(或 /<repo>/<id>)回跳到 /?page=<id> 并保留 hash
|
2026-01-07 17:29:48 +08:00 |
|
rbetree
|
8a1b6a2d90
|
refactor: 去除顶部进度条&恢复滚动条
|
2026-01-04 22:44:16 +08:00 |
|
rbetree
|
48609b86de
|
feat: 分类锚点&质量检查&依赖治理
- 分类生成唯一 slug,模板/子菜单/滚动/扩展定位统一使用 data-id
- lint 覆盖 src/scripts/test,CI 增量格式检查
- 清理冗余依赖,升级 esbuild,overrides 修复审计项
- 补充单测并更新修复清单
|
2026-01-04 20:39:42 +08:00 |
|
rbetree
|
3d9363a550
|
fix: 重命名 favicon helper 避免与 sites.faviconUrl 同名冲突
将 Handlebars helper `faviconUrl(url)` 更名为 `faviconV2Url(url)`,解决自定义字段 `sites[].faviconUrl`
在模板中被误解析为 helper(无参调用)导致的渲染崩溃。
- helper:faviconUrl -> faviconV2Url
- 模板:site-card 中调用同步更新
BREAKING CHANGE:
自定义模板如使用 `{{faviconUrl url}}` 生成 faviconV2 地址,需要改为 `{{faviconV2Url url}}`。
Fixes: #32
|
2026-01-04 19:18:14 +08:00 |
|
rbetree
|
9929f60170
|
fix: 加固链接/图标安全与版本一致性;sync-articles 对齐 best-effort
- 模板与运行时统一做 URL scheme 白名单校验(不安全降级为 #),并清洗 icon class;分类标题/新增分类改用 DOM API 避免 innerHTML 注入
- sync-articles 主入口异常不再返回非 0 退出码,避免阻断 build/deploy
- window.MeNav.version 改为从 meta menav-version/配置自动读取,避免写死版本
- 文档/配置:新增 security.allowedSchemes 配置说明
|
2026-01-04 18:24:01 +08:00 |
|
rbetree
|
4cc10dd2b2
|
feat: 减少渲染阻塞并压缩静态资源
- 移除首页副标题固定 Quicksand 外链字体,改为跟随全站字体变量
- 字体配置新增 fonts.preload(preload+onload 非阻塞加载,含 noscript 回退)
- Font Awesome CSS 改为 preload+onload 非阻塞加载,降低 render-blocking
- 构建阶段使用 esbuild 压缩 dist 的 style/script/pinyin-match(无 esbuild 时回退为直接复制)
- 同步更新文档说明与更新日志
|
2026-01-04 17:03:16 +08:00 |
|
rbetree
|
2bebefbfe8
|
feat: 添加站点卡片悬停提示功能
- 为所有站点卡片添加 data-tooltip 属性,包含完整的标题和描述信息
- tooltip 显示逻辑:
* 鼠标悬停在整个卡片上即可触发(触发区域大,操作自然)
* 跟随鼠标移动,实时更新位置
* 智能边界检测,避免 tooltip 超出视口范围
* 鼠标移出时自动隐藏
- 解决文本截断问题,用户可通过悬停查看完整内容
实现:
- 模板层:在 site-card.hbs 中为卡片添加 data-tooltip 属性
- 交互层:在 script.js 中实现 tooltip 的创建、显示、移动和隐藏逻辑
- 样式层:通过 CSS 类控制 tooltip 的可见性和位置
Issue: #31
|
2026-01-03 18:03:50 +08:00 |
|
rbetree
|
3473aaebd7
|
feat: 新增 icons.region 配置项&修改 favicon 加载超时机制&修复去除硬编码
- 新增 icons.region: com | cn 配置项,允许用户选择优先使用国内源或国外源
- com: 优先 gstatic.com,失败回退 gstatic.cn
- cn: 优先 gstatic.cn,失败回退 gstatic.com
- 修改 favicon 加载超时判断机制
- 自定义 faviconUrl: 5秒超时后显示回退图标
- 自动 favicon: 每次尝试3秒超时,最多等待6秒
- 更新配置文档和默认配置示例
- 去除卡片模板中的url硬编码
Issue: #31
|
2026-01-03 17:03:45 +08:00 |
|
rbetree
|
87b4cea290
|
feat: 重构搜索框样式
|
2026-01-02 23:02:02 +08:00 |
|
rbetree
|
0e151156df
|
feat: 优化各层级折叠与标题样式
- 优化完善各层级下的折叠样式;桌面端隐藏,悬浮动画等
- 优化各层级标题;固定标题前的图标宽度,对齐标题
|
2026-01-02 20:16:18 +08:00 |
|
rbetree
|
30d50ebcd7
|
fix: 修复外部资源、图标模式与嵌套交互(#30)
Fixes: https://github.com/rbetree/menav/issues/30
- Font Awesome:bootcdn→Cloudflare cdnjs
- favicon:gstatic `.com` 失败自动回退 `.cn`
- `icons.mode`:修复 `site.yml` 配置未生效(提升到顶层)
- 站点级图标覆盖:支持 `faviconUrl` / `forceIconMode`(优先级:`faviconUrl` > `forceIconMode` > `icons.mode`)
- 折叠交互:恢复二级分组折叠按钮(桌面端悬停显示)
- 新标签页:递归补齐多级 `sites.external` 默认值
|
2026-01-02 18:09:20 +08:00 |
|
rbetree
|
4eea833f20
|
feat: 调整字体
|
2025-12-28 19:28:04 +08:00 |
|
rbetree
|
387cd2492e
|
feat: 页面模板差异化改进 + 配置优化 + 兼容清理 (#29)
- 首页判定:navigation 第一项
- 模板:page/projects/articles/bookmarks/search-results
- bookmarks:update: YYYY-MM-DD | from: git|mtime
- articles:RSS 聚合只读条目 + 分类聚合 + 影子写回结构
- projects:repo 卡片 + 可选热力图 + 自动抓取元信息
- 工作流:构建前 sync + schedule 定时刷新
- 移除兼容:config.yml/config.yaml、navigation.yml、home 特例
- 迁移说明:config/update-instructions.md
|
2025-12-28 00:22:54 +08:00 |
|
rbetree
|
704e895773
|
feat: 首页由 navigation 首项决定
- 移除 navigation.active 配置项,默认页以 navigation[0] 为准(生成端/前端一致)
- 注入 homePageId;首页渲染用 profile.title/profile.subtitle 覆盖 title/subtitle
- 模板按 homePageId 切换首页/非首页标题 DOM 与 data-editable,避免样式错位
- 更新默认配置与文档;书签导入不再写入 active 字段
- 新增/更新单测覆盖首页规则与 profile 覆盖
BREAKING CHANGE: 不再支持 navigation[].active;通过调整 navigation 顺序设置默认页/首页
|
2025-12-26 11:04:40 +08:00 |
|
rbetree
|
ba78c8e564
|
feat: 微调ui布局
|
2025-12-23 02:04:55 +08:00 |
|
rbetree
|
03b743e337
|
refactor: 修改社交链接样式布局
|
2025-12-22 22:28:28 +08:00 |
|
rbetree
|
7d44930b59
|
feat: 移除首页顶部欢迎区的 description
|
2025-12-22 20:34:04 +08:00 |
|
rbetree
|
2b366ae7ca
|
feat: 优化调整卡片样式布局
- 站点卡片改为紧凑布局并统一动态渲染
- 搜索框玻璃拟态与 Ctrl/Cmd+K 聚焦
|
2025-12-22 19:56:03 +08:00 |
|
rbetree
|
670e73e93c
|
fix: 补齐书签 subgroups 渲染并对齐 README
- 修复 subgroups 生成但不展示的问题(模板渲染 + 前端结构导出)
- 更新 README:配置示例/完全替换策略/多层级说明与 helper 文档,减少重复说明
|
2025-12-22 02:16:01 +08:00 |
|
rbetree
|
2daba411ba
|
docs: 更新重构各readme文件
|
2025-12-22 01:45:58 +08:00 |
|
rbetree
|
cc35e3e7c9
|
refactor: 修改项目logo
|
2025-11-09 21:50:31 +08:00 |
|
rbetree
|
c27464c452
|
docs: 更新readme文档
|
2025-11-09 21:49:35 +08:00 |
|
rbetree
|
3ae40b23d5
|
feat: 优化书签转换逻辑和分类嵌套结构
|
2025-11-01 00:19:30 +08:00 |
|
rbetree
|
886bc464d1
|
feat: 新增'分类展开/收起'按钮
|
2025-10-27 15:01:17 +08:00 |
|
rbetree
|
ce209d7346
|
feat: 去除条件判断,为所有结构添加下拉栏指示
|
2025-10-25 22:55:43 +08:00 |
|
coolzr
|
da1e3fedd6
|
docs: 更新文档
|
2025-10-24 01:28:37 +08:00 |
|
coolzr
|
ad3cba549b
|
feat: 所有页面支持1到4层级的嵌套结构
|
2025-10-24 00:40:43 +08:00 |
|
coolzr
|
8d4d76184d
|
fix: 加载中图标修复
|
2025-10-23 23:07:42 +08:00 |
|
coolzr
|
a403cf8f0d
|
feat: 优化样式
|
2025-10-19 20:55:38 +08:00 |
|
coolzr
|
139c21ebe4
|
feat: 优化搜索框样式
|
2025-10-19 01:49:15 +08:00 |
|
coolzr
|
9e2a8b0da4
|
feat(readme): 更新文档和配置注释
|
2025-10-19 01:12:44 +08:00 |
|
coolzr
|
aa264cc727
|
feat(icons): 添加favicon模式,自动匹配图标
- 新增配置 icons.mode(manual | favicon),默认 favicon,未配置场景下自动生效
- 模板调用 t3.gstatic.com/faviconV2 获取站点图标;加载中显示旋转占位,失败回退至 Font Awesome 图标
- 新增 ifHttpUrl 与 encodeURIComponent,提升模板安全性与可读性
- 搜索索引优先读取 .icon-fallback,保证 favicon 模式下图标类名一致
- 样式新增 .favicon-icon 与 hover 效果,维持卡片观感一致性
|
2025-10-18 23:50:53 +08:00 |
|
coolzr
|
354a069cd6
|
Merge branch 'main' of https://github.com/rbetree/menav
|
2025-10-14 19:34:51 +08:00 |
|
coolzr
|
6447abef3a
|
feat: 完善MeNav浏览器扩展API规范实现
|
2025-10-14 19:34:47 +08:00 |
|
nsnans
|
338d0304d1
|
feat(search): 引入拼音搜索
* add pinyin search
* style(highlight): keep theme-aware background
- restore theme-aware .highlight with --highlight-bg
- add highlight vars for light/dark
chore: load pinyin lib before script.js
- ensure pinyin-match.js loads before script.js to avoid runtime dependency issues
docs: add third-party notice for pinyin-match
- add placeholder notice; replace with upstream license after verification
---------
Co-authored-by: neo <neo@example.com>
Co-authored-by: Maintainer (PR Edit) <maintainer@local>
|
2025-10-14 03:49:17 +08:00 |
|
coolzr
|
e5fc71aee8
|
feat: 去除多余的data-editable属性
|
2025-08-02 18:08:29 +08:00 |
|
Zuoling Rong
|
4c7a5e6a60
|
feat: 完善MeNav浏览器扩展API规范实现
|
2025-07-06 23:20:50 +08:00 |
|
Zuoling Rong
|
9a70864790
|
fix: 替换Font Awesome CDN
|
2025-06-26 19:07:02 +08:00 |
|
Zuoling Rong
|
c72f7fd9f5
|
feat: 实现MeNav浏览器扩展支持接口
为支持浏览器扩展的HTML替换方案,对原仓库进行以下修改:
- 在generator.js中添加配置数据序列化和嵌入功能
- 在default.hbs中添加配置数据存储元素
- 在site-card.hbs和category.hbs中添加数据属性标识符
- 在script.js中添加全局MeNav对象和API方法
|
2025-05-22 22:58:02 +08:00 |
|
Zuoling Rong
|
47ab611501
|
feat(search): 添加搜索框切换搜索引擎提示
修改搜索框placeholder文本,增加"点击右侧图标可切换搜索引擎"提示
|
2025-05-09 17:29:42 +08:00 |
|
Zuoling Rong
|
4a5f44bc71
|
fix: 解决重构后自定义页面问题
1. 添加模板回退机制,当找不到指定模板时自动使用page.hbs通用模板
2. 支持在页面配置中通过template字段指定使用的模板文件
3. 更新配置文件和文档,添加template字段使用说明
Closes #10
|
2025-05-09 16:14:15 +08:00 |
|
Zuoling Rong
|
fb32f06f19
|
feat(search): 集成多搜索引擎功能
添加Google、Bing、百度外部搜索引擎集成,支持用户通过搜索框右侧图标选择搜索引擎
|
2025-05-09 15:06:59 +08:00 |
|
Zuoling Rong
|
c8174012a2
|
fix: 修复卡片description处理逻辑
- 书签导入时保持description为空
- 所有页面站点卡片的空description显示为URL
|
2025-05-09 13:35:44 +08:00 |
|
Zuoling Rong
|
6924ce1c51
|
docs: 添加或修改各目录README文档
|
2025-05-09 01:09:55 +08:00 |
|
Zuoling Rong
|
4c3c5d23fa
|
refactor: 优化重构后的系统并添加文档
|
2025-05-09 00:14:28 +08:00 |
|
Zuoling Rong
|
9ea6cb1f09
|
refactor: 完成Handlebars模板组件化
|
2025-05-09 00:13:50 +08:00 |
|