├── CNAME
├── .gitignore
├── wechatApp
├── pages
│ ├── logs
│ │ ├── logs.json
│ │ ├── logs.wxss
│ │ ├── logs.wxml
│ │ └── logs.js
│ ├── main
│ │ ├── main.wxml
│ │ ├── main.wxss
│ │ └── main.js
│ └── index
│ │ ├── index.js
│ │ ├── index.wxml
│ │ └── index.wxss
├── app.wxss
├── app.json
├── utils
│ └── util.js
└── app.js
├── _includes
├── icon-github.html
├── icon-twitter.html
├── custom
│ └── comment.html
├── icon-twitter.svg
├── head.html
├── icon-github.svg
├── footer.html
└── header.html
├── _layouts
├── page.html
├── post.html
└── default.html
├── spider
├── package.json
└── index.js
├── README.md
├── index.html
├── about.md
├── _config.yml
├── css
└── main.scss
├── feed.xml
├── _posts
├── 2015-12-28-javascript-protytype.md
├── 2015-12-29-javascript-this.md
├── 2016-01-01-javascript-object-create.md
├── 2015-12-30-javascript-clouse.md
└── 2016-03-01-javascript-cross-domain.md
├── api
└── list.json
└── _sass
├── _syntax-highlighting.scss
├── _base.scss
└── _layout.scss
/CNAME:
--------------------------------------------------------------------------------
1 | blog.rccoder.net
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 | .sass-cache
3 | .jekyll-metadata
4 | node_modules/
5 |
--------------------------------------------------------------------------------
/wechatApp/pages/logs/logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看启动日志"
3 | }
--------------------------------------------------------------------------------
/wechatApp/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | .container {
3 | box-sizing: border-box;
4 | margin: 0 auto;
5 | background: #f8f8f8;
6 | }
7 |
--------------------------------------------------------------------------------
/wechatApp/pages/logs/logs.wxss:
--------------------------------------------------------------------------------
1 | .log-list {
2 | display: flex;
3 | flex-direction: column;
4 | padding: 40rpx;
5 | }
6 | .log-item {
7 | margin: 10rpx;
8 | }
9 |
--------------------------------------------------------------------------------
/_includes/icon-github.html:
--------------------------------------------------------------------------------
1 | {% include icon-github.svg %}{{ include.username }}
2 |
--------------------------------------------------------------------------------
/_includes/icon-twitter.html:
--------------------------------------------------------------------------------
1 | {{ include.username }}
2 |
--------------------------------------------------------------------------------
/wechatApp/pages/logs/logs.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{index + 1}}. {{log}}
5 |
6 |
7 |
--------------------------------------------------------------------------------
/_layouts/page.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
6 |
9 |
10 |
11 | {{ content }}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/wechatApp/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages":[
3 | "pages/index/index",
4 | "pages/logs/logs"
5 | ],
6 | "window":{
7 | "backgroundTextStyle":"light",
8 | "navigationBarBackgroundColor": "#fff",
9 | "navigationBarTitleText": "WeChat",
10 | "navigationBarTextStyle":"black"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/wechatApp/pages/logs/logs.js:
--------------------------------------------------------------------------------
1 | var util = require('../../utils/util.js')
2 | Page({
3 | data: {
4 | logs: []
5 | },
6 | onLoad: function () {
7 | this.setData({
8 | logs: (wx.getStorageSync('logs') || []).map(function (log) {
9 | return util.formatTime(new Date(log))
10 | })
11 | })
12 | }
13 | })
14 |
--------------------------------------------------------------------------------
/spider/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "spider",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "cheerio": "^0.22.0",
13 | "superagent": "^2.3.0"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/wechatApp/pages/main/main.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{userInfo.nickName}}
6 |
7 |
8 | {{motto}}
9 |
10 |
11 |
--------------------------------------------------------------------------------
/wechatApp/pages/main/main.wxss:
--------------------------------------------------------------------------------
1 | /**index.wxss**/
2 | .container {
3 | height: 100%;
4 | display: flex;
5 | flex-direction: column;
6 | align-items: center;
7 | justify-content: space-between;
8 | padding: 200rpx 0;
9 | box-sizing: border-box;
10 | }
11 | .userinfo {
12 | display: flex;
13 | flex-direction: column;
14 | align-items: center;
15 | }
16 | .userinfo-avatar {
17 | width: 128rpx;
18 | height: 128rpx;
19 | margin: 20rpx;
20 | border-radius: 50%;
21 | }
22 | .userinfo-nickname {
23 | color: #aaa;
24 | }
25 |
--------------------------------------------------------------------------------
/wechatApp/utils/util.js:
--------------------------------------------------------------------------------
1 | function formatTime(date) {
2 | var year = date.getFullYear()
3 | var month = date.getMonth() + 1
4 | var day = date.getDate()
5 |
6 | var hour = date.getHours()
7 | var minute = date.getMinutes()
8 | var second = date.getSeconds();
9 |
10 |
11 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
12 | }
13 |
14 | function formatNumber(n) {
15 | n = n.toString()
16 | return n[1] ? n : '0' + n
17 | }
18 |
19 | module.exports = {
20 | formatTime: formatTime
21 | }
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # rccoder's blog
2 |
3 | * **链接:** [blog.rccoder.net](http://blog.rccoder.net)
4 |
5 | *其实你直接访问 [Issues](https://github.com/rccoder/blog/issues) 更加方便*
6 |
7 | * **主题:**: Technology and Life
8 | * **幼稚的老博客:** [life.rccoder.net](http://life.rccoder.net)
9 |
10 | ## 订阅点赞
11 |
12 | * 关注订阅请 **watch**
13 | * 点赞点赞请 **star**
14 |
15 | ## 版权声明
16 |
17 | * 请尊重辛勤劳动
18 | * 禁止不署名完全转载,可单独通过下面的捐赠付版权费
19 | * 建议署名并进行摘要性质转载
20 |
21 | ## 捐赠
22 |
23 | 写文不易,赠我一杯咖啡增强一下感情可好?
24 |
25 | 
26 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
11 |
12 | {{ content }}
13 |
评论:
14 | {% include custom/comment.html %}
15 |
16 |
17 | 上述评论由petal获取得到, 如果你想评论本文章,请去这里评论,内容将自动同步.
18 |
19 |
对了,不要忘记star一下
20 |
21 |
22 |
23 | {% include footer.html %}
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/_includes/icon-twitter.svg:
--------------------------------------------------------------------------------
1 |