Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>mynote todo 09</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[],"level":1,"lvNumber":"1","text":"done"},{"children":[],"level":1,"lvNumber":"2","text":"高难度工作"},{"children":[],"level":1,"lvNumber":"3","text":"首页"},{"children":[{"children":[],"level":2,"lvNumber":"4.1","text":"头像上传"}],"level":1,"lvNumber":"4","text":"用户中心"},{"children":[],"level":1,"lvNumber":"5","text":"rlp"},{"children":[],"level":1,"lvNumber":"6","text":"header"},{"children":[],"level":1,"lvNumber":"7","text":"个人主页"},{"children":[],"level":1,"lvNumber":"8","text":"编辑页"},{"children":[],"level":1,"lvNumber":"9","text":"markdown"},{"children":[],"level":1,"lvNumber":"10","text":"catalog"},{"children":[],"level":1,"lvNumber":"11","text":"作者"},{"children":[],"level":1,"lvNumber":"12","text":"搜索"},{"children":[],"level":1,"lvNumber":"13","text":"切面"},{"children":[],"level":1,"lvNumber":"14","text":"老问题"},{"children":[{"children":[],"level":2,"lvNumber":"15.1","text":"短信"}],"level":1,"lvNumber":"15","text":"后台"}],"level":0,"lvNumber":"","text":"mynote todo 09"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#0000ff;} .s3{color:#808080;} .s4{color:#000000;} .s5{color:#000080;} .s6{color:#660e7a;} .s7{color:#7a7a43;} .s8{color:#0000ff;} .s9{color:#c80000;} .s10{color:#000000;} .s11{color:#660e7a;} .s12{color:#000000;} .s13{color:#008000;} .s14{color:#808080;} .s15{color:#000080;} .s16{color:#458383;} .s17{color:#7a7a43;} .s18{color:#c80000;} .s19{color:#0000ff;} .s20{color:#000000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>mynote todo 09</a></li> <li> <a href='#ol_1' >done</a></li> <li> <a href='#ol_2' >高难度工作</a></li> <li> <a href='#ol_3' >首页</a></li> <li> <a href='#ol_4' >用户中心</a></li> <li> <a href='#ol_5' >头像上传</a></li> <li> <a href='#ol_6' >rlp</a></li> <li> <a href='#ol_7' >header</a></li> <li> <a href='#ol_8' >个人主页</a></li> <li> <a href='#ol_9' >编辑页</a></li> <li> <a href='#ol_10' >markdown</a></li> <li> <a href='#ol_11' >catalog</a></li> <li> <a href='#ol_12' >作者</a></li> <li> <a href='#ol_13' >搜索</a></li> <li> <a href='#ol_14' >切面</a></li> <li> <a href='#ol_15' >老问题</a></li> <li> <a href='#ol_16' >后台</a></li> <li> <a href='#ol_17' >短信</a></li> </div>

<pre id='ol_0' class='title'>mynote todo 09</pre> <pre><d class='s0'></d></pre> <h1 id='ol_1'>done</h1> <pre><d class='s0'></d></pre> <pre><d class='s0'>可点击范围:</d></pre> <pre><d class='s0'><img src='..\pic\11128e7d0c1e2c30dd7ee55904f992f2.jpg' /></d><d class='s0'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_2'>高难度工作</h1> <pre><d class='s1'>username 替换</d></pre> <pre><d class='s1'>markdown 替换</d></pre> <pre><d class='s1'>workman 不再使用</d></pre> <pre><d class='s1'>save到草稿 发布才进入git</d></pre> <pre><d class='s1'>历史版本比较、回滚</d></pre> <pre><d class='s1'>可见性,group,协同编辑</d></pre> <pre><d class='s1'>gogs 大小限制</d></pre> <pre><d class='s0'><a href='mynote_todo.html#fd083a9e-ab58-4263-9253-17de3cad53b2'>id 代替path </a></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_3'>首页</h1> <pre><d class='s1'></d></pre> <pre><d class='s1'>分类维度、标签</d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_4'>用户中心</h1> <t id='22f41283-56b8-4427-b0fc-16bd35fc1060'> <pre class='tnd_head'>lv1= lv2= type=</pre> <pre><d class='s0'>gogs:设置ssh key,显示 url,禁止外网登录;或者仓库默认为私有</d></pre> </t> <pre><d class='s0'></d></pre> <pre><d class='s0'><img src='..\pic\c434b920ba6ec41c37206fcfdab7c604.jpg' /></d><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>用户中心点击修改密码按钮,随后跳转重置密码页面且提示已登录,随后自动跳转至首页(无法完成从用户中心重置操作)</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>手机邮箱mask</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>加载动画</d></pre> <pre><d class='s1'><img src='..\pic\9dd20de3dfeeb08cfbcb5a3402b0889f.jpg' /></d><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <h2 id='ol_5'>头像上传</h2> <pre><d class='s1'>上传大小确认?</d></pre> <pre><d class='s1'>体验不好,用回以前的版本?</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_6'>rlp</h1> <pre><d class='s0'><a href='mynote_todo06.html#665460e7-b40a-46d5-9508-db551c2a576d'>用户已经登录 </a></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>更多登录方式 需要提示暂不支持</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>重置密码 = 修改密码 + 忘记密码</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>直接访问login页时有问题:</d></pre> <pre><d class='s3'>// 通过 router 的 go 方法进行跳转</d></pre> <pre><d class='s4'>setTimeout(() => </d><d class='s5'>this</d><d class='s4'>.</d><d class='s6'>$router</d><d class='s4'>.</d><d class='s7'>go</d><d class='s4'>(-</d><d class='s8'>1</d><d class='s4'>), </d><d class='s8'>1000</d><d class='s4'>);</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>响应式的宽度:</d></pre> <pre><d class='s0'><img src='..\pic\d65c06e776eafe2bce556b643405f14c.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>居中问题:</d></pre> <pre><d class='s0'><img src='..\pic\905ccaf189aa43f21bb7b9ecf7e84d7a.jpg' /></d><d class='s0'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_7'>header</h1> <pre><d class='s0'></d></pre> <pre><d class='s0'>非自己时不要高亮</d></pre> <pre><d class='s0'><img src='..\pic\f65e5a75c58d6139796d0f2ff4733a5d.jpg' /></d><d class='s0'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_8'>个人主页</h1> <pre><d class='s2'><img src='..\pic\012d789db7d1ce06ad3e260d8e7eede1.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>禁用匿名评论</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>需要 ssr</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>占满屏幕空间,不要背景色,背景色纯白。</d></pre> <pre><d class='s0'> 参见 掘金 mdn</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>评论 富文本支持</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>firefox 也支持hover时才出现滚动条:</d></pre> <pre><d class='s0'><a href='https://element.eleme.cn/#/zh-CN/component/tree#shou-feng-qin-mo-shi'>https://element.eleme.cn/#/zh-CN/component/tree#shou-feng-qin-mo-shi</a></d></pre> <pre><d class='s9'></d></pre> <pre><d class='s10'>评论的图无法放大</d></pre> <pre><d class='s10'>鼠标放图片上显示阴影 边框?</d></pre> <pre><d class='s1'>大图查看关闭不方便</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>阅读统计</d></pre> <pre><d class='s10'></d></pre> <pre><d class='s1'>点完文库再点 <img src='..\pic\c550996db73ab5a5532c0d1b41320a24.jpg' /></d><d class='s1'> 不会读取readme</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>/book/_username 如果是刷新方式,正常访问 readme,如果是导航方式,则不是 readme</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>通过github 链接导入文章?</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>去掉host前缀:</d></pre> <pre><d class='s1'><a href='http://uninote.com.cn/docs/1045137207/__pic/WDjyp459.png'>http://uninote.com.cn/docs/1045137207/__pic/WDjyp459.png</a></d></pre> <pre><d class='s11'>img_host</d><d class='s12'>: </d><d class='s13'>"<a href='http://uninote.com.cn/'>http://uninote.com.cn/</a>"</d><d class='s12'>,</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s10'>操作图标上移,整行可点击</d></pre> <pre><d class='s10'><img src='..\pic\c28bdd1356b629bfc26022f6e858ad21.jpg' /></d><d class='s10'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>book 页评论重复加载</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>不用了</d></pre> <pre><d class='s1'><img src='..\pic\a6ab8f26398107bf6cb7409bf000a71e.jpg' /></d><d class='s1'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>未登录可以进个人主页</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s1'>需要优化:</d></pre> <pre><d class='s3'>// markdown 内容</d><d class='s14'></d></pre> <pre><d class='s15'>let </d><d class='s16'>doc </d><d class='s12'>= res.</d><d class='s11'>data</d><d class='s12'>;</d></pre> <pre><d class='s12'>(</d><d class='s15'>async </d><d class='s12'>() => {</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/examples/js/jquery.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/marked.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/prettify.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/underscore.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/raphael.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/sequence-diagram.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/flowchart.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/lib/jquery.flowchart.min.js'</d><d class='s12'>);</d></pre> <pre><d class='s12'> </d><d class='s15'>await this</d><d class='s12'>.</d><d class='s17'>fetchScript</d><d class='s12'>(</d><d class='s13'>'/editor.md/editormd.js'</d><d class='s12'>);</d></pre> <pre><d class='s18'></d></pre> <pre><d class='s0'>目录展开、折叠切换图标</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s1'>支持空文件夹</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>新建文件夹:必须要建立一个文件</d></pre> <pre><d class='s1'> 支持递归</d></pre> <pre><d class='s1'> 文件(夹)名字不能是 . or ..</d></pre> <pre><d class='s1'> 不能跳出root</d></pre> <pre><d class='s1'>新建文件:保存 & 保存并编辑</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_9'>编辑页</h1> <pre><d class='s0'><a href='mynote_todo_index.html#43165bca-dcc7-492c-b8e5-03d444c578c6'>文章 </a></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>rebase 代替 merge,可选</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'><img src='..\pic\6f45229c71f2aea401ca1d1f9a550432.jpg' /></d><d class='s1'>出错时提示</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s10'>发布:不用changed</d></pre> <pre><d class='s10'>save 到临时?</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s0'>编辑时登录失效的处理、本地保存</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>获取文件锁超时</d></pre> <pre><d class='s0'>数据保存重复 -> 文件已经存在</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>同步滚动可选</d></pre> <pre><d class='s1'>仅预览选择部分,workaround for 不同步</d></pre> <t id='8f52f400-6308-4777-a764-901b5a140085'> <pre class='tnd_head'>lv1= lv2= type=</pre> <pre><d class='s0'>fix 同步 bug</d></pre> </t> <pre><d class='s0'></d></pre> <pre><d class='s0'>发布并退出 & 发布并停留</d></pre> <pre><d class='s0'>添加标签不用发送到后台</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>改标签、分类也可也保存 contentChanged?</d></pre> <pre><d class='s0'>灰掉按钮</d></pre> <pre><d class='s0'>编辑过程中登录失效处理</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>PicFetch.php 404 等的处理,前端转换失败也不要报错了?</d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_10'>markdown</h1> <pre><d class='s0'><a href='markdown.html#ec75a1b5-07b3-4535-8447-b92f02943c6a'>markdown todo </a></d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_11'>catalog</h1> <pre><d class='s1'></d></pre> <h1 id='ol_12'>作者</h1> <pre><d class='s1'></d></pre> <pre><d class='s1'>空的太多了,只有三篇</d></pre> <pre><d class='s1'><img src='..\pic\d571215fb50067e644162450a8f9de94.jpg' /></d><d class='s1'></d></pre> <pre><d class='s1'><img src='..\pic\693bbb30cdb7e78dbc7c5ebd947dade3.jpg' /></d><d class='s0'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_13'>搜索</h1> <pre><d class='s1'></d></pre> <pre><d class='s1'>[vuex] do not mutate vuex store state outside mutation handlers.</d></pre> <pre><d class='s1'> /**</d></pre> <pre><d class='s1'> * 关注用户</d></pre> <pre><d class='s1'> * @param param</d></pre> <pre><d class='s1'> */</d></pre> <pre><d class='s1'> follow_user(param) {</d></pre> <pre><d class='s1'> let data = this.users[param];</d></pre> <pre><d class='s1'> this.$axios.$post("/api/userinfo/follow", {fuid: data.id}).then(res => {</d></pre> <pre><d class='s1'> if (res.errno == SUCCESS.code) {</d></pre> <pre><d class='s1'> successMsg(res.data.msg);</d></pre> <pre><d class='s1'> </d><d class='s18'>data.follow = res.data.bool ? 1 : 0;</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_14'>切面</h1> <pre><d class='s0'></d></pre> <pre><d class='s0'>跳转逻辑统一:用 <nuxt-link>代替;哪部分跳转哪里明确;hover 状态;是否要文字高亮?</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>整块可点击</d></pre> <pre><d class='s12'><</d><d class='s15'>li </d><d class='s19'>v-for=</d><d class='s13'>"</d><d class='s11'>article </d><d class='s12'>in </d><d class='s11'>articles</d><d class='s13'>" </d><d class='s19'>:class=</d><d class='s13'>"</d><d class='s12'>[</d><d class='s11'>article</d><d class='s12'>.thum != </d><d class='s13'>'' </d><d class='s12'>? </d><d class='s13'>'have-img' </d><d class='s12'>: </d><d class='s13'>''</d><d class='s12'>]</d><d class='s13'>" </d><d class='s19'>@click=</d><d class='s13'>"</d><d class='s17'>handleRoute</d><d class='s12'>({</d><d class='s11'>username</d><d class='s12'>: </d><d class='s11'>article</d><d class='s12'>.</d><d class='s11'>username</d><d class='s12'>, </d><d class='s11'>detail</d><d class='s12'>: </d><d class='s11'>article</d><d class='s12'>.</d><d class='s11'>aid</d><d class='s12'>})</d><d class='s13'>" </d><d class='s19'>style=</d><d class='s13'>"cursor: pointer;"</d><d class='s12'>></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>info 条 显示不完整</d></pre> <pre><d class='s0'>重复、多条错误提示</d></pre> <pre><d class='s0'><img src='..\pic\413110f75204874abadb715489e59ea6.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s1'>api 请求错误处理</d></pre> <pre><d class='s1'>不要所有的网络请求都显示进度,太干扰用户</d></pre> <pre><d class='s10'></d></pre> <pre><d class='s10'>登录成功记录用户信息到 localstorage。需要一个方法重新获取信息。刷新时?</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>登录回车</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s0'><a href='https://jsfiddle.net/api/mdn/'>https://jsfiddle.net/api/mdn/</a></d></pre> <pre><d class='s0'>拖动大小</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_15'>老问题</h1> <pre><d class='s0'>微信 华为 android:</d></pre> <pre><d class='s0'>--</d></pre> <pre><d class='s0'>header上滑隐藏(首页、book页面)</d></pre> <pre><d class='s0'>动态换成全部作者页</d></pre> <pre><d class='s0'>上传头像,无法选择图片</d></pre> <pre><d class='s0'>回复问题:cyb回复cyb回复collin</d></pre> <pre><d class='s20'></d></pre> <pre><d class='s20'>35 先取消动画,再渲染内容</d></pre> <pre><d class='s20'>41 空搜索字符串还需要优化?</d></pre> <pre><d class='s20'>39 不存在的id时,还有问题</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>评论时插入顺序反了,刷新就好了</d></pre> <pre><d class='s0'><img src='..\pic\9b8c2f1bc3cdd17bd79a342eb945f744.jpg' /></d><d class='s0'></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_16'>后台</h1> <pre><d class='s1'>去掉clog,和slog容易混淆</d></pre> <pre><d class='s20'></d></pre> <pre><d class='s20'>除了index.php,其他php都禁止访问</d></pre> <pre><d class='s20'></d></pre> <pre><d class='s20'>安全问题</d></pre> <pre><d class='s20'></d></pre> <pre><d class='s20'>xss</d></pre> <pre><d class='s1'></d></pre> <h2 id='ol_17'>短信</h2> <pre><d class='s0'>错误处理:</d></pre> <pre><d class='s0'>sms result:stdClass Object</d></pre> <pre><d class='s0'>(</d></pre> <pre><d class='s0'>[Recommend] => <a href='https://error-center.aliyun.com/status/search?Keyword=InvalidAccessKeyId.NotFound&source=PopGw'>https://error-center.aliyun.com/status/search?Keyword=InvalidAccessKeyId.NotFound&source=PopGw</a></d></pre> <pre><d class='s0'>[Message] => Specified access key is not found.</d></pre> <pre><d class='s0'>[RequestId] => C9BC0A36-430D-4995-A1F8-41E323DDECD9</d></pre> <pre><d class='s0'>[HostId] => dysmsapi.aliyuncs.com</d></pre> <pre><d class='s0'>[Code] => InvalidAccessKeyId.NotFound</d></pre> <pre><d class='s0'>)</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s0'></d></pre> </body></html>

mynote_todo06

mynote_todo_index

点赞(0) 阅读(52) 举报
目录
标题