nomadro/src/modules/ebook-content/features.json
eric 3e5b7c2098 Monorepo super-optimize: src layout, workspace scripts, docs.
Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 00:34:04 +08:00

95 lines
2.2 KiB
JSON
Raw 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": true,
"provider": "nowpayments",
"tiers": [
{ "amount": 5, "label": "Coffee" },
{ "amount": 10, "label": "Lunch" },
{ "amount": 20, "label": "Sponsor" }
]
},
"checkout": {
"enabled": true,
"provider": "creem",
"buttonText": "Buy Now — $29",
"productName": "Download Edition (PDF & EPUB)"
}
},
"feedback": {
"enabled": true,
"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": ["数字游民", "远程办公", "旅居生活"],
"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 环境变量才能发送购买邮件"
}
}
}