From e6af813e95354e5f1718b3e883db3c1956786f65 Mon Sep 17 00:00:00 2001 From: Watish <90434582+Watish@users.noreply.github.com> Date: Mon, 15 Nov 2021 22:32:18 +0800 Subject: [PATCH] Add files via upload --- public/asset-manifest.json | 20 +++++++++---------- public/index.html | 2 +- public/static/css/4.9a8516be.chunk.css | 2 ++ public/static/css/4.9a8516be.chunk.css.map | 1 + public/static/js/4.42856d3b.chunk.js | 2 ++ public/static/js/4.42856d3b.chunk.js.map | 1 + public/static/js/main.9f5951c5.chunk.js | 2 ++ public/static/js/main.9f5951c5.chunk.js.map | 1 + public/static/js/runtime-main.fc385e80.js | 2 ++ public/static/js/runtime-main.fc385e80.js.map | 1 + 10 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 public/static/css/4.9a8516be.chunk.css create mode 100644 public/static/css/4.9a8516be.chunk.css.map create mode 100644 public/static/js/4.42856d3b.chunk.js create mode 100644 public/static/js/4.42856d3b.chunk.js.map create mode 100644 public/static/js/main.9f5951c5.chunk.js create mode 100644 public/static/js/main.9f5951c5.chunk.js.map create mode 100644 public/static/js/runtime-main.fc385e80.js create mode 100644 public/static/js/runtime-main.fc385e80.js.map diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 4be04b3..a177ac0 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,25 +1,25 @@ { "files": { "main.css": "./static/css/main.7f821f98.chunk.css", - "main.js": "./static/js/main.048af729.chunk.js", - "main.js.map": "./static/js/main.048af729.chunk.js.map", - "runtime-main.js": "./static/js/runtime-main.d10fbcb1.js", - "runtime-main.js.map": "./static/js/runtime-main.d10fbcb1.js.map", + "main.js": "./static/js/main.9f5951c5.chunk.js", + "main.js.map": "./static/js/main.9f5951c5.chunk.js.map", + "runtime-main.js": "./static/js/runtime-main.fc385e80.js", + "runtime-main.js.map": "./static/js/runtime-main.fc385e80.js.map", "static/css/2.920e0ab0.chunk.css": "./static/css/2.920e0ab0.chunk.css", "static/js/2.53137399.chunk.js": "./static/js/2.53137399.chunk.js", "static/js/2.53137399.chunk.js.map": "./static/js/2.53137399.chunk.js.map", "static/css/3.a95be28f.chunk.css": "./static/css/3.a95be28f.chunk.css", "static/js/3.b290ff20.chunk.js": "./static/js/3.b290ff20.chunk.js", "static/js/3.b290ff20.chunk.js.map": "./static/js/3.b290ff20.chunk.js.map", - "static/css/4.b7570f85.chunk.css": "./static/css/4.b7570f85.chunk.css", - "static/js/4.f0923db5.chunk.js": "./static/js/4.f0923db5.chunk.js", - "static/js/4.f0923db5.chunk.js.map": "./static/js/4.f0923db5.chunk.js.map", + "static/css/4.9a8516be.chunk.css": "./static/css/4.9a8516be.chunk.css", + "static/js/4.42856d3b.chunk.js": "./static/js/4.42856d3b.chunk.js", + "static/js/4.42856d3b.chunk.js.map": "./static/js/4.42856d3b.chunk.js.map", "static/js/5.1c0204c1.chunk.js": "./static/js/5.1c0204c1.chunk.js", "static/js/5.1c0204c1.chunk.js.map": "./static/js/5.1c0204c1.chunk.js.map", "index.html": "./index.html", "static/css/2.920e0ab0.chunk.css.map": "./static/css/2.920e0ab0.chunk.css.map", "static/css/3.a95be28f.chunk.css.map": "./static/css/3.a95be28f.chunk.css.map", - "static/css/4.b7570f85.chunk.css.map": "./static/css/4.b7570f85.chunk.css.map", + "static/css/4.9a8516be.chunk.css.map": "./static/css/4.9a8516be.chunk.css.map", "static/css/main.7f821f98.chunk.css.map": "./static/css/main.7f821f98.chunk.css.map", "static/js/2.53137399.chunk.js.LICENSE.txt": "./static/js/2.53137399.chunk.js.LICENSE.txt", "static/js/3.b290ff20.chunk.js.LICENSE.txt": "./static/js/3.b290ff20.chunk.js.LICENSE.txt", @@ -27,10 +27,10 @@ "static/media/login.css": "./static/media/方正-喵呜.678f0c78.TTF" }, "entrypoints": [ - "static/js/runtime-main.d10fbcb1.js", + "static/js/runtime-main.fc385e80.js", "static/css/3.a95be28f.chunk.css", "static/js/3.b290ff20.chunk.js", "static/css/main.7f821f98.chunk.css", - "static/js/main.048af729.chunk.js" + "static/js/main.9f5951c5.chunk.js" ] } \ No newline at end of file diff --git a/public/index.html b/public/index.html index 5fde8d3..16f4477 100644 --- a/public/index.html +++ b/public/index.html @@ -1 +1 @@ -Leanote
\ No newline at end of file +Leanote
\ No newline at end of file diff --git a/public/static/css/4.9a8516be.chunk.css b/public/static/css/4.9a8516be.chunk.css new file mode 100644 index 0000000..8c1637e --- /dev/null +++ b/public/static/css/4.9a8516be.chunk.css @@ -0,0 +1,2 @@ +@font-face{font-family:"iconfont";src:url(//at.alicdn.com/t/font_2894512_8kl34lxak1m.woff2?t=1635341353839) format("woff2"),url(//at.alicdn.com/t/font_2894512_8kl34lxak1m.woff?t=1635341353839) format("woff"),url(//at.alicdn.com/t/font_2894512_8kl34lxak1m.ttf?t=1635341353839) format("truetype")}.iconfont{font-family:"iconfont"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-xiangyou:before{content:"\e600"}.icon-mianbao:before{content:"\e609"}.myFont{font-family:myFont,serif}.logo{-webkit-user-select:none;-ms-user-select:none;user-select:none;padding-top:10px;border-bottom:3px solid #003057;padding-bottom:3px;padding-left:10px;position:relative}.logo img{width:180px;position:absolute}.logoIn{transition:opacity .1s ease-out;opacity:0}.logoOut{transition:opacity .1s ease-in;opacity:1%}.Icon{z-index:100;font-size:55px;color:#fff;position:absolute;top:-10px}.IconOut{transition:opacity .1s ease-out;opacity:0}.IconIn{transition:opacity .1s ease-in;opacity:1%}.Header_container{padding:0 12px;display:flex;justify-content:space-between;align-items:center}.headerTag{max-width:80px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.user_action_container,.user_info_container{height:100%;display:flex;justify-content:space-around;align-items:center}.user_action_button{background-color:#00474f;color:#c9c9c9}.current_notebook_name{margin-top:2px;margin-left:10px;font-size:17px;font-weight:600;line-height:10px;color:#dedede}.user_info_container{-webkit-user-select:none;-ms-user-select:none;user-select:none;width:120px;color:#fff}.content_container{height:100%;display:flex;align-items:center;position:relative;border:2px solid #030852}.scroll{position:absolute;width:5px;cursor:col-resize;z-index:100}.left_container{min-width:250px}.left_container,.right_container,.scroll{height:100%;min-height:635px;overflow:auto}.LeftNavMenu{-webkit-user-select:none;-ms-user-select:none;user-select:none}.NoteListNavHeader{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:0 10px;height:50px}.NoteNavList{padding-right:5px}.NoteNavListItem:hover{background-color:#e6f7ff}.Editor_Header{display:flex;flex-direction:column}.MyBraftEditor,.site-page-header{-webkit-user-select:none;-ms-user-select:none;user-select:none}.MyBraftEditor{display:flex;height:calc(100% - 120px)}.MarkDownContainer{max-height:1200px;width:50%;backgroundColor:#fff;padding-left:10px}.MarkDown{overflow:auto;height:100%;max-width:100%;background-color:#fafafa;padding:5px;border-radius:5px;border:1px solid #188ffd} +/*# sourceMappingURL=4.9a8516be.chunk.css.map */ \ No newline at end of file diff --git a/public/static/css/4.9a8516be.chunk.css.map b/public/static/css/4.9a8516be.chunk.css.map new file mode 100644 index 0000000..02596ec --- /dev/null +++ b/public/static/css/4.9a8516be.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://src/static/images/logo/index.css","webpack://src/components/Controller/Leanote/leanote.css","webpack://src/components/Controller/Leanote/Braft/index.css","webpack://src/components/Controller/Leanote/MyHeader/index.css"],"names":[],"mappings":"AAAA,WACI,sBAAuB,CACvB,oQAGJ,CAEA,UACI,gCAAkC,CAClC,cAAe,CACf,iBAAkB,CAClB,kCAAmC,CACnC,iCACJ,CAEA,sBACI,eACJ,CAEA,qBACI,eACJ,CChBA,QACI,wBACJ,CACA,MACI,wBAAyB,CAEzB,oBAAqB,CACrB,gBAAiB,CACjB,gBAAiB,CACjB,+BAA+B,CAC/B,kBAAkB,CAClB,iBAAkB,CAClB,iBACJ,CACA,UACI,WAAY,CACZ,iBACJ,CACA,QACI,+BAAiC,CACjC,SACJ,CACA,SACI,8BAAgC,CAChC,UACJ,CACA,MACI,WAAY,CACZ,cAAe,CACf,UAAY,CACZ,iBAAkB,CAClB,SACJ,CACA,SACI,+BAAiC,CACjC,SACJ,CACA,QACI,8BAAgC,CAChC,UACJ,CAEA,kBACI,cAAiB,CACjB,YAAa,CACb,6BAA8B,CAC9B,kBACJ,CACA,WACI,cAAe,CACf,UAAW,CACX,eAAgB,CAChB,kBAAmB,CACnB,sBAAuB,CACvB,iBACJ,CACA,4CACI,WAAY,CACZ,YAAa,CACb,4BAA6B,CAC7B,kBACJ,CACA,oBACI,wBAAyB,CACzB,aACJ,CACA,uBACI,cAAe,CACf,gBAAiB,CACjB,cAAe,CACf,eAAgB,CAChB,gBAAiB,CACjB,aACJ,CACA,qBACI,wBAAyB,CAEzB,oBAAqB,CACrB,gBAAiB,CACjB,WAAY,CACZ,UACJ,CAEA,mBACI,WAAY,CACZ,YAAa,CACb,kBAAmB,CACnB,iBAAkB,CAClB,wBACJ,CACA,QACI,iBAAkB,CAClB,SAAU,CAEV,iBAAkB,CAClB,WACJ,CACA,gBAEI,eACJ,CACA,yCACI,WAAY,CACZ,gBAAiB,CACjB,aACJ,CACA,aACI,wBAAyB,CAEzB,oBAAqB,CACrB,gBACJ,CAEA,mBACI,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,qBAAuB,CACvB,cAAe,CACf,WACJ,CACA,aAEI,iBACJ,CACA,uBACI,wBACJ,CACA,eACI,YAAa,CACb,qBACJ,CCxIA,iCCCI,wBAAyB,CAEzB,oBAAqB,CACrB,gBDGJ,CAPA,eACI,YAAa,CAKb,yBACJ,CACA,mBACI,iBAAkB,CAClB,SAAS,CACT,oBAAuB,CACvB,iBACJ,CACA,UACI,aAAc,CACd,WAAY,CACZ,cAAe,CACf,wBAAyB,CACzB,WAAW,CACX,iBAAkB,CAClB,wBACJ","file":"4.9a8516be.chunk.css","sourcesContent":["@font-face {\r\n font-family: \"iconfont\"; /* Project id 2894512 */\r\n src: url('//at.alicdn.com/t/font_2894512_8kl34lxak1m.woff2?t=1635341353839') format('woff2'),\r\n url('//at.alicdn.com/t/font_2894512_8kl34lxak1m.woff?t=1635341353839') format('woff'),\r\n url('//at.alicdn.com/t/font_2894512_8kl34lxak1m.ttf?t=1635341353839') format('truetype');\r\n}\r\n\r\n.iconfont {\r\n font-family: \"iconfont\" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.icon-xiangyou:before {\r\n content: \"\\e600\";\r\n}\r\n\r\n.icon-mianbao:before {\r\n content: \"\\e609\";\r\n}\r\n","@import \"../../../static/images/logo/index.css\";\r\n/*@font-face {\r\n font-family: myFont;\r\n src: url(\"./0014-BYBlueStarship-2.ttf\");\r\n}*/\r\n.myFont{\r\n font-family: myFont, serif;\r\n}\r\n.logo{\r\n -webkit-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -moz-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -ms-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n user-select: none;\r\n padding-top: 10px;\r\n border-bottom:3px solid #003057;\r\n padding-bottom:3px;\r\n padding-left: 10px;\r\n position: relative;\r\n}\r\n.logo img {\r\n width: 180px;\r\n position: absolute;\r\n}\r\n.logoIn{\r\n transition: opacity ease-out 0.1s;\r\n opacity: 0%;\r\n}\r\n.logoOut{\r\n transition: opacity ease-in 0.1s;\r\n opacity: 100%;\r\n}\r\n.Icon{\r\n z-index: 100;\r\n font-size: 55px;\r\n color: white;\r\n position: absolute;\r\n top: -10px;\r\n}\r\n.IconOut{\r\n transition: opacity ease-out 0.1s;\r\n opacity: 0%;\r\n}\r\n.IconIn{\r\n transition: opacity ease-in 0.1s;\r\n opacity: 100%;\r\n}\r\n/*header头部布局*/\r\n.Header_container{\r\n padding: 0px 12px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.headerTag{\r\n max-width: 80px;\r\n width: 100%;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n text-align: center;\r\n}\r\n.user_action_container,.user_info_container{\r\n height: 100%;\r\n display: flex;\r\n justify-content: space-around;\r\n align-items: center;\r\n}\r\n.user_action_button{\r\n background-color: #00474f;\r\n color: #c9c9c9;\r\n}\r\n.current_notebook_name{\r\n margin-top: 2px;\r\n margin-left: 10px;\r\n font-size: 17px;\r\n font-weight: 600;\r\n line-height: 10px;\r\n color: #dedede;\r\n}\r\n.user_info_container{\r\n -webkit-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -moz-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -ms-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n width: 120px;\r\n color: white;\r\n}\r\n/*content样式*/\r\n.content_container{\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n position: relative;\r\n border:#030852 2px solid;\r\n}\r\n.scroll{\r\n position: absolute;\r\n width: 5px;\r\n /*移入光标*/\r\n cursor: col-resize;\r\n z-index: 100;\r\n}\r\n.left_container{\r\n /*background-color: #1d3c41;*/\r\n min-width: 250px;\r\n}\r\n.left_container,.right_container,.scroll{\r\n height: 100%;\r\n min-height: 635px;\r\n overflow: auto;\r\n}\r\n.LeftNavMenu{\r\n -webkit-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -moz-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -ms-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n}\r\n/*左侧notebook导航栏的页头样式*/\r\n.NoteListNavHeader{\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background-color: white;\r\n padding: 0 10px;\r\n height: 50px;\r\n}\r\n.NoteNavList{\r\n /*padding: 0 5px;*/\r\n padding-right: 5px;\r\n}\r\n.NoteNavListItem:hover{\r\n background-color: #e6f7ff;\r\n}\r\n.Editor_Header{\r\n display: flex;\r\n flex-direction:column;\r\n}\r\n/*\r\n.NoteNavSwitch{\r\n background: #5164bf;\r\n}*/\r\n",".MyBraftEditor{\r\n display: flex;\r\n -webkit-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -moz-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -ms-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n user-select: none;\r\n height: calc(100% - 120px);/* 禁止 DIV 中的文本被鼠标选中 */\r\n}\r\n.MarkDownContainer{\r\n max-height: 1200px;\r\n width:50%;\r\n backgroundColor:#ffffff;\r\n padding-left:10px;\r\n}\r\n.MarkDown{\r\n overflow: auto;\r\n height: 100%;\r\n max-width: 100%;\r\n background-color: #fafafa;\r\n padding:5px;\r\n border-radius: 5px;\r\n border:1px solid #188ffd;\r\n}\r\n",".site-page-header{\r\n -webkit-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -moz-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n -ms-user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n user-select: none; /* 禁止 DIV 中的文本被鼠标选中 */\r\n\r\n}"]} \ No newline at end of file diff --git a/public/static/js/4.42856d3b.chunk.js b/public/static/js/4.42856d3b.chunk.js new file mode 100644 index 0000000..5b0f94d --- /dev/null +++ b/public/static/js/4.42856d3b.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonpleanote=this.webpackJsonpleanote||[]).push([[4],{306:function(e,t,n){},376:function(e,t,n){},479:function(e,t,n){},568:function(e,t,n){"use strict";n.r(t);var a=n(33),o=n.n(a),r=n(39),s=n(187),c=n(47),i=n(29),l=n(30),u=n(31),d=n(32),b=n(0),h=n(558),j=n(547),p=n(110),f=n(194),N=n(109),m=n(567),g=n(233),O=n(561),k=n(552),x=n(569),I=n(571),v=n(572),T=n(573),y=n(574),w=n(575),C=n(576),L=n(577),B=n(578),D=n(579),M=n(156),S=n(374),V=n(48),U=n.n(V),A=n(85),R=n(377),E=n.n(R),H=n(541),P=n(546),z=(n(472),n(473),n(474),n(475)),q=n.n(z),F=(n(478),n(582)),X=n(212),Y=n.n(X),Z=n(261),G=(n(479),n(80)),K=n(3);E.a.use(q()({includeEditors:["editor-with-code-highlighter"]})),E.a.use(q()({syntaxs:[{name:"JavaScript",syntax:"javascript"},{name:"HTML",syntax:"html"},{name:"CSS",syntax:"css"},{name:"Java",syntax:"java"}]}));var W=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),s=0;s20,o=Object(K.jsx)(k.a,{className:"edit-tag",closable:!0,onClose:function(){return e.handleClose(t)},children:Object(K.jsx)("span",{onDoubleClick:function(a){0!==n&&(e.setState({editInputIndex:n,editInputValue:t},(function(){e.editInput.focus()})),a.preventDefault())},children:a?"".concat(t.slice(0,20),"..."):t})},t);return a?Object(K.jsx)(g.a,{title:t,children:o},t):o})),a&&Object(K.jsx)(m.a,{ref:this.saveInputRef,type:"text",size:"small",className:"tag-input",value:o,onChange:this.handleInputChange,onBlur:this.handleInputConfirm,onPressEnter:this.handleInputConfirm}),!a&&Object(K.jsxs)(k.a,{className:"site-tag-plus",onClick:this.showInput,children:[Object(K.jsx)(ee.a,{})," New Tag"]})]}):Object(K.jsx)(K.Fragment,{})]})}}]),n}(b.Component)),oe=Object(A.b)((function(e){return{TagList:e.TagList}}),{deleteTagListAction:ne,addTagListAction:te})(ae),re=n(566),se=n(564),ce=n(559),ie=n(560),le=n(563),ue=re.a.Option,de=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),s=0;s=0},children:t.map((function(e){return Object(K.jsx)(ue,{value:e.NotebookId,children:e.Title},e.NotebookId)}))})})}),Object(K.jsx)(ie.a,{span:12,children:Object(K.jsx)(se.a.Item,{name:"Title",label:"\u7b14\u8bb0\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7b14\u8bb0\u540d\u79f0"}],children:Object(K.jsx)(m.a,{placeholder:"\u8bf7\u8f93\u5165\u7b14\u8bb0\u540d\u79f0..."})})})]}),Object(K.jsxs)(ce.a,{gutter:16,children:[Object(K.jsx)(ie.a,{span:12,children:Object(K.jsx)(se.a.Item,{name:"type",label:"\u7b14\u8bb0\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4f60\u8981\u521b\u5efa\u7684\u7b14\u8bb0\u7c7b\u578b"}],children:Object(K.jsxs)(re.a,{children:[Object(K.jsx)(ue,{value:"Common",children:"\u666e\u901a\u7b14\u8bb0"}),Object(K.jsx)(ue,{value:"MarkDown",children:"MarkDown"})]})})}),Object(K.jsx)(ie.a,{span:12,children:Object(K.jsx)(se.a.Item,{name:"Tags",label:"\u6807\u7b7e",children:Object(K.jsx)(re.a,{mode:"tags",style:{width:"100%"},placeholder:"\u5728\u8fd9\u91cc\u8f93\u5165\u4f60\u60f3\u8981\u7684\u6807\u7b7e",children:n.map((function(e){return Object(K.jsx)(ue,{value:e.Tag,children:e.Tag},e.TagId)}))})})})]}),Object(K.jsx)(ce.a,{gutter:16,children:Object(K.jsx)(ie.a,{span:24,children:Object(K.jsx)(se.a.Item,{name:"CreatedTime",label:"\u65e5\u671f",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u521b\u5efa\u65e5\u671f!"}],children:Object(K.jsx)(le.a,{showTime:!0,style:{width:"100%"}})})})}),Object(K.jsx)(ce.a,{gutter:16,children:Object(K.jsx)(ie.a,{span:24,children:Object(K.jsx)(se.a.Item,{children:Object(K.jsxs)("div",{style:{float:"right"},children:[Object(K.jsx)(f.a,{htmlType:"button",onClick:this.props.onCancel,style:{marginRight:"10px"},children:"\u53d6\u6d88"}),Object(K.jsx)(f.a,{type:"primary",htmlType:"submit",children:"\u786e\u8ba4"})]})})})})]})}}]),n}(b.Component),be=de,he=(n(306),h.a.Header),je=h.a.Content,pe=h.a.Sider,fe=j.a.SubMenu,Ne=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,l=new Array(a),u=0;u0&&(n=n.filter((function(e){return!e.IsDeleted})),console.log("Tag",n),e.props.addTagListAction(n)),t.next=13,Object(G.a)("notebook/getNotebooks",{token:e.props.location.state.token},"post");case 13:if(n=t.sent,c=n,i=[],!(n.length>0)){t.next=32;break}l=0;case 18:if(!(l=1)){t.next=27;break}return c[l]=Object(s.a)(Object(s.a)({},c[l]),{},{notes:Object(r.a)(n.filter((function(e){return!e.IsTrash})))}),a=[].concat(Object(r.a)(a),Object(r.a)(n.filter((function(e){return e.IsTrash})))),i=[].concat(Object(r.a)(i),Object(r.a)(n)),t.abrupt("continue",28);case 27:c[l]=Object(s.a)(Object(s.a)({},c[l]),{},{notes:[]});case 28:l++,t.next=18;break;case 31:console.log("NoteBookList",c);case 32:e.setState({userToken:e.props.location.state.token,NoteBookList:c,NoteList:i,loadingNoteBooksInfo:{isLoading:!1,status:!0,msg:""}}),t.next=40;break;case 35:t.prev=35,t.t0=t.catch(5),console.log(t.t0),e.setState({loadingNoteBooksInfo:{isLoading:!1,status:!1,msg:"\u52a0\u8f7d\u5931\u8d25\u8bf7\u5237\u65b0\u518d\u8bd5..."}}),p.b.warn({content:"\u52a0\u8f7d\u5931\u8d25\u8bf7\u5237\u65b0\u518d\u8bd5...",key:"getData",duration:2});case 40:e.state.loadingNoteBooksInfo.status&&setTimeout((function(){e.setState({isGettingData:!1})}),1e4);case 41:case"end":return t.stop()}}),t,null,[[5,35]])}))),e.handleClickLeftNavItemDropDown=function(t,n){return Object(c.a)(o.a.mark((function a(){var r;return o.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=t,a.next="Delete"===a.t0?3:"Rename"===a.t0?12:15;break;case 3:if(console.log("Delete",n),!window.confirm("\u786e\u8ba4\u5220\u9664\u5417?")){a.next=11;break}return p.b.loading({content:"Loading...",key:"deleteNoteBook"}),a.next=8,Object(G.a)("notebook/deleteNotebook",{notebookId:n.NotebookId,usn:n.Usn,token:e.state.userToken},"post");case 8:r=a.sent,console.log(r),r.Ok?(e.setState((function(e){var t=e.NoteBookList,a=e.NoteList,o=e.currentNoteBookInfo,r=e.currentNoteNavList,s=e.headerNoteBookTitle;return t=t.filter((function(e){return e.NotebookId!==n.NotebookId})),a=a.filter((function(e){return e.NotebookId!==n.NotebookId})),n.notebookId!==o.NotebookId&&0!==t.length||(r=[],s=""),{currentNoteNavList:r,NoteList:a,NoteBookList:t,headerNoteBookTitle:s}})),p.b.success({content:"\u5220\u9664\u6210\u529f!",key:"deleteNoteBook",duration:2})):p.b.warn({content:"\u5220\u9664\u5931\u8d25\u8bf7\u7a0d\u540e\u91cd\u8bd5!",key:"deleteNoteBook",duration:2});case 11:return a.abrupt("break",15);case 12:return e.setState({willHandleDropDownName:n.Title,currentNoteBookInfo:n,NoteBookModalVisible:!0}),console.log("Rename",n),a.abrupt("break",15);case 15:case"end":return a.stop()}}),a)})))},e.handleClickNoteItemDropDown=function(t,n){return Object(c.a)(o.a.mark((function a(){var r;return o.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=t,a.next="Delete"===a.t0?3:"Rename"===a.t0?11:14;break;case 3:if(!window.confirm("\u786e\u8ba4\u8981\u5220\u9664\u5417?\u4f60\u7684\u64cd\u4f5c\u5c06\u65e0\u6cd5\u8fd4\u56de")){a.next=10;break}return console.log("\u5373\u5c06\u5220\u9664\u7684\u7b14\u8bb0",n),a.next=7,Object(G.a)("note/updateNote",{IsTrash:!0,token:e.state.userToken,NoteId:n.NoteId,Usn:n.Usn});case 7:r=a.sent,console.log(r),r.hasOwnProperty("Ok")?p.b.warn("\u7f51\u7edc\u5f02\u5e38\u8bf7\u7a0d\u540e\u518d\u8bd5"):(e.setState((function(e){var t=e.currentNoteNavList,a=e.NoteList,o=e.NoteBookList,r=e.TrashList;return t=t.filter((function(e){return e.NoteId!==n.NoteId})),a=a.filter((function(e){return e.NoteId!==n.NoteId})),o.forEach((function(e){n.NotebookId===e.NotebookId&&(e.notes=e.notes.filter((function(e){return e.NoteId!==n.NoteId})))})),r.push(n),{TrashList:r,NoteBookList:o,NoteList:a,currentNoteNavList:t}})),p.b.success("\u79fb\u9664\u6210\u529f"));case 10:return a.abrupt("break",14);case 11:return e.setState({NoteModalVisible:!0,currentNoteInfo:n,willHandleDropDownName:n.Title}),console.log("Rename",n),a.abrupt("break",14);case 14:case"end":return a.stop()}}),a)})))},e.handleClickLeftTagNavDropDown=function(t){return Object(c.a)(o.a.mark((function n(){var a;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(G.a)("tag/deleteTag",{token:e.state.userToken,tag:t.Tag,usn:t.Usn});case 2:a=n.sent,console.log(a),a.Ok?(p.b.success("\u5220\u9664\u6210\u529f"),e.props.deleteTagListAction(t)):p.b.warn("\u7f51\u7edc\u5f02\u5e38\u8bf7\u7a0d\u540e\u518d\u8bd5");case 5:case"end":return n.stop()}}),n)})))},e.handleModal=function(t){return Object(c.a)(o.a.mark((function n(){var a,r,s,c,i,l,u,d,b;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.state,r=a.NoteBookList,s=a.currentNoteBookInfo,c=a.currentNoteNavList,i=a.currentNoteInfo,""!==(l=e.changeNoteBookOrNoteNameInput.input.defaultValue)){n.next=5;break}return p.b.warn("\u8bf7\u8f93\u5165\u65b0\u7684\u540d\u79f0!"),n.abrupt("return");case 5:n.t0=t,n.next="NoteBook"===n.t0?8:"Note"===n.t0?13:18;break;case 8:return t="NotebookId",u=r,d=s,b=Object(G.a)("notebook/updateNotebook",{notebookId:d.NotebookId,title:l,usn:d.Usn,token:e.state.userToken}),n.abrupt("break",18);case 13:return t="NoteId",u=c,d=i,b=Object(G.a)("note/updateNote",{NoteId:d.NoteId,Usn:d.Usn,Title:l,token:e.state.userToken}),n.abrupt("break",18);case 18:return n.next=20,e.handleModalRequest(u,d,l,b,t);case 20:case"end":return n.stop()}}),n)})))},e.handleModalRequest=function(){var t=Object(c.a)(o.a.mark((function t(n,a,s,c,i){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(n),!n.find((function(e){return!e.IsDeleted&&e.Title===s}))){t.next=4;break}return p.b.warn("\u8bf7\u52ff\u8f93\u5165\u76f8\u540c\u7684\u540d\u79f0!"),t.abrupt("return");case 4:return t.next=6,c;case 6:c=t.sent,console.log("ModalRequest",c),c.hasOwnProperty("Ok")?p.b.warn("\u7f51\u7edc\u5f02\u5e38\u8bf7\u7a0d\u540e\u518d\u8bd5"):(a.Title=s,a.Usn=c.Usn,a.UpdatedTime=c.UpdatedTime,n=[].concat(Object(r.a)(n.filter((function(e){return e[i]!==a[i]}))),[a]),p.b.success("\u4fee\u6539\u6210\u529f!")),t.t0=i,t.next="NotebookId"===t.t0?12:"NoteId"===t.t0?14:17;break;case 12:return e.setState({NoteBookList:n,NoteBookModalVisible:!1}),t.abrupt("break",17);case 14:return e.HeaderChangePubSub(a,"","update"),e.setState({currentNoteNavList:n,NoteModalVisible:!1}),t.abrupt("break",17);case 17:case"end":return t.stop()}}),t)})));return function(e,n,a,o,r){return t.apply(this,arguments)}}(),e.handleClickLeftNavItem=function(t,n,a){return function(){e.setState({headerNoteBookTitle:t,currentNoteNavList:n,isUsingTagNav:!1,currentNoteBookInfo:a})}},e.handleClickTagNav=function(t){return function(){var n=e.state.NoteList,a=[];n.forEach((function(e){e.Tags.forEach((function(n){n===t.Tag&&(a=[].concat(Object(r.a)(a),[e]))}))})),e.setState({headerNoteBookTitle:t.Tag,currentNoteNavList:a,isUsingTagNav:!0}),e.HeaderChangePubSub()}},e.handleNoteListItem=function(t,n,a){return function(){e.HeaderChangePubSub(t,n,a)}},e.HeaderChangePubSub=function(e,t,n){e?U.a.publish("NoteInfo",{NoteInfo:{Usn:e.Usn,NotebookId:e.NotebookId,NoteId:e.NoteId,subTitle:e.Title,CreatedTime:e.CreatedTime,UpdatedTime:e.UpdatedTime,Tags:1===e.Tags.length&&""===e.Tags[0]?[]:e.Tags,parentTitle:t,IsMarkdown:e.IsMarkdown},type:n}):U.a.publish("NoteInfo",{type:"Tag"})},e.handleFindNote=function(){var t=e.state,n=t.NoteList;t.isSearching||(e.setState({isSearching:!0,isSearchingNote:!0}),e.timer=setInterval((function(){var t=e.searchNoteName.input.defaultValue;if(console.log(t),""===t)e.setState({isSearching:!1,isSearchingNote:!1}),clearInterval(e.timer);else{var a=n.filter((function(e){return-1!==e.Title.indexOf(t)}));e.setState({currentNoteNavListCache:a})}}),500),setTimeout((function(){e.timer&&(e.setState({isSearching:!1}),clearInterval(e.timer))}),5e3))},e.handleSearchNoteBook=function(){var t=e.state.NoteBookList,n=e.searchNoteBookName.input.defaultValue,a=t.find((function(e){return-1!==e.Title.indexOf(n)}));a&&e.setState({headerNoteBookTitle:a.Title,currentNoteNavList:a.notes,isUsingTagNav:!1})},e.handleFormFinish=function(){var t=Object(c.a)(o.a.mark((function t(n){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(n),!e.state.NoteBookList.find((function(e){return e.NotebookId===n.NotebookId})).notes.find((function(e){return e.Title===n.Title}))){t.next=5;break}return p.b.warn("\u8bf7\u52ff\u6dfb\u52a0\u76f8\u540c\u7684\u7b14\u8bb0\u540d\u79f0"),t.abrupt("return");case 5:return t.next=7,e.handleFormRequest(n);case 7:e.setState({createNoteVisible:!1});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.handleFormRequest=function(){var t=Object(c.a)(o.a.mark((function t(n){var a,s,c,i,l,u;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=n.NotebookId,s=n.Title,c=n.Tags,i=n.CreatedTime,l=n.type,t.next=3,Object(G.a)("note/addNote",{token:e.state.userToken,NotebookId:a,Tags:c,Title:s,Content:"",CreatedTime:i,IsMarkdown:"MarkDown"===l});case 3:u=t.sent,console.log(u),u.hasOwnProperty("Ok")?p.b.warn("\u6dfb\u52a0\u5931\u8d25\u8bf7\u7a0d\u540e\u518d\u8bd5!"):(p.b.success("\u6dfb\u52a0\u7b14\u8bb0\u6210\u529f!"),e.setState((function(e){var t=e.NoteBookList,n=e.NoteList,o=e.currentNoteNavList,s=e.currentNoteBookInfo,c=e.hasGiveAddNoteInformation;if(t.forEach((function(e){e.NotebookId===a&&(e.notes=[].concat(Object(r.a)(e.notes),[u]))})),n=[].concat(Object(r.a)(n),[u]),s.NotebookId===a&&(o=[].concat(Object(r.a)(o),[u])),!c){c=!0;var i="open".concat(Date.now()),l=Object(K.jsx)(f.a,{type:"primary",size:"small",onClick:function(){return N.a.close(i)},children:"\u786e\u8ba4"});N.a.open({message:"\u63d0\u793a",duration:0,description:"\u65b0\u6dfb\u52a0\u7b14\u8bb0\u7684\u6807\u7b7e\u5728\u66f4\u65b0\u540e\u4e0d\u4f1a\u663e\u793a\u5728\u5bfc\u822a\u680f,\u8fd9\u662f\u540e\u7aefapi\u539f\u56e0,\u540e\u7eed\u4f1a\u4fee\u6539",btn:l,key:i})}return{hasGiveAddNoteInformation:c,NoteBookList:t,NoteList:n,currentNoteNavList:o}})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.handleCreateNote=function(){return Object(c.a)(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.state.NoteBookList.length>0?e.setState({createNoteVisible:!0}):N.a.info({duration:2,message:"\u63d0\u793a",description:"\u5f53\u524d\u6ca1\u6709\u7b14\u8bb0\u672c,\u8bf7\u5148\u521b\u5efa\u7b14\u8bb0\u672c\u540e\u91cd\u8bd5"});case 1:case"end":return t.stop()}}),t)})))},e.handleCreateNoteBookModal=function(){return Object(c.a)(o.a.mark((function t(){var n,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.createNoteBookName.input.defaultValue,!e.state.NoteBookList.find((function(e){return e.Title===n}))){t.next=5;break}return p.b.warn("\u8bf7\u52ff\u6dfb\u52a0\u76f8\u540c\u7684\u7b14\u8bb0\u672c"),t.abrupt("return");case 5:return t.next=7,Object(G.a)("notebook/addNotebook",{token:e.state.userToken,title:n});case 7:a=t.sent,console.log(a),a.hasOwnProperty("Ok")?p.b.warn("\u6dfb\u52a0\u5931\u8d25\u8bf7\u7a0d\u540e\u518d\u8bd5"):(p.b.success("\u6dfb\u52a0\u6210\u529f"),e.setState((function(e){var t=e.NoteBookList;return a.notes=[],{NoteBookList:t=[].concat(Object(r.a)(t),[a])}}))),e.setState({createNoteBookVisible:!1});case 11:case"end":return t.stop()}}),t)})))},e.HandleDeleteTrash=function(t){return Object(c.a)(o.a.mark((function n(){var a;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(G.a)("note/deleteTrash",{token:e.state.userToken,noteId:t.NoteId});case 2:a=n.sent,console.log(a),a.OK?(p.b.success("\u5220\u9664\u6210\u529f"),e.setState((function(e){var n=e.TrashList;return{TrashList:n=n.filter((function(e){return e.NoteId!==t.NoteId}))}}))):p.b.warn("\u5220\u9664\u5931\u8d25!");case 5:case"end":return n.stop()}}),n)})))},e.handleOnMouseDown=function(t){var n=t.clientX,a=e.state.content_style.left_container.width;e.setState({draggable:!0,preClientX:n,currentWidth:a})},e.dragDivideLine=function(t){var n=e.state,a=n.draggable,o=n.preClientX,r=n.currentWidth,s=t.clientX,c=!0;if(a){var i=s-o+r;if(i<0)return void e.setState({draggable:!1});if(i<250||i>700){if(!(i<100))return;i=0,c=!1}e.setState({content_style:{left_container:{width:i},right_container:{width:"calc(100% - ".concat(i,"px)")},scroll:{left:i}},isUsingLeftContainer:c})}},e}return Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=Object(c.a)(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("\u2800 \u28c0\u28c0\u28c0\u28c0\u28c0\u28c0\u28c0\u28e0\u2802\u2800\u2802\u2881\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u28f4\u28fb\u28fd\u28fb\u28fa\u287d\u28fb\u28fb\u28fd\u28fb\u28fa\u28c6\u2800\u2800\u2804\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u28e4\u287f\u283f\u282b\u2809\u2880\u28fa\u28fa\u2807\u2800\u2808\u2809\u2809\u28fa\u28fa\u28ee\u2844\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28fe\u285f\u2880\u2804\u2820\u2848\u2819\u280b\u2801\u2800\u2810\u2801\u2848\u28a2\u2808\u28bf\u28fa\u28fa\u2844\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2818\u285f\u2800\u2818\u2800\u28f4\u2844\u2800\u2800\u2800\u2800\u2800\u2838\u281f\u2800\u2800\u2800\u2819\u283f\u2807\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u2883\u2800\u2800\u2820\u2808\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2808\u2828\u2810\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u282c\u2840\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2840\u2804\u2810\u2800\u2800\u2888\u2800\u2801\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2810\u2800\u2800\u2800\u2801\u2822\u2800\u2800\u2810\u2801\u2800\u2800\u2800\u2840\u2808\u2800\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2801\u2802\u28a0\u28e4\u28c0\u28c0\u28e4\u28e4\u28e4\u28d6\u2804\u2880\u2800\u2800\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u2820\u2884\u2886\u2897\u289d\u289c\u285c\u28dc\u28ad\u28ab\u28aa\u286a\u286a\u2872\u2861\u2840\u2840\u2800\u2800\u2800\n\u2800\u2800\u28c0\u2860\u2880\u2820\u2870\u2854\u28d5\u2895\u285d\u285c\u28ce\u28ae\u28a3\u2863\u286b\u286a\u286a\u286a\u2863\u2863\u286b\u286a\u287a\u2878\u28cc\u2842\u2840\u2800\n\u2800\u2800\u2801\u2880\u2886\u2838\u2815\u28c7\u28a7\u2863\u2873\u28f9\u28b8\u286a\u286a\u286a\u2857\u285d\u285c\u2855\u285d\u285c\u28d5\u28bd\u2858\u28ea\u28b2\u28b1\u286a\u2800\n\u2800\u2800\u2800\u2800\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28b0\u2895\u289d\u289c\u284e\u285e\u28dc\u2895\u289d\u285c\u28dc\u285c\u284e\u286e\u286a\u2863\u2803\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2873\u28b9\u2878\u2871\u2879\u2878\u2878\u28f1\u2871\u28b1\u2801\u284b\u280e\u280a\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2880\u285d\u28d2\u2896\u2886\u2854\u28d4\u2896\u2886\u282f\u28cd\u2838\u2805\u281c\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2838\u2878\u286a\u28ea\u28ce\u282e\u28ea\u288e\u28a7\u28ab\u286a\u284e\u2877\u2800\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2803\u2800\u2880\u280a\u2800\u2800\u2800\u2808\u2803\u2809\u2800\u2843\u2800\u2800\u2800\u2800\u2800\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28b8\u2800\u2800\u2858\u2800\u2800\u2800\u2800\u2800\u2882\u2800\u2880\u28a0\u2800\u2800\u2800\u2800\u2810\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28f0\u28af\u28e4\u2874\u2846\u2800\u2800\u2800\u2800\u2800\u2800\u28e6\u2800\u28b8\u28c4\u2800\u2800\u2800\u2888\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28e0\u2876\u28f6\u28fb\u28fd\u28fb\u28fa\u287d\u2807\u2800\u2800\u2800\u2800\u2800\u2800\u28ef\u28bf\u28fd\u28fa\u2884\u2800\u2800\u2820\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2819\u2819\u2813\u281b\u281a\u2803\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2808\u281b\u28be\u28fa\u28af\u28df\u2866\u2840\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2819\u2819\u283a\u281d\u2883"),U.a.subscribe("updateNote",(function(e,n){n.Title=n.subTitle,t.setState((function(e){var t=e.NoteBookList,a=e.currentNoteNavList,o=e.NoteList;return t.forEach((function(e){e.NotebookId===n.NotebookId&&(e.notes=[].concat(Object(r.a)(e.notes.filter((function(e){return e.NoteId!==n.NoteId}))),[n]))})),o=[].concat(Object(r.a)(o.filter((function(e){return e.NoteId!==n.NoteId}))),[n]),{NoteBookList:t,currentNoteNavList:a=[].concat(Object(r.a)(a.filter((function(e){return e.NoteId!==n.NoteId}))),[n]),NoteList:o}}))})),e.next=4,this.getData();case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.setState({},(function(){return!1})),U.a.unsubscribe("updateNote")}},{key:"render",value:function(){var e=this,t=this.state,n=t.NoteBookList,a=t.NoteList,r=t.TrashList,i=t.loadingNoteBooksInfo,l=t.headerNoteBookTitle,u=t.content_style,d=t.draggable,p=t.currentNoteNavList,N=t.collapsed,T=t.isUsingTagNav,y=t.isSearchingNote,V=t.currentNoteNavListCache,U=t.isUsingLeftContainer,A=this.props.TagList,R=u.left_container,E=u.right_container,H=u.scroll,P=i.isLoading,z=i.msg,q=i.status;return p=y?V:p,l=y?"Search":l,Object(K.jsxs)(h.a,{style:{minHeight:"100vh"},children:[Object(K.jsx)(S.a,{title:"\u8bf7\u8f93\u5165\u65b0\u7684\u7b14\u8bb0\u540d\u79f0",visible:this.state.createNoteVisible,footer:null,onCancel:function(){return e.setState({createNoteVisible:!1})},children:Object(K.jsx)(be,{TagList:A,NoteBookList:n,onCancel:function(){return e.setState({createNoteVisible:!1})},onFinish:this.handleFormFinish})}),Object(K.jsxs)(S.a,{title:"\u8bf7\u8f93\u5165\u65b0\u7684\u7b14\u8bb0\u540d\u79f0",visible:this.state.NoteModalVisible,onOk:this.handleModal("Note"),onCancel:function(){return e.setState({NoteModalVisible:!1})},okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",width:250,children:[Object(K.jsx)("h4",{children:this.state.willHandleDropDownName}),Object(K.jsx)(m.a,{placeholder:"Rename",style:{backgroundColor:"#e6f7ff"},ref:function(t){return e.changeNoteBookOrNoteNameInput=t},onPressEnter:this.handleModal("Note")})]}),Object(K.jsxs)(pe,{collapsible:!0,collapsed:N,onCollapse:function(t){return e.setState({collapsed:t})},children:[Object(K.jsx)("div",{className:"logo",children:Object(K.jsxs)("div",{style:{height:"50px"},children:[Object(K.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX8AAABPCAYAAAADScV+AAATOUlEQVR4nO2df2gcxxXHV1IlnWJF0llSUhpLgaiqjIVNfMa2fCpNm0ASAoEGSlyKk4b0jyTQQkMgbSCQBkqTmEL7R6G00LQl/aMOBf9RCkkgaaC+lRpFUh1HhxThgGVcjFzZ0iWWTj/sK197JqzP+2Nmd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JMmoDRGSmFZQBUaMJT+zJq/JZ8ncG46QzXYkM30Cw97V1fUN13VHsc6H6V18MB00MzMT+Y6yXnUUfF5eV92pntedRt1XNv5bdTU+DqajNnDf7u7ux1R/z5W8VjoAnvzMprwmd3+L3huOkErHF0dnmQctZLzQAeTz+YN9fX0ne3t7L+Czf//+H+PvIl6/7hQluhbL+fneKm0gjbqfes9ftadVAQVo+lkmozZw37g7AJOKKlGFy2ujA4hbLjrL1XbHB4NneqRlUtfjet48cVqcDVhp031l429jioDfP663hR5RRFYUoI28PpBH9xBQp+JwRakFg+owpSqVSsdsyWwClXKQMSY61s1Mdjg8HbEp/YPnrdKueeI06KyOEUmadF/Z+JsMo3JYobOFldj5M1R2hZoE8ug0sHGGo35AUWwYVJ3zu2iPkHllZeUVyKxbbh2ymoiZF21HcdfNOChjpCDQacC44Tcd4cPbNZcfZeZXbtzgM7261q505dRJk+7XqTywUqlc+xexqHyzQfU11S8mE5qm0/BzeKKmoFV/3rvrTpoWBeJ2scisEo3Ay8m04mBTyblz547yw9PDQsogD882ODc392Y2mz3oV/cm6rgapN9dWFh4xnvoO2SvTpiVyWRmw9qGw9pHXFlRjn4x2igLdLRxPEtEAOHd/Mqae4Y6vWpv4jPVxG+8DcAY2szg6cVvVzXCYW3IY1r3kZ8ojFjG3/E0aMdjFLhycWXhW4/DXpK/jMMWl0wM/3hnVW288FxTzxShugyDlKk6pasNbykuvO69ZV7dPtJAkCLqNlDVz9HZCfJ7V+uhSeOKtotO3vtc0fabpNFPCyZ137jxF8XbSJwAD8ymIeM9ftpy96Oc5ufnn67O8cE91DSfNRAFyrypqelT26MrUarbKKZ5sDtTt7x4TqlUug97SpDIK+0duAwYba2trd1VLpf7eRvmbddJob6lCd26H2X8CYIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIJICY7j/B8dK4kC/yiqtAAAAABJRU5ErkJggg==",alt:"logo",className:"".concat(this.state.collapsed?"logoIn":"logoOut")}),Object(K.jsx)("i",{className:"iconfont icon-mianbao Icon ".concat(this.state.collapsed?"IconIn":"IconOut")})]})}),Object(K.jsxs)(j.a,{theme:"dark",mode:"inline",className:"LeftNavMenu",children:[Object(K.jsx)(fe,{icon:Object(K.jsx)(w.a,{}),title:"NoteBook",children:N?Object(K.jsx)(K.Fragment,{}):Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)(g.a,{placement:"right",title:"\u6309\u4e0b\u56de\u8f66\u6765\u67e5\u627e\u7b14\u8bb0\u672c",children:Object(K.jsx)(j.a.Item,{style:{backgroundColor:"#000c17",marginTop:8,marginBottom:2,paddingLeft:32},children:Object(K.jsx)("div",{style:{display:"flex",justifyContent:"space-around",alignItems:"center"},children:Object(K.jsx)(m.a,{placeholder:"Search...",ref:function(t){return e.searchNoteBookName=t},style:{backgroundColor:"#e6f7ff",width:160},onPressEnter:this.handleSearchNoteBook})})},"Search")}),Object(K.jsx)(S.a,{title:"\u8bf7\u8f93\u5165\u65b0\u7684\u7b14\u8bb0\u672c\u540d\u79f0",visible:this.state.createNoteBookVisible,onCancel:function(){return e.setState({createNoteBookVisible:!1})},onOk:this.handleCreateNoteBookModal(),okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",width:250,children:Object(K.jsx)(m.a,{placeholder:"\u5728\u6b64\u8f93\u5165\u7b14\u8bb0\u672c\u540d\u79f0",ref:function(t){return e.createNoteBookName=t},onPressEnter:this.handleCreateNoteBookModal()})}),Object(K.jsx)(g.a,{placement:"right",title:"\u70b9\u51fb\u6765\u521b\u5efa\u65b0\u7684\u7b14\u8bb0",children:Object(K.jsx)(j.a.Item,{icon:Object(K.jsx)(C.a,{}),style:{color:"white",backgroundColor:"#2f54eb"},onClick:function(){return e.setState({createNoteBookVisible:!0})},children:"Newest"},"Newest")}),P?Object(K.jsx)(j.a.Item,{children:"\u52a0\u8f7d\u4e2d..."},"loading"):q?n.filter((function(e){return!e.IsDeleted})).map((function(t){return Object(K.jsx)(j.a.Item,{onClick:e.handleClickLeftNavItem(t.Title,t.notes,t),children:Object(K.jsx)(O.a,{overlay:e.menu(t),trigger:["contextMenu"],children:Object(K.jsx)("div",{className:"site-dropdown-context-menu",style:{textAlign:"center",height:200,lineHeight:"200px"},children:Object(K.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Object(K.jsxs)(S.a,{title:"\u8bf7\u8f93\u5165\u65b0\u7684\u7b14\u8bb0\u672c\u540d\u79f0",visible:e.state.NoteBookModalVisible,onOk:e.handleModal("NoteBook"),onCancel:function(){return e.setState({NoteBookModalVisible:!1})},okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",width:250,children:[Object(K.jsx)("h4",{children:e.state.willHandleDropDownName}),Object(K.jsx)(m.a,{placeholder:"Rename",style:{backgroundColor:"#e6f7ff"},ref:function(t){return e.changeNoteBookOrNoteNameInput=t},onPressEnter:e.handleModal("NoteBook")})]}),Object(K.jsx)("div",{children:t.Title}),Object(K.jsx)("div",{children:t.notes.length})]})})})},t.NotebookId)})):Object(K.jsx)(j.a.Item,{style:{fontSize:"15px"},children:z},"loadingFalse")]})},"sub1"),Object(K.jsx)(fe,{icon:Object(K.jsx)(L.a,{}),title:"Tag",children:N?Object(K.jsx)(K.Fragment,{}):P?Object(K.jsx)(j.a.Item,{children:"\u52a0\u8f7d\u4e2d..."},"loadingTag"):q?A.filter((function(e){return""!==e.Tag})).map((function(t){return Object(K.jsx)(j.a.Item,{onClick:e.handleClickTagNav(t),children:Object(K.jsx)(O.a,{overlay:e.TagDropDown(t),trigger:["contextMenu"],children:Object(K.jsx)("div",{style:{width:"100%"},children:t.Tag})})},t.TagId)})):Object(K.jsx)(j.a.Item,{style:{fontSize:"15px"},children:z},"loadingTagFalse")},"sub2"),Object(K.jsx)(fe,{icon:Object(K.jsx)(v.a,{}),title:"Trash",children:N?Object(K.jsx)(K.Fragment,{}):r.map((function(t){return Object(K.jsx)(j.a.Item,{children:Object(K.jsx)(O.a,{placement:"bottomRight",overlay:function(){return Object(K.jsx)(j.a,{children:Object(K.jsx)(j.a.Item,{style:{fontSize:"15px",textAlign:"center"},onClick:e.HandleDeleteTrash(t),children:"Delete"},"Delete")})},children:Object(K.jsx)("div",{style:{width:"100%"},children:t.Title})})},t.NoteId)}))},"TrashList"),Object(K.jsx)(fe,{icon:Object(K.jsx)(B.a,{}),title:"Share",children:N?Object(K.jsx)(K.Fragment,{}):Object(K.jsx)(fe,{title:"admin",children:Object(K.jsx)(b.Fragment,{children:Object(K.jsx)(j.a.Item,{style:{backgroundColor:"#1d39c4"},children:"defaultSharing"},"defaultSharing")})},"share")},"sub3")]})]}),Object(K.jsxs)(h.a,{className:"site-layout",children:[Object(K.jsx)(he,{className:"site-layout-background",style:{padding:0,backgroundColor:"#001529"},children:Object(K.jsxs)("div",{className:"Header_container",children:[Object(K.jsxs)("div",{className:"user_action_container",children:[Object(K.jsxs)("div",{style:{height:65,width:290,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[Object(K.jsx)(m.a,{type:"primary",size:"small",placeholder:"Search note...",ref:function(t){return e.searchNoteName=t},style:{width:200,backgroundColor:"#f2f2ff"},onChange:this.handleFindNote}),Object(K.jsx)(f.a,{type:"primary",size:"small",className:"user_action_button",onClick:this.handleCreateNote(),children:"New Note"})]}),Object(K.jsx)("div",{className:"current_notebook_name",children:l?Object(K.jsx)(k.a,{color:"cyan",className:"headerTag",children:l}):""})]}),Object(K.jsx)("div",{className:"user_info_container",children:Object(K.jsx)(f.a,{className:"user_action_button",type:"primary",onClick:Object(c.a)(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getData();case 2:case"end":return t.stop()}}),t)}))),children:"\u66f4\u65b0\u7b14\u8bb0\u4fe1\u606f"})})]})}),Object(K.jsx)(je,{style:{margin:"10px 10px"},children:Object(K.jsx)("div",{className:"site-layout-background",style:{minHeight:550,height:"100%"},children:Object(K.jsxs)("div",{className:"content_container",onMouseMove:this.dragDivideLine,onMouseUp:function(){return e.setState({draggable:!1})},children:[U?Object(K.jsxs)("div",{className:"left_container",style:R,children:[Object(K.jsxs)(he,{className:"NoteListNavHeader",children:[Object(K.jsx)("div",{style:{width:140},children:Object(K.jsx)("div",{style:{marginTop:15},children:l?Object(K.jsx)(k.a,{icon:Object(K.jsx)(I.a,{}),color:"#e6f7ff",className:"headerTag",style:{color:"#26214c"},children:l}):""})}),Object(K.jsx)("div",{children:Object(K.jsx)(O.a,{overlay:this.NoteListNav,placement:"bottomRight",arrow:!0,children:Object(K.jsx)(D.a,{})})})]}),Object(K.jsx)("div",{className:"NoteNavList",children:!T||T&&p.length>0?Object(K.jsx)(j.a,{style:{width:"100%"},mode:"inline",children:p.map((function(t){return Object(K.jsx)(j.a.Item,{className:"NoteNavListItem",onClick:e.handleNoteListItem(t,l,"click"),children:Object(K.jsx)(O.a,{overlay:e.NoteItemNavMenu(t),trigger:["contextMenu"],children:Object(K.jsx)("div",{className:"site-dropdown-context-menu",style:{textAlign:"left",height:200,lineHeight:"200px"},children:Object(K.jsx)("span",{style:t.IsMarkdown?{color:"#4789f3"}:null,children:t.Title})})})},t.NoteId)}))}):Object(K.jsx)(x.a,{icon:Object(K.jsx)(M.a,{}),title:"\u5f53\u524d\u6807\u7b7e\u6ca1\u6709\u5bf9\u5e94\u7684\u7b14\u8bb0,\u4f60\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u7b14\u8bb0\u6216\u8005\u5220\u9664\u5f53\u524d\u6807\u7b7e",extra:Object(K.jsx)(f.a,{type:"primary",onClick:this.handleCreateNote(),children:"\u521b\u5efa\u7b14\u8bb0"})})})]}):Object(K.jsx)(K.Fragment,{}),Object(K.jsx)("div",{className:"scroll",style:d?Object(s.a)(Object(s.a)({},H),{},{backgroundColor:"#8c8c8c",transition:"background-color 0.2s ease-out"}):Object(s.a)(Object(s.a)({},H),{},{backgroundColor:"#d9d9d9",transition:"background-color 0.2s ease-out"}),onMouseDown:this.handleOnMouseDown}),Object(K.jsxs)("div",{className:"right_container",style:E,children:[Object(K.jsx)(oe,{Token:this.state.userToken}),Object(K.jsx)(J,{Token:this.state.userToken,NoteList:a})]})]})})})]})]})}}]),n}(b.Component);t.default=Object(A.b)((function(e){return{TagList:e.TagList}}),{deleteTagListAction:ne,addTagListAction:te,clearAllTagAction:function(e){return{type:"clear",TagListOrSingleTag:e}}})(Ne)}}]); +//# sourceMappingURL=4.42856d3b.chunk.js.map \ No newline at end of file diff --git a/public/static/js/4.42856d3b.chunk.js.map b/public/static/js/4.42856d3b.chunk.js.map new file mode 100644 index 0000000..9f62dd6 --- /dev/null +++ b/public/static/js/4.42856d3b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["components/Controller/Leanote/Braft/index.js","redux/actions/updateTagListAction.js","components/Controller/Leanote/MyHeader/index.js","components/Controller/Leanote/Form/FromNoteBook/index.js","components/Controller/Leanote/index.js","static/images/logo/Logo.png"],"names":["BraftEditor","use","CodeHighlighter","includeEditors","syntaxs","name","syntax","MyBraftEditor","state","editorState","createEditorState","NoteInfoList","currentNote","submitContent","a","console","log","hasOwnProperty","message","warn","loading","content","key","htmlContent","IsMarkdown","Content","toHTML","request","token","props","Token","NoteId","result","duration","success","UpdatedTime","PubSub","publish","type","NoteInfo","setState","handleEditorChange","onMarkDownChange","value","target","moment","Date","now","format","btn","size","onClick","notification","close","setTimeout","open","description","icon","BulbOutlined","subscribe","msg","data","filter","ele","find","noteId","this","NoteList","unsubscribe","className","style","display","padding","width","maxHeight","TextArea","onChange","placeholder","height","rehypePlugins","rehypeHighlight","excludeControls","onSave","id","Component","addTagListAction","TagListOrSingleTag","deleteTagListAction","MyPageHeader","subTitle","CreatedTime","Tags","parentTitle","NotebookId","Usn","inputVisible","inputValue","editInputIndex","editInputValue","hasGiveTagInformation","handleClose","removedTag","TagList","TagObj","Tag","currentNewTags","tag","synchronizedRequest","url","usn","method","length","showInput","input","focus","handleInputChange","e","handleInputConfirm","indexOf","info","handleEditInputChange","handleEditInputConfirm","newTags","saveInputRef","saveEditInputRef","editInput","title","extra","SaveOutlined","column","Item","label","alignItems","map","index","ref","onBlur","onPressEnter","isLongTag","tagElem","closable","onClose","onDoubleClick","preventDefault","slice","PlusOutlined","connect","Option","Select","FromNoteBookForm","handleOnFinish","values","onFinish","NoteBookList","layout","hideRequiredMark","initialValues","gutter","span","rules","required","showSearch","optionFilterProp","filterOption","option","children","toLowerCase","Title","mode","TagId","showTime","float","htmlType","onCancel","marginRight","Header","Layout","Sider","SubMenu","Menu","Leanote","collapsed","userToken","loadingNoteBooksInfo","isLoading","status","headerNoteBookTitle","TrashList","currentNoteNavList","willHandleDropDownName","currentNoteInfo","NoteModalVisible","NoteBookModalVisible","currentNoteBookInfo","isGettingData","isUsingTagNav","isSearchingNote","isSearching","currentNoteNavListCache","createNoteVisible","createNoteBookVisible","content_style","left_container","scroll","left","right_container","draggable","preClientX","currentWidth","isUsingLeftContainer","hasGiveAddNoteInformation","NoteItemNavMenu","Note","EditOutlined","handleClickNoteItemDropDown","DeleteOutlined","menu","NoteBook","handleClickLeftNavItemDropDown","TagDropDown","handleClickLeftTagNavDropDown","NoteListNav","ItemGroup","SortAscendingOutlined","SortDescendingOutlined","getData","clearAllTagAction","location","IsDeleted","i","notebookId","notes","IsTrash","window","confirm","Ok","forEach","Notebook","note","push","handleModal","currentValue","changeNoteBookOrNoteNameInput","defaultValue","willUpdateObj","currentObj","handleModalRequest","HeaderChangePubSub","handleClickLeftNavItem","handleClickTagNav","handleNoteListItem","handleFindNote","timer","setInterval","searchNoteName","clearInterval","handleSearchNoteBook","searchNoteBookName","handleFormFinish","handleFormRequest","handleCreateNote","handleCreateNoteBookModal","createNoteBookName","HandleDeleteTrash","OK","handleOnMouseDown","event","clientX","dragDivideLine","tempLength","minHeight","Modal","visible","footer","FromNoteBook","onOk","okText","cancelText","backgroundColor","c","collapsible","onCollapse","src","alt","theme","CopyOutlined","placement","marginTop","marginBottom","paddingLeft","justifyContent","PlusSquareOutlined","color","overlay","trigger","textAlign","lineHeight","TagOutlined","Team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AKrBH,GALqB,IAMxB2E,gBAAiB,UACjB2B,WAAW,mCAPa,2BACpBtG,GADoB,IAExB2E,gBAAiB,UACjB2B,WAAW,mCAMhBC,YAAahP,KAAKuM,oBACpB,sBAAKpM,UAAU,kBAAkBC,MAAOuI,EAAxC,UAEG,cAAC,GAAD,CAAc/K,MAAOoC,KAAK1D,MAAM8K,YAGhC,cAAC,EAAD,CAAexJ,MAAOoC,KAAK1D,MAAM8K,UAAWnH,SAAUA,wB,GA1pCnEiB,aAwqCP8D,uBAAQ,SAAA1I,GAAK,MAAK,CAAC8F,QAAQ9F,EAAM8F,WAAU,CAEtDf,uBACAF,oBACA6I,kBHlsC6B,SAAA5I,GAAkB,MAAK,CAAChD,KAAK,QAAQgD,wBG8rCvD4D,CAKZkC","file":"static/js/4.42856d3b.chunk.js","sourcesContent":["import React, {Component,Fragment} from 'react';\r\n// 引入编辑器组件\r\nimport BraftEditor from 'braft-editor'\r\nimport ReactMarkdown from \"react-markdown\";\r\nimport rehypeHighlight from 'rehype-highlight'\r\nimport 'highlight.js/styles/github.css';\r\n// 引入编辑器样式\r\nimport 'braft-editor/dist/index.css'\r\nimport 'braft-extensions/dist/code-highlighter.css'\r\nimport CodeHighlighter from 'braft-extensions/dist/code-highlighter'\r\nimport 'prismjs/components/prism-java'\r\nimport PubSub from \"pubsub-js\";\r\nimport {Button, message, notification} from \"antd\";\r\nimport {BulbOutlined} from \"@ant-design/icons\";\r\nimport moment from \"moment\";\r\nimport TextArea from \"antd/es/input/TextArea\";\r\nimport './index.css'\r\nimport {request} from \"../../../../Utils/request\";\r\n// 通过opitons.\r\n\r\nconst options = {\r\n syntaxs: [\r\n {\r\n name: 'JavaScript',\r\n syntax: 'javascript'\r\n }, {\r\n name: 'HTML',\r\n syntax: 'html'\r\n }, {\r\n name: 'CSS',\r\n syntax: 'css'\r\n }, {\r\n name: 'Java',\r\n syntax: 'java',\r\n }\r\n ]\r\n}\r\n\r\nBraftEditor.use(CodeHighlighter({\r\n includeEditors: ['editor-with-code-highlighter']\r\n}))\r\nBraftEditor.use(CodeHighlighter(options))\r\nclass MyBraftEditor extends Component {\r\n state = {\r\n // 创建一个空的editorState作为初始值\r\n editorState: BraftEditor.createEditorState(null),\r\n NoteInfoList:{},\r\n currentNote:{},\r\n // hasChange:false\r\n }\r\n async componentDidMount () {\r\n console.log(moment(Date.now()).format(\"YYYY-MM-DD HH:mm:ss\"));\r\n const key = `open${Date.now()}`;\r\n const btn = (\r\n \r\n )\r\n setTimeout(()=>{\r\n notification.open({\r\n message: '提示',\r\n duration:0,\r\n description:\r\n '您可以点击页头保存按钮或者按下ctrl+s键来保存笔记,笔记内容暂不支持自动保存',\r\n btn,\r\n key,\r\n icon:\r\n })\r\n },10000)\r\n PubSub.subscribe('NoteInfo',async (msg,data) => {\r\n let{NoteInfoList,currentNote,editorState} = this.state;\r\n let Content = null\r\n switch (data.type) {\r\n case \"click\":\r\n // console.log(\"点击\",data.NoteInfo);\r\n //说明切换到了其他的笔记\r\n if (currentNote && currentNote.hasOwnProperty(\"NoteId\") && currentNote.NoteId !== data.NoteInfo.NoteId){\r\n console.log(\"点击了其他组件\")\r\n NoteInfoList = [...NoteInfoList.filter(ele => ele.NoteId !== currentNote.NoteId),currentNote];\r\n this.setState({NoteInfoList});\r\n }\r\n currentNote = NoteInfoList.find(ele => ele.NoteId === data.NoteInfo.NoteId)\r\n if(currentNote && currentNote.hasOwnProperty(\"Content\")){\r\n //说明当前存在组件\r\n editorState = BraftEditor.createEditorState(currentNote.Content)\r\n }else {\r\n let result = await request(\"note/getNoteContent\", {\r\n token: this.props.Token,\r\n noteId: data.NoteInfo.NoteId\r\n }, \"post\")\r\n if (!result.hasOwnProperty(\"Ok\")) {\r\n //首次点击当前组件\r\n Content = result.Content === \"\" ? null : result.Content;\r\n currentNote = data.NoteInfo;\r\n currentNote.Content = Content;\r\n editorState = BraftEditor.createEditorState(Content)\r\n\r\n } else {\r\n message.warn(\"获取内容失败!\")\r\n }\r\n }\r\n this.setState({\r\n currentNote,\r\n editorState\r\n })\r\n break;\r\n /*case \"update\":\r\n if(data.NoteInfo.NoteId === currentNote.NoteId){\r\n currentNote.Usn = data.NoteInfo.Usn;\r\n this.setState({currentNote});\r\n }\r\n\r\n break;*/\r\n case \"content\":\r\n await this.submitContent()\r\n }\r\n })\r\n\r\n /* PubSub.subscribe(\"updateEditor\",(msg,data) => {\r\n console.log(\"编辑器更新\")\r\n this.setState(({currentNote}) => {\r\n currentNote.Usn = data.Usn;\r\n return{currentNote}\r\n })\r\n })*/\r\n this.setState({NoteInfoList:this.props.NoteList})\r\n // 假设此处从服务端获取html格式的编辑器内容\r\n // const htmlContent = await fetchEditorContent()\r\n // 使用BraftEditor.createEditorState将html字符串转换为编辑器需要的editorStat\r\n\r\n }\r\n componentWillUnmount() {\r\n PubSub.unsubscribe(\"NoteInfo\")\r\n // PubSub.unsubscribe(\"updateEditor\")\r\n }\r\n\r\n // 在编辑器获得焦点时按下ctrl+s会执行此方法\r\n // 编辑器内容提交到服务端之前,可直接调用editorState.toHTML()来获取HTML格式的内容\r\n submitContent = async () => {\r\n let {currentNote,editorState} = this.state;\r\n console.log(\"保存的笔记信息\",currentNote);\r\n if (!currentNote.hasOwnProperty(\"NoteId\")) {\r\n message.warn(\"请选中一个笔记!\")\r\n return;\r\n }\r\n message.loading({ content: '保存中...', key:'submit'});\r\n\r\n let htmlContent = currentNote.IsMarkdown ? currentNote.Content : editorState.toHTML();\r\n //updateNote\r\n // const result = await saveEditorContent(htmlContent)\r\n try {\r\n let result\r\n // result = await request(\"note/updateNote\",{token:this.props.Token,NoteId:currentNote.NoteId,Usn:currentNote.Usn,Content:htmlContent})\r\n result = await request(\"note/updateNote\",{token:this.props.Token,NoteId:currentNote.NoteId,Content:htmlContent})\r\n console.log(\"笔记内容的更新\",result)\r\n /* result = await request(\"note/getNotes\", {token: this.state.userToken,afterUsn:result.usn}, \"post\")\r\n console.log(\"同步笔记\",result)*/\r\n if(!result.hasOwnProperty(\"Ok\")){\r\n message.success({content:\"保存成功\",key:'submit',duration:2})\r\n // NoteInfo.Usn = result.Usn;\r\n currentNote.UpdatedTime = result.UpdatedTime;\r\n currentNote.Content = htmlContent\r\n //通知主界面全局更新笔记相关信息\r\n PubSub.publish(\"updateNote\",currentNote)\r\n //头部组件更新\r\n PubSub.publish(\"NoteInfo\",{\r\n type:\"update\",\r\n NoteInfo:currentNote\r\n })\r\n this.setState({currentNote});\r\n\r\n }else {\r\n message.warn({content:\"保存失败请稍后再试\",key:'submit',duration:2})\r\n }\r\n }catch (e) {\r\n console.log(e);\r\n if (e.hasOwnProperty(\"status\")){\r\n message.warn({content:\"保存失败\",key:'submit',duration:2})\r\n }else {\r\n message.warn({content:\"请求超时!\",key:'submit',duration:2})\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n handleEditorChange = (editorState) => {\r\n console.log(editorState.toHTML());\r\n // console.log(editorState.toHTML());\r\n this.setState(({currentNote}) => {\r\n currentNote.Content = editorState.toHTML();\r\n return{\r\n editorState,\r\n currentNote,\r\n }\r\n });\r\n }\r\n onMarkDownChange = ({ target: { value } } )=> {\r\n this.setState(({currentNote}) => {\r\n currentNote.Content = value;\r\n return {currentNote};\r\n });\r\n // console.log(value);\r\n }\r\n /*\r\n
\r\n {\r\n IsMarkdown ?\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n {currentNote.Content}\r\n \r\n
\r\n
\r\n\r\n
:
\r\n \r\n
\r\n }\r\n\r\n
\r\n */\r\n render() {\r\n const { editorState,currentNote } = this.state\r\n let IsMarkdown = currentNote.IsMarkdown\r\n return (\r\n
\r\n {\r\n IsMarkdown ?\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n {currentNote.Content}\r\n \r\n
\r\n
\r\n\r\n
:
\r\n \r\n
\r\n }\r\n\r\n
\r\n )\r\n\r\n }\r\n}\r\n\r\nexport default MyBraftEditor;","export const addTagListAction = TagListOrSingleTag => ({type:\"add\",TagListOrSingleTag})\r\nexport const deleteTagListAction = TagListOrSingleTag => ({type:\"delete\",TagListOrSingleTag})\r\nexport const clearAllTagAction = TagListOrSingleTag => ({type:\"clear\",TagListOrSingleTag})\r\n// export const requestTagListAction = TagListOrSingleTag => ({type:\"request\",TagListOrSingleTag})","import React, {Component} from 'react';\r\nimport {PageHeader, Descriptions, Tag, Tooltip, Input, message, notification, Button} from 'antd';\r\nimport PubSub from \"pubsub-js\";\r\nimport moment from \"moment\";\r\nimport {PlusOutlined, SaveOutlined} from '@ant-design/icons';\r\nimport {connect} from \"react-redux\";\r\nimport {request, synchronizedRequest} from \"../../../../Utils/request\";\r\nimport {addTagListAction, deleteTagListAction} from \"../../../../redux/actions/updateTagListAction\";\r\nimport './index.css'\r\nclass MyPageHeader extends Component {\r\n\r\n state = {\r\n NoteInfo:{\r\n subTitle:'',\r\n CreatedTime:'',\r\n UpdatedTime:'',\r\n //当前notebook的tag数组\r\n Tags:[],\r\n parentTitle:'',\r\n // NoteUsn:0,\r\n NoteId:\"\",\r\n NotebookId:'',\r\n Usn:0\r\n },\r\n //总状态的数组用于寻找Usn来进行更新操作\r\n inputVisible: false,\r\n inputValue: '',\r\n editInputIndex: -1,\r\n editInputValue: '',\r\n //告诉用户关于删除Tag的操作\r\n hasGiveTagInformation:false\r\n }\r\n componentDidMount() {\r\n PubSub.subscribe(\"NoteInfo\",(msg,data) => {\r\n let{NoteInfo} = this.state;\r\n switch (data.type){\r\n case \"click\":\r\n this.setState({NoteInfo:data.NoteInfo})\r\n break;\r\n case \"update\":\r\n //只有是当前选中的NoteInfo才去更新显示信息\r\n if(NoteInfo && NoteInfo.NoteId === data.NoteInfo.NoteId){\r\n console.log(\"BeforePageHeaderUpdate\",NoteInfo)\r\n let{UpdatedTime,subTitle,Usn} = data.NoteInfo\r\n // let{UpdatedTime,subTitle,Usn} = data.NoteInfo\r\n // NoteInfo = {...NoteInfo,UpdatedTime,subTitle,Usn}\r\n NoteInfo = {...NoteInfo,UpdatedTime,subTitle,Usn}\r\n this.setState({NoteInfo});\r\n }\r\n /* this.setState(({NoteInfo}) =>{\r\n console.log(\"BeforePageHeaderUpdate\",NoteInfo)\r\n let{UpdatedTime,subTitle,Usn} = data.NoteInfo\r\n NoteInfo = {...NoteInfo,UpdatedTime,subTitle,Usn}\r\n return{\r\n NoteInfo\r\n }\r\n })*/\r\n break;\r\n case \"Tag\":\r\n this.setState({NoteInfo:{}});\r\n }\r\n })\r\n }\r\n componentWillUnmount() {\r\n PubSub.unsubscribe(\"NoteInfo\");\r\n this.setState({},()=>{\r\n return false\r\n });\r\n }\r\n\r\n /**\r\n * 当所有的笔记中都不没有同一个标签时,标签会被标记为IsDeleted:true\r\n * @param removedTag\r\n * @returns 删除Tag的回调\r\n */\r\n handleClose = async removedTag => {\r\n let {NoteInfo,hasGiveTagInformation} = this.state;\r\n let {NoteId,Tags,Usn} = NoteInfo;\r\n let {TagList} = this.props\r\n //总状态的Tag\r\n let TagObj = TagList.find(ele => ele.Tag === removedTag);\r\n //当前页头的Tag\r\n let currentNewTags = Tags.filter(tag => tag !== removedTag);\r\n //给的api在空标签状态下需要放一个空串否则过不了\r\n // if (currentNewTags.length === 0) currentNewTags[0] = '';\r\n console.log(currentNewTags);\r\n try{\r\n let result;\r\n if (TagObj){\r\n result = await synchronizedRequest([\r\n {url:\"tag/deleteTag\",data:{tag:removedTag,token:this.props.Token,usn:TagObj.Usn},method:\"post\"},\r\n {url:\"note/updateNote\",data:{Tags: [...(currentNewTags.length === 0 ? [\"\"] : currentNewTags)],token:this.props.Token,NoteId,Usn},method:\"post\"}\r\n ])\r\n NoteInfo.Usn = result[1].Usn;\r\n NoteInfo.UpdatedTime = result[1].UpdatedTime;\r\n // Usn = updatedNote.Usn\r\n }else {\r\n result = await request(\"note/updateNote\",{Tags: [...(currentNewTags.length === 0 ? [\"\"] : currentNewTags)],token:this.props.Token,NoteId,Usn})\r\n // NoteInfo.Usn = result.Usn;\r\n }\r\n\r\n console.log(\"删除tag后的更新\",result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n //在页面修改时要重新变为空数组\r\n NoteInfo.Tags = currentNewTags\r\n // this.props.deleteTagListAction(TagObj)\r\n if (!hasGiveTagInformation){\r\n const key = `open${Date.now()}`;\r\n const btn = (\r\n \r\n )\r\n notification.open({\r\n message: '提示',\r\n duration:0,\r\n description:\r\n '当所有笔记中都不存在当前标签时,即该标签已经完全被移除时,下一次更新标签导航将不会显示该标签',\r\n btn,\r\n key\r\n })\r\n }\r\n this.setState({NoteInfo,hasGiveTagInformation:true});\r\n PubSub.publish(\"updateNote\",NoteInfo)\r\n // PubSub.publish(\"updateEditor\",NoteInfo)\r\n }else {\r\n message.warn(\"删除失败请稍后再试!\")\r\n }\r\n }catch (e){\r\n console.log(e);\r\n message.warn(\"删除失败请稍后再试!\")\r\n }\r\n };\r\n\r\n showInput = () => {\r\n this.setState({ inputVisible: true }, () => this.input.focus());\r\n };\r\n\r\n handleInputChange = e => {\r\n this.setState({ inputValue: e.target.value });\r\n };\r\n /**\r\n *\r\n * @returns 更新Tag操作\r\n */\r\n handleInputConfirm = async () => {\r\n let {NoteInfo,inputValue} = this.state;\r\n let {NoteId,Tags,Usn} = NoteInfo;\r\n let {TagList} = this.props;\r\n if (inputValue && Tags.indexOf(inputValue) === -1) {\r\n try {\r\n //发请求添加tag并且通知更新当前note的tag信息\r\n let result = await synchronizedRequest([\r\n {url:\"tag/addTag\",data:{tag:inputValue,token:this.props.Token},method:\"post\"},\r\n {url:\"note/updateNote\",data:{Tags: [...Tags,inputValue],token:this.props.Token,NoteId,Usn},method:\"post\"}\r\n ])\r\n // NoteInfo.Usn = result[1].Usn;\r\n NoteInfo.UpdatedTime = result[1].UpdatedTime;\r\n //说明tag修改成功且对应的note也修改成功\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n console.log(result);\r\n // PubSub.publish(\"updateTagList\",{type:\"add\",Tag:result[0]})\r\n Tags = [...Tags, inputValue];\r\n //result[0] = {Tag...}对象信息\r\n if(!TagList.find(ele => ele.Tag === inputValue)){\r\n this.props.addTagListAction([result[0]])\r\n }\r\n NoteInfo.Tags = Tags;\r\n this.setState({\r\n NoteInfo,\r\n });\r\n }\r\n }catch (e){\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n }else {\r\n message.info(\"请勿添加相同的标签\")\r\n }\r\n PubSub.publish(\"updateNote\",NoteInfo);\r\n PubSub.publish(\"updateEditor\",NoteInfo);\r\n\r\n this.setState({\r\n inputVisible: false,\r\n inputValue: '',\r\n });\r\n };\r\n\r\n handleEditInputChange = e => {\r\n this.setState({ editInputValue: e.target.value });\r\n };\r\n\r\n handleEditInputConfirm = () => {\r\n this.setState(({ NoteInfo, editInputIndex, editInputValue }) => {\r\n const newTags = [...NoteInfo.Tags];\r\n newTags[editInputIndex] = editInputValue;\r\n NoteInfo.Tags = newTags;\r\n return {\r\n NoteInfo,\r\n editInputIndex: -1,\r\n editInputValue: '',\r\n };\r\n });\r\n };\r\n\r\n saveInputRef = input => {\r\n this.input = input;\r\n };\r\n\r\n saveEditInputRef = input => {\r\n this.editInput = input;\r\n };\r\n\r\n\r\n render() {\r\n let{NoteInfo, inputVisible, inputValue, editInputIndex, editInputValue} = this.state;\r\n let{subTitle,CreatedTime,UpdatedTime,parentTitle,Tags} = NoteInfo;\r\n return (\r\n
\r\n } onClick={() => PubSub.publish(\"NoteInfo\",{type:\"content\"})}>\r\n 保存\r\n ,\r\n ]}\r\n >\r\n \r\n {CreatedTime ? moment(CreatedTime).format(\"YYYY-MM-DD HH:mm:ss\") : ''}\r\n {UpdatedTime ? moment(UpdatedTime).format(\"YYYY-MM-DD HH:mm:ss\") : ''}\r\n \r\n \r\n {parentTitle ?
\r\n\r\n {Tags.map((tag, index) => {\r\n if (editInputIndex === index ) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n const isLongTag = tag.length > 20;\r\n const tagElem = (\r\n this.handleClose(tag)}\r\n >\r\n {\r\n if (index !== 0) {\r\n this.setState({ editInputIndex: index, editInputValue: tag }, () => {\r\n this.editInput.focus();\r\n });\r\n e.preventDefault();\r\n }\r\n }}\r\n >\r\n {isLongTag ? `${tag.slice(0, 20)}...` : tag}\r\n \r\n \r\n );\r\n return isLongTag ? (\r\n \r\n {tagElem}\r\n \r\n ) : (\r\n tagElem\r\n );\r\n })}\r\n {inputVisible && (\r\n \r\n )}\r\n {!inputVisible && (\r\n \r\n New Tag\r\n \r\n )}\r\n
: <>}\r\n
\r\n );\r\n }\r\n}\r\n\r\n//暴露组件\r\n//state将会是store中的总状态需要分别拿出来\r\nexport default connect(state => ({TagList:state.TagList}),{\r\n //api层面的优化,会自动加入dispatch\r\n deleteTagListAction,\r\n addTagListAction,\r\n // requestTagListAction\r\n})(MyPageHeader);","import React, {Component} from 'react';\r\nimport {Form, Col, Row, Input, Select, DatePicker, Button, message} from 'antd'\r\nconst { Option } = Select;\r\nclass FromNoteBookForm extends Component {\r\n handleOnFinish = async (values) => {\r\n /* if (values.type === 'MarkDown'){\r\n message.warn(\"当前不支持MarkDown编辑器\");\r\n return\r\n }*/\r\n // console.log(values);\r\n if (!values.Tags) values.Tags = [\"\"];\r\n this.props.onFinish(values);\r\n // console.log(values)\r\n }\r\n render() {\r\n // const { tags, inputVisible, inputValue ,children} = this.state;\r\n let{NoteBookList,TagList} = this.props\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n {\r\n NoteBookList.map(ele => {\r\n return ()\r\n })\r\n }\r\n \r\n {/**/}\r\n {/**/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*\r\n \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default FromNoteBookForm;","import React,{Component,Fragment} from \"react\";\r\nimport {Layout, Menu, Input, message, Button, Dropdown, Tooltip, Tag, notification, Result} from 'antd';\r\nimport {\r\n CopyOutlined, DeleteOutlined, EditOutlined, PlusSquareOutlined,\r\n SmileOutlined, SortAscendingOutlined, SortDescendingOutlined,\r\n TagOutlined, TeamOutlined, UnorderedListOutlined,\r\n} from '@ant-design/icons';\r\nimport Modal from \"antd/es/modal/Modal\";\r\nimport PubSub from \"pubsub-js\";\r\nimport {connect} from \"react-redux\"\r\nimport MyBraftEditor from \"./Braft\";\r\nimport MyPageHeader from \"./MyHeader\";\r\n// import logo from \"../../static/images/leanote/logo/leanote_white.png\"\r\nimport logo from \"../../../static/images/logo/Logo.png\"\r\nimport {request} from \"../../../Utils/request\";\r\nimport {addTagListAction, clearAllTagAction, deleteTagListAction} from \"../../../redux/actions/updateTagListAction\";\r\nimport FromNoteBookForm from \"./Form/FromNoteBook\";\r\nimport './leanote.css'\r\n\r\n\r\nconst { Header, Content, Sider } = Layout;\r\nconst { SubMenu } = Menu;\r\n\r\n\r\nclass Leanote extends Component {\r\n state = {\r\n collapsed: false,\r\n //用户信息\r\n userToken:\"\",\r\n // userID:\"\",\r\n //用户笔记本相关信息\r\n loadingNoteBooksInfo: {isLoading:true,status:true,msg:\"\"},\r\n //所有的Note集合,\r\n NoteList:[],\r\n NoteBookList:[],\r\n headerNoteBookTitle:'',\r\n\r\n //垃圾箱\r\n TrashList:[],\r\n //note导航栏\r\n currentNoteNavList:[],\r\n \r\n //全局对话框的名字\r\n willHandleDropDownName:'',\r\n \r\n //当前note导航栏的note信息\r\n currentNoteInfo:{},\r\n //Note导航的对话框状态\r\n NoteModalVisible:false,\r\n \r\n //左侧导航栏对话框的状态\r\n NoteBookModalVisible:false,\r\n currentNoteBookInfo:{},\r\n //是否正在获取信息\r\n isGettingData:false,\r\n //是否使用了标签查询\r\n isUsingTagNav:false,\r\n\r\n //是否正在查找笔记\r\n isSearchingNote:false,\r\n isSearching:false,\r\n //查找笔记的暂时保存\r\n currentNoteNavListCache:[],\r\n //创建新的笔记的对话框\r\n createNoteVisible:false,\r\n //创建心得笔记本的对话框\r\n createNoteBookVisible:false,\r\n //相关样式\r\n // imgOpacity:100,\r\n // IconOpacity:0,\r\n //content 内部 css\r\n content_style:{\r\n left_container : {\r\n width: 250,\r\n },\r\n scroll : {\r\n left:250\r\n },\r\n right_container : {\r\n width: \"calc(100% - 250px)\"\r\n }\r\n },\r\n //设置左右移动div的方法\r\n draggable:false,\r\n preClientX:0,\r\n //每次拖动时的宽度\r\n currentWidth:0,\r\n //当宽度小于一定时不展示左边的container\r\n isUsingLeftContainer:true,\r\n //用户相关体验\r\n //添加笔记第一次告知用户关于标签的信息\r\n hasGiveAddNoteInformation:false\r\n //抽屉表单\r\n // DrawerVisible:false\r\n };\r\n //note导航的右击菜单\r\n //执行修改名称或者删除操作\r\n NoteItemNavMenu = Note =>{\r\n return (\r\n \r\n } onClick={this.handleClickNoteItemDropDown(\"Rename\",Note)}>\r\n Rename\r\n \r\n } onClick={this.handleClickNoteItemDropDown(\"Delete\",Note)}>\r\n Delete\r\n \r\n \r\n )\r\n }\r\n //左侧导航栏的右击菜单\r\n menu = NoteBook =>{\r\n return (\r\n \r\n } onClick={this.handleClickLeftNavItemDropDown(\"Rename\",NoteBook)}>\r\n Rename\r\n \r\n } onClick={this.handleClickLeftNavItemDropDown(\"Delete\",NoteBook)}>\r\n Delete\r\n \r\n \r\n )\r\n }\r\n //标签栏的导航,只提供删除服务\r\n TagDropDown = TagObj =>{\r\n return (\r\n \r\n } onClick={this.handleClickLeftTagNavDropDown(TagObj)}>\r\n Delete\r\n \r\n \r\n )\r\n\r\n }\r\n //note导航栏的排序选项\r\n NoteListNav = () => {\r\n return (\r\n \r\n {/*从大到小*/}\r\n \r\n }>\r\n 创建日期\r\n \r\n {/*从小到大*/}\r\n }>\r\n 创建日期\r\n \r\n \r\n\r\n \r\n }>\r\n 更新日期\r\n \r\n }>\r\n 更新日期\r\n \r\n \r\n \r\n )\r\n }\r\n async componentDidMount(){\r\n // console.log(\"状态\",this.props.location.state.token);\r\n console.log(\r\n \"⠀ ⣀⣀⣀⣀⣀⣀⣀⣠⠂⠀⠂⢁⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣻⣽⣻⣺⡽⣻⣻⣽⣻⣺⣆⠀⠀⠄⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡿⠿⠫⠉⢀⣺⣺⠇⠀⠈⠉⠉⣺⣺⣮⡄⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⡟⢀⠄⠠⡈⠙⠋⠁⠀⠐⠁⡈⢢⠈⢿⣺⣺⡄⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠘⡟⠀⠘⠀⣴⡄⠀⠀⠀⠀⠀⠸⠟⠀⠀⠀⠙⠿⠇⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⢀⢃⠀⠀⠠⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠨⠐⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠬⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠄⠐⠀⠀⢈⠀⠁⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠀⠀⠀⠁⠢⠀⠀⠐⠁⠀⠀⠀⡀⠈⠀⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠂⢠⣤⣀⣀⣤⣤⣤⣖⠄⢀⠀⠀⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⢀⠠⢄⢆⢗⢝⢜⡜⣜⢭⢫⢪⡪⡪⡲⡡⡀⡀⠀⠀⠀\\n\" +\r\n \"⠀⠀⣀⡠⢀⠠⡰⡔⣕⢕⡝⡜⣎⢮⢣⡣⡫⡪⡪⡪⡣⡣⡫⡪⡺⡸⣌⡂⡀⠀\\n\" +\r\n \"⠀⠀⠁⢀⢆⠸⠕⣇⢧⡣⡳⣹⢸⡪⡪⡪⡗⡝⡜⡕⡝⡜⣕⢽⡘⣪⢲⢱⡪⠀\\n\" +\r\n \"⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⢰⢕⢝⢜⡎⡞⣜⢕⢝⡜⣜⡜⡎⡮⡪⡣⠃⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡳⢹⡸⡱⡹⡸⡸⣱⡱⢱⠁⡋⠎⠊⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡝⣒⢖⢆⡔⣔⢖⢆⠯⣍⠸⠅⠜⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡸⡪⣪⣎⠮⣪⢎⢧⢫⡪⡎⡷⠀⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠃⠀⢀⠊⠀⠀⠀⠈⠃⠉⠀⡃⠀⠀⠀⠀⠀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⡘⠀⠀⠀⠀⠀⢂⠀⢀⢠⠀⠀⠀⠀⠐\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⢯⣤⡴⡆⠀⠀⠀⠀⠀⠀⣦⠀⢸⣄⠀⠀⠀⢈\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⣠⡶⣶⣻⣽⣻⣺⡽⠇⠀⠀⠀⠀⠀⠀⣯⢿⣽⣺⢄⠀⠀⠠\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠙⠙⠓⠛⠚⠃⠁⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⢾⣺⢯⣟⡦⡀\\n\" +\r\n \"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠙⠺⠝⢃\")\r\n PubSub.subscribe(\"updateNote\",(msg,Note) => {\r\n // console.log(\"PubSubNote\",Note);\r\n Note.Title = Note.subTitle;\r\n this.setState(({NoteBookList,currentNoteNavList,NoteList}) =>{\r\n //找到对应的笔记本的笔记进行修改\r\n NoteBookList.forEach(Notebook => {\r\n if (Notebook.NotebookId === Note.NotebookId){\r\n Notebook.notes = [...(Notebook.notes.filter(ele => ele.NoteId !== Note.NoteId)),Note]\r\n }\r\n })\r\n /* let NoteBook = NoteBookList.find(ele => ele.NotebookId === Note.NotebookId)\r\n NoteBook.notes = [...(NoteBook.notes.filter(ele => ele.NoteId !== Note.NoteId)),Note]\r\n NoteBookList = [...(NoteBookList.filter(ele => ele.NotebookId !== NoteBook.NotebookId)),NoteBook]*/\r\n NoteList = [...(NoteList.filter(ele => ele.NoteId !== Note.NoteId)),Note]\r\n currentNoteNavList = [...(currentNoteNavList.filter(ele => ele.NoteId !== Note.NoteId)),Note]\r\n // console.log(currentNoteNavList);\r\n return{\r\n NoteBookList,\r\n currentNoteNavList,\r\n NoteList\r\n }\r\n });\r\n })\r\n await this.getData();\r\n }\r\n getData = async () => {\r\n if (this.state.isGettingData){\r\n message.info(\"请不要频繁获取信息!\")\r\n return;\r\n }\r\n this.setState({isGettingData:true});\r\n //redux清空\r\n this.props.clearAllTagAction(null);\r\n\r\n try {\r\n/* let result;\r\n let TrashList = [];\r\n result = await request(\"auth/login\",{email:\"admin\",pwd:\"123456\"},\"post\")\r\n console.log(result);\r\n if (result.Ok) {\r\n message.loading({ content: '加载中...', key:'getData'});\r\n this.setState({userToken:result.Token})\r\n result = await request(\"tag/getSyncTags\", {token: this.state.userToken}, \"post\");\r\n // result = await request(\"tag/getSyncTags\", {token: this.props.location.state.token}, \"post\");\r\n //删除的Tag过滤\r\n\r\n if (result.length > 0){\r\n result = result.filter(ele => !ele.IsDeleted)\r\n console.log(\"Tag\",result);\r\n this.props.addTagListAction(result)\r\n // this.setState({TagList:result})\r\n }\r\n result = await request(\"notebook/getNotebooks\", {token: this.state.userToken}, \"post\");\r\n // result = await request(\"notebook/getNotebooks\", {token: this.props.location.state.token}, \"post\");\r\n //获取笔记本列表\r\n // console.log(result);\r\n let NoteBookList = result;\r\n let NoteList = [];\r\n\r\n if (result.length > 0) {\r\n\r\n // let TrashList = [];\r\n //获取每一个noteBook当前所拥有的笔记个数\r\n //获取的笔记数默认多一个需要从数组index为1开始截取\r\n for (let i = 0;i < NoteBookList.length; i++) {\r\n result = await request(\"/note/getNotes\", {token:this.state.userToken, notebookId: NoteBookList[i].NotebookId}, \"post\");\r\n // result = await request(\"/note/getNotes\", {token: this.props.location.state.token, notebookId: NoteBookList[i].NotebookId}, \"post\");\r\n\r\n // console.log(result);\r\n if(result && result.length >= 1){\r\n NoteBookList[i] = {...NoteBookList[i], notes:[...result.filter(ele => !ele.IsTrash)]}\r\n TrashList = [...TrashList,...result.filter(ele => ele.IsTrash)];\r\n /!*for(let j = 0;j < result.length;j++){\r\n if (result[j].IsTrash){\r\n TrashList = [...TrashList,result[j]];\r\n }\r\n }*!/\r\n NoteList = [...NoteList,...result]\r\n continue;\r\n }\r\n NoteBookList[i] = {...NoteBookList[i], notes: []}\r\n }\r\n console.log('NoteBookList',NoteBookList);\r\n }\r\n this.setState({NoteBookList,NoteList,TrashList,loadingNoteBooksInfo: {isLoading: false,status: true,msg: \"\"}})\r\n message.success({ content: '成功获取信息!', key:'getData',duration:2});\r\n // this.setState({userToken:this.props.location.state.token,NoteBookList,NoteList,loadingNoteBooksInfo: {isLoading: false,status: true,msg: \"\"}})\r\n }else {\r\n message.warn(\"登陆失败!!\");\r\n }*/\r\n let result;\r\n let TrashList = [];\r\n\r\n\r\n result = await request(\"tag/getSyncTags\", {token: this.props.location.state.token}, \"post\");\r\n //删除的Tag过滤\r\n\r\n if (result.length > 0){\r\n result = result.filter(ele => !ele.IsDeleted)\r\n console.log(\"Tag\",result);\r\n this.props.addTagListAction(result)\r\n // this.setState({TagList:result})\r\n }\r\n result = await request(\"notebook/getNotebooks\", {token: this.props.location.state.token}, \"post\");\r\n //获取笔记本列表\r\n // console.log(result);\r\n let NoteBookList = result;\r\n let NoteList = [];\r\n\r\n if (result.length > 0) {\r\n\r\n // let TrashList = [];\r\n //获取每一个noteBook当前所拥有的笔记个数\r\n //获取的笔记数默认多一个需要从数组index为1开始截取\r\n for (let i = 0;i < NoteBookList.length; i++) {\r\n result = await request(\"/note/getNotes\", {token: this.props.location.state.token, notebookId: NoteBookList[i].NotebookId}, \"post\");\r\n\r\n // console.log(result);\r\n if(result && result.length >= 1){\r\n NoteBookList[i] = {...NoteBookList[i], notes:[...result.filter(ele => !ele.IsTrash)]}\r\n TrashList = [...TrashList,...result.filter(ele => ele.IsTrash)];\r\n NoteList = [...NoteList,...result]\r\n continue;\r\n }\r\n NoteBookList[i] = {...NoteBookList[i], notes: []}\r\n }\r\n console.log('NoteBookList',NoteBookList);\r\n }\r\n this.setState({userToken:this.props.location.state.token,NoteBookList,NoteList,loadingNoteBooksInfo: {isLoading: false,status: true,msg: \"\"}})\r\n }catch (e){\r\n console.log(e);\r\n this.setState({loadingNoteBooksInfo:{isLoading:false,status:false,msg:\"加载失败请刷新再试...\"}});\r\n message.warn({content:'加载失败请刷新再试...',key:'getData',duration:2})\r\n }\r\n if(this.state.loadingNoteBooksInfo.status){\r\n setTimeout(()=>{\r\n this.setState({isGettingData:false});\r\n },10000)\r\n }\r\n\r\n }\r\n\r\n componentWillUnmount() {\r\n this.setState({},()=>{\r\n return false\r\n })\r\n PubSub.unsubscribe(\"updateNote\");\r\n }\r\n\r\n /**\r\n *\r\n * @param type\r\n * @param NoteBook\r\n * @returns 右键导航的dropdown菜单的回调,用于删除或者修改NoteBook\r\n */\r\n handleClickLeftNavItemDropDown = (type,NoteBook) =>{\r\n return async () => {\r\n switch (type){\r\n case \"Delete\":\r\n console.log(\"Delete\",NoteBook)\r\n if (window.confirm(\"确认删除吗?\")){\r\n message.loading({ content: 'Loading...',key:'deleteNoteBook'});\r\n let result = await request(\"notebook/deleteNotebook\",{\r\n notebookId:NoteBook.NotebookId,\r\n usn:NoteBook.Usn,\r\n token:this.state.userToken\r\n },\"post\")\r\n console.log(result);\r\n if (result.Ok){\r\n this.setState(({NoteBookList,NoteList,currentNoteBookInfo,currentNoteNavList,headerNoteBookTitle}) => {\r\n NoteBookList = NoteBookList.filter(ele => ele.NotebookId !== NoteBook.NotebookId);\r\n NoteList = NoteList.filter(Note => Note.NotebookId !== NoteBook.NotebookId)\r\n if (NoteBook.notebookId === currentNoteBookInfo.NotebookId || NoteBookList.length === 0) {\r\n currentNoteNavList = [];\r\n headerNoteBookTitle = \"\"\r\n }\r\n return {\r\n currentNoteNavList,\r\n NoteList,\r\n NoteBookList,\r\n headerNoteBookTitle\r\n }\r\n })\r\n message.success({ content: '删除成功!', key:'deleteNoteBook', duration: 2 });\r\n }else {\r\n message.warn({ content: '删除失败请稍后重试!', key:'deleteNoteBook', duration: 2 });\r\n }\r\n }\r\n break;\r\n case \"Rename\":\r\n this.setState({\r\n willHandleDropDownName:NoteBook.Title,\r\n currentNoteBookInfo:NoteBook,\r\n NoteBookModalVisible:true\r\n })\r\n console.log(\"Rename\",NoteBook)\r\n break;\r\n default:\r\n }\r\n }\r\n }\r\n /**\r\n *\r\n * @param type\r\n * @param Note\r\n * @returns 笔记右击菜单的回调\r\n */\r\n handleClickNoteItemDropDown = (type,Note) => {\r\n return async () => {\r\n switch (type){\r\n case \"Delete\":\r\n if (window.confirm(\"确认要删除吗?你的操作将无法返回\")){\r\n console.log(\"即将删除的笔记\",Note)\r\n let result = await request(\"note/updateNote\",{IsTrash:true,token:this.state.userToken,NoteId:Note.NoteId,Usn:Note.Usn})\r\n console.log(result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n\r\n this.setState(({currentNoteNavList,NoteList,NoteBookList,TrashList}) =>{\r\n //删除后更新状态\r\n currentNoteNavList = currentNoteNavList.filter(ele => ele.NoteId !== Note.NoteId);\r\n NoteList = NoteList.filter(ele => ele.NoteId !== Note.NoteId);\r\n NoteBookList.forEach(Notebook => {\r\n if (Note.NotebookId === Notebook.NotebookId){\r\n Notebook.notes = Notebook.notes.filter(note => note.NoteId !== Note.NoteId);\r\n }\r\n })\r\n TrashList.push(Note)\r\n return{\r\n TrashList,\r\n NoteBookList,\r\n NoteList,\r\n currentNoteNavList,\r\n }\r\n });\r\n message.success(\"移除成功\")\r\n }else {\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n }\r\n break;\r\n case \"Rename\":\r\n this.setState({\r\n NoteModalVisible:true,\r\n currentNoteInfo:Note,\r\n willHandleDropDownName:Note.Title\r\n });\r\n console.log('Rename',Note)\r\n break;\r\n }\r\n }\r\n }\r\n /**\r\n * 当前选中删除标签\r\n * Note中包含的标签不影响最终使用\r\n *\r\n */\r\n handleClickLeftTagNavDropDown = TagObj => {\r\n return async () => {\r\n let result = await request(\"tag/deleteTag\",{token:this.state.userToken,tag:TagObj.Tag,usn:TagObj.Usn})\r\n // /tag/deleteTag 删除标签\r\n // console.log(\"DeleteTag\",TagObj);\r\n console.log(result);\r\n if(result.Ok){\r\n message.success(\"删除成功\");\r\n this.props.deleteTagListAction(TagObj)\r\n }else {\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n }\r\n }\r\n /*\r\n //处理笔记本修改名称的回调\r\n hideNoteBookUpdateModal = isOk => {\r\n return async () => {\r\n let{currentNoteBookInfo,NoteBookList} = this.state;\r\n let currentValue = this.changeNoteBookOrNoteNameInput.input.defaultValue\r\n if (isOk) {\r\n if (NoteBookList.find(ele => ele.Title === currentValue)) {\r\n message.warn(\"请勿输入相同的笔记本名称!\")\r\n return;\r\n }\r\n //更新NoteBook信息\r\n let result = await request(\"notebook/updateNotebook\",{\r\n notebookId:currentNoteBookInfo.NotebookId,\r\n title:currentValue,\r\n usn:currentNoteBookInfo.Usn,\r\n token:this.state.userToken\r\n },\"post\")\r\n console.log(result);\r\n //不含有OK属性说明返回了一个对象\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n\r\n currentNoteBookInfo.Title = currentValue\r\n currentNoteBookInfo.Usn = result.Usn\r\n\r\n NoteBookList = [...NoteBookList.filter(ele => ele.Title !== currentNoteBookInfo.Title),currentNoteBookInfo]\r\n this.setState({NoteBookList})\r\n message.success(\"修改成功!\")\r\n }else {\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n }\r\n this.setState({\r\n NoteBookModalVisible: false,\r\n });\r\n }\r\n };\r\n //修改笔记名称的回调\r\n hideNoteUpdateModal = isOk =>{\r\n return async () => {\r\n let {currentNoteNavList,currentNoteInfo} = this.state\r\n let currentValue = this.changeNoteBookOrNoteNameInput.input.defaultValue;\r\n if(isOk){\r\n if (currentNoteNavList.find(ele => ele.Title === currentValue)){\r\n message.warn(\"请勿输入相同的笔记名称!\")\r\n return;\r\n }\r\n let result = await request(\"note/updateNote\",{\r\n NoteId:currentNoteInfo.NoteId,\r\n Usn:currentNoteInfo.Usn,\r\n Title:currentValue,\r\n token:this.state.userToken\r\n },\"post\");\r\n console.log(result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n\r\n currentNoteInfo.Title = currentValue\r\n currentNoteInfo.Usn = result.Usn\r\n\r\n currentNoteNavList = [...currentNoteNavList.filter(ele => ele.Title !== currentNoteInfo.Title),currentNoteInfo]\r\n this.setState({currentNoteNavList})\r\n message.success(\"修改成功!\")\r\n }else {\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n }\r\n /!*console.log(isOk);\r\n console.log(this.state.currentNoteInfo);*!/\r\n this.setState({NoteModalVisible:false});\r\n }\r\n }*/\r\n //统一处理两个对话框\r\n handleModal = type => {\r\n return async () =>{\r\n let{NoteBookList,currentNoteBookInfo,currentNoteNavList,currentNoteInfo} = this.state\r\n let currentValue = this.changeNoteBookOrNoteNameInput.input.defaultValue;\r\n if (currentValue === '') {\r\n message.warn(\"请输入新的名称!\");\r\n return;\r\n }\r\n let willUpdateObj;\r\n let currentObj;\r\n let result;\r\n switch (type){\r\n case \"NoteBook\":\r\n type = \"NotebookId\";\r\n willUpdateObj = NoteBookList;\r\n currentObj = currentNoteBookInfo;\r\n //更新NoteBook信息\r\n result = request(\"notebook/updateNotebook\",{\r\n notebookId:currentObj.NotebookId,\r\n title:currentValue,\r\n usn:currentObj.Usn,\r\n token:this.state.userToken\r\n })\r\n break;\r\n case \"Note\":\r\n type = \"NoteId\";\r\n willUpdateObj = currentNoteNavList;\r\n currentObj = currentNoteInfo;\r\n //更新笔记信息\r\n result = request(\"note/updateNote\",{\r\n NoteId:currentObj.NoteId,\r\n Usn:currentObj.Usn,\r\n Title:currentValue,\r\n token:this.state.userToken\r\n });\r\n break;\r\n }\r\n await this.handleModalRequest(willUpdateObj,currentObj,currentValue,result,type)\r\n }\r\n }\r\n handleModalRequest = async (willUpdateObj,currentObj,currentValue,result,type) => {\r\n console.log(willUpdateObj);\r\n if (willUpdateObj.find(ele => !ele.IsDeleted && ele.Title === currentValue)){\r\n message.warn(\"请勿输入相同的名称!\")\r\n return;\r\n }\r\n result = await result;\r\n console.log(\"ModalRequest\",result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n\r\n currentObj.Title = currentValue\r\n currentObj.Usn = result.Usn\r\n currentObj.UpdatedTime = result.UpdatedTime\r\n\r\n willUpdateObj = [...willUpdateObj.filter(ele => ele[type] !== currentObj[type]),currentObj]\r\n message.success(\"修改成功!\")\r\n }else {\r\n message.warn(\"网络异常请稍后再试\")\r\n }\r\n switch (type){\r\n case \"NotebookId\":\r\n this.setState({NoteBookList:willUpdateObj,NoteBookModalVisible:false});\r\n break;\r\n case \"NoteId\":\r\n this.HeaderChangePubSub(currentObj,\"\",\"update\")\r\n this.setState({currentNoteNavList:willUpdateObj,NoteModalVisible:false});\r\n break;\r\n }\r\n }\r\n //导航栏切换后需要更改头部notebook名称\r\n handleClickLeftNavItem = (title,notes,currentNoteBookInfo) => {\r\n return () =>{\r\n this.setState({headerNoteBookTitle:title,currentNoteNavList:notes,isUsingTagNav:false,currentNoteBookInfo})\r\n }\r\n }\r\n /**\r\n *\r\n * @param TagObj\r\n * @returns 单机标签导航栏的回调同上一个方法\r\n */\r\n handleClickTagNav = TagObj => {\r\n return () =>{\r\n // console.log(\"TagObj\",TagObj)\r\n let {NoteList} = this.state;\r\n // console.log(NoteList);\r\n let currentNoteNavList = [];\r\n NoteList.forEach(note => {\r\n note.Tags.forEach(tag => {\r\n if (tag === TagObj.Tag){\r\n currentNoteNavList = [...currentNoteNavList,note]\r\n }\r\n })\r\n })\r\n // console.log(\"单机标签导航\",currentNoteNavList);\r\n /* NoteBookList.forEach(NoteBook => {\r\n NoteBook.notes.forEach(note => {\r\n note.Tags.forEach(tag => {\r\n if (tag === TagObj.Tag){\r\n currentNoteNavList = [...currentNoteNavList,note]\r\n }\r\n })\r\n })\r\n })*/\r\n this.setState({headerNoteBookTitle:TagObj.Tag,currentNoteNavList,isUsingTagNav:true})\r\n this.HeaderChangePubSub();\r\n }\r\n }\r\n //点击当前notebook的note的回调\r\n handleNoteListItem = (ele,parentTitle,type) =>{\r\n return () => {\r\n this.HeaderChangePubSub(ele,parentTitle,type);\r\n }\r\n }\r\n HeaderChangePubSub = (ele,parentTitle,type) => {\r\n // console.log('dianji',ele);\r\n if (ele){\r\n PubSub.publish(\"NoteInfo\",{\r\n NoteInfo:{\r\n //当前note的更新序号\r\n Usn:ele.Usn,\r\n NotebookId:ele.NotebookId,\r\n NoteId:ele.NoteId,\r\n subTitle:ele.Title,\r\n CreatedTime:ele.CreatedTime,\r\n UpdatedTime:ele.UpdatedTime,\r\n Tags:(ele.Tags.length === 1 && ele.Tags[0] === '' ? [] : ele.Tags),\r\n parentTitle,\r\n IsMarkdown:ele.IsMarkdown\r\n },\r\n type\r\n })\r\n }else {\r\n PubSub.publish(\"NoteInfo\",{\r\n type:'Tag'\r\n })\r\n }\r\n }\r\n //全局查询笔记\r\n handleFindNote = () => {\r\n let {NoteList,isSearching} = this.state;\r\n //函数防抖\r\n if (isSearching) {\r\n return;\r\n }\r\n this.setState({isSearching:true,isSearchingNote:true})\r\n this.timer = setInterval(() =>{\r\n let searchNoteName = this.searchNoteName.input.defaultValue\r\n console.log(searchNoteName);\r\n if(searchNoteName === ''){\r\n this.setState({isSearching:false,isSearchingNote:false})\r\n // console.log('clear')\r\n clearInterval(this.timer)\r\n }else {\r\n let currentNoteNavListCache = NoteList.filter(note => note.Title.indexOf(searchNoteName) !== -1)\r\n this.setState({currentNoteNavListCache})\r\n }\r\n },500)\r\n setTimeout(()=>{\r\n if (this.timer){\r\n this.setState({isSearching:false})\r\n clearInterval(this.timer)\r\n }\r\n },5000)\r\n }\r\n //列表查询笔记本\r\n handleSearchNoteBook = () => {\r\n let {NoteBookList} = this.state;\r\n let searchNoteBookName = this.searchNoteBookName.input.defaultValue\r\n let NoteBook = NoteBookList.find(NoteBook => NoteBook.Title.indexOf(searchNoteBookName) !== -1);\r\n if (NoteBook){\r\n this.setState({headerNoteBookTitle:NoteBook.Title,currentNoteNavList:NoteBook.notes,isUsingTagNav:false})\r\n }\r\n }\r\n handleFormFinish = async NoteInfo => {\r\n console.log(NoteInfo);\r\n let{NoteBookList} = this.state;\r\n //全局笔记本中寻找\r\n if (NoteBookList.find(ele => ele.NotebookId === NoteInfo.NotebookId).notes.find(ele => ele.Title === NoteInfo.Title)){\r\n message.warn(\"请勿添加相同的笔记名称\")\r\n return;\r\n }\r\n await this.handleFormRequest(NoteInfo);\r\n this.setState({createNoteVisible:false});\r\n }\r\n handleFormRequest = async NoteInfo => {\r\n /*\r\n NotebookId string 必传\r\n Title string 必传\r\n Tags []string 可选\r\n Content string 必传\r\n Abstract string 可选, 当是markdown笔记时必须传\r\n IsMarkdown bool 可选\r\n CreatedTime string 可选, 如2012-12-01 12:32:11\r\n UpdatedTime string 可选, 如2012-12-01 12:32:11\r\n Files []type.NoteFiles 数组 可选\r\n */\r\n let{NotebookId,Title,Tags,CreatedTime,type} = NoteInfo\r\n let result = await request(\"note/addNote\",{token:this.state.userToken,NotebookId,Tags,Title,Content:\"\",CreatedTime,IsMarkdown:type === 'MarkDown'})\r\n console.log(result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n message.success(\"添加笔记成功!\")\r\n this.setState(({NoteBookList,NoteList,currentNoteNavList,currentNoteBookInfo,hasGiveAddNoteInformation}) => {\r\n //找到对应的笔记本和笔记数组过滤修改\r\n NoteBookList.forEach(Notebook => {\r\n if (Notebook.NotebookId === NotebookId){\r\n Notebook.notes = [...Notebook.notes,result]\r\n }\r\n })\r\n /* let currentNoteBook = NoteBookList.find(ele => ele.NotebookId === NotebookId);\r\n currentNoteBook.notes = [...currentNoteBook.notes,result];\r\n NoteBookList = [...(NoteBookList.filter(ele => ele.NotebookId !== currentNoteBook.NotebookId)),currentNoteBook]*/\r\n NoteList = [...NoteList,result];\r\n //如果当前处于笔记本下的导航则需要添加\r\n if (currentNoteBookInfo.NotebookId === NotebookId){\r\n currentNoteNavList = [...currentNoteNavList,result];\r\n }\r\n if (!hasGiveAddNoteInformation){\r\n hasGiveAddNoteInformation = true;\r\n const key = `open${Date.now()}`;\r\n const btn = (\r\n \r\n )\r\n notification.open({\r\n message: '提示',\r\n duration:0,\r\n description:\r\n '新添加笔记的标签在更新后不会显示在导航栏,这是后端api原因,后续会修改',\r\n btn,\r\n key\r\n })\r\n }\r\n return {\r\n hasGiveAddNoteInformation,\r\n NoteBookList,\r\n NoteList,\r\n currentNoteNavList\r\n }\r\n })\r\n }else {\r\n message.warn(\"添加失败请稍后再试!\")\r\n }\r\n }\r\n handleCreateNote = () => {\r\n return async () => {\r\n if (this.state.NoteBookList.length > 0){\r\n this.setState({createNoteVisible:true});\r\n }else{\r\n // message.warn(\"当前没有笔记本,请先创建笔记本后\")\r\n notification.info({\r\n duration:2,\r\n message:'提示',\r\n description:'当前没有笔记本,请先创建笔记本后重试'\r\n })\r\n }\r\n }\r\n\r\n }\r\n handleCreateNoteBookModal = () => {\r\n return async () => {\r\n let createNoteBookName = this.createNoteBookName.input.defaultValue;\r\n let{NoteBookList} = this.state;\r\n if (NoteBookList.find(ele => ele.Title === createNoteBookName)){\r\n message.warn(\"请勿添加相同的笔记本\")\r\n return;\r\n }\r\n let result = await request(\"notebook/addNotebook\",{token:this.state.userToken,title:createNoteBookName})\r\n console.log(result);\r\n if (!result.hasOwnProperty(\"Ok\")){\r\n message.success(\"添加成功\")\r\n this.setState(({NoteBookList}) => {\r\n result.notes = [];\r\n NoteBookList = [...NoteBookList,result];\r\n return {NoteBookList};\r\n })\r\n }else{\r\n message.warn(\"添加失败请稍后再试\");\r\n }\r\n this.setState({createNoteBookVisible:false})\r\n }\r\n }\r\n HandleDeleteTrash = ele =>{\r\n return async () => {\r\n let result = await request('note/deleteTrash',{token:this.state.userToken,noteId:ele.NoteId})\r\n console.log(result);\r\n\r\n if(result.OK){\r\n message.success('删除成功')\r\n this.setState(({TrashList}) => {\r\n TrashList = TrashList.filter(Note => Note.NoteId !== ele.NoteId)\r\n return {TrashList}\r\n })\r\n }else {\r\n message.warn(\"删除失败!\")\r\n }\r\n // console.log(result)\r\n\r\n }\r\n }\r\n /* createNewNote = () => {\r\n this.setState({createNoteVisible:true})\r\n }*/\r\n //处理新建笔记本的对话框\r\n /*handleCreateNoteModal = () => {\r\n this.setState({createNoteVisible:false});\r\n }*/\r\n\r\n //鼠标按下split时\r\n handleOnMouseDown = event =>{\r\n let{clientX} = event;\r\n let{content_style} = this.state\r\n let{width} = content_style.left_container\r\n //获取当前两个容器的宽度和相比较的前一个鼠标位置\r\n this.setState({draggable:true,preClientX:clientX,currentWidth:width})\r\n }\r\n //拖拽分界线修改左右div宽度\r\n dragDivideLine = event => {\r\n let {draggable,preClientX,currentWidth} = this.state;\r\n let {clientX} = event;\r\n let isUsingLeftContainer = true;\r\n if (draggable){\r\n let tempLength = clientX - preClientX + currentWidth\r\n if(tempLength < 0){\r\n this.setState({draggable: false});\r\n return;\r\n }\r\n //最小距离限制\r\n if (tempLength < 250 || tempLength > 700) {\r\n if (tempLength < 100){\r\n tempLength = 0;\r\n isUsingLeftContainer = false;\r\n }else {\r\n return;\r\n }\r\n }\r\n this.setState({\r\n content_style:{\r\n left_container:{width:tempLength},\r\n right_container:{width: `calc(100% - ${tempLength}px)`},\r\n scroll:{left: tempLength}\r\n },\r\n isUsingLeftContainer\r\n })\r\n }\r\n }\r\n\r\n render() {\r\n let{NoteBookList,NoteList,TrashList,loadingNoteBooksInfo,headerNoteBookTitle,content_style,draggable,\r\n currentNoteNavList,collapsed,isUsingTagNav,isSearchingNote,currentNoteNavListCache,isUsingLeftContainer} = this.state\r\n let {TagList} = this.props\r\n //content拖动样式\r\n let{left_container,right_container,scroll} = content_style\r\n\r\n let{isLoading,msg,status} = loadingNoteBooksInfo;\r\n //决定使用哪种状态显示\r\n currentNoteNavList = isSearchingNote ? currentNoteNavListCache : currentNoteNavList;\r\n headerNoteBookTitle = isSearchingNote ? \"Search\" : headerNoteBookTitle\r\n /* {\r\n this.state.collapsed ?\r\n
\r\n \r\n
: \"logo\"\r\n }*/\r\n return (\r\n \r\n this.setState({createNoteVisible:false})}\r\n /* onOk={this.handleCreateNoteModal}\r\n okText=\"确认\"\r\n cancelText=\"取消\"*/\r\n // width={250}\r\n >\r\n this.setState({createNoteVisible:false})} onFinish={this.handleFormFinish}/>\r\n \r\n this.setState({NoteModalVisible:false})}\r\n okText=\"确认\"\r\n cancelText=\"取消\"\r\n width={250}\r\n >\r\n

{this.state.willHandleDropDownName}

\r\n this.changeNoteBookOrNoteNameInput = c} onPressEnter={this.handleModal(\"Note\")}/>\r\n \r\n this.setState({collapsed})}>\r\n
\r\n
\r\n \"logo\"\r\n \r\n
\r\n
\r\n \r\n {/*笔记本导航*/}\r\n } title=\"NoteBook\">\r\n {!collapsed ? (\r\n <>\r\n \r\n \r\n
\r\n this.searchNoteBookName = c} style={{backgroundColor:\"#e6f7ff\",width:160}} onPressEnter={this.handleSearchNoteBook}/>\r\n
\r\n
\r\n
\r\n {/*创建笔记本的对话框*/}\r\n this.setState({createNoteBookVisible:false})}\r\n onOk={this.handleCreateNoteBookModal()}\r\n okText=\"确认\"\r\n cancelText=\"取消\"\r\n width={250}\r\n >\r\n this.createNoteBookName = c} onPressEnter={this.handleCreateNoteBookModal()}/>\r\n \r\n \r\n } style={{color:\"white\",backgroundColor:\"#2f54eb\"}} onClick={() => this.setState({createNoteBookVisible:true})}>\r\n Newest\r\n \r\n \r\n {\r\n isLoading ? 加载中... :\r\n status ?\r\n NoteBookList.filter(ele => !ele.IsDeleted).map(ele =>{\r\n return (\r\n \r\n \r\n \r\n
\r\n this.setState({NoteBookModalVisible:false})}\r\n okText=\"确认\"\r\n cancelText=\"取消\"\r\n width={250}\r\n >\r\n

{this.state.willHandleDropDownName}

\r\n this.changeNoteBookOrNoteNameInput = c}\r\n onPressEnter={this.handleModal(\"NoteBook\")}\r\n />\r\n \r\n
\r\n {ele.Title}\r\n
\r\n
\r\n {ele.notes.length}\r\n
\r\n
\r\n \r\n
\r\n
\r\n )\r\n }):{msg}\r\n }\r\n\r\n {/* } style={{color:\"white\",backgroundColor:\"#2f54eb\"}}>\r\n {TrashList.map(ele => {\r\n return {ele.Title}\r\n })}\r\n */}\r\n \r\n ) : <>}\r\n
\r\n\r\n {/*选中tag来筛选list*/}\r\n } title=\"Tag\">\r\n {!collapsed ?\r\n isLoading ? 加载中... :\r\n status ?\r\n TagList.filter(ele => ele.Tag !== '').map(ele =>{\r\n return (\r\n \r\n \r\n
\r\n {ele.Tag}\r\n
\r\n
\r\n
\r\n )\r\n }):{msg}:<>\r\n }\r\n
\r\n\r\n } title=\"Trash\">\r\n {!collapsed ?\r\n TrashList.map(ele =>{\r\n return(\r\n \r\n {\r\n return(\r\n \r\n Delete\r\n \r\n )\r\n }} >\r\n
\r\n {ele.Title}\r\n
\r\n
\r\n
\r\n )\r\n })\r\n\r\n : <>\r\n }\r\n
\r\n {/*用户操作*/}\r\n } title=\"Share\">\r\n {!collapsed ?\r\n \r\n \r\n \r\n defaultSharing\r\n \r\n \r\n : <>\r\n }\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n {/*头部用户左侧*/}\r\n
\r\n
\r\n this.searchNoteName = c} style={{width:200,backgroundColor:'#f2f2ff'}} onChange={this.handleFindNote}/>\r\n \r\n
\r\n
\r\n {headerNoteBookTitle ? {headerNoteBookTitle} : \"\"}\r\n
\r\n
\r\n {/*头部导航栏右侧*/}\r\n
\r\n \r\n {/*
\r\n WritingMode\r\n
\r\n
\r\n Blog\r\n
\r\n
\r\n Explore\r\n
\r\n 用户头像和信息\r\n
\r\n userinfo\r\n
*/}\r\n {/**/}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
this.setState({draggable:false})} >\r\n {\r\n isUsingLeftContainer ?
\r\n
\r\n
\r\n
\r\n {headerNoteBookTitle ? } color=\"#e6f7ff\" className=\"headerTag\" style={{color: \"#26214c\"}} >{headerNoteBookTitle} : \"\"}\r\n
\r\n
\r\n {/*{headerNoteBookTitle ? } checkedChildren={} defaultChecked onChange={this.handleSwitchChange}/> : <>}*/}\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n !isUsingTagNav || (isUsingTagNav && currentNoteNavList.length > 0) ?\r\n \r\n {\r\n currentNoteNavList.map(ele => {\r\n return (\r\n \r\n \r\n\r\n \r\n \r\n {ele.Title}\r\n \r\n
\r\n \r\n\r\n \r\n )\r\n })\r\n }\r\n :\r\n }\r\n title=\"当前标签没有对应的笔记,你可以创建新的笔记或者删除当前标签\"\r\n extra={}\r\n />\r\n }\r\n
\r\n\r\n
:<>\r\n }\r\n\r\n
\r\n
\r\n\r\n \r\n\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n {/*
Leanote Created by Chinesebread
*/}\r\n
\r\n
\r\n );\r\n }\r\n}\r\n//暴露组件\r\n//state将会是store中的总状态需要分别拿出来\r\nexport default connect(state => ({TagList:state.TagList}),{\r\n //api层面的优化,会自动加入dispatch\r\n deleteTagListAction,\r\n addTagListAction,\r\n clearAllTagAction\r\n})(Leanote);","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX8AAABPCAYAAAADScV+AAATOUlEQVR4nO2df2gcxxXHV1IlnWJF0llSUhpLgaiqjIVNfMa2fCpNm0ASAoEGSlyKk4b0jyTQQkMgbSCQBkqTmEL7R6G00LQl/aMOBf9RCkkgaaC+lRpFUh1HhxThgGVcjFzZ0iWWTj/sK197JqzP+2NmdmZ2T3ofOIx1e7tvZ+a9eTPz5o1DEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEMRN1KkUSaVSoZIkCKKmmJqaOgx5BwcHj22FmqurCzfvsY3/2bNnu0ql0n3e79va2t7t6en5X/XvUPiLi4tP1dXVfcXvvvX19e4dd9zxvN9vCcIW3EhEtWeidnBdd7qjo6PHK/Di4uJZ/Nve3v7SZuwQjBp/FCj+zefzA97vi8XiMgq2u7v7sVKp9MDq6uoR/B2Fv2vXrlvC7s1/29zc/Jd9+/b9XEU+glChUCi8B8ekup3yNpnP53emvWDHx8df5PrmXNfV/w4PD9+brFTJwg1/kO1xXXdmM9obY8Y/qkDjggpxrncsqVc4ovYZHR19/erVq/lqR4ajowPAKPns2bMnvH/r6en5uq5RhZ9Ocrl1PqeW4GUeVK+espvZbLYmyvgr8fHHHx8uFArTFcNMTU1dZs9x6EMfkx+R9oz2ODIy8rqKHPid3zPwtw8//PDFuO+G+0C+INm3qh6J2qnNaGuiqFcx/ktLSy9H9aQ6gAcDT4ZPLxGECTBVUj0f7AfaI0YHsiJgDSFoVIG/YZqmep1BBni3DpMv6Gd4P34dcTOmZjDSjJLxtwl1AIRpYHxNKn+Us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3IY1r3kZ8ojFjG3/E0aMdjFLhycWXhW4/DXpK/jMMWl0wM/3hnVW288FxTzxShugyDlKk6pasNbykuvO69ZV7dPtJAkCLqNlDVz9HZCfJ7V+uhSeOKtotO3vtc0fabpNFPCyZ137jxF8XbSJwAD8ymIeM9ftpy96Oc5ufnn67O8cE91DSfNRAFyrypqelT26MrUarbKKZ5sDtTt7x4TqlUug97SpDIK+0duAwYba2trd1VLpf7eRvmbddJob6lCd26H2X8CYIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIJICY7j/B8dK4kC/yiqtAAAAABJRU5ErkJggg==\""],"sourceRoot":""} \ No newline at end of file diff --git a/public/static/js/main.9f5951c5.chunk.js b/public/static/js/main.9f5951c5.chunk.js new file mode 100644 index 0000000..fc1b245 --- /dev/null +++ b/public/static/js/main.9f5951c5.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonpleanote=this.webpackJsonpleanote||[]).push([[0],{123:function(e,t,n){},150:function(e,t){},152:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(24),c=n.n(r),i=n(85),s=n(69),o=n(39);var l=Object(s.a)({TagList:function(e,t){(void 0===e||1===e.length&&""===e[0])&&(e=[]);var n=t.type,a=t.TagListOrSingleTag;switch(console.log("TagListOrSingleTag",a),n){case"delete":return e.filter((function(e){return e!==a}));case"add":return console.log("add",[].concat(Object(o.a)(e),Object(o.a)(a))),[].concat(Object(o.a)(e),Object(o.a)(a));case"clear":return[];default:return e}}}),u=Object(s.b)(l),d=n(29),j=n(30),b=n(31),g=n(32),h=n(8),p=n(33),f=n.n(p),O=n(47),m=n.p+"static/media/bg.18c452c7.jpg",v=n(80),x=n(48),w=n.n(x),k=(n(123),n(110)),y=n(109),N=n(156),P=n(3),C=function(e){Object(b.a)(n,e);var t=Object(g.a)(n);function n(){var e;Object(d.a)(this,n);for(var a=arguments.length,r=new Array(a),c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post";return new Promise((function(a,r){t=l.a.stringify(t,{encoder:function(e,t,n,a){if("value"===a||"key"===a)return encodeURIComponent(e)}}),s.a.request({url:"./api/".concat(e),data:t,method:n,timeout:1e4}).then((function(e){a(e.data)}),(function(e){r({status:!1})}))}))},d=function(e){var t=e.map(function(){var e=Object(c.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t.url,t.data,t.method);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return new Promise((function(e,n){Promise.all(t).then((function(t){e(t)}),(function(e){n({status:!1})}))}))}}},[[152,1,3]]]); +//# sourceMappingURL=main.9f5951c5.chunk.js.map \ No newline at end of file diff --git a/public/static/js/main.9f5951c5.chunk.js.map b/public/static/js/main.9f5951c5.chunk.js.map new file mode 100644 index 0000000..69f323b --- /dev/null +++ b/public/static/js/main.9f5951c5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["redux/store.js","redux/reducers/TagListReducer.js","components/Controller/Login/bg.jpg","components/Controller/Login/index.js","components/Controller/index.js","App.js","reportWebVitals.js","index.js","Utils/request.js"],"names":["allReducers","combineReducers","TagList","preState","action","undefined","length","type","TagListOrSingleTag","console","log","filter","ele","createStore","Login","state","active","loginEmail","loginPassword","registerEmail","registerPassword","handleForm","a","message","loading","content","key","request","email","pwd","result","Ok","PubSub","publish","token","Token","success","duration","warn","notification","info","description","icon","SmileOutlined","this","setState","className","src","background","onClick","ref","c","onChange","value","Component","Leanote","lazy","Controller","subscribe","msg","props","history","replace","fallback","path","component","to","withRouter","App","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","store","document","getElementById","url","data","method","Promise","resolve","reject","qs","stringify","encoder","str","defaultEncoder","charset","encodeURIComponent","axios","timeout","reason","status","synchronizedRequest","requestArray","synchronizedResult","map","all"],"mappings":"yMAKA,IAAIA,EAAcC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A+B,IAA3BC,EAA0B,uDAArB,GAAGC,EAAkB,uDAAX,OAC/B,OAAO,IAAIC,SAAQ,SAACC,EAAQC,GAExBJ,EAAOK,IAAGC,UAAUN,EAAK,CAACO,QAAQ,SAAUC,EAAKC,EAAgBC,EAASvF,GAClE,GAAa,UAATA,GAA6B,QAATA,EAAgB,OAAOwF,mBAAmBH,MAG1EI,IAAMrE,QAAQ,CAIVwD,IAAI,SAAD,OAAUA,GACbC,OACAC,SACAY,QAAQ,MACTzB,MAAK,SAAAnB,GACJkC,EAAQlC,EAAM+B,SAChB,SAAAc,GACEV,EAAO,CAACW,QAAO,WAIvBC,EAAsB,SAAAC,GACtB,IAAIC,EAAqBD,EAAaE,IAAb,uCAAiB,WAAM3F,GAAN,SAAAU,EAAA,sEACzBK,EAAQf,EAAIuE,IAAIvE,EAAIwE,KAAKxE,EAAIyE,QADJ,mFAAjB,uDAGzB,OAAO,IAAIC,SAAQ,SAACC,EAASC,GACzBF,QAAQkB,IAAIF,GAAoB9B,MAAK,SAAAnB,GACjCkC,EAAQlC,MACV,SAAA6C,GACEV,EAAO,CAACW,QAAO,a","file":"static/js/main.9f5951c5.chunk.js","sourcesContent":["//引入最为核心的对象createStore 用于创建store对象\r\nimport {createStore,combineReducers} from \"redux\";\r\n//引入为count组件服务的reducer reducer负责对传入的state进行初始化或者更新的操作\r\nimport TagListReducer from \"./reducers/TagListReducer\";\r\n//allReducers 保存了所有的状态\r\nlet allReducers = combineReducers({\r\n TagList:TagListReducer\r\n})\r\n//暴露store\r\nexport default createStore(allReducers);","//reducer是一个纯函数,接受两个参数preState 和 action\r\nexport default function TagListReducer(preState,action){\r\n //当preState为undefined则对其进行初始化操作\r\n if (preState === undefined || (preState.length === 1 && preState[0] === '')) preState = [];\r\n //从action中获取type和data type指明操作的动作data则是操作的数据\r\n const {type,TagListOrSingleTag} = action;\r\n console.log(\"TagListOrSingleTag\",TagListOrSingleTag);\r\n /* console.log(\"前一次的状态\",preState);\r\n console.log(\"TagListOrSingleTag\",TagListOrSingleTag);*/\r\n //根据type决定\r\n switch (type){\r\n case 'delete':\r\n return preState.filter(ele => ele !== TagListOrSingleTag);\r\n case 'add':\r\n console.log(\"add\",[...preState, ...TagListOrSingleTag]);\r\n return [...preState,...TagListOrSingleTag] ;\r\n case \"clear\":\r\n return [];\r\n default:\r\n return preState;\r\n }\r\n}","export default __webpack_public_path__ + \"static/media/bg.18c452c7.jpg\";","import React, {Component} from 'react';\r\nimport background from './bg.jpg'\r\nimport {request} from \"../../../Utils/request\";\r\nimport PubSub from \"pubsub-js\";\r\nimport \"./login.css\"\r\nimport {message, notification} from \"antd\";\r\nimport {SmileOutlined} from \"@ant-design/icons\";\r\nclass Login extends Component {\r\n state = {\r\n active: 'login',\r\n loginEmail:\"\",\r\n loginPassword:\"\",\r\n registerEmail:'',\r\n registerPassword:\"\",\r\n }\r\n handleForm = () =>{\r\n return async () => {\r\n let{active,loginEmail,loginPassword,registerEmail,registerPassword} = this.state;\r\n switch (active){\r\n case \"login\":\r\n try {\r\n message.loading({ content: '登陆中...', key:'loading' });\r\n let result = await request(\"auth/login\",{email:loginEmail,pwd:loginPassword},\"post\")\r\n console.log(result);\r\n if (result.Ok){\r\n PubSub.publish(\"toBreadNote\",{token:result.Token})\r\n message.success({ content: '登录成功!', key:'loading', duration: 2 });\r\n }else {\r\n message.warn({ content: '密码错误或用户名不存在', key:'loading', duration: 2 })\r\n }\r\n }catch (e) {\r\n console.log(e);\r\n message.warn({ content: '登陆失败', key:'loading', duration: 2 })\r\n }\r\n\r\n break;\r\n case \"register\" :\r\n notification.info({\r\n message:'提示',\r\n description:'目前该项目处于测试状态,暂不支持账号的注册',\r\n icon:\r\n })\r\n break;\r\n }\r\n }\r\n\r\n }\r\n componentWillUnmount() {\r\n this.setState({},()=>{\r\n return false\r\n });\r\n }\r\n\r\n render() {\r\n let{active,loginEmail,loginPassword,registerEmail,registerPassword} = this.state;\r\n\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {this.setState({active:\"login\"})}} className={`${active === \"login\" ? \"active\" : \"\"}`}>登陆\r\n /\r\n {this.setState({active:\"register\"})}} className={`${active === \"register\" ? \"active\" : \"\"}`}>注册\r\n
\r\n
\r\n {\r\n active === \"register\" ?\r\n
\r\n
\r\n this.registerEmail = c} onChange={() => this.setState({registerEmail:this.registerEmail.value})}/>\r\n \r\n
\r\n
\r\n this.registerPassword = c} onChange={() => this.setState({registerPassword:this.registerPassword.value})}/>\r\n \r\n
\r\n
:\r\n
\r\n
\r\n this.loginEmail = c} onChange={() => this.setState({loginEmail:this.loginEmail.value})}/>\r\n \r\n
\r\n
\r\n this.loginPassword = c} onChange={() => this.setState({loginPassword:this.loginPassword.value})}/>\r\n \r\n
\r\n
\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n );\r\n }\r\n}\r\n\r\nexport default Login;","import React, {Component,lazy,Suspense} from 'react';\r\nimport {Redirect, Route, withRouter} from \"react-router-dom\";\r\n// import ReactMarkdown from \"react-markdown\";\r\nimport Login from \"./Login\";\r\n// import Leanote from \"./Leanote\";\r\nimport PubSub from \"pubsub-js\";\r\nconst Leanote = lazy(()=> import('./Leanote'))\r\nclass Controller extends Component {\r\n componentDidMount() {\r\n\r\n PubSub.subscribe(\"toBreadNote\",(msg,token) => {\r\n this.props.history.replace(\"/BreadNote\",token)\r\n })\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n {/* \r\n # Your markdown here\r\n */}\r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(Controller);","import React, {Component} from 'react';\nimport Controller from \"./components/Controller\";\nimport {BrowserRouter} from \"react-router-dom\";\nimport 'antd/dist/antd.css'\n// import Test from \"./Test\"\nclass App extends Component {\n render() {\n return (\n
\n \n \n \n\n {/**/}\n {/**/}\n
\n );\n }\n}\n\nexport default App;","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {Provider} from \"react-redux\";\nimport store from \"./redux/store\";\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n","import axios from \"axios\";\r\nimport qs from \"qs\";\r\n let request = (url,data={},method=\"post\") => {\r\n return new Promise((resolve,reject) => {\r\n\r\n data = qs.stringify(data,{encoder:function (str, defaultEncoder, charset, type){\r\n if (type === 'value' || type === 'key') return encodeURIComponent(str);;\r\n }})\r\n // console.log(data);\r\n axios.request({\r\n // url:'/watish/api/auth/login?email=1057143786@qq.com&pwd=123456',\r\n // url:`/watish/api/${url}`,\r\n // url:`/api/${url}`,\r\n url:`./api/${url}`,\r\n data,\r\n method,\r\n timeout:10000\r\n }).then(value => {\r\n resolve(value.data)\r\n },reason => {\r\n reject({status:false});\r\n })\r\n })\r\n }\r\n let synchronizedRequest = requestArray => {\r\n let synchronizedResult = requestArray.map(async ele =>{\r\n return await request(ele.url,ele.data,ele.method)\r\n })\r\n return new Promise((resolve, reject) => {\r\n Promise.all(synchronizedResult).then(value => {\r\n resolve(value)\r\n },reason => {\r\n reject({status:false})\r\n })\r\n })\r\n\r\n }\r\nexport {request,synchronizedRequest}"],"sourceRoot":""} \ No newline at end of file diff --git a/public/static/js/runtime-main.fc385e80.js b/public/static/js/runtime-main.fc385e80.js new file mode 100644 index 0000000..5c4d32a --- /dev/null +++ b/public/static/js/runtime-main.fc385e80.js @@ -0,0 +1,2 @@ +!function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],s=0,p=[];s