/** * Bud file for view jsx */ 'use strict' const { Templates } = require('apeman-asset-templates') const { spinalcase, snakecase } = require('stringcase') const path = require('path') const views = [ 'admin/AdminTop', 'admin/AdminUserList', 'admin/AdminUserDetail', 'admin/AdminServerInfo', 'admin/AdminReportList', 'admin/AdminNewsList', 'admin/AdminNewsCreate', 'about/AboutTop', 'about/AboutApp', 'about/AboutDocument', 'about/AboutTermOfUse', 'about/AboutPrivacyPolicy', 'app/AppLocale', 'account/AccountDetail', 'account/AccountAccountEdit', 'account/AccountAuthEdit', 'account/AccountProfileEdit', 'comment/CommentCreate', 'crawl/CrawlTop', 'crawl/CrawlNichan', 'crawl/CrawlResult', 'news/NewsList', 'me/MyThreads', 'me/MyPosts', 'me/MyStars', 'landing/LandingTop', 'other/OtherTop', 'post/PostCreate', 'post/PostDetail', 'post/PostReport', 'post/PostDestroy', 'post/PostShare', 'post/PostTag', 'post/PostBan', 'recover/RecoverSend', 'recover/RecoverSendDone', 'recover/RecoverReset', 'recover/RecoverResetDone', 'resign/ResignLead', 'resign/ResignReason', 'resign/ResignDone', 'sign/SignSignin', 'sign/SignSignup', 'sign/SignSignout', 'thread/ThreadCreate', 'thread/ThreadEdit', 'thread/ThreadTop', 'thread/ThreadList', 'thread/ThreadDetail', 'thread/ThreadPosts', 'thread/ThreadDestroy', 'thread/ThreadTag', 'tag/TagTop', 'tag/TagList', 'tag/TagDetail', 'verify/VerifyEmailDone', 'error/ErrorInvalid' ] module.exports = views.map((name) => ({ force: false, mode: '644', mkdirp: true, tmpl: Templates.webUiView, path: `${path.dirname(name)}/${snakecase(path.basename(name))}_view.jsx`, data: { name: path.basename(name) } })) if (!module.parent) { require('coz').render(__filename) }