feat(pages): HTML block type and hide-header option in the services

The counter accepts an HTML block (required, at most 200,000 characters, no
script check because it only runs sealed) and stores a hide-header flag on the
page. mobile-api passes the flag through on save and in the public page.

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-02 17:46:32 +08:00
1 parent dcad8cb650
commit 9a7b225827
15 files changed
+96 -7

No files matched your search

@@ -0,0 +1,5 @@
-- Co-Lite change add-custom-html-block: a page option that hides the company header and the page title.
-- Target: `service-counter`. Additive only. Run once, after add-landing-pages 01.
SET NAMES utf8mb4;
USE `service-counter`;
ALTER TABLE `cms_page` ADD COLUMN `hide_header` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hide the company header and the page title on the public page' AFTER `status`;
@@ -0,0 +1,4 @@
-- Co-Lite change add-custom-html-block: rollback. Pages with HTML blocks must be edited or deleted first,
-- because the previous release refuses the HTML block type when such a page is saved.
USE `service-counter`;
ALTER TABLE `cms_page` DROP COLUMN `hide_header`;