Add apps/miniprogram/tt as a standalone Douyin app with official usePrivacyCheck + tt.showModal/setClipboardData flow, single-chapter offline reader, and document console privacy setup for clipboard. Co-authored-by: Cursor <cursoragent@cursor.com>
64 lines
1.8 KiB
JavaScript
64 lines
1.8 KiB
JavaScript
import fs from 'fs'
|
||
import path from 'path'
|
||
import { fileURLToPath } from 'url'
|
||
|
||
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'src', 'pages')
|
||
|
||
const files = {
|
||
'book/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '数字游民',
|
||
navigationStyle: 'custom',
|
||
})
|
||
`,
|
||
'community/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '旅居社群',
|
||
navigationStyle: 'custom',
|
||
})
|
||
`,
|
||
'destination/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '目的地详情',
|
||
})
|
||
`,
|
||
'destinations/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '目的地',
|
||
})
|
||
`,
|
||
'index/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: 'Nomadro',
|
||
// 对齐 H5:自定义顶栏,去掉原生导航栏占位
|
||
navigationStyle: 'custom',
|
||
})
|
||
`,
|
||
'meetups/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '聚会',
|
||
})
|
||
`,
|
||
'mine/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '我的',
|
||
})
|
||
`,
|
||
'nav/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '出海导航',
|
||
navigationStyle: 'custom',
|
||
})
|
||
`,
|
||
'reader/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: '阅读',
|
||
})
|
||
`,
|
||
'vip/index.config.ts': `export default definePageConfig({
|
||
navigationBarTitleText: 'VIP 会员',
|
||
navigationBarBackgroundColor: '#0c0c0f',
|
||
navigationBarTextStyle: 'white',
|
||
backgroundColor: '#0c0c0f',
|
||
navigationStyle: 'custom',
|
||
})
|
||
`,
|
||
}
|
||
|
||
for (const [rel, body] of Object.entries(files)) {
|
||
const fp = path.join(root, rel)
|
||
fs.writeFileSync(fp, body, 'utf8')
|
||
console.log('ok', rel, body.includes('数字') || body.includes('Nomadro') || body.includes('VIP'))
|
||
}
|