nomadro/content/book/features.json
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 23:52:00 -05:00

95 lines
2.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "./features.schema.json",
"$comment": "功能模块总开关 — 关闭任何模块不影响其余功能",
"analytics": {
"enabled": true,
"provider": "ga4",
"measurementId": ""
},
"ads": {
"enabled": false,
"provider": "adsense",
"clientId": "",
"slots": {
"cover": "",
"readerMid": "",
"readerEnd": ""
}
},
"payment": {
"crypto": {
"enabled": false,
"provider": "nowpayments",
"tiers": [
{ "amount": 5, "label": "Coffee" },
{ "amount": 10, "label": "Lunch" },
{ "amount": 20, "label": "Sponsor" }
]
},
"checkout": {
"enabled": true,
"provider": "zpay",
"buttonText": "购买下载版 ¥29",
"productName": "游牧代码 · 下载版 (PDF & EPUB)"
}
},
"feedback": {
"enabled": false,
"title": "这本书对你有帮助吗?",
"subtitle": "欢迎提建议、纠错或合作联系,我会认真看每一条。"
},
"affiliate": {
"enabled": true,
"rules": [
{
"hosts": ["amazon.com", "amzn.to", "amazon.cn"],
"param": "tag=your-amazon-tag-20"
},
{
"hosts": ["taobao.com", "tmall.com"],
"rewrite": "https://s.click.taobao.com/t?eurl={encoded}&union_lens=lensId"
}
]
},
"share": {
"enabled": true,
"campaign": "nomad-code",
"defaultHashtags": ["数字游民", "Homelab", "远程办公"],
"viralPrompt": {
"enabled": true,
"triggerPercent": 42
}
},
"reader": {
"bookmarks": { "enabled": true },
"highlights": { "enabled": true },
"search": { "enabled": true },
"progress": { "enabled": true },
"zen": { "enabled": true },
"shortcuts": { "enabled": true },
"themeToggle": { "enabled": true },
"fontControl": { "enabled": true }
},
"userdata": {
"enabled": true,
"syncToServer": false,
"$comment": "syncToServer=true 时书签/划线/进度同步到 PocketBase,否则仅 localStorage"
},
"backend": {
"pocketbase": { "enabled": true },
"email": {
"enabled": false,
"$comment": "需要配置 SMTP 环境变量才能发送购买邮件"
}
}
}