-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevlog.txt
193 lines (150 loc) · 4.39 KB
/
devlog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
2017-05-20 16:12:48
[TODO]
) pastebin UI & API
) shadowsocks config file (require login)
) resume page (About)
) blog
) file sync API
) mnote
2017-05-21 14:32:56
http://stackoverflow.com/questions/21388921/subdomains-with-flask
handle subdomains in flask
2017-05-22 22:55:59
) implement "command line clip get/post"
. export /get-cookie by POST username/password
. curl -H 'application/json' -X POST -d '{"username": "foo", "password: "bar"}' https://fans656.me/api/get-cookie
) (depracated)understand API key mechanism
2017-06-11 09:11:07
rewrite using react
. about page
. login
. user panel (post blog, etc..)
. post blog editor
. post blog api
2017-06-12 08:45:10
) show post date right bottom
) click date for detail view (with comment)
) click "edit for edit (auto save)
) comments
2017-06-12 22:26:12
理一下思路:
https://fans656.me/ => blogs
https://fans656.me/blog => blogs
https://fans656.me/blog/123 => blog by id
https://fans656.me/blog/123/edit => blog by id edit
2017-06-18 15:37:41
. post node
. {"data": "..."}
. get node
. /api/node/5
. get node list
. by ref
. delete node by id
. put node
=== non api
. blog list
. put node (no delete, backup)
2017-06-19 00:45:41
) node literal in links
{
"data": "this is content",
"links": [
{"rel": "type", "dst": "blog"},
{"rel": "title", "dst": {
"data": "this is title"
}}
]
}
2017-06-21 03:22:23
) upload files
. react context (for `user`)
dont use context
) refactor into different js
2017-06-23 02:24:20
) diandian blogs
) books
) music
) movies
2017-06-24 01:34:09
http://blog.sina.com.cn/fans656
迁移新浪博客
2017-06-25 04:16:36
今天要把新站上线掉:有点赶,所以只做最必要的那些功能
. all data upload
. upload diandian-migaration git repo
. mark old blog
. change db schema
. backup db
. submit post-45 #7
. pagination
) full site regularly backup
) login required post test
# development/production database
2017-06-25 08:15:25
7.html的#45 blog太长,超出了mysql TEXT的长度...
决定暂时用LONGTEXT解决(其实有个MEDIUMTEXT,但先这么用)
以后有空好好思考下存储的问题,LONGTEXT会不会有性能问题
2017-06-26 03:26:31
) pagination input
can't backspace on page "1"
) node (a more robust lib with file support)
) when delete, just mark (can set expire time)
) blog/file ref
) TODO page
add todos
categoried by tags (long term, short term...)
version control
2017-06-28 23:58:03
Functional:
# node (a more robust lib with file support)
# when delete, just mark (can set expire time)
(reason: use neo4j)
2018-04-30 21:17:24
之前写了几天的stome(storage for fans656.me)的devlog,结果手贱删了
无所谓啦
stome的原型已经就绪,现在想着手更新fme(fans656.me)了
基本打算重写
刚在想,最基本的功能是什么呢?——我是指基础设施
差不多就是custom url + script
可以指定任一url上接到请求后调用哪个脚本
脚本可以放在stome上
然后就可以在此基础上创建出可以执行各种功能的api,还可以更新
2018-05-01 14:14:38
整理一下url对应要做的
GET /
index.html
拉去文章列表,显示文章内容
PUT /blog
创建文章
PUT /blog?id=138
创建或更新文章
2018-05-01 15:00:44
整理一下use case
plain-text
this is just a note
markdown
# this is title
and this is code:
def hello():
print "hi, world"
gallery
2018-05-03 22:59:59
可以用
npx babel index.js
来编译jsx文件
2018-05-05 08:34:37
https://github.com/jamesmartin/react-remote-component-demo
动态加载react component
2018-05-05 09:14:16
实验成功,至少可以用window.eval加载动态的component
import React from 'react';
import ReactDOM from 'react-dom';
window.React = React;
$.get('http://ub:8000/T.js', (src) => {
window.eval(src);
ReactDOM.render(<T/>, document.getElementById('root'));
});
感觉这个动态加载component打通了前端这里就不着急了
下来该考虑考虑内容服务——file storage已经打通
另一个就是blog内容了,要有全文搜索的功能
而且编辑的文本跟显示出来的不一定一样,涉及预处理后处理之类的,回头case by case地考虑