├── pages ├── star │ ├── star.wxss │ ├── star.json │ ├── star.js │ └── star.wxml ├── me │ ├── me.json │ ├── me.wxss │ ├── me.js │ └── me.wxml ├── detail │ ├── detail.json │ ├── detail.wxml │ ├── detail.wxss │ └── detail.js ├── recent-replies │ ├── recent-replies.wxss │ ├── recent-replies.json │ ├── recent-replies.js │ └── recent-replies.wxml ├── recent-topics │ ├── recent-topics.wxss │ ├── recent-topics.json │ ├── recent-topics.js │ └── recent-topics.wxml ├── source │ ├── source.json │ ├── source.wxml │ ├── source.wxss │ └── source.js ├── index │ ├── index.json │ ├── index.wxss │ ├── index.wxml │ └── index.js └── message │ ├── message.json │ ├── message.wxml │ ├── message.wxss │ └── message.js ├── code-format.sh ├── assets ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── icon.png └── logo.svg ├── icons ├── me.png ├── index.png ├── message.png ├── me-active.png ├── index-active.png ├── message-active.png ├── reply.svg ├── star-active.svg ├── error.svg ├── star.svg ├── thumb.svg ├── thumb-active.svg └── new-message.svg ├── .prettierrc ├── app.wxss ├── bower.json ├── .gitignore ├── templates ├── topic.wxml └── topic.wxss ├── README.md ├── LICENSE ├── app.json ├── app.js └── utils.js /pages/star/star.wxss: -------------------------------------------------------------------------------- 1 | @import '/templates/topic.wxss'; 2 | -------------------------------------------------------------------------------- /code-format.sh: -------------------------------------------------------------------------------- 1 | prettier --write 'pages/**/*.js' app.js utils.js 2 | -------------------------------------------------------------------------------- /pages/me/me.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "个人中心" 3 | } 4 | -------------------------------------------------------------------------------- /assets/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/assets/1.png -------------------------------------------------------------------------------- /assets/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/assets/2.png -------------------------------------------------------------------------------- /assets/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/assets/3.png -------------------------------------------------------------------------------- /assets/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/assets/4.png -------------------------------------------------------------------------------- /icons/me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/me.png -------------------------------------------------------------------------------- /pages/detail/detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "正在加载" 3 | } 4 | -------------------------------------------------------------------------------- /pages/recent-replies/recent-replies.wxss: -------------------------------------------------------------------------------- 1 | @import '/templates/topic.wxss'; 2 | -------------------------------------------------------------------------------- /pages/recent-topics/recent-topics.wxss: -------------------------------------------------------------------------------- 1 | @import '/templates/topic.wxss'; 2 | -------------------------------------------------------------------------------- /pages/source/source.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "源代码" 3 | } 4 | -------------------------------------------------------------------------------- /pages/star/star.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "收藏的话题" 3 | } 4 | -------------------------------------------------------------------------------- /assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/assets/icon.png -------------------------------------------------------------------------------- /icons/index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/index.png -------------------------------------------------------------------------------- /icons/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/message.png -------------------------------------------------------------------------------- /icons/me-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/me-active.png -------------------------------------------------------------------------------- /icons/index-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/index-active.png -------------------------------------------------------------------------------- /pages/recent-replies/recent-replies.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "最近参与的话题" 3 | } 4 | -------------------------------------------------------------------------------- /pages/recent-topics/recent-topics.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "最近创建的话题" 3 | } 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "singleQuote": true, 4 | "trailingComma": "es5" 5 | } 6 | -------------------------------------------------------------------------------- /icons/message-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pd4d10/cnode-weapp/HEAD/icons/message-active.png -------------------------------------------------------------------------------- /pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "社区", 3 | "enablePullDownRefresh": true 4 | } 5 | -------------------------------------------------------------------------------- /pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | @import '/templates/topic.wxss'; 2 | 3 | .container { 4 | font-weight: 300; 5 | } 6 | -------------------------------------------------------------------------------- /pages/message/message.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "消息", 3 | "enablePullDownRefresh": true 4 | } 5 | -------------------------------------------------------------------------------- /pages/source/source.wxml: -------------------------------------------------------------------------------- 1 | 2 | https://github.com/pd4d10/cnode-weapp 3 | 4 | -------------------------------------------------------------------------------- /pages/source/source.wxss: -------------------------------------------------------------------------------- 1 | .container { 2 | position: fixed; 3 | top: 40%; 4 | left: 0; 5 | width: 100%; 6 | text-align: center; 7 | font-size: 16px; 8 | color: #08c; 9 | } 10 | -------------------------------------------------------------------------------- /pages/recent-replies/recent-replies.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: {}, 3 | onLoad(options) { 4 | const app = getApp() 5 | this.setData({ 6 | topics: app.globalData.recent_replies, 7 | }) 8 | }, 9 | }) 10 | -------------------------------------------------------------------------------- /pages/recent-topics/recent-topics.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: {}, 3 | onLoad(options) { 4 | const app = getApp() 5 | this.setData({ 6 | topics: app.globalData.recent_topics, 7 | }) 8 | }, 9 | }) 10 | -------------------------------------------------------------------------------- /pages/recent-replies/recent-replies.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |