Commit Graph
26 Commits
Author SHA1 Message Date
Libin YANG 2404ebcaa8 chore(skills): track Claude Code skills via git symlinks (#1955)
Replace the post-clone junction linker with per-skill git
symlinks so clones no longer need a setup script.
2026-09-10 19:22:37 +08:00
Libin YANGandCursor 6ca214b7c3 fix(web): editor search & persistence fixes, keyboard a11y, cleanups (#1896)
* fix(web): fix post search misses and history restore timestamp

- extract search logic to lib/search-posts with a 250ms debounce; count matches via String.match (avoids stale-lastIndex misses of a reused global RegExp across posts) in a single scan for results and totals together
- render search results and history version entries as real buttons; make the history list width responsive on narrow screens
- bump post.updateDatetime on history restore so restored content is picked up by update-time sorting and cloud sync

Co-authored-by: Cursor <cursoragent@cursor.com>

* perf(web): replace deep post watches with signature watchers

- watch per-post signatures (id/title/content length/updateDatetime ms/parent/history length/collapsed) instead of deep-traversing every post on each editor commit; the old deep watch compared identical object identities and never persisted edits
- collect dirty post ids in a set and flush once per debounce window, so rapid edits across different posts are all saved (shared single-argument debounce used to drop earlier posts)
- inject heading anchor ids during render instead of assigning output twice, avoiding a second preview DOM rebuild

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: dedupe escapeHtml/delay helpers and remove dead code

- share one escapeHtml in apps/api share pages and reuse @md/core's in the formula dialog
- centralize the delay() helper used by preview boot, PNG export and the editor header
- drop unused createTable/checkImage utilities and a stale debug comment

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(web): improve keyboard accessibility across editor UI

- make drag-drop upload areas, syntax help cards, JSON preview expanders and the footer line/col indicator keyboard-operable (real buttons or role/tabindex + Enter/Space)
- reveal hover-only controls (post item menu, table cell delete buttons) on keyboard focus via focus-visible
- add missing aria-labels to icon-only buttons, role=tablist to the CSS editor tabs, role=checkbox to multi-select, and move the collapse toggle out of the post row button to avoid nested interactives

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(core): add render tests for footnote, toc, ruby, markup, slider and alert extensions

Co-authored-by: Cursor <cursoragent@cursor.com>

* ci: unify web type-check with build and include @md/shared in tests

- run the package's own vue-tsc --build --force for type-check:web so CI catches the same errors as pnpm web build
- add @md/shared tests to the root test script

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): commit generated auto-import/components dts for type-check job

vue-tsc --build --force builds the referenced tsconfig.app.json, which includes auto-imports.d.ts and components.d.ts. Both were gitignored, so the CI type-check job (no prior vite build to regenerate them) failed with TS2304 for every auto-imported global (ref, useDark, useToggle, ...).

The previous vue-tsc --noEmit ran on the solution-style root tsconfig (files: [] + references) and checked zero files, which is why CI was green while real errors slipped through.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(web): guard zero-width search matches and clean up a11y semantics

- ignore zero-width regex matches when counting, highlighting and snippeting so empty-matching patterns (a*, ^, \b) neither match every post nor inflate counts to O(content length); replace skips zero-width positions and inserts the replacement literally
- give the multi-select checkbox an accessible name (new common.selectPost message)
- move the CSS tab more-actions button out of the role=tab element so each tab is a single focus stop

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 14:25:03 +08:00
Libin YANG fc1ab4e712 feat(sync): add Afdian Pro tier and hide sync UI until launch (#1655)
Integrate Afdian webhook and manual order activation for Pro cloud sync, add free/Pro rate limits and debounce tiers, and gate sync entry points via VITE_SYNC_UI_ENABLED.
2026-06-11 15:40:29 +08:00
Libin YANG 330ebe7d95 docs: add cross-agent skills infrastructure (#1644) 2026-06-09 12:45:28 +08:00
Libin YANG c32fbd6899 fix: add allow builds (#1548) 2026-05-17 21:19:31 +08:00
Libin YANG 9d87aa9e30 chore: remove cdn for mermaid lib (#1427) 2026-04-02 07:54:01 +08:00
Libin YANG f67af24423 chore: remove old plugin (#1426) 2026-04-01 20:46:27 +08:00
Libin YANG cb6d619f1f feat: build plugin (#1092) 2025-10-20 23:23:54 +08:00
Libin YANG f6efebb48e chore: build utools plugin (#1037) 2025-10-01 12:25:50 +08:00
YangFong 38731cf4f2 feat: add PWA support with vite-plugin-pwa (#965) 2025-09-08 07:04:12 +08:00
YangFong 6c5ac78110 chore: delete duplicate items of .gitignore (#966) 2025-09-07 23:29:14 +08:00
dribble-njr 3fe7f451cd refactor: switch to pnpm monorepo (#895) 2025-08-22 09:12:52 +08:00
Honwhy Wang 365816970b feat: add new functions for mp image upload (#637) 2025-04-19 21:52:34 +08:00
Honwhy Wang 57829696dd feat: add support for wxt as to build chrome extension (#458) 2024-12-08 09:16:20 +08:00
Honwhy Wang 5ccdfd8b73 feat: use unplugin to minize element-plus size (#381)
close #380
2024-09-03 08:20:43 +08:00
YangFong fc85253489 refactor: upgrade to vue3 (#309) 2024-08-18 19:49:16 +08:00
yanglbme 1483ebaf79 build: release v1.5.8
- 支持 minio 图床,移除 Gitee 图床 #131  #146
- 支持批量上传图片 #144
- 新增 docker 镜像部署 #doocs/docker-md
- 修复 prettier, cheerio 等依赖包版本问题 #140
- 其他小部分优化
2022-05-25 22:31:54 +08:00
xw 6202ad2ff0 style: Unified repository code style (#135) 2022-02-28 19:09:39 +08:00
xw 4f296d6145 fix: Handle command argument path boundary cases on some systems (#128)
* fix: Handle command argument path boundary cases on some systems #126

* feat: Add service startup detection function

* feat: upgrade dependencies

* feat: Add version display function
2022-02-12 21:00:34 +08:00
miaogaolin fe4d6b0324 feat: support custom code block theme (#112)
close #75
2021-12-03 14:35:25 +08:00
xw 378acb7ad4 feat: support upload to local directory (#95) 2021-11-24 20:14:43 +08:00
xw d54a2af230 refactor: remove HBuilderX (#87)
* refactor: Does not depend on HBuilderX

* refactor: Remove redundant files and configurations

* doc: Add development instructions

* feat: 添加 `build:h5-netlify` 命令以 build 到不同目录

* chore: Add post-release test function
2021-11-23 11:07:28 +08:00
小树 e15df5c6b6 feat: add charset and max width for exported HTML (#69)
* feat: add charset and max width for exported HTML
* fix: recovery format
2021-10-16 09:54:45 +08:00
yanglbme c542234ea8 chore: cache dependencies 2020-11-25 11:19:15 +08:00
majianquan 6bce5947f0 feat: refactor project with vue 2020-01-13 22:16:04 +08:00
yanglbme f01c3fe280 fix: update css editor
更新样式编辑器代码
2019-12-10 20:50:53 +08:00