export const UI = {
inspirationClusters: {
childhood: ['秋千', '晚霞', '糖果', '奔跑', '蝉鸣', '雨后泥土', '旧书包', '风筝'],
joy: ['海浪', '拥抱', '掌声', '晨曦', '破土而出', '默契', '星空', '释放'],
low: ['落叶', '雨伞', '长廊', '深呼吸', '自愈', '沉潜', '坚韧', '等待', '破茧']
},
renderInspiration(type, targetId) {
const words = this.inspirationClusters[type];
return words.map(word => `
${word}
`).join('');
},
renderInput(label, id, type = 'text', placeholder = '', value = '') {
return `
`;
},
renderTextArea(label, id, placeholder = '', value = '') {
return `
`;
},
renderSelect(label, id, options, selectedValue = '') {
return `
`;
},
renderAccountSettings(data) {
return `
${this.renderInput('昵称', 'edit-nickname', 'text', '你想被如何称呼?', data.nickname)}
${this.renderInput('职业', 'edit-profession', 'text', '你当下的社会锚点', data.profession || '')}
${this.renderInput('MBTI', 'edit-mbti', 'text', '性格色彩', data.mbti)}
${this.renderInput('星座', 'edit-zodiac', 'text', '星辰指引', data.zodiac)}
${this.renderInput('兴趣爱好', 'edit-hobbies', 'text', '让灵魂起舞的事物', data.hobbies.join(', '))}
`;
}
};