feat(pages): link name field in the page editor, with labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 09:26:27 +08:00
1 parent bd8a31e4c8
commit 25b4f5f39d
9 files changed
+121 -14

No files matched your search

@@ -0,0 +1,8 @@
-- Co-Lite change add-page-anchor-links: rollback of the labels. Blocks keep their link names in the JSON; the previous
-- release ignores them on read, and a page saved by it loses them. Pages with #name links must be edited before
-- they are saved under the previous release, which refuses such links.
SET NAMES utf8mb4;
USE `service-system`;
DELETE FROM message WHERE code IN ('PagesAnchor', 'PagesAnchorHint', 'PagesBadAnchor', 'PagesAnchorTaken') AND area = 'A';
UPDATE message SET content = JSON_SET(content, '$.en_US', 'Link address (https://, mailto:, tel: or /)', '$.zh_CN', '链接地址(https://、mailto:、tel: 或 /)') WHERE LOWER(code) = LOWER('PagesLinkPrompt') AND area = 'A';
UPDATE message SET content = JSON_SET(content, '$.en_US', 'Use a link that starts with https://, mailto:, tel: or /.', '$.zh_CN', '链接须以 https://、mailto:、tel: 或 / 开头。') WHERE LOWER(code) = LOWER('PagesBadLink') AND area = 'A';