Commit e7e48c89 authored by wty's avatar wty

dev阿波罗实例对接

parent cfd32603
{ {
"files": { "files": {
"main.css": "/static/css/main.63c35fee.chunk.css", "main.css": "/static/css/main.63c35fee.chunk.css",
"main.js": "/static/js/main.7d258f7c.chunk.js", "main.js": "/static/js/main.b9736c6f.chunk.js",
"main.js.map": "/static/js/main.7d258f7c.chunk.js.map", "main.js.map": "/static/js/main.b9736c6f.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.4628cb4f.js", "runtime-main.js": "/static/js/runtime-main.4628cb4f.js",
"runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map", "runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map",
"static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css",
...@@ -24,6 +24,6 @@ ...@@ -24,6 +24,6 @@
"static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css",
"static/js/2.44df36db.chunk.js", "static/js/2.44df36db.chunk.js",
"static/css/main.63c35fee.chunk.css", "static/css/main.63c35fee.chunk.css",
"static/js/main.7d258f7c.chunk.js" "static/js/main.b9736c6f.chunk.js"
] ]
} }
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.44df36db.chunk.js"></script><script src="/static/js/main.7d258f7c.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.44df36db.chunk.js"></script><script src="/static/js/main.b9736c6f.chunk.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
(this.webpackJsonpdui123=this.webpackJsonpdui123||[]).push([[0],{173:function(e,t,n){},174:function(e,t,n){},176:function(e,t,n){},177:function(e,t,n){},178:function(e,t,n){},179:function(e,t,n){},250:function(e,t,n){},251:function(e,t,n){},252:function(e,t,n){},269:function(e,t,n){},270:function(e,t,n){},271:function(e,t,n){},279:function(e,t,n){"use strict";n.r(t);var c=n(0),i=n.n(c),a=n(28),o=n.n(a),l=n(17),r=n(158),s=n.n(r),d=n(133),u=n.n(d),j=(n(171),n(172),n(173),n(174),n(77)),p=n(21),b=n(40),m={toolBox:null,type:null,childType:null,userInfo:null,needUpdateIndex:!1,typeId:"follow",childTypeId:"all"};!function e(t){return Object.getOwnPropertyNames(t).forEach((function(n){var c=t[n];"object"==typeof c&&null!==c&&e(c)})),Object.freeze(t)}(m);var O=function(e,t){switch(console.table(t,["dataCenter\u7684dispatch"]),t.type){case"UPDATE_DATA":return Object.assign({},e,Object(b.a)({},t.data));case"NEED_UPDATE_INDEX":return Object.assign({},e,{needUpdateIndex:!e.needUpdateIndex});case"CHANGE_TYPE":return Object.assign({},e,{typeId:t.typeId});case"CHANGE_CHILD_TYPE":return Object.assign({},e,{childTypeId:t.childTypeId});default:return e}},A={domain:"http://"+window.location.hostname+":3000"},f=function(e){return{type:"CHANGE_TYPE",typeId:e}},g=n(6),h=Object(c.createContext)({}),y=Object(c.createContext)({});var I=function(e){var t=Object(c.useReducer)(O,m,(function(){return m})),n=Object(p.a)(t,2),i=n[0],a=n[1];return Object(g.jsx)(h.Provider,{value:{dataCenter:i,dispatch:a,fetchData:function(e,t,n){return fetch(function(e,t){if(t){var n=Object.keys(t).map((function(e,n){return 0===n?"?"+e+"="+t[e]:"&"+e+"="+t[e]})).join("");return console.log("\u53d1\u9001\u8bf7\u6c42\uff1a",A.domain+e+n),A.domain+e+n}return A.domain+e}(e,t),{credentials:"include"}).then((function(e){return e.json()})).then((function(e){if(console.log(e),!e.success)throw e;var t;return n&&a((t=Object(j.a)({},n,e.data),{type:"UPDATE_DATA",data:Object(b.a)({},t)})),e})).catch((function(e){throw console.error(e),e}))}},children:e.children})},x=n.p+"static/media/logo.c725c5d1.png",v=(n(176),n(177),function(e){var t=Object(c.useContext)(h),n=t.dataCenter,i=t.dispatch,a=e.childTypeId,o=e.childTypeName,l=["child-type-item"];a===n.childTypeId&&l.push("child-type-item-selected");return Object(g.jsx)("div",{className:l.join(" "),onClick:function(){console.log(a),i(function(e){return{type:"CHANGE_CHILD_TYPE",childTypeId:e}}(a))},children:o})});var E=function(e){var t,n,i=Object(c.useContext)(h),a=i.dataCenter,o=i.dispatch;return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"tab-tool-type",children:[Object(g.jsx)("div",{className:"follow"===a.typeId?"item-tool-type item-tool-type-selected":"item-tool-type",onClick:function(){return o(f("follow"))},children:"\u6211\u7684\u6536\u85cf"}),(null===a||void 0===a||null===(t=a.type)||void 0===t?void 0:t.length)>0&&a.type.map((function(e){var t=["item-tool-type "];return e.typeId===a.typeId&&t.push("item-tool-type-selected"),Object(g.jsx)("div",{className:t.join(""),onClick:function(){return o(f(e.typeId))},children:e.typeName},e.typeId)}))]}),Object(g.jsxs)("div",{className:"child-type",children:[Object(g.jsx)(v,{childTypeId:"all",childTypeName:"\u5168\u90e8"},"all"),(null===a||void 0===a||null===(n=a.childType)||void 0===n?void 0:n.length)>0&&(null===a||void 0===a?void 0:a.childType.map((function(e){return Object(g.jsx)(v,{childTypeId:e.childTypeId,childTypeName:e.childTypeName},e.childTypeId)})))]})]})},C=(n(178),n(179),"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOUAAADICAYAAAAX+yb+AAAAAXNSR0IArs4c6QAAHypJREFUeF7tXQuUZEWRjXg1Q6OIIossLrgIDsN0ZWR14/CRjyvoqIAgoOCigiIqHFFRQUSQ9QMqoKKy4gcU+YkujvIT0eWjqCiItsxU5queBtQBUVRQ1AERpuvFnsQathmmu94n8tWrqsxz+syc0xk3Im6+2/k+mZEIoQUGAgOVYgArFU0IJjAQGIAgynARBAYqxkAQZcUGJIQTGAiiDNdAYKBiDARRVmxAQjiBgSDKcA0EBirGwFCJcmxsbPPp6eltEXEhIm6bJIn7/5NmGxNmvi+KoruZ+bfup1arPfr/hx566Ld33HHHwxUby0qFs2DBgqeuv/76myPi5u12e4soijYHAPezBQB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OSQCEQDwExZTycJYsQ8E1ATOkblQQKgXgI/B8gy7sUM0KGDwAAAABJRU5ErkJggg==",k=n.p+"static/media/setting.6a716d85.svg",w=n.p+"static/media/trash.780a90e8.svg",N=n.p+"static/media/dragIcon.268403b1.svg",D=n(94),B=n(282),R=n(162),S=n(285),J=n(284),q=D.a.Option,G=function(e){var t,n,i,a=e.visible,o=e.onCancel,l=e.data,r=B.a.useForm(),s=Object(p.a)(r,1)[0],d=Object(c.useContext)(h),u=d.fetchData,j=d.dataCenter,m=d.dispatch;return Object(c.useEffect)((function(){var e;(null===j||void 0===j?void 0:j.type)&&u("/query/queryChildType",{typeId:null===j||void 0===j||null===(e=j.type[0])||void 0===e?void 0:e.typeId},"childType").then((function(e){console.log(e)}))}),[]),Object(g.jsx)(S.a,{visible:a,title:l?"\u4fee\u6539\u5de5\u5177\u7bb1":"\u65b0\u5efa\u5de5\u5177\u7bb1",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onCancel:o,onOk:function(){s.validateFields().then((function(e){!function(e){var t={toolBoxName:e.name,toolBoxIcon:e.icon,toolBoxDesc:e.depict,toolBoxUrl:e.url};l?u("/update/updateToolBox",t).then((function(e){e.success?(R.b.success("\u4fee\u6539\u6210\u529f"),m({type:"NEED_UPDATE_INDEX"}),o()):R.b.error("\u65b0\u5efa\u5931\u8d25")})):(t=Object(b.a)(Object(b.a)({},t),{},{typeId:e.type,childTypeId:e.childType}),console.log(t),u("/add/addToolBox",t).then((function(e){e.success?(R.b.success("\u65b0\u5efa\u6210\u529f"),m({type:"NEED_UPDATE_INDEX"}),o()):R.b.error("\u65b0\u5efa\u5931\u8d25")})))}(e)})).catch((function(e){console.log("Validate Failed:",e)}))},children:Object(g.jsxs)(B.a,Object(b.a)(Object(b.a)({form:s},{labelCol:{span:4},wrapperCol:{span:18}}),{},{name:"form_in_modal",initialValues:l?{name:l.toolBoxName,icon:l.toolBoxIcon,url:l.toolBoxUrl,depict:l.toolBoxDesc}:{type:(null===j||void 0===j?void 0:j.type)&&(null===j||void 0===j||null===(t=j.type[0])||void 0===t?void 0:t.typeId)},children:[Object(g.jsx)(B.a.Item,{name:"name",label:"\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u540d\u79f0!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0"})}),Object(g.jsx)(B.a.Item,{name:"icon",label:"\u56fe\u6807",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u6807url!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u56fe\u6807url"})}),Object(g.jsx)(B.a.Item,{name:"depict",label:"\u63cf\u8ff0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u63cf\u8ff0!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0"})}),Object(g.jsx)(B.a.Item,{name:"url",label:"\u94fe\u63a5",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u94fe\u63a5"})}),!l&&Object(g.jsx)(B.a.Item,{name:"type",label:"\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7c7b\u578b!"}],children:Object(g.jsx)(D.a,{placeholder:"\u8bf7\u9009\u62e9\u7c7b\u578b",onChange:function(e){s.setFieldsValue({type:e}),u("/query/queryChildType",{typeId:e},"childType").then((function(e){console.log(e)})),console.log(j)},children:(null===j||void 0===j||null===(n=j.type)||void 0===n?void 0:n.length)&&(null===j||void 0===j?void 0:j.type.map((function(e){return Object(g.jsx)(q,{value:e.typeId,children:e.typeName},e.typeId)})))})}),!l&&(null===j||void 0===j?void 0:j.childType)&&Object(g.jsx)(B.a.Item,{name:"childType",label:"\u5b50\u7c7b\u578b",children:Object(g.jsx)(D.a,{placeholder:"\u8bf7\u9009\u62e9\u5b50\u7c7b\u578b",onChange:function(e){s.setFieldsValue({childType:e})},allowClear:!0,children:(null===j||void 0===j||null===(i=j.childType)||void 0===i?void 0:i.length)&&(null===j||void 0===j?void 0:j.childType.map((function(e){return Object(g.jsx)(q,{value:e.childTypeId,children:e.childTypeName},e.childTypeId)})))})})]}))})};var K=function(e){var t=Object(c.useState)(!1),n=Object(p.a)(t,2),i=n[0],a=n[1],o=Object(c.useContext)(h).fetchData,l=(Object(c.useContext)(y).showPop,e.value),r=l.toolBoxIcon,s=l.toolBoxName,d=l.toolBoxDesc,u=l.toolBoxUrl,j=l.follow,b=l.toolBoxId,m=Object(c.useState)(r),O=Object(p.a)(m,2),A=O[0],f=O[1],I=function(e){window.location.href=e};return Object(g.jsxs)("div",{className:"content-item",children:[Object(g.jsxs)("div",{className:"content-adminTool",children:[Object(g.jsx)("img",{src:N,alt:""}),Object(g.jsx)("img",{src:k,alt:"",onClick:function(){return a(!0)}}),Object(g.jsx)("img",{src:w,alt:"",onClick:function(){return function(e){o("/delete/deleteToolBoxById",{toolBoxId:e})}(b)}})]}),Object(g.jsxs)("div",{className:"item-icon",onClick:function(){return I(u)},children:[!A&&Object(g.jsx)("div",{className:"defaultIcon",children:s[0]}),A&&Object(g.jsx)("img",{src:A,alt:"",onError:function(e){return f(null)}})]}),Object(g.jsx)("div",{className:"item-name",onClick:function(){return I(u)},children:s}),Object(g.jsx)("div",{className:"item-desc",children:d}),Object(g.jsx)("a",{className:"item-url",href:u,children:u}),Object(g.jsxs)("div",{className:"follow",children:[Object(g.jsx)("img",{className:"icon-follow",src:j?T:C,alt:""}),"\u6536\u85cf"]}),i&&Object(g.jsx)(G,{visible:i,onCancel:function(){return a(!1)},data:e.value})]})};n(250);var F=function(e){var t=Object(c.useContext)(h),n=t.dataCenter,i=t.fetchData,a=e.value,o=a.toolBoxIcon,l=a.toolBoxName,r=a.toolBoxDesc,s=a.toolBoxUrl,d=a.toolBoxId,u=Object(c.useState)(!1),j=Object(p.a)(u,2),b=j[0],m=j[1],O=Object(c.useState)(o),A=Object(p.a)(O,2),f=A[0],y=A[1],I=function(e){return window.location.href=e};return Object(c.useEffect)((function(){var e;(null===(e=n.userInfo)||void 0===e?void 0:e.follow.includes(d))?m(!0):m(!1)}),[n.toolBox,n.userInfo]),Object(g.jsxs)("div",{className:"content-item",children:[Object(g.jsxs)("div",{className:"item-icon",onClick:function(){return I(s)},children:[!f&&Object(g.jsx)("div",{className:"defaultIcon",children:l[0]}),f&&Object(g.jsx)("img",{src:f,alt:"",onError:function(e){return y(null)}})]}),Object(g.jsx)("div",{className:"item-name",onClick:function(){return I(s)},children:l}),Object(g.jsx)("div",{className:"item-desc",children:r}),Object(g.jsx)("a",{className:"item-url",href:s,children:s}),Object(g.jsxs)("div",{className:"follow",children:[Object(g.jsx)("img",{className:"icon-follow",src:b?T:C,alt:"",onClick:function(){return function(){var e=n.userInfo.follow.slice();if(b){var t=e.indexOf(d);e.splice(t,1)}else e.push(d);console.log({follow:JSON.stringify(e),userId:n.userInfo.uid}),i("/users/follow",{follow:JSON.stringify(e),userId:n.userInfo.uid}).then((function(){return i("/users/getUser",{userId:100001},"userInfo")}))}()}}),"\u6536\u85cf"]})]})};var U=function(e){var t,n,i=Object(c.useContext)(h).dataCenter;return Object(g.jsx)("div",{className:"content",children:(null===(t=i.toolBox)||void 0===t?void 0:t.length)?null===i||void 0===i||null===(n=i.toolBox)||void 0===n?void 0:n.filter((function(e){return"all"===i.childTypeId||e.childTypeId===i.childTypeId})).map((function(e){return Object(g.jsx)(K,{value:e},e.toolBoxId)})):"\u6ca1\u6709\u6570\u636e\u4e86\uff01"})},z=(n(251),n(31)),X=(n(252),n(152)),M=(n(253),n(254),n(146),n(255),n(257),n(258),n(52),n(259),n(260),n(261),n(262),n(263),D.a.Option,function(e){var t=e.visible,n=e.onCancel,i=e.data,a=Object(c.useState)(""),o=Object(p.a)(a,2),l=o[0],r=o[1],s=Object(c.useState)(""),d=Object(p.a)(s,2),u=d[0],j=d[1],b=Object(c.useState)(""),m=Object(p.a)(b,2),O=m[0],f=(m[1],Object(c.useContext)(h)),y=f.fetchData,I=f.dataCenter;console.log(i);return Object(c.useEffect)((function(){i&&j(i.pageName)}),[i]),Object(g.jsxs)(S.a,{visible:t,title:"\u53d1\u5e03",okText:"\u53d1\u5e03",cancelText:"\u53d6\u6d88",onCancel:n,onOk:function(e){console.log(l),l&&u?i?fetch("".concat(A.domain,"/page/updatePage"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageId:i.pageId,pageName:u,code:l})}).then((function(e){return e.json()})).then((function(e){e.success?(n(),R.b.success("\u66ff\u6362\u6210\u529f\uff01"),(null===I||void 0===I?void 0:I.type)&&y("/page/queryPage",{},"queryPage").then((function(e){}))):R.b.error("\u66ff\u6362\u5931\u8d25")})):fetch("".concat(A.domain,"/page/addPage"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageName:u,code:l})}).then((function(e){return e.json()})).then((function(e){e.success?(n(),R.b.success("\u53d1\u5e03\u6210\u529f\uff01"),(null===I||void 0===I?void 0:I.type)&&y("/page/queryPage",{},"queryPage").then((function(e){}))):R.b.error(e.error||"\u53d1\u5e03\u5931\u8d25")})):R.b.error("\u8bf7\u8865\u5168\u4fe1\u606f\uff01")},width:"1000px",children:[Object(g.jsx)(B.a.Item,{name:"pageName",label:"\u9875\u9762\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9875\u9762\u540d\u79f0!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u9875\u9762\u540d\u79f0",defaultValue:(null===i||void 0===i?void 0:i.pageName)?i.pageName:u,onChange:function(e){j(e.target.value)}})}),Object(g.jsx)(B.a.Item,{name:"type",label:"\u5e03\u5c40\u4ee3\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9875\u9762\u540d\u79f0!"}],children:Object(g.jsx)("div",{className:"codeMain",children:Object(g.jsx)(X.UnControlled,{onChange:function(e,t,n){r(n)},value:O,options:{styleActiveLine:!0,lineNumbers:!0,theme:"monokai",tabSize:2,keyMap:"sublime",mode:"text/javascript",smartIndent:!0,lineWrapping:!0,autofocus:!0}})})})]})}),P=n(283),Q=n(116),Z=D.a.Option,W=(P.a.TabPane,function(e){var t,n=e.visible,a=e.onCancel,o=e.queryData,l=e.data;console.log(l);var r=B.a.useForm(),s=Object(p.a)(r,1)[0];l&&s.setFieldsValue({typeName:l.typeName});var d=Object(c.useContext)(h),u=d.fetchData,j=d.dataCenter,m=d.dispatch,O=i.a.useState(1),A=Object(p.a)(O,2),f=A[0],y=A[1];return Object(g.jsx)(S.a,{visible:n,title:"".concat(l?"\u4fee\u6539":"\u65b0\u5efa","\u7c7b\u578b"),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onCancel:a,onOk:function(){s.validateFields().then((function(e){!function(e){if(l){console.log(l);var t={typeId:"",typeName:""};t=l.isRemove?{childTypeId:l.typeId,childTypeName:e.typeName}:{typeId:l.typeId,typeName:e.typeName},u("/typeManage/updateType",t).then((function(e){e.success&&(R.b.success("\u4fee\u6539\u6210\u529f"),m({type:"NEED_UPDATE_INDEX"}),o(),a())}))}else console.log(e),u("/add/addType",e).then((function(e){e.success&&(R.b.success("\u65b0\u5efa\u6210\u529f"),m({type:"NEED_UPDATE_INDEX"}),a())}))}(e)})).catch((function(e){console.log("Validate Failed:",e)}))},children:Object(g.jsxs)(B.a,Object(b.a)(Object(b.a)({form:s},{labelCol:{span:4},wrapperCol:{span:18}}),{},{name:"form_in_modal",initialValues:{modifier:"public","radio-group":1},children:[!l&&Object(g.jsx)(B.a.Item,{name:"radio-group",label:"\u7c7b\u578b",children:Object(g.jsxs)(Q.a.Group,{onChange:function(e){console.log("radio checked",e.target.value),y(e.target.value)},value:f,children:[Object(g.jsx)(Q.a,{value:1,children:"\u7236\u7c7b\u578b"}),Object(g.jsx)(Q.a,{value:2,children:"\u5b50\u7c7b\u578b"})]})}),1===f||l?Object(g.jsx)(B.a.Item,{name:"typeName",label:"".concat(l?"":"\u7236","\u7c7b\u578b"),rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7c7b\u578b\u540d\u79f0!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u7c7b\u578b\u540d\u79f0"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(B.a.Item,{name:"typeId",label:"\u7236\u7c7b\u578b",hasFeedback:!0,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7236\u7c7b\u578b!"}],children:Object(g.jsx)(D.a,{placeholder:"\u8bf7\u9009\u62e9\u7236\u7c7b\u578b",onChange:function(e){s.setFieldsValue({typeId:e})},children:(null===j||void 0===j||null===(t=j.type)||void 0===t?void 0:t.length)&&(null===j||void 0===j?void 0:j.type.map((function(e){return Object(g.jsx)(Z,{value:e.typeId,children:e.typeName},e.typeId)})))})}),Object(g.jsx)(B.a.Item,{name:"childTypeName",label:"\u5b50\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7c7b\u578b\u540d\u79f0!"}],children:Object(g.jsx)(J.a,{placeholder:"\u8bf7\u8f93\u5165\u7c7b\u578b\u540d\u79f0"})})]})]}))})}),L=n(286),V=n(281);var Y=function(e){var t=e.visible,n=e.onCancel,i=(e.onPublish,Object(c.useState)(!1)),a=Object(p.a)(i,2),o=a[0],l=a[1],r=Object(c.useState)(""),s=Object(p.a)(r,2),d=s[0],u=s[1],j=Object(c.useContext)(h),b=j.fetchData,m=j.dataCenter,O=[{title:"\u9875\u9762Id",dataIndex:"pageId",width:150,align:"center"},{title:"\u9875\u9762\u540d\u79f0",dataIndex:"pageName",width:200,align:"center"},{title:"\u9875\u9762Url",dataIndex:"pageUrl",width:300,align:"center",render:function(e,t){return Object(g.jsx)(L.b,{size:"middle",children:Object(g.jsx)("a",{href:t.pageUrl,children:t.pageUrl})})}},{title:"\u64cd\u4f5c",key:"action",align:"center",width:100,render:function(e,t){return Object(g.jsx)(L.b,{size:"middle",children:Object(g.jsx)("a",{onClick:function(){return e=t,console.log(e),u(e),void l(!0);var e},children:"\u66ff\u6362"})})}}];return Object(c.useEffect)((function(){console.log(m),(null===m||void 0===m?void 0:m.type)&&b("/page/queryPage",{},"queryPage").then((function(e){}))}),[]),Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(S.a,{visible:t,title:"\u9875\u9762\u7ba1\u7406",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",width:"1000px",onCancel:n,onOk:n,children:Object(g.jsx)(V.a,{columns:O,dataSource:(null===m||void 0===m?void 0:m.queryPage)&&m.queryPage,pagination:{pageSize:10},size:"middle"})}),o&&Object(g.jsx)(M,{visible:o,onCancel:function(){return l(!1)},data:d})]})},H=n(73),_=n(287);H.a,H.a.Item,H.a.Item;var $=function(e){var t=e.visible,n=e.onCancel,i=Object(c.useState)(!1),a=Object(p.a)(i,2),o=a[0],l=a[1],r=Object(c.useState)(""),s=Object(p.a)(r,2),d=s[0],u=s[1],j=Object(c.useState)(""),b=Object(p.a)(j,2),m=b[0],O=b[1],A=Object(c.useContext)(h),f=A.fetchData,y=A.dataCenter,I=A.dispatch,x=function e(t,n){return t.map((function(t,c){var i=n(t);return t.children&&(i.children=e(t.children,(function(e){return{isRemove:!0,key:e.childTypeId,typeId:e.childTypeId,typeName:e.childTypeName}}))),i}))},v=function(){(null===y||void 0===y?void 0:y.type)&&f("/typeManage/queryTypeForManage",{},"childTypeData").then((function(e){var t=x(e.data,(function(e){return{key:e.typeId,typeId:e.typeId,typeName:e.typeName}}));u(t)}))};Object(c.useEffect)((function(){v()}),[]);var E=[{title:"\u7c7b\u578b\u540d",width:100,dataIndex:"typeName",key:"typeName"},{title:"Id",width:100,dataIndex:"typeId",align:"center",key:"typeId"},{title:"\u64cd\u4f5c",width:100,key:"operation",align:"center",render:function(e,t){return Object(g.jsxs)(L.b,{size:"middle",children:[t.isRemove&&Object(g.jsx)(_.a,{title:"\u786e\u5b9a\u5220\u9664\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onConfirm:function(){f("/typeManage/deleteChildType",{childTypeId:t.typeId}).then((function(e){e.success?(R.b.success("\u522a\u9664\u6210\u529f"),I({type:"NEED_UPDATE_INDEX"}),v()):R.b.error("\u522a\u9664\u5931\u8d25")}))},children:Object(g.jsx)("a",{href:"#",children:"\u5220\u9664"})}),Object(g.jsx)("a",{href:"#",onClick:function(){return O(t),void l(!0)},children:"\u4fee\u6539"})]})}}];return Object(g.jsxs)(S.a,{visible:t,title:"\u7c7b\u578b\u7ba1\u7406",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",width:"1000px",onCancel:n,onOk:n,children:[Object(g.jsx)(V.a,{columns:E,dataSource:d}),o&&Object(g.jsx)(W,{visible:o,onCancel:function(){return l(!1)},queryData:function(){return v()},data:m})]})};var ee=function(){var e=Object(c.useState)(!1),t=Object(p.a)(e,2),n=t[0],i=t[1],a=Object(c.useState)(!1),o=Object(p.a)(a,2),l=o[0],r=o[1],s=Object(c.useState)(!1),d=Object(p.a)(s,2),u=d[0],j=d[1],b=Object(c.useState)(!1),m=Object(p.a)(b,2),O=m[0],A=m[1],f=Object(c.useState)(!1),h=Object(p.a)(f,2),y=h[0],I=h[1];return Object(g.jsxs)("div",{className:"admin",children:[Object(g.jsx)(z.a,{onClick:function(){return i(!0)},children:"\u65b0\u5efa\u5de5\u5177\u76d2"}),Object(g.jsx)(z.a,{onClick:function(){return j(!0)},children:"\u65b0\u5efa\u7c7b\u578b"}),Object(g.jsx)(z.a,{onClick:function(){return r(!0)},children:"\u53d1\u5e03"}),Object(g.jsx)(z.a,{onClick:function(){return A(!0)},children:"\u9875\u9762\u7ba1\u7406"}),Object(g.jsx)(z.a,{onClick:function(){return I(!0)},children:"\u7c7b\u578b\u7ba1\u7406"}),n&&Object(g.jsx)(G,{visible:n,onCancel:function(){return i(!1)}}),l&&Object(g.jsx)(M,{visible:l,onCancel:function(){return r(!1)}}),u&&Object(g.jsx)(W,{visible:u,onCancel:function(){return j(!1)}}),O&&Object(g.jsx)(Y,{visible:O,onCancel:function(){return A(!1)}}),y&&Object(g.jsx)($,{visible:y,onCancel:function(){return I(!1)}})]})};var te=function(){var e,t=Object(c.useState)(),n=Object(p.a)(t,2),i=n[0],a=n[1],o=Object(c.useContext)(h),l=o.fetchData,r=o.dataCenter,s=o.dispatch;return Object(c.useEffect)((function(){l("/query/queryType",{},"type").then((function(){return l("/query/queryChildType",{typeId:r.typeId},"childType")})).then((function(){return s({type:"NEED_UPDATE_INDEX"})}))}),[r.typeId]),Object(c.useEffect)((function(){if(r.needUpdateIndex){var e="all"===r.typeId?{}:"follow"===r.typeId?{isFollow:!0,typeId:JSON.stringify(r.userInfo.follow)}:{typeId:r.typeId};l("/query/queryToolBox",e,"toolBox").then((function(){return s({type:"NEED_UPDATE_INDEX"})}))}}),[r.needUpdateIndex]),Object(c.useEffect)((function(){l("/users/getUser",{userId:"100001"},"userInfo").catch((function(e){return 70001===e.code&&(window.location.href="/login")}))}),[]),Object(g.jsx)(y.Provider,{value:{hidePop:function(){return a("")},showPop:function(e){a(e)}},children:Object(g.jsxs)("div",{className:"index",children:[Object(g.jsx)("div",{className:"welcome-top",children:Object(g.jsxs)("span",{children:["\u6b22\u8fce\u60a8\uff01",Object(g.jsx)("span",{className:"welcome-uname",children:null===r||void 0===r||null===(e=r.userInfo)||void 0===e?void 0:e.uname}),Object(g.jsx)("a",{className:"login-btn",children:"\u9000\u51fa\u767b\u5f55"})]})}),Object(g.jsxs)("div",{className:"nav",children:[Object(g.jsx)("div",{className:"nav-title",children:Object(g.jsx)("img",{src:x,alt:""})}),Object(g.jsx)("div",{className:"nav-weather",children:Object(g.jsx)("iframe",{width:"360",height:"40",frameBorder:"0",scrolling:"no",hspace:"0",src:"https://i.tianqi.com/?c=code&a=getcode&id=40&icon=1"})})]}),Object(g.jsx)("div",{className:"tool-nav",children:Object(g.jsx)(E,{})}),Object(g.jsx)("div",{className:"container",children:Object(g.jsx)(U,{})}),i,Object(g.jsxs)("div",{className:"index-footer",children:["\u5151\u5427\u7814\u53d1\u4e2d\u5fc3\xb7\u676d\u5dde\u5151\u5427\u7f51\u7edc\u79d1\u6280\u6e38\u620f\u516c\u53f8\u7248\u6743\u6240\u6709",Object(g.jsx)("br",{}),"\u6d59ICP\u590714017299\u53f7-1"]}),Object(g.jsx)(ee,{})]})})};n(269),n(270);var ne=function(e){var t,n,i=Object(c.useContext)(h).dataCenter;return Object(g.jsx)("div",{className:"content",children:(null===(t=i.toolBox)||void 0===t?void 0:t.length)?null===i||void 0===i||null===(n=i.toolBox)||void 0===n?void 0:n.filter((function(e){return"all"===i.childTypeId||e.childTypeId===i.childTypeId})).map((function(e){return Object(g.jsx)(F,{value:e},e.toolBoxId)})):"\u6ca1\u6709\u6570\u636e\u4e86\uff01"})};var ce=function(){var e,t=Object(c.useContext)(h),n=t.fetchData,i=t.dataCenter,a=t.dispatch;return Object(c.useEffect)((function(){n("/query/queryType",{},"type").then((function(){return n("/query/queryChildType",{typeId:i.typeId},"childType")})).then((function(){return a({type:"NEED_UPDATE_INDEX"})}))}),[i.typeId]),Object(c.useEffect)((function(){if(i.needUpdateIndex){var e="follow"===i.typeId?{isFollow:!0,typeId:JSON.stringify(i.userInfo.follow)}:{typeId:i.typeId};n("/query/queryToolBox",e,"toolBox").then((function(){return a({type:"NEED_UPDATE_INDEX"})}))}}),[i.needUpdateIndex]),Object(c.useEffect)((function(){n("/users/getUser",{userId:"100001"},"userInfo").catch((function(e){return 70001===e.code&&(window.location.href="/login")}))}),[]),Object(g.jsxs)("div",{className:"index",children:[Object(g.jsx)("div",{className:"welcome-top",children:Object(g.jsxs)("span",{children:["\u6b22\u8fce\u60a8\uff01",Object(g.jsx)("span",{className:"welcome-uname",children:null===i||void 0===i||null===(e=i.userInfo)||void 0===e?void 0:e.uname}),Object(g.jsx)("a",{className:"login-btn",children:"\u9000\u51fa\u767b\u5f55"})]})}),Object(g.jsxs)("div",{className:"nav",children:[Object(g.jsx)("div",{className:"nav-title",children:Object(g.jsx)("img",{src:x,alt:""})}),Object(g.jsx)("div",{className:"nav-weather",children:Object(g.jsx)("iframe",{width:"360",height:"40",frameBorder:"0",scrolling:"no",hspace:"0",src:"https://i.tianqi.com/?c=code&a=getcode&id=40&icon=1"})})]}),Object(g.jsx)("div",{className:"tool-nav",children:Object(g.jsx)(E,{})}),Object(g.jsx)("div",{className:"container",children:Object(g.jsx)(ne,{})}),Object(g.jsxs)("div",{className:"index-footer",children:["\u5151\u5427\u7814\u53d1\u4e2d\u5fc3\xb7\u676d\u5dde\u5151\u5427\u7f51\u7edc\u79d1\u6280\u6e38\u620f\u516c\u53f8\u7248\u6743\u6240\u6709",Object(g.jsx)("br",{}),"\u6d59ICP\u590714017299\u53f7-1"]})]})};n(271);var ie=function(e){var t=Object(c.useContext)(h),n=t.fetchData,i=t.dataCenter,a=Object(c.useState)(!1),o=Object(p.a)(a,2),l=o[0],r=o[1],s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(c.useState)(e),n=Object(p.a)(t,2),i=n[0],a=n[1],o=Object(c.useCallback)((function(e,t){a((function(){return Object.assign({},Object(b.a)({},i),Object(j.a)({},e,t))}))}),[i]);return[i,o]}(),d=Object(p.a)(s,2),u=d[0],m=d[1],O=function(){n("/users/getUser",{userId:"100001"},"userInfo").then((function(e){return e.data.uid&&(window.location.href="/index")})).catch((function(e){return 70001===e.code&&r(!0)}))},A=function(){l?n("/users/login",{userId:"100001"}).then((function(){O()})):O()};return Object(c.useEffect)((function(){i.userInfo}),[i.userInfo]),Object(c.useEffect)((function(){A()}),[]),Object(g.jsx)("div",{className:"login",children:Object(g.jsxs)("div",{className:"loginDiv",children:[l&&Object(g.jsx)("input",{type:"text",onChange:function(e){return m("userId",e.target.value)},defaultValue:u.userId}),Object(g.jsx)("button",{className:"btn-login",onClick:function(){return A()},children:"\u767b\u5f55"})]})})},ae=n(155),oe=n(26);var le=function(){return Object(g.jsx)(ae.a,{children:Object(g.jsx)(I,{children:Object(g.jsxs)(oe.c,{children:[Object(g.jsx)(oe.a,{exact:!0,path:"/login",component:ie}),Object(g.jsx)(oe.a,{exact:!0,path:"/",component:ce}),Object(g.jsx)(oe.a,{exact:!0,path:"/admin",component:te})]})})})},re=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,288)).then((function(t){var n=t.getCLS,c=t.getFID,i=t.getFCP,a=t.getLCP,o=t.getTTFB;n(e),c(e),i(e),a(e),o(e)}))};u.a.locale("zh-cn"),o.a.render(Object(g.jsx)(i.a.StrictMode,{children:Object(g.jsx)(l.a,{locale:s.a,children:Object(g.jsx)(le,{})})}),document.getElementById("root")),re()}},[[279,1,2]]]);
//# sourceMappingURL=main.7d258f7c.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["dataCenter/reducer.js","config/apiConfig.js","dataCenter/action.js","dataCenter/Root.jsx","static/logo.png","component/ToolType/ToolType.jsx","static/notFollow.png","static/followed.png","static/setting.svg","static/trash.svg","static/dragIcon.svg","modal/ToolModal.jsx","component/ContentAdmin/ContentItemAdmin.jsx","component/Content/ContentItem.jsx","component/ContentAdmin/Content.jsx","modal/PublishModal.jsx","modal/TypeModal.jsx","modal/PageModal.jsx","modal/RemoveType.jsx","component/AdminIndex/AdminIndex.jsx","page/indexAdmin/index.jsx","component/Content/Content.jsx","page/index/index.jsx","page/login/login.jsx","utils/hook.js","App.js","reportWebVitals.js","index.js"],"names":["initDataCenter","toolBox","type","childType","userInfo","needUpdateIndex","typeId","childTypeId","deepFreeze","obj","Object","getOwnPropertyNames","forEach","name","prop","freeze","dataReducer","state","action","console","table","assign","data","apiConfig","domain","window","location","hostname","CHANGE_TYPE","Root","createContext","PopContext","DataCenter","props","useReducer","dataCenter","dispatch","Provider","value","fetchData","path","requestData","dataName","fetch","paramsStr","keys","map","v","i","join","log","generateUrl","credentials","then","res","json","success","catch","e","error","children","ChildTypeItem","useContext","childTypeName","classNameArr","push","className","onClick","CHANGE_CHILD_TYPE","ToolType","length","typeName","Option","Select","ToolModal","visible","onCancel","Form","useForm","form","useEffect","title","okText","cancelText","onOk","validateFields","values","input","toolBoxName","toolBoxIcon","icon","toolBoxDesc","depict","toolBoxUrl","url","message","onCreate","info","labelCol","span","wrapperCol","initialValues","Item","label","rules","required","placeholder","onChange","setFieldsValue","allowClear","ContentItemAdmin","useState","setVisible","showPop","follow","toolBoxId","itemIcon","setItemIcon","jumpUrl","href","src","dragIcon","alt","setting","trash","deleteItem","onError","followed","notFollow","ContentItem","isFollow","setIsFollow","includes","_follow","slice","index","indexOf","splice","JSON","stringify","userId","uid","Content","filter","PublishModal","code","setcode","pageName","setPageName","oldCode","method","headers","body","pageId","response","width","defaultValue","target","editor","options","styleActiveLine","lineNumbers","theme","tabSize","keyMap","mode","smartIndent","lineWrapping","autofocus","TypeModal","Tabs","TabPane","queryData","React","setValue","isRemove","modifier","Group","hasFeedback","PageModal","onPublish","publish","setPublish","pageData","setpageData","columns","dataIndex","align","render","text","record","size","pageUrl","key","dataSource","queryPage","pagination","pageSize","RemoveType","typeModal","setTypeModal","typeData","settypeData","oldData","setoldData","changeData","list","cb","item","newData","onConfirm","AdminIndex","pageModal","setpageModal","removeType","setremoveType","Index","pop","setPop","_typeId","hidePop","popName","uname","logo","height","frameBorder","scrolling","hspace","Login","needLogin","setNeedLogin","setInput","setInputData","useCallback","useFormState","getUser","doLogin","App","exact","component","IndexAdmin","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","moment","locale","ReactDOM","StrictMode","zhCN","document","getElementById"],"mappings":"wfAAMA,EAAiB,CACnBC,QAAS,KACTC,KAAM,KACNC,UAAW,KACXC,SAAU,KACVC,iBAAiB,EACjBC,OAAQ,SACRC,YAAa,QAQjB,SAASC,EAAWC,GAchB,OAZgBC,OAAOC,oBAAoBF,GAGjCG,SAAQ,SAAUC,GACxB,IAAIC,EAAOL,EAAII,GAGI,iBAARC,GAA6B,OAATA,GAC3BN,EAAWM,MAIZJ,OAAOK,OAAON,GAIzBD,CAAWR,GAEX,IAAMgB,EAAc,SAACC,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AC,OAAI6K,EAAS,SAAS7K,EAAEmG,OAAOvH,QAAQsH,aAAcrE,EAAMqD,SAE3G,wBAAQ1E,UAAU,YAAYC,QAAS,kBAAMyK,KAA7C,gC,mBEpBDC,OAdf,WACI,OACI,cAAC,KAAD,UACI,cAAC,EAAD,UACI,eAAC,KAAD,WACI,cAAC,KAAD,CAAOC,OAAK,EAACtM,KAAK,SAASuM,UAAWX,KACtC,cAAC,KAAD,CAAOU,OAAK,EAACtM,KAAK,IAAIuM,UAAWvB,KACjC,cAAC,KAAD,CAAOsB,OAAK,EAACtM,KAAK,SAASuM,UAAWC,aCF3CC,GAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,8BAAqB9L,MAAK,YAAkD,IAA/C+L,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCKdO,IAAOC,OAAO,SACdC,IAAS/D,OACL,cAAC,IAAMgE,WAAP,UACI,cAAC,IAAD,CAAgBF,OAAQG,IAAxB,SACI,cAAC,GAAD,QAGRC,SAASC,eAAe,SAM5Bd,O","file":"static/js/main.7d258f7c.chunk.js","sourcesContent":["const initDataCenter = {\r\n toolBox: null,\r\n type: null,\r\n childType: null,\r\n userInfo: null,\r\n needUpdateIndex: false,\r\n typeId: 'follow',\r\n childTypeId: 'all'\r\n}\r\n\r\n/**\r\n * deepFreeze()\r\n * @param obj\r\n * @returns {unknown[]}\r\n */\r\nfunction deepFreeze(obj) {\r\n // 取回定义在obj上的属性名\r\n let propNames = Object.getOwnPropertyNames(obj);\r\n\r\n // 在冻结自身之前冻结属性\r\n propNames.forEach(function (name) {\r\n let prop = obj[name];\r\n\r\n // 如果prop是个对象,冻结它\r\n if (typeof prop == 'object' && prop !== null)\r\n deepFreeze(prop);\r\n });\r\n\r\n // 冻结自身(no-op if already frozen)\r\n return Object.freeze(obj);\r\n}\r\n\r\n//任何修改原始对象的操作都是禁止的!\r\ndeepFreeze(initDataCenter)\r\n\r\nconst dataReducer = (state, action) => {\r\n // console.log(action)\r\n console.table(action,['dataCenter的dispatch'])\r\n switch (action.type) {\r\n case 'UPDATE_DATA':\r\n return Object.assign({}, state, {\r\n ...action.data\r\n })\r\n case 'NEED_UPDATE_INDEX':\r\n return Object.assign({}, state, {needUpdateIndex: !state.needUpdateIndex})\r\n case 'CHANGE_TYPE':\r\n return Object.assign({}, state, {typeId: action.typeId})\r\n case 'CHANGE_CHILD_TYPE':\r\n return Object.assign({}, state, {childTypeId: action.childTypeId})\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport {\r\n initDataCenter,\r\n dataReducer,\r\n}\r\n","const apiConfig = {\r\n domain: 'http://' + window.location.hostname + ':3000',\r\n}\r\n\r\nexport default apiConfig\r\n","const UPDATE_DATA = data => ({type: 'UPDATE_DATA', data: {...data}})\r\nconst NEED_UPDATE_INDEX = () => ({type: 'NEED_UPDATE_INDEX'})\r\nconst CHANGE_TYPE = typeId => ({type: 'CHANGE_TYPE', typeId: typeId})\r\nconst CHANGE_CHILD_TYPE = childTypeId => ({type: 'CHANGE_CHILD_TYPE', childTypeId: childTypeId})\r\n\r\nexport {\r\n UPDATE_DATA,\r\n NEED_UPDATE_INDEX,\r\n CHANGE_TYPE,\r\n CHANGE_CHILD_TYPE\r\n}\r\n","import React, {createContext, useReducer} from \"react\";\r\nimport {dataReducer, initDataCenter} from \"./reducer\";\r\nimport apiConfig from \"../config/apiConfig\";\r\nimport {UPDATE_DATA} from \"./action\";\r\n\r\nconst Root = createContext({})\r\nconst PopContext = createContext({})\r\n\r\nfunction DataCenter(props) {\r\n const [dataCenter, dispatch] = useReducer(dataReducer, initDataCenter, () => {\r\n return initDataCenter\r\n })\r\n\r\n const generateUrl = (path, requestData) => {\r\n if (requestData) {\r\n const keyArr = Object.keys(requestData)\r\n const paramsStr = keyArr.map((v, i) => {\r\n if (i === 0) {\r\n return '?' + v + '=' + requestData[v]\r\n } else {\r\n return '&' + v + '=' + requestData[v]\r\n }\r\n }).join('')\r\n console.log('发送请求:', apiConfig.domain + path + paramsStr)\r\n return apiConfig.domain + path + paramsStr\r\n }\r\n return apiConfig.domain + path\r\n }\r\n\r\n const fetchData = (path, requestData, dataName) =>\r\n fetch(generateUrl(path, requestData), {credentials: 'include'})\r\n .then(res => res.json())\r\n .then(res => {\r\n console.log(res);\r\n if (res.success) {\r\n !!dataName && dispatch(UPDATE_DATA({[dataName]: res.data}))\r\n } else {\r\n throw res\r\n }\r\n return res\r\n })\r\n .catch(e => {\r\n console.error(e)\r\n throw e\r\n })\r\n\r\n\r\n return (\r\n <Root.Provider value={{dataCenter, dispatch, fetchData}}>\r\n {\r\n props.children\r\n }\r\n </Root.Provider>\r\n )\r\n}\r\n\r\nexport {\r\n Root,\r\n PopContext,\r\n}\r\nexport default DataCenter\r\n\r\n","export default __webpack_public_path__ + \"static/media/logo.c725c5d1.png\";","import './ToolType.scss'\r\nimport {useContext} from \"react\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\nimport {CHANGE_CHILD_TYPE, CHANGE_TYPE} from \"../../dataCenter/action\";\r\n\r\nconst ChildTypeItem = props => {\r\n const {dataCenter, dispatch} = useContext(Root)\r\n const {childTypeId, childTypeName} = props\r\n const classNameArr = ['child-type-item']\r\n if (childTypeId === dataCenter.childTypeId) {\r\n classNameArr.push('child-type-item-selected')\r\n }\r\n const handleClick = () => {\r\n console.log(childTypeId)\r\n dispatch(CHANGE_CHILD_TYPE(childTypeId))\r\n }\r\n return (\r\n <div className={classNameArr.join(' ')} onClick={handleClick}>{childTypeName}</div>\r\n )\r\n}\r\n\r\n\r\nfunction ToolType(props) {\r\n const {dataCenter, dispatch} = useContext(Root)\r\n return (\r\n <>\r\n <div className=\"tab-tool-type\">\r\n <div className={dataCenter.typeId === 'follow' ? 'item-tool-type item-tool-type-selected' : 'item-tool-type'}\r\n onClick={() => dispatch(CHANGE_TYPE('follow'))}>我的收藏\r\n </div>\r\n {\r\n dataCenter?.type?.length > 0 && dataCenter.type.map(v => {\r\n const classNameArr = ['item-tool-type ']\r\n if (v[\"typeId\"] === dataCenter.typeId) classNameArr.push('item-tool-type-selected')\r\n return (\r\n <div key={v[\"typeId\"]} className={classNameArr.join('')}\r\n onClick={() => dispatch(CHANGE_TYPE( v[\"typeId\"]))}>{v.typeName}</div>\r\n )\r\n })\r\n }\r\n </div>\r\n <div className=\"child-type\">\r\n <ChildTypeItem key={'all'} childTypeId={'all'} childTypeName={'全部'}/>\r\n {\r\n dataCenter?.childType?.length > 0 && dataCenter?.childType.map(v => {\r\n return (\r\n <ChildTypeItem key={v.childTypeId} childTypeId={v.childTypeId}\r\n childTypeName={v.childTypeName}/>\r\n )\r\n })\r\n }\r\n </div>\r\n </>\r\n )\r\n}\r\n\r\nexport default ToolType\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOUAAADICAYAAAAX+yb+AAAAAXNSR0IArs4c6QAAHypJREFUeF7tXQuUZEWRjXg1Q6OIIossLrgIDsN0ZWR14/CRjyvoqIAgoOCigiIqHFFRQUSQ9QMqoKKy4gcU+YkujvIT0eWjqCiItsxU5queBtQBUVRQ1AERpuvFnsQathmmu94n8tWrqsxz+syc0xk3Im6+2/k+mZEIoQUGAgOVYgArFU0IJjAQGIAgynARBAYqxkAQZcUGJIQTGAiiDNdAYKBiDARRVmxAQjiBgSDKcA0EBirGwFCJcmxsbPPp6eltEXEhIm6bJIn7/5NmGxNmvi+KoruZ+bfup1arPfr/hx566Ld33HHHwxUby0qFs2DBgqeuv/76myPi5u12e4soijYHAPezBQBsOEewf2Lm26Mouq3dbt8+b96825rN5h8rlZznYAZWlES0CwC82ImPmbcFgIUA8BQpPhExZuab3Q8iLttkk02W3XDDDdNS+P2Es/POOz9p1apVOzHzjoi4EwC4HydAqfZXALjNiRURb0PES40xRgq8ajgDI0oieo4TIQAsAYA9AGD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EC3WTaXgfB5BVKZlMjjwGSdGyWmVES3YZlfIuCziuSyI5PTgck6N0hMqZBus2xeCcI/KJRMu1RuBybr3BgxpWK6Tau4HKAzFcumTi7vA5N1boiYUgPdRrl4FRGdrkE6LZK5H5iscyPElJroNq3SPwN8qib5JGVlYLJm+mJKjYCbZfPbIJysMUXc0jIwOQbiYkrNkBuWeSMBJ2pOE4e8DEyOg/LU0zXy0U2gWTa/C8LHdOfRqS83mOuku6W2mDIm1k3L/FcAx8aUTmkaGZisFGdfMTFlX0TqAhpl8w4iHKlOUb+SDEzWz/jtGcSUMTNvWuadAA6LOW2odDIwORS2yIvElJERBhdols17QTgk+MpYV8jA5Fhxv5lMTJkQ+JZVfIBBByWUfsa0MjA52V0RUybIv1EuPkxEixIs4fdSy8Dk5HdDTJnwHrQs83oG/ibhMnrpxZBp2AX5nTIVu9CyzIs44QelxZCp+Cps/s8xPcXkuZJEjcl8Wq3dvTrP/NPUu5y+pmg3WpXSp5jZe1B6OKay1oCxrNZ2fhhTPknjg4CY0gekOEN+NWfWnI7rGVP7EyaX79Bxlu30El6Lsz/J1Z+AmLI/o0QiGlZpCQHnA7y/ygIY/OMCCsvm2+PyKnmVYBVqiSkVwtQh1SybhzPhCAIOB/COcDn41wzcYpBxX3Wsc184DVkVFwExZVykFeRpWuYxAI4BoQqXdwbRu7cqy/wKDHoBjAYR3VQd69yrIL1IxERATBkTaB1pGCiMjszeiWliZ0+feOiF+RvfeJGASR35RDMeAmLKeDhLFiHgm4CY0jcqCRQC8RAQU8bDWbIIAd8ExJS+UUmgEIiHgJgyHs6SRQj4JiCm9I1KAoVAPATElPFwlixCwDcBMaVvVBIoBOIhIKaMh7NkEQK+CYgpfaOSQCEQDwExZTycJYsQ8E1ATOkblQQKgXgI/B8gy7sUM0KGDwAAAABJRU5ErkJggg==\"","export default __webpack_public_path__ + \"static/media/setting.6a716d85.svg\";","export default __webpack_public_path__ + \"static/media/trash.780a90e8.svg\";","export default __webpack_public_path__ + \"static/media/dragIcon.268403b1.svg\";","import React, { useState, useEffect, useContext } from 'react';\r\nimport { Root } from \"../dataCenter/Root\";\r\nimport { Button, Modal, Form, Input, Radio, Select, message } from 'antd';\r\nimport { NEED_UPDATE_INDEX } from \"../dataCenter/action\";\r\nconst { Option } = Select;\r\nconst ToolModal = ({ visible, onCancel, data }) => {\r\n const [form] = Form.useForm();\r\n const { fetchData, dataCenter, dispatch } = useContext(Root)\r\n const formItemLayout = {\r\n labelCol: { span: 4 },\r\n wrapperCol: { span: 18 },\r\n };\r\n const onCreate = (values) => {\r\n let input = {\r\n toolBoxName: values.name,\r\n toolBoxIcon: values.icon,\r\n toolBoxDesc: values.depict,\r\n toolBoxUrl: values.url,\r\n\r\n }\r\n if (!data) {\r\n input = {\r\n ...input,\r\n typeId: values.type,\r\n childTypeId: values.childType\r\n }\r\n console.log(input);\r\n fetchData('/add/addToolBox', input)\r\n .then((res) => {\r\n if (res.success) {\r\n message.success('新建成功')\r\n dispatch(NEED_UPDATE_INDEX())\r\n onCancel()\r\n } else {\r\n message.error('新建失败')\r\n }\r\n })\r\n\r\n } else {\r\n fetchData('/update/updateToolBox', input)\r\n .then((res) => {\r\n if (res.success) {\r\n message.success('修改成功')\r\n dispatch(NEED_UPDATE_INDEX())\r\n onCancel()\r\n } else {\r\n message.error('新建失败')\r\n }\r\n })\r\n }\r\n };\r\n\r\n const onGenderChange = (value) => {\r\n form.setFieldsValue({\r\n type: value,\r\n });\r\n fetchData('/query/queryChildType', { typeId: value }, 'childType')\r\n .then((res) => {\r\n\r\n console.log(res);\r\n })\r\n console.log(dataCenter);\r\n };\r\n const onChildGenderChange = (value) => {\r\n form.setFieldsValue({\r\n childType: value,\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n dataCenter?.type && fetchData('/query/queryChildType', { typeId: dataCenter?.type[0]?.typeId }, 'childType')\r\n .then((res) => {\r\n\r\n console.log(res);\r\n })\r\n }, [])\r\n\r\n return (\r\n <Modal\r\n visible={visible}\r\n title={data ? '修改工具箱' : '新建工具箱'}\r\n okText=\"确定\"\r\n cancelText=\"取消\"\r\n onCancel={onCancel}\r\n onOk={() => {\r\n form\r\n .validateFields()\r\n .then((values) => {\r\n // form.resetFields();\r\n onCreate(values);\r\n })\r\n .catch((info) => {\r\n console.log('Validate Failed:', info);\r\n });\r\n }}\r\n >\r\n <Form\r\n form={form}\r\n // layout=\"vertical\"\r\n {...formItemLayout}\r\n name=\"form_in_modal\"\r\n initialValues={data ? {\r\n name: data.toolBoxName,\r\n icon: data.toolBoxIcon,\r\n url: data.toolBoxUrl,\r\n depict: data.toolBoxDesc,\r\n } : { type: dataCenter?.type && dataCenter?.type[0]?.typeId }}\r\n >\r\n <Form.Item\r\n name=\"name\"\r\n label=\"名称\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入名称!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入名称\" />\r\n </Form.Item>\r\n <Form.Item name=\"icon\"\r\n label=\"图标\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入图标url!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入图标url\" />\r\n </Form.Item>\r\n <Form.Item\r\n name=\"depict\"\r\n label=\"描述\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入描述!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入描述\" />\r\n </Form.Item>\r\n <Form.Item\r\n name=\"url\"\r\n label=\"链接\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入链接!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入链接\" />\r\n </Form.Item>\r\n {!data && <Form.Item\r\n name=\"type\"\r\n label=\"类型\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请选择类型!',\r\n },\r\n ]}\r\n >\r\n <Select\r\n placeholder=\"请选择类型\"\r\n onChange={onGenderChange}\r\n // allowClear\r\n >\r\n {\r\n dataCenter?.type?.length && dataCenter?.type.map(v => {\r\n return (\r\n <Option key={v.typeId} value={v.typeId}>{v.typeName}</Option>\r\n )\r\n })\r\n }\r\n\r\n </Select>\r\n </Form.Item>}\r\n {!data && dataCenter?.childType && <Form.Item\r\n name=\"childType\"\r\n label=\"子类型\"\r\n >\r\n <Select\r\n placeholder=\"请选择子类型\"\r\n onChange={onChildGenderChange}\r\n allowClear\r\n >\r\n {\r\n dataCenter?.childType?.length && dataCenter?.childType.map(v => {\r\n return (\r\n <Option key={v.childTypeId} value={v.childTypeId}>{v.childTypeName}</Option>\r\n )\r\n })\r\n }\r\n\r\n </Select>\r\n </Form.Item>}\r\n </Form>\r\n </Modal>\r\n );\r\n};\r\nexport default ToolModal\r\n","import './ContentItem.scss'\r\nimport notFollow from '../../static/notFollow.png'\r\nimport followed from '../../static/followed.png'\r\nimport setting from '../../static/setting.svg'\r\nimport trash from '../../static/trash.svg'\r\nimport dragIcon from '../../static/dragIcon.svg'\r\nimport {useContext, useState} from \"react\";\r\nimport {PopContext, Root} from \"../../dataCenter/Root\";\r\nimport ToolModal from \"../../modal/ToolModal\"\r\n\r\nfunction ContentItemAdmin(props) {\r\n const [visible, setVisible] = useState(false)\r\n\r\n const {fetchData} = useContext(Root)\r\n const {showPop} = useContext(PopContext)\r\n\r\n const {toolBoxIcon, toolBoxName, toolBoxDesc, toolBoxUrl, follow, toolBoxId} = props.value\r\n\r\n const [itemIcon, setItemIcon] = useState(toolBoxIcon)\r\n\r\n const jumpUrl = url => {\r\n window.location.href = url\r\n }\r\n const deleteItem = toolBoxId => {\r\n fetchData('/delete/deleteToolBoxById', {toolBoxId})\r\n }\r\n\r\n return (\r\n <div className=\"content-item\">\r\n <div className=\"content-adminTool\">\r\n <img src={dragIcon} alt=\"\"/>\r\n <img src={setting} alt=\"\" onClick={() => setVisible(true)}/>\r\n <img src={trash} alt=\"\" onClick={() => deleteItem(toolBoxId)}/>\r\n </div>\r\n <div className=\"item-icon\" onClick={() => jumpUrl(toolBoxUrl)}>\r\n {\r\n !itemIcon && <div className=\"defaultIcon\">{toolBoxName[0]}</div>\r\n }\r\n {\r\n itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/>\r\n }\r\n </div>\r\n <div className=\"item-name\" onClick={() => jumpUrl(toolBoxUrl)}>{toolBoxName}</div>\r\n <div className=\"item-desc\">{toolBoxDesc}</div>\r\n <a className='item-url' href={toolBoxUrl}>{toolBoxUrl}</a>\r\n <div className=\"follow\">\r\n <img className='icon-follow' src={follow ? followed : notFollow} alt=\"\"/>\r\n 收藏\r\n </div>\r\n {visible && <ToolModal\r\n visible={visible}\r\n onCancel={() =>\r\n setVisible(false)\r\n }\r\n data={props.value}\r\n />}\r\n </div>\r\n\r\n )\r\n}\r\n\r\nexport default ContentItemAdmin\r\n","import './ContentItem.scss'\r\nimport notFollow from '../../static/notFollow.png'\r\nimport followed from '../../static/followed.png'\r\nimport {useContext, useEffect, useState} from \"react\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\n\r\nfunction ContentItem(props) {\r\n const {dataCenter, fetchData} = useContext(Root)\r\n const {toolBoxIcon, toolBoxName, toolBoxDesc, toolBoxUrl, toolBoxId} = props.value\r\n const [isFollow, setIsFollow] = useState(false)\r\n const [itemIcon, setItemIcon] = useState(toolBoxIcon)\r\n\r\n const jumpUrl = url => window.location.href = url\r\n\r\n const follow = () => {\r\n const _follow = dataCenter.userInfo.follow.slice()\r\n if (!isFollow) {\r\n _follow.push(toolBoxId)\r\n } else {\r\n const index = _follow.indexOf(toolBoxId)\r\n _follow.splice(index, 1)\r\n }\r\n console.log( {follow: JSON.stringify(_follow), userId: dataCenter.userInfo.uid})\r\n fetchData('/users/follow', {follow: JSON.stringify(_follow), userId: dataCenter.userInfo.uid})\r\n .then(() => fetchData('/users/getUser', {userId: 100001}, 'userInfo'))\r\n }\r\n\r\n useEffect(() => {\r\n if (dataCenter.userInfo?.follow.includes(toolBoxId)) {\r\n setIsFollow(true)\r\n } else {\r\n setIsFollow(false)\r\n }\r\n }, [dataCenter.toolBox, dataCenter.userInfo])\r\n\r\n return (\r\n <div className=\"content-item\">\r\n <div className=\"item-icon\" onClick={() => jumpUrl(toolBoxUrl)}>\r\n {\r\n !itemIcon && <div className=\"defaultIcon\">{toolBoxName[0]}</div>\r\n }\r\n {\r\n itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/>\r\n }\r\n\r\n </div>\r\n <div className=\"item-name\" onClick={() => jumpUrl(toolBoxUrl)}>{toolBoxName}</div>\r\n <div className=\"item-desc\">{toolBoxDesc}</div>\r\n <a className='item-url' href={toolBoxUrl}>{toolBoxUrl}</a>\r\n <div className=\"follow\">\r\n <img className='icon-follow' src={isFollow ? followed : notFollow} alt=\"\" onClick={() => follow()}/>\r\n 收藏\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default ContentItem\r\n","import './Content.scss'\r\nimport ContentItemAdmin from \"./ContentItemAdmin\";\r\nimport {useContext} from \"react\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\nimport ContentItem from \"../Content/ContentItem\";\r\n\r\nfunction Content(props) {\r\n const {dataCenter} = useContext(Root)\r\n\r\n return (\r\n <div className=\"content\">\r\n {\r\n dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => {\r\n if (dataCenter.childTypeId === 'all') return true\r\n else return v.childTypeId === dataCenter.childTypeId\r\n }).map(v => {\r\n return (\r\n <ContentItemAdmin key={v['toolBoxId']} value={v}/>\r\n )\r\n })\r\n :\r\n '没有数据了!'\r\n }\r\n </div>\r\n )\r\n}\r\n\r\nexport default Content\r\n","import './PublishModal.scss'\r\nimport React, {useContext, useEffect, useState} from 'react';\r\nimport {Root} from \"../dataCenter/Root\";\r\nimport {UnControlled as CodeMirror} from 'react-codemirror2'\r\nimport {Form, Input, message, Modal, Select} from 'antd';\r\nimport apiConfig from \"../config/apiConfig\";\r\n\r\nimport 'codemirror/addon/display/autorefresh';\r\nimport 'codemirror/addon/comment/comment';\r\nimport 'codemirror/addon/edit/matchbrackets';\r\nimport 'codemirror/keymap/sublime';\r\nimport 'codemirror/theme/eclipse.css';\r\nimport 'codemirror/theme/monokai.css';\r\nimport 'codemirror/lib/codemirror.js';\r\nimport 'codemirror/lib/codemirror.css';\r\nimport 'codemirror/theme/solarized.css'\r\nimport 'codemirror/mode/javascript/javascript'\r\nimport 'codemirror/addon/selection/active-line';\r\nimport 'codemirror/addon/fold/foldgutter.css';\r\n\r\nconst { Option } = Select;\r\n\r\n\r\nconst PublishModal = ({ visible, onCancel, data }) => {\r\n const [code, setcode] = useState('')\r\n const [pageName, setPageName] = useState('')\r\n const [oldCode, setoldCode] = useState('')\r\n const { fetchData, dataCenter } = useContext(Root)\r\n console.log(data);\r\n const onCreate = (values) => {\r\n console.log(code);\r\n\r\n if (!code || !pageName) {\r\n message.error('请补全信息!')\r\n return\r\n }\r\n if (data) {\r\n fetch(`${apiConfig.domain}/page/updatePage`, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify({\r\n pageId: data.pageId,\r\n pageName: pageName,\r\n code: code\r\n })\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.success) {\r\n onCancel()\r\n message.success('替换成功!')\r\n dataCenter?.type && fetchData('/page/queryPage', {}, 'queryPage')\r\n .then((res) => {\r\n \r\n })\r\n } else {\r\n message.error( '替换失败')\r\n }\r\n });\r\n } else {\r\n fetch(`${apiConfig.domain}/page/addPage`, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify({\r\n pageName: pageName,\r\n code: code\r\n })\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.success) {\r\n onCancel()\r\n message.success('发布成功!')\r\n dataCenter?.type && fetchData('/page/queryPage', {}, 'queryPage')\r\n .then((res) => {\r\n \r\n })\r\n } else {\r\n message.error(data.error || '发布失败')\r\n }\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n data&&setPageName(data.pageName)\r\n }, [data])\r\n\r\n return (\r\n <Modal\r\n visible={visible}\r\n title=\"发布\"\r\n okText=\"发布\"\r\n cancelText=\"取消\"\r\n onCancel={onCancel}\r\n onOk={onCreate}\r\n width='1000px'\r\n >\r\n <Form.Item\r\n name=\"pageName\"\r\n label=\"页面名称\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入页面名称!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入页面名称\" defaultValue={data?.pageName ? data.pageName : pageName} onChange={(e) => { setPageName(e.target.value) }} />\r\n </Form.Item>\r\n <Form.Item\r\n name=\"type\"\r\n label=\"布局代码\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入页面名称!',\r\n },\r\n ]}\r\n >\r\n <div className='codeMain'>\r\n <CodeMirror\r\n onChange={(editor, data, value) => {\r\n setcode(value)\r\n }}\r\n value={oldCode}\r\n options={{\r\n styleActiveLine: true,//光标代码高亮\r\n lineNumbers: true,\r\n theme: 'monokai',\r\n tabSize: 2,\r\n keyMap: 'sublime',\r\n mode: 'text/javascript',\r\n smartIndent: true, //自动缩进\r\n lineWrapping: true,\r\n autofocus: true\r\n }}\r\n />\r\n </div>\r\n </Form.Item>\r\n </Modal>\r\n );\r\n};\r\nexport default PublishModal\r\n","import React from 'react';\r\nimport { Button, Modal, Form, Input, Radio, Select, message, Tabs } from 'antd';\r\nimport { useContext, useEffect, useState } from \"react\";\r\nimport { Root } from \"../dataCenter/Root\";\r\nimport { NEED_UPDATE_INDEX } from \"../dataCenter/action\";\r\nconst { Option } = Select;\r\nconst { TabPane } = Tabs;\r\nconst TypeModal = ({ visible, onCancel, queryData, data }) => {\r\n console.log(data);\r\n const [form] = Form.useForm();\r\n if (data) {\r\n form.setFieldsValue({\r\n typeName: data.typeName,\r\n });\r\n }\r\n const formItemLayout = {\r\n labelCol: { span: 4 },\r\n wrapperCol: { span: 18 },\r\n };\r\n\r\n const { fetchData, dataCenter, dispatch } = useContext(Root)\r\n const [value, setValue] = React.useState(1);\r\n\r\n\r\n const onCreate = (values) => {\r\n if (data) {\r\n console.log(data);\r\n\r\n let input = {\r\n typeId: '',\r\n typeName: ''\r\n }\r\n if (!data.isRemove) {\r\n input = {\r\n typeId: data.typeId,\r\n typeName: values.typeName\r\n }\r\n } else {\r\n input = {\r\n childTypeId: data.typeId,\r\n childTypeName: values.typeName\r\n }\r\n }\r\n fetchData('/typeManage/updateType', input)\r\n .then((res) => {\r\n if (res.success) {\r\n message.success('修改成功')\r\n dispatch(NEED_UPDATE_INDEX())\r\n queryData()\r\n onCancel()\r\n }\r\n })\r\n } else {\r\n console.log(values);\r\n fetchData('/add/addType', values)\r\n .then((res) => {\r\n if (res.success) {\r\n message.success('新建成功')\r\n dispatch(NEED_UPDATE_INDEX())\r\n onCancel()\r\n }\r\n })\r\n }\r\n\r\n };\r\n // function callback(key) {\r\n // console.log(key);\r\n // }\r\n\r\n const onChange = e => {\r\n console.log('radio checked', e.target.value);\r\n setValue(e.target.value);\r\n };\r\n\r\n const onGenderChange = (value) => {\r\n form.setFieldsValue({\r\n typeId: value,\r\n });\r\n };\r\n\r\n return (\r\n <Modal\r\n visible={visible}\r\n title={`${data ? '修改' : '新建'}类型`}\r\n okText=\"确定\"\r\n cancelText=\"取消\"\r\n onCancel={onCancel}\r\n onOk={() => {\r\n form\r\n .validateFields()\r\n .then((values) => {\r\n // form.resetFields();\r\n onCreate(values);\r\n })\r\n .catch((info) => {\r\n console.log('Validate Failed:', info);\r\n });\r\n }}\r\n >\r\n <Form\r\n form={form}\r\n // layout=\"vertical\"\r\n {...formItemLayout}\r\n name=\"form_in_modal\"\r\n initialValues={{\r\n modifier: 'public',\r\n 'radio-group': 1\r\n }}\r\n >\r\n\r\n {!data && <Form.Item name=\"radio-group\" label=\"类型\">\r\n <Radio.Group onChange={onChange} value={value}>\r\n <Radio value={1}>父类型</Radio>\r\n <Radio value={2}>子类型</Radio>\r\n </Radio.Group>\r\n </Form.Item>}\r\n {value === 1 || data ? <Form.Item\r\n name=\"typeName\"\r\n label={`${data ? '' : '父'}类型`}\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入类型名称!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入类型名称\" />\r\n </Form.Item> :\r\n <>\r\n <Form.Item\r\n name=\"typeId\"\r\n label=\"父类型\"\r\n hasFeedback\r\n rules={[{ required: true, message: '请选择父类型!' }]}\r\n >\r\n <Select\r\n placeholder=\"请选择父类型\"\r\n onChange={onGenderChange}\r\n // allowClear\r\n >\r\n {\r\n dataCenter?.type?.length && dataCenter?.type.map(v => {\r\n return (\r\n <Option key={v.typeId} value={v.typeId}>{v.typeName}</Option>\r\n )\r\n })\r\n }\r\n\r\n </Select>\r\n </Form.Item>\r\n <Form.Item\r\n name=\"childTypeName\"\r\n label=\"子类型\"\r\n rules={[\r\n {\r\n required: true,\r\n message: '请输入类型名称!',\r\n },\r\n ]}\r\n >\r\n <Input placeholder=\"请输入类型名称\" />\r\n </Form.Item>\r\n </>\r\n\r\n }\r\n </Form>\r\n </Modal>\r\n );\r\n};\r\nexport default TypeModal\r\n","import React, {useContext, useEffect, useState} from 'react';\r\nimport {Root} from \"../dataCenter/Root\";\r\nimport {Modal, Space, Table} from 'antd';\r\nimport PublishModal from \"./PublishModal\"\r\n\r\nfunction PageModal({ visible, onCancel, onPublish }) {\r\n\r\n const [publish, setPublish] = useState(false)\r\n const [pageData, setpageData] = useState('')\r\n const { fetchData, dataCenter } = useContext(Root)\r\n\r\n const onChangePage = (values) => {\r\n console.log(values);\r\n setpageData(values);\r\n setPublish(true)\r\n };\r\n const onRemovePage = (values) => {\r\n console.log(values);\r\n // setVisible(false);\r\n };\r\n\r\n\r\n\r\n const columns = [\r\n {\r\n title: '页面Id',\r\n dataIndex: 'pageId',\r\n width: 150,\r\n align: 'center'\r\n },\r\n {\r\n title: '页面名称',\r\n dataIndex: 'pageName',\r\n width: 200,\r\n align: 'center'\r\n },\r\n {\r\n title: '页面Url',\r\n dataIndex: 'pageUrl',\r\n width: 300,\r\n align: 'center',\r\n render: (text, record) => (\r\n <Space size=\"middle\">\r\n <a href={record.pageUrl}>{record.pageUrl}</a>\r\n </Space>\r\n ),\r\n },\r\n {\r\n title: '操作',\r\n key: 'action',\r\n align: 'center',\r\n width: 100,\r\n render: (text, record) => (\r\n <Space size=\"middle\">\r\n <a onClick={() => onChangePage(record)}>替换</a>\r\n {/* <a onClick={() => onRemovePage(record)}>删除</a> */}\r\n </Space>\r\n ),\r\n },\r\n ];\r\n\r\n\r\n useEffect(() => {\r\n console.log(dataCenter);\r\n dataCenter?.type && fetchData('/page/queryPage', {}, 'queryPage')\r\n .then((res) => {\r\n })\r\n }, [])\r\n\r\n\r\n const data = [\r\n {\r\n key: '1',\r\n name: '1 Brown',\r\n age: 32,\r\n address: 'New York No. 1 Lake Park',\r\n },\r\n {\r\n key: '2',\r\n name: '2 Green',\r\n age: 42,\r\n address: 'London No. 1 Lake Park',\r\n },\r\n {\r\n key: '3',\r\n name: '3 Black',\r\n age: 32,\r\n address: 'Sidney No. 1 Lake Park',\r\n },\r\n {\r\n key: '4',\r\n name: '4 Brown',\r\n age: 32,\r\n address: 'New York No. 1 Lake Park',\r\n },\r\n {\r\n key: '5',\r\n name: '5 Green',\r\n age: 42,\r\n address: 'London No. 1 Lake Park',\r\n },\r\n {\r\n key: '6',\r\n name: '6 Black',\r\n age: 32,\r\n address: 'Sidney No. 1 Lake Park',\r\n },\r\n {\r\n key: '7',\r\n name: '7 Brown',\r\n age: 32,\r\n address: 'New York No. 1 Lake Park',\r\n },\r\n {\r\n key: '8',\r\n name: '8 Green',\r\n age: 42,\r\n address: 'London No. 1 Lake Park',\r\n },\r\n {\r\n key: '9',\r\n name: '9 Black',\r\n age: 32,\r\n address: 'Sidney No. 1 Lake Park',\r\n },\r\n {\r\n key: '10',\r\n name: '10 Brown',\r\n age: 32,\r\n address: 'New York No. 1 Lake Park',\r\n },\r\n {\r\n key: '11',\r\n name: '11 Green',\r\n age: 42,\r\n address: 'London No. 1 Lake Park',\r\n },\r\n {\r\n key: '12',\r\n name: '12 Black',\r\n age: 32,\r\n address: 'Sidney No. 1 Lake Park',\r\n },\r\n ];\r\n return (\r\n <>\r\n <Modal\r\n visible={visible}\r\n title=\"页面管理\"\r\n okText=\"确定\"\r\n cancelText=\"取消\"\r\n width='1000px'\r\n onCancel={onCancel}\r\n onOk={onCancel}\r\n >\r\n <Table columns={columns} dataSource={dataCenter?.queryPage && dataCenter.queryPage} pagination={{ pageSize: 10 }} size=\"middle\" />\r\n </Modal>\r\n {publish && <PublishModal\r\n visible={publish}\r\n onCancel={() =>\r\n setPublish(false)\r\n }\r\n data={pageData}\r\n />}\r\n </>\r\n )\r\n}\r\n\r\nexport default PageModal\r\n","import { Menu, Modal, Popconfirm, Space, Table, message } from 'antd';\r\nimport React, { useContext, useEffect, useState } from 'react';\r\nimport TypeModal from '../modal/TypeModal'\r\nimport { NEED_UPDATE_INDEX } from \"../dataCenter/action\";\r\nimport { Root } from \"../dataCenter/Root\";\r\n\r\nconst menu = (\r\n <Menu>\r\n <Menu.Item>Action 1</Menu.Item>\r\n <Menu.Item>Action 2</Menu.Item>\r\n </Menu>\r\n);\r\n\r\nfunction RemoveType({ visible, onCancel }) {\r\n\r\n const [typeModal, setTypeModal] = useState(false)\r\n const [typeData, settypeData] = useState('')\r\n const [oldData, setoldData] = useState('')\r\n const { fetchData, dataCenter, dispatch } = useContext(Root)\r\n\r\n const changType = (data) => {\r\n setoldData(data)\r\n setTypeModal(true)\r\n }\r\n\r\n const changeData = (list, cb) => {\r\n return list.map((item, index) => {\r\n const res = cb(item);\r\n if (item.children) res.children = changeData(item.children, item => ({\r\n isRemove: true,\r\n key: item.childTypeId,\r\n typeId: item.childTypeId,\r\n typeName: item.childTypeName,\r\n }));\r\n return res;\r\n })\r\n }\r\n\r\n const removeType = (data) => {\r\n fetchData('/typeManage/deleteChildType', { childTypeId: data.typeId })\r\n .then((res) => {\r\n if (res.success) {\r\n message.success('刪除成功')\r\n dispatch(NEED_UPDATE_INDEX())\r\n queryData()\r\n // onCancel()\r\n }else{\r\n message.error('刪除失败')\r\n }\r\n })\r\n }\r\n\r\n const queryData = () => {\r\n dataCenter?.type && fetchData('/typeManage/queryTypeForManage', {}, 'childTypeData')\r\n .then((res) => {\r\n // console.log(res.data);\r\n const newData = changeData(res.data, item => ({\r\n key: item.typeId,\r\n typeId: item.typeId,\r\n typeName: item.typeName,\r\n }));\r\n // console.log(newData);\r\n settypeData(newData)\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n queryData()\r\n }, [])\r\n\r\n const columns = [\r\n { title: '类型名', width: 100, dataIndex: 'typeName', key: 'typeName' },\r\n { title: 'Id', width: 100, dataIndex: 'typeId', align: 'center', key: 'typeId' },\r\n {\r\n title: '操作', width: 100, key: 'operation', align: 'center',\r\n render: (text, record) => (\r\n <Space size=\"middle\">\r\n {record.isRemove && <Popconfirm title=\"确定删除吗?\" okText=\"确定\" cancelText=\"取消\" onConfirm={() => removeType(record)}>\r\n <a href=\"#\" >删除</a>\r\n </Popconfirm>}\r\n <a href=\"#\" onClick={() => changType(record)}>修改</a>\r\n </Space>\r\n )\r\n },\r\n ];\r\n\r\n return (\r\n <Modal\r\n visible={visible}\r\n title=\"类型管理\"\r\n okText=\"确定\"\r\n cancelText=\"取消\"\r\n width='1000px'\r\n onCancel={onCancel}\r\n onOk={onCancel}\r\n >\r\n <Table\r\n columns={columns}\r\n dataSource={typeData}\r\n />\r\n {typeModal && <TypeModal\r\n visible={typeModal}\r\n onCancel={() =>\r\n setTypeModal(false)\r\n }\r\n queryData={() =>\r\n queryData()\r\n }\r\n data={oldData}\r\n />}\r\n </Modal>\r\n\r\n );\r\n}\r\nexport default RemoveType\r\n","import React, {useState} from 'react'\r\nimport './AdminIndex.scss'\r\nimport {Button} from 'antd';\r\nimport ToolModal from '../../modal/ToolModal'\r\nimport PublishModal from '../../modal/PublishModal'\r\nimport TypeModal from '../../modal/TypeModal'\r\nimport PageModal from '../../modal/PageModal'\r\nimport RemoveType from '../../modal/RemoveType'\r\n\r\nfunction AdminIndex() {\r\n const [visible, setVisible] = useState(false)\r\n const [publish, setPublish] = useState(false)\r\n const [typeModal, setTypeModal] = useState(false)\r\n const [pageModal, setpageModal] = useState(false)\r\n const [removeType, setremoveType] = useState(false)\r\n\r\n return (\r\n <div className='admin'>\r\n <Button onClick={() => setVisible(true)}>新建工具盒</Button>\r\n <Button onClick={() => setTypeModal(true)}>新建类型</Button>\r\n <Button onClick={() => setPublish(true)}>发布</Button>\r\n <Button onClick={() => setpageModal(true)}>页面管理</Button>\r\n <Button onClick={() => setremoveType(true)}>类型管理</Button>\r\n {visible && <ToolModal\r\n visible={visible}\r\n onCancel={() =>\r\n setVisible(false)\r\n }\r\n />}\r\n {publish && <PublishModal\r\n visible={publish}\r\n onCancel={() =>\r\n setPublish(false)\r\n }\r\n />}\r\n {typeModal && <TypeModal\r\n visible={typeModal}\r\n onCancel={() =>\r\n setTypeModal(false)\r\n }\r\n />}\r\n {pageModal && <PageModal\r\n visible={pageModal}\r\n onCancel={() =>\r\n setpageModal(false)\r\n }\r\n />}\r\n {removeType && <RemoveType\r\n visible={removeType}\r\n onCancel={() =>\r\n setremoveType(false)\r\n }\r\n />}\r\n </div>\r\n )\r\n}\r\n\r\nexport default AdminIndex\r\n","import logo from \"../../static/logo.png\";\r\nimport './index.scss'\r\nimport ToolType from \"../../component/ToolType/ToolType\";\r\nimport Content from '../../component/ContentAdmin/Content'\r\nimport {PopContext, Root} from \"../../dataCenter/Root\";\r\nimport {useContext, useEffect, useState} from \"react\";\r\nimport {NEED_UPDATE_INDEX} from \"../../dataCenter/action\";\r\nimport AdminIndex from \"../../component/AdminIndex/AdminIndex\";\r\n\r\nfunction Index() {\r\n const [pop, setPop] = useState()\r\n const {fetchData, dataCenter, dispatch} = useContext(Root)\r\n const showPop = popComponent => {\r\n setPop(popComponent)\r\n }\r\n const getUser = () => {\r\n fetchData('/users/getUser', {userId: '100001'}, 'userInfo')\r\n .catch(res =>\r\n res.code === 70001 && (window.location.href = '/login')\r\n )\r\n }\r\n\r\n useEffect(() => {\r\n fetchData('/query/queryType', {}, 'type')\r\n .then(()=> fetchData('/query/queryChildType',{typeId: dataCenter.typeId},'childType'))\r\n .then(() => dispatch(NEED_UPDATE_INDEX()))\r\n }, [dataCenter.typeId])\r\n\r\n useEffect(() => {\r\n if (dataCenter.needUpdateIndex) {\r\n const _typeId = dataCenter.typeId === 'all' ? {} : dataCenter.typeId === 'follow' ? {\r\n isFollow: true,\r\n typeId: JSON.stringify(dataCenter.userInfo.follow)\r\n } : {typeId: dataCenter.typeId}\r\n fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX()))\r\n }\r\n }, [dataCenter.needUpdateIndex])\r\n\r\n useEffect(() => {\r\n getUser()\r\n }, [])\r\n\r\n return (\r\n <PopContext.Provider value={{hidePop: () => setPop(''), showPop: popName => showPop(popName)}}>\r\n <div className=\"index\">\r\n <div className=\"welcome-top\">\r\n <span>欢迎您!\r\n <span className=\"welcome-uname\">{dataCenter?.userInfo?.uname}</span>\r\n <a className=\"login-btn\">退出登录</a>\r\n </span>\r\n </div>\r\n <div className=\"nav\">\r\n <div className=\"nav-title\">\r\n <img src={logo} alt=\"\"/>\r\n </div>\r\n <div className=\"nav-weather\">\r\n <iframe width=\"360\" height=\"40\" frameBorder=\"0\" scrolling=\"no\" hspace=\"0\"\r\n src=\"https://i.tianqi.com/?c=code&a=getcode&id=40&icon=1\"/>\r\n </div>\r\n </div>\r\n <div className=\"tool-nav\">\r\n <ToolType/>\r\n </div>\r\n <div className=\"container\">\r\n <Content/>\r\n </div>\r\n {\r\n pop\r\n }\r\n <div className=\"index-footer\">\r\n 兑吧研发中心·杭州兑吧网络科技游戏公司版权所有\r\n <br/>\r\n 浙ICP备14017299号-1\r\n </div>\r\n <AdminIndex/>\r\n </div>\r\n </PopContext.Provider>\r\n )\r\n}\r\n\r\nexport default Index\r\n\r\n","import './Content.scss'\r\nimport ContentItem from \"./ContentItem\";\r\nimport {useContext} from \"react\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\n\r\nfunction Content(props) {\r\n const {dataCenter} = useContext(Root)\r\n return (\r\n <div className=\"content\">\r\n {\r\n dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => {\r\n if (dataCenter.childTypeId === 'all') return true\r\n else return v.childTypeId === dataCenter.childTypeId\r\n }).map(v => {\r\n return (\r\n <ContentItem key={v['toolBoxId']} value={v}/>\r\n )\r\n })\r\n :\r\n '没有数据了!'\r\n }\r\n </div>\r\n )\r\n}\r\n\r\nexport default Content\r\n","import logo from \"../../static/logo.png\";\r\nimport './index.scss'\r\nimport ToolType from \"../../component/ToolType/ToolType\";\r\nimport Content from \"../../component/Content/Content\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\nimport {useContext, useEffect} from \"react\";\r\nimport {NEED_UPDATE_INDEX} from \"../../dataCenter/action\";\r\n\r\nfunction Index() {\r\n const {fetchData, dataCenter, dispatch} = useContext(Root)\r\n const getUser = () => {\r\n fetchData('/users/getUser', {userId: '100001'}, 'userInfo')\r\n .catch(res =>\r\n res.code === 70001 && (window.location.href = '/login')\r\n )\r\n }\r\n useEffect(() => {\r\n fetchData('/query/queryType', {}, 'type')\r\n .then(() => fetchData('/query/queryChildType', {typeId: dataCenter.typeId}, 'childType'))\r\n .then(() => dispatch(NEED_UPDATE_INDEX()))\r\n }, [dataCenter.typeId])\r\n useEffect(() => {\r\n if (dataCenter.needUpdateIndex) {\r\n const _typeId = dataCenter.typeId === 'follow' ? {\r\n isFollow: true,\r\n typeId: JSON.stringify(dataCenter.userInfo.follow)\r\n } : {typeId: dataCenter.typeId}\r\n fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX()))\r\n }\r\n }, [dataCenter.needUpdateIndex])\r\n\r\n useEffect(() => {\r\n getUser()\r\n }, [])\r\n\r\n return (\r\n\r\n <div className=\"index\">\r\n <div className=\"welcome-top\">\r\n <span>欢迎您!\r\n <span className=\"welcome-uname\">{dataCenter?.userInfo?.uname}</span>\r\n <a className=\"login-btn\">退出登录</a>\r\n </span>\r\n </div>\r\n <div className=\"nav\">\r\n <div className=\"nav-title\">\r\n <img src={logo} alt=\"\"/>\r\n </div>\r\n <div className=\"nav-weather\">\r\n <iframe width=\"360\" height=\"40\" frameBorder=\"0\" scrolling=\"no\" hspace=\"0\"\r\n src=\"https://i.tianqi.com/?c=code&a=getcode&id=40&icon=1\"/>\r\n </div>\r\n </div>\r\n <div className=\"tool-nav\">\r\n <ToolType/>\r\n </div>\r\n <div className=\"container\">\r\n <Content/>\r\n </div>\r\n <div className=\"index-footer\">\r\n 兑吧研发中心·杭州兑吧网络科技游戏公司版权所有\r\n <br/>\r\n 浙ICP备14017299号-1\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Index\r\n\r\n","import './login.scss'\r\nimport {useContext, useEffect, useState} from \"react\";\r\nimport {Root} from \"../../dataCenter/Root\";\r\nimport {useFormState} from \"../../utils/hook\";\r\n\r\nfunction Login(props) {\r\n const {fetchData, dataCenter} = useContext(Root)\r\n const [needLogin,setNeedLogin] = useState(false)\r\n const [input, setInput] = useFormState()\r\n const getUser = ()=>{\r\n fetchData('/users/getUser', {userId:'100001'}, 'userInfo')\r\n .then(res => res.data.uid && (window.location.href = '/index'))\r\n .catch(res =>\r\n res.code === 70001 && setNeedLogin(true)\r\n )\r\n }\r\n const doLogin = () => {\r\n if (needLogin){\r\n fetchData('/users/login',{userId: '100001'})\r\n .then(()=>{\r\n getUser()\r\n })\r\n }else {\r\n getUser()\r\n }\r\n }\r\n useEffect(() => {\r\n if (dataCenter.userInfo) {\r\n // window.location.href = '/index'\r\n }\r\n }, [dataCenter.userInfo])\r\n\r\n useEffect(() => {\r\n doLogin()\r\n }, [])\r\n return (\r\n <div className=\"login\">\r\n <div className='loginDiv'>\r\n {\r\n needLogin && <input type=\"text\" onChange={e => setInput('userId',e.target.value)} defaultValue={input.userId}/>\r\n }\r\n <button className='btn-login' onClick={() => doLogin()}>登录</button>\r\n </div>\r\n\r\n </div>\r\n )\r\n}\r\n\r\nexport default Login\r\n","import {useCallback, useState} from \"react\";\r\n\r\nconst useFormState = (initialValues = {}) => {\r\n const [input, setInput] = useState(initialValues)\r\n\r\n const setInputData = useCallback((name, value) => {\r\n setInput(() => Object.assign({}, {...input}, {[name]: value}))\r\n }, [input])\r\n\r\n return [input, setInputData]\r\n}\r\n\r\n\r\nconst useDrag = () => {\r\n\r\n}\r\n\r\n\r\n\r\n//这个hook很有意思,怎么样保存return出去的那个组件的数据呢\r\n// function usePopContainer(props) {\r\n// const dragRef = useRef()\r\n// const [offset, setOffset] = useState({x: 0, y: 0})\r\n// const [draggable, setDraggable] = useState(false)\r\n// const handleMouseDown = e => {\r\n// e.stopPropagation()\r\n// setDraggable(true)\r\n// setOffset({\r\n// x: e.clientX - dragRef.current['getBoundingClientRect']().x,\r\n// y: e.clientY - dragRef.current['getBoundingClientRect']().y\r\n// })\r\n// }\r\n//\r\n// const handleMouseUp = () => setDraggable(false)\r\n// const handleMouseMove = e => {\r\n// if (draggable) {\r\n// dragRef.current.style.transform = `translate(${e.clientX - offset.x}px,${e.clientY - offset.y}px)`\r\n// console.log(dragRef.current.style.transform)\r\n// }\r\n// }\r\n// return {\r\n// PopContainer: props => (\r\n// <div className=\"drag-Container\"\r\n// onMouseUp={() => handleMouseUp()}\r\n// onMouseMove={(e) => handleMouseMove(e)}>\r\n// <div className=\"Pop-container\"\r\n// ref={dragRef}\r\n// >\r\n// {props.children}\r\n// </div>\r\n// </div>\r\n// ),\r\n// dragMouseDown: e => handleMouseDown(e)\r\n// }\r\n// }\r\n\r\nexport {\r\n useFormState,\r\n useDrag,\r\n}\r\n","import './App.css';\r\nimport DataCenter from \"./dataCenter/Root\";\r\nimport IndexAdmin from \"./page/indexAdmin\";\r\nimport Index from \"./page/index\";\r\nimport Login from \"./page/login/login\";\r\nimport {HashRouter as Router, Route, Switch} from \"react-router-dom\";\r\n\r\nfunction App() {\r\n return (\r\n <Router>\r\n <DataCenter>\r\n <Switch>\r\n <Route exact path='/login' component={Login}/>\r\n <Route exact path='/' component={Index}/>\r\n <Route exact path='/admin' component={IndexAdmin}/>\r\n </Switch>\r\n </DataCenter>\r\n </Router>\r\n );\r\n}\r\n\r\nexport default App;\r\n","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';\r\nimport ReactDOM from 'react-dom';\r\nimport {ConfigProvider} from 'antd';\r\n// 由于 antd 组件的默认文案是英文,所以需要修改为中文\r\nimport zhCN from 'antd/lib/locale/zh_CN';\r\nimport moment from 'moment';\r\nimport 'moment/locale/zh-cn';\r\nimport 'antd/dist/antd.css';\r\nimport './index.css';\r\nimport App from './App';\r\nimport reportWebVitals from './reportWebVitals';\r\n\r\nmoment.locale('zh-cn');\r\nReactDOM.render(\r\n <React.StrictMode>\r\n <ConfigProvider locale={zhCN}>\r\n <App />\r\n </ConfigProvider>\r\n </React.StrictMode>,\r\n document.getElementById('root')\r\n);\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n"],"sourceRoot":""}
\ No newline at end of file
{
"PORT": "3000",
"API_HOST": "//dui123.duibadev.com.cn",
"PROJECTX_HOST": "http://activity.m.duibadev.com.cn",
"SSO": {
"ssourl": "http://sso.duibadev.com.cn",
"systemId": 249,
"systemName": "dui123",
"appSecret": "98e72000586f43e3b55da663c9f8af72",
"profiles": "dev"
},
"RES_MYSQL_ID": "duiba_spark8",
"remote_config_url": "http://configserver.dui88.com/dui123/dev"
}
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"web-vitals": "^1.0.1" "web-vitals": "^1.0.1"
}, },
"scripts": { "scripts": {
"dev": "react-scripts start",
"start": "node server/bin/www", "start": "node server/bin/www",
"build": "sh build.sh", "build": "sh build.sh",
"buildWeb": "react-scripts build", "buildWeb": "react-scripts build",
......
const MYSQL = require('mysql') const MYSQL = require('mysql')
const Mysql = MYSQL.createPool({ const config = require('../config/dev.json')
'host': '127.0.0.1', const request = require('request')
'port': '3306',
'user': 'wty', request(config['remote_config_url'],{},(error, request, body)=>{
'password': 'wty990215', const data = JSON.parse(body)
'database': 'dui123', const source = data['propertySources'][0]['source']
'connectionLimit': 1000 const username = source['apollo.mysql.duiba_web_tool.username']
const password = source['apollo.mysql.duiba_web_tool.password']
const database = source['apollo.mysql.duiba_web_tool.database']
const host = source['apollo.mysql.duiba_web_tool.url'].split(':')[0]
const port = source['apollo.mysql.duiba_web_tool.url'].split(':')[1]
const Mysql = MYSQL.createPool({
'host': host,
'port': port,
'user': username,
'password': password,
'database': database,
'connectionLimit': 1000
})
module.exports = Mysql
}) })
module.exports = Mysql
...@@ -30,10 +30,11 @@ router.get('/getUser', function (req, res, next) { ...@@ -30,10 +30,11 @@ router.get('/getUser', function (req, res, next) {
}) })
return return
} }
console.log(result)
const _result = result.slice() const _result = result.slice()
_result[0].follow = JSON.parse(_result[0].follow) _result[0].follow = JSON.parse(_result[0].follow)
// console.log(JSON.parse(_result[0]))
res.send({ res.send({
......
...@@ -4,8 +4,18 @@ import IndexAdmin from "./page/indexAdmin"; ...@@ -4,8 +4,18 @@ import IndexAdmin from "./page/indexAdmin";
import Index from "./page/index"; import Index from "./page/index";
import Login from "./page/login/login"; import Login from "./page/login/login";
import {HashRouter as Router, Route, Switch} from "react-router-dom"; import {HashRouter as Router, Route, Switch} from "react-router-dom";
import {useEffect} from "react";
function App() { function App() {
useEffect(() => {
console.log("%c+",
`font-size: 1px;
padding: 122px 217px;
background-image: url(https://yun.duiba.com.cn/spark/assets/cc8da992b527b3cd24da7df9a5be8b2361c2e549.jpg);
background-size: contain;
background-repeat: no-repeat;
color: transparent;`);
}, [])
return ( return (
<Router> <Router>
<DataCenter> <DataCenter>
......
...@@ -9,11 +9,11 @@ function Content(props) { ...@@ -9,11 +9,11 @@ function Content(props) {
<div className="content"> <div className="content">
{ {
dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => { dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => {
if (dataCenter.childTypeId === 'all') return true if (dataCenter.child_type_id === 'all') return true
else return v.childTypeId === dataCenter.childTypeId else return v.child_type_id === dataCenter.child_type_id
}).map(v => { }).map(v => {
return ( return (
<ContentItem key={v['toolBoxId']} value={v}/> <ContentItem key={v['toolbox_id']} value={v}/>
) )
}) })
: :
......
...@@ -6,27 +6,27 @@ import {Root} from "../../dataCenter/Root"; ...@@ -6,27 +6,27 @@ import {Root} from "../../dataCenter/Root";
function ContentItem(props) { function ContentItem(props) {
const {dataCenter, fetchData} = useContext(Root) const {dataCenter, fetchData} = useContext(Root)
const {toolBoxIcon, toolBoxName, toolBoxDesc, toolBoxUrl, toolBoxId} = props.value const {toolbox_icon, toolbox_name, toolbox_desc, toolbox_url, toolbox_id} = props.value
const [isFollow, setIsFollow] = useState(false) const [isFollow, setIsFollow] = useState(false)
const [itemIcon, setItemIcon] = useState(toolBoxIcon) const [itemIcon, setItemIcon] = useState(toolbox_icon)
const jumpUrl = url => window.location.href = url const jumpUrl = url => window.location.href = url
const follow = () => { const follow = () => {
const _follow = dataCenter.userInfo.follow.slice() const _follow = dataCenter.userInfo.follow.slice()
if (!isFollow) { if (!isFollow) {
_follow.push(toolBoxId) _follow.push(toolbox_id)
} else { } else {
const index = _follow.indexOf(toolBoxId) const index = _follow.indexOf(toolbox_id)
_follow.splice(index, 1) _follow.splice(index, 1)
} }
console.log( {follow: JSON.stringify(_follow), userId: dataCenter.userInfo.uid}) console.log( {follow: JSON.stringify(_follow), uid: dataCenter.userInfo.uid})
fetchData('/users/follow', {follow: JSON.stringify(_follow), userId: dataCenter.userInfo.uid}) fetchData('/users/follow', {follow: JSON.stringify(_follow), uid: dataCenter.userInfo.uid})
.then(() => fetchData('/users/getUser', {userId: 100001}, 'userInfo')) .then(() => fetchData('/users/getUser', {uid: 100001}, 'userInfo'))
} }
useEffect(() => { useEffect(() => {
if (dataCenter.userInfo?.follow.includes(toolBoxId)) { if (dataCenter.userInfo?.follow.includes(toolbox_id)) {
setIsFollow(true) setIsFollow(true)
} else { } else {
setIsFollow(false) setIsFollow(false)
...@@ -35,18 +35,18 @@ function ContentItem(props) { ...@@ -35,18 +35,18 @@ function ContentItem(props) {
return ( return (
<div className="content-item"> <div className="content-item">
<div className="item-icon" onClick={() => jumpUrl(toolBoxUrl)}> <div className="item-icon" onClick={() => jumpUrl(toolbox_url)}>
{ {
!itemIcon && <div className="defaultIcon">{toolBoxName[0]}</div> !itemIcon && <div className="defaultIcon">{toolbox_name[0]}</div>
} }
{ {
itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/> itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/>
} }
</div> </div>
<div className="item-name" onClick={() => jumpUrl(toolBoxUrl)}>{toolBoxName}</div> <div className="item-name" onClick={() => jumpUrl(toolbox_url)}>{toolbox_name}</div>
<div className="item-desc">{toolBoxDesc}</div> <div className="item-desc">{toolbox_desc}</div>
<a className='item-url' href={toolBoxUrl}>{toolBoxUrl}</a> <a className='item-url' href={toolbox_url}>{toolbox_url}</a>
<div className="follow"> <div className="follow">
<img className='icon-follow' src={isFollow ? followed : notFollow} alt="" onClick={() => follow()}/> <img className='icon-follow' src={isFollow ? followed : notFollow} alt="" onClick={() => follow()}/>
收藏 收藏
......
...@@ -11,11 +11,11 @@ function Content(props) { ...@@ -11,11 +11,11 @@ function Content(props) {
<div className="content"> <div className="content">
{ {
dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => { dataCenter.toolBox?.length ? dataCenter?.toolBox?.filter(v => {
if (dataCenter.childTypeId === 'all') return true if (dataCenter.child_type_id === 'all') return true
else return v.childTypeId === dataCenter.childTypeId else return v.child_type_id === dataCenter.child_type_id
}).map(v => { }).map(v => {
return ( return (
<ContentItemAdmin key={v['toolBoxId']} value={v}/> <ContentItemAdmin key={v['toolbox_id']} value={v}/>
) )
}) })
: :
......
...@@ -14,15 +14,15 @@ function ContentItemAdmin(props) { ...@@ -14,15 +14,15 @@ function ContentItemAdmin(props) {
const {fetchData} = useContext(Root) const {fetchData} = useContext(Root)
const {showPop} = useContext(PopContext) const {showPop} = useContext(PopContext)
const {toolBoxIcon, toolBoxName, toolBoxDesc, toolBoxUrl, follow, toolBoxId} = props.value const {toolbox_icon, toolbox_name, toolbox_desc, toolbox_url, follow, toolbox_id} = props.value
const [itemIcon, setItemIcon] = useState(toolBoxIcon) const [itemIcon, setItemIcon] = useState(toolbox_icon)
const jumpUrl = url => { const jumpUrl = url => {
window.location.href = url window.location.href = url
} }
const deleteItem = toolBoxId => { const deleteItem = toolbox_id => {
fetchData('/delete/deleteToolBoxById', {toolBoxId}) fetchData('/delete/deleteToolBoxById', {toolbox_id})
} }
return ( return (
...@@ -30,19 +30,19 @@ function ContentItemAdmin(props) { ...@@ -30,19 +30,19 @@ function ContentItemAdmin(props) {
<div className="content-adminTool"> <div className="content-adminTool">
<img src={dragIcon} alt=""/> <img src={dragIcon} alt=""/>
<img src={setting} alt="" onClick={() => setVisible(true)}/> <img src={setting} alt="" onClick={() => setVisible(true)}/>
<img src={trash} alt="" onClick={() => deleteItem(toolBoxId)}/> <img src={trash} alt="" onClick={() => deleteItem(toolbox_id)}/>
</div> </div>
<div className="item-icon" onClick={() => jumpUrl(toolBoxUrl)}> <div className="item-icon" onClick={() => jumpUrl(toolbox_url)}>
{ {
!itemIcon && <div className="defaultIcon">{toolBoxName[0]}</div> !itemIcon && <div className="defaultIcon">{toolbox_name[0]}</div>
} }
{ {
itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/> itemIcon && <img src={itemIcon} alt='' onError={e => setItemIcon(null)}/>
} }
</div> </div>
<div className="item-name" onClick={() => jumpUrl(toolBoxUrl)}>{toolBoxName}</div> <div className="item-name" onClick={() => jumpUrl(toolbox_url)}>{toolbox_name}</div>
<div className="item-desc">{toolBoxDesc}</div> <div className="item-desc">{toolbox_desc}</div>
<a className='item-url' href={toolBoxUrl}>{toolBoxUrl}</a> <a className='item-url' href={toolbox_url}>{toolbox_url}</a>
<div className="follow"> <div className="follow">
<img className='icon-follow' src={follow ? followed : notFollow} alt=""/> <img className='icon-follow' src={follow ? followed : notFollow} alt=""/>
收藏 收藏
......
...@@ -4,46 +4,46 @@ import {useFormState} from "../../utils/hook"; ...@@ -4,46 +4,46 @@ import {useFormState} from "../../utils/hook";
import PopContainer from "../PopContainer/PopContainer"; import PopContainer from "../PopContainer/PopContainer";
function Pop_toolBoxConfig(props) { function Pop_toolBoxConfig(props) {
const {toolBoxName, toolBoxIcon, toolBoxDesc, toolBoxUrl, toolBoxId} = props.value const {toolbox_name, toolbox_icon, toolbox_desc, toolbox_url, toolbox_id} = props.value
const {fetchData, updateIndex} = useContext(Root) const {fetchData, updateIndex} = useContext(Root)
const [input, setInput] = useFormState({ const [input, setInput] = useFormState({
toolBoxName, toolbox_name,
toolBoxIcon, toolbox_icon,
toolBoxDesc, toolbox_desc,
toolBoxUrl toolbox_url
}) })
const updateToolBox = () => { const updateToolBox = () => {
fetchData('/update/updateToolBox', Object.assign({}, input, {toolBoxId})) fetchData('/update/updateToolBox', Object.assign({}, input, {toolbox_id}))
.then(() => updateIndex()) .then(() => updateIndex())
} }
return ( return (
<PopContainer> <PopContainer>
<h2 className='Pop-title'>{toolBoxName}</h2> <h2 className='Pop-title'>{toolbox_name}</h2>
<div className="formArea"> <div className="formArea">
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxName', e.target.value)} <input type="text" onChange={e => setInput('toolbox_name', e.target.value)}
defaultValue={input?.['toolBoxName']} defaultValue={input?.['toolbox_name']}
min={1} required/> min={1} required/>
<span> 名称</span> <span> 名称</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxIcon', e.target.value)} <input type="text" onChange={e => setInput('toolbox_icon', e.target.value)}
defaultValue={input?.['toolBoxIcon']} defaultValue={input?.['toolbox_icon']}
min={1} required/> min={1} required/>
<span> 图标</span> <span> 图标</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxDesc', e.target.value)} <input type="text" onChange={e => setInput('toolbox_desc', e.target.value)}
defaultValue={input?.['toolBoxDesc']} defaultValue={input?.['toolbox_desc']}
min={1} required/> min={1} required/>
<span> 描述</span> <span> 描述</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxUrl', e.target.value)} <input type="text" onChange={e => setInput('toolbox_url', e.target.value)}
defaultValue={input?.['toolBoxUrl']} min={1} defaultValue={input?.['toolbox_url']} min={1}
required/> required/>
<span> 链接</span> <span> 链接</span>
</div> </div>
......
...@@ -18,35 +18,35 @@ function Pop_addToolBox() { ...@@ -18,35 +18,35 @@ function Pop_addToolBox() {
<h2 className='Pop-title'>新建工具盒</h2> <h2 className='Pop-title'>新建工具盒</h2>
<div className="formArea"> <div className="formArea">
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxName', e.target.value)} <input type="text" onChange={e => setInput('toolbox_name', e.target.value)}
defaultValue={input?.['toolBoxName']} defaultValue={input?.['toolbox_name']}
min={1} required/> min={1} required/>
<span> 名称</span> <span> 名称</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxIcon', e.target.value)} <input type="text" onChange={e => setInput('toolbox_icon', e.target.value)}
defaultValue={input?.['toolBoxIcon']} defaultValue={input?.['toolbox_icon']}
min={1} required/> min={1} required/>
<span> 图标</span> <span> 图标</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxDesc', e.target.value)} <input type="text" onChange={e => setInput('toolbox_desc', e.target.value)}
defaultValue={input?.['toolBoxDesc']} defaultValue={input?.['toolbox_desc']}
min={1} required/> min={1} required/>
<span> 描述</span> <span> 描述</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('toolBoxUrl', e.target.value)} <input type="text" onChange={e => setInput('toolbox_url', e.target.value)}
defaultValue={input?.['toolBoxUrl']} min={1} defaultValue={input?.['toolbox_url']} min={1}
required/> required/>
<span> 链接</span> <span> 链接</span>
</div> </div>
<div className="input-group "> <div className="input-group ">
<select onChange={(e)=> setInput('typeId',e.target.value)}> <select onChange={(e)=> setInput('type_id',e.target.value)}>
{ {
dataCenter?.type?.length && dataCenter?.type.map(v=>{ dataCenter?.type?.length && dataCenter?.type.map(v=>{
return ( return (
<option key={v.typeId} value={v.typeId}>{v.typeName}</option> <option key={v.type_id} value={v.type_id}>{v.type_name}</option>
) )
}) })
} }
......
...@@ -20,8 +20,8 @@ function Pop_addType(props) { ...@@ -20,8 +20,8 @@ function Pop_addType(props) {
<h2 className='Pop-title'>新建类型</h2> <h2 className='Pop-title'>新建类型</h2>
<div className="formArea"> <div className="formArea">
<div className="input-group "> <div className="input-group ">
<input type="text" onChange={e => setInput('typeName', e.target.value)} <input type="text" onChange={e => setInput('type_name', e.target.value)}
defaultValue={input?.typeName} defaultValue={input?.type_name}
min={1} required/> min={1} required/>
<span> 类型名称</span> <span> 类型名称</span>
</div> </div>
......
...@@ -5,17 +5,17 @@ import {CHANGE_CHILD_TYPE, CHANGE_TYPE} from "../../dataCenter/action"; ...@@ -5,17 +5,17 @@ import {CHANGE_CHILD_TYPE, CHANGE_TYPE} from "../../dataCenter/action";
const ChildTypeItem = props => { const ChildTypeItem = props => {
const {dataCenter, dispatch} = useContext(Root) const {dataCenter, dispatch} = useContext(Root)
const {childTypeId, childTypeName} = props const {child_type_id, child_type_name} = props
const classNameArr = ['child-type-item'] const classNameArr = ['child-type-item']
if (childTypeId === dataCenter.childTypeId) { if (child_type_id === dataCenter.child_type_id) {
classNameArr.push('child-type-item-selected') classNameArr.push('child-type-item-selected')
} }
const handleClick = () => { const handleClick = () => {
console.log(childTypeId) console.log(child_type_id)
dispatch(CHANGE_CHILD_TYPE(childTypeId)) dispatch(CHANGE_CHILD_TYPE(child_type_id))
} }
return ( return (
<div className={classNameArr.join(' ')} onClick={handleClick}>{childTypeName}</div> <div className={classNameArr.join(' ')} onClick={handleClick}>{child_type_name}</div>
) )
} }
...@@ -25,27 +25,27 @@ function ToolType(props) { ...@@ -25,27 +25,27 @@ function ToolType(props) {
return ( return (
<> <>
<div className="tab-tool-type"> <div className="tab-tool-type">
<div className={dataCenter.typeId === 'follow' ? 'item-tool-type item-tool-type-selected' : 'item-tool-type'} <div className={dataCenter.type_id === 'follow' ? 'item-tool-type item-tool-type-selected' : 'item-tool-type'}
onClick={() => dispatch(CHANGE_TYPE('follow'))}>我的收藏 onClick={() => dispatch(CHANGE_TYPE('follow'))}>我的收藏
</div> </div>
{ {
dataCenter?.type?.length > 0 && dataCenter.type.map(v => { dataCenter?.type?.length > 0 && dataCenter.type.map(v => {
const classNameArr = ['item-tool-type '] const classNameArr = ['item-tool-type ']
if (v["typeId"] === dataCenter.typeId) classNameArr.push('item-tool-type-selected') if (v["type_id"] === dataCenter.type_id) classNameArr.push('item-tool-type-selected')
return ( return (
<div key={v["typeId"]} className={classNameArr.join('')} <div key={v["type_id"]} className={classNameArr.join('')}
onClick={() => dispatch(CHANGE_TYPE( v["typeId"]))}>{v.typeName}</div> onClick={() => dispatch(CHANGE_TYPE( v["type_id"]))}>{v.type_name}</div>
) )
}) })
} }
</div> </div>
<div className="child-type"> <div className="child-type">
<ChildTypeItem key={'all'} childTypeId={'all'} childTypeName={'全部'}/> <ChildTypeItem key={'all'} child_type_id={'all'} child_type_name={'全部'}/>
{ {
dataCenter?.childType?.length > 0 && dataCenter?.childType.map(v => { dataCenter?.childType?.length > 0 && dataCenter?.childType.map(v => {
return ( return (
<ChildTypeItem key={v.childTypeId} childTypeId={v.childTypeId} <ChildTypeItem key={v.child_type_id} child_type_id={v.child_type_id}
childTypeName={v.childTypeName}/> child_type_name={v.child_type_name}/>
) )
}) })
} }
......
const apiConfig = { const apiConfig = {
domain: 'http://' + window.location.hostname + ':3000', // domain: 'http://' + window.location.hostname + ':3000',
domain: 'http://127.0.0.1:3001',
} }
export default apiConfig export default apiConfig
const UPDATE_DATA = data => ({type: 'UPDATE_DATA', data: {...data}}) const UPDATE_DATA = data => ({type: 'UPDATE_DATA', data: {...data}})
const NEED_UPDATE_INDEX = () => ({type: 'NEED_UPDATE_INDEX'}) const NEED_UPDATE_INDEX = () => ({type: 'NEED_UPDATE_INDEX'})
const CHANGE_TYPE = typeId => ({type: 'CHANGE_TYPE', typeId: typeId}) const CHANGE_TYPE = type_id => ({type: 'CHANGE_TYPE', type_id: type_id})
const CHANGE_CHILD_TYPE = childTypeId => ({type: 'CHANGE_CHILD_TYPE', childTypeId: childTypeId}) const CHANGE_CHILD_TYPE = child_type_id => ({type: 'CHANGE_CHILD_TYPE', child_type_id: child_type_id})
export { export {
UPDATE_DATA, UPDATE_DATA,
......
...@@ -4,8 +4,8 @@ const initDataCenter = { ...@@ -4,8 +4,8 @@ const initDataCenter = {
childType: null, childType: null,
userInfo: null, userInfo: null,
needUpdateIndex: false, needUpdateIndex: false,
typeId: 'follow', type_id: 'follow',
childTypeId: 'all' child_type_id: 'all'
} }
/** /**
...@@ -44,9 +44,9 @@ const dataReducer = (state, action) => { ...@@ -44,9 +44,9 @@ const dataReducer = (state, action) => {
case 'NEED_UPDATE_INDEX': case 'NEED_UPDATE_INDEX':
return Object.assign({}, state, {needUpdateIndex: !state.needUpdateIndex}) return Object.assign({}, state, {needUpdateIndex: !state.needUpdateIndex})
case 'CHANGE_TYPE': case 'CHANGE_TYPE':
return Object.assign({}, state, {typeId: action.typeId}) return Object.assign({}, state, {type_id: action.type_id})
case 'CHANGE_CHILD_TYPE': case 'CHANGE_CHILD_TYPE':
return Object.assign({}, state, {childTypeId: action.childTypeId}) return Object.assign({}, state, {child_type_id: action.child_type_id})
default: default:
return state return state
} }
......
...@@ -24,13 +24,13 @@ function PageModal({ visible, onCancel, onPublish }) { ...@@ -24,13 +24,13 @@ function PageModal({ visible, onCancel, onPublish }) {
const columns = [ const columns = [
{ {
title: '页面Id', title: '页面Id',
dataIndex: 'pageId', dataIndex: 'page_id',
width: 150, width: 150,
align: 'center' align: 'center'
}, },
{ {
title: '页面名称', title: '页面名称',
dataIndex: 'pageName', dataIndex: 'page_name',
width: 200, width: 200,
align: 'center' align: 'center'
}, },
......
...@@ -23,14 +23,14 @@ const { Option } = Select; ...@@ -23,14 +23,14 @@ const { Option } = Select;
const PublishModal = ({ visible, onCancel, data }) => { const PublishModal = ({ visible, onCancel, data }) => {
const [code, setcode] = useState('') const [code, setcode] = useState('')
const [pageName, setPageName] = useState('') const [page_name, setPageName] = useState('')
const [oldCode, setoldCode] = useState('') const [oldCode, setoldCode] = useState('')
const { fetchData, dataCenter } = useContext(Root) const { fetchData, dataCenter } = useContext(Root)
console.log(data); console.log(data);
const onCreate = (values) => { const onCreate = (values) => {
console.log(code); console.log(code);
if (!code || !pageName) { if (!code || !page_name) {
message.error('请补全信息!') message.error('请补全信息!')
return return
} }
...@@ -41,8 +41,8 @@ const PublishModal = ({ visible, onCancel, data }) => { ...@@ -41,8 +41,8 @@ const PublishModal = ({ visible, onCancel, data }) => {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify({ body: JSON.stringify({
pageId: data.pageId, page_id: data.page_id,
pageName: pageName, page_name: page_name,
code: code code: code
}) })
}) })
...@@ -66,7 +66,7 @@ const PublishModal = ({ visible, onCancel, data }) => { ...@@ -66,7 +66,7 @@ const PublishModal = ({ visible, onCancel, data }) => {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify({ body: JSON.stringify({
pageName: pageName, page_name: page_name,
code: code code: code
}) })
}) })
...@@ -87,7 +87,7 @@ const PublishModal = ({ visible, onCancel, data }) => { ...@@ -87,7 +87,7 @@ const PublishModal = ({ visible, onCancel, data }) => {
}; };
useEffect(() => { useEffect(() => {
data&&setPageName(data.pageName) data&&setPageName(data.page_name)
}, [data]) }, [data])
return ( return (
...@@ -101,7 +101,7 @@ const PublishModal = ({ visible, onCancel, data }) => { ...@@ -101,7 +101,7 @@ const PublishModal = ({ visible, onCancel, data }) => {
width='1000px' width='1000px'
> >
<Form.Item <Form.Item
name="pageName" name="page_name"
label="页面名称" label="页面名称"
rules={[ rules={[
{ {
...@@ -110,7 +110,7 @@ const PublishModal = ({ visible, onCancel, data }) => { ...@@ -110,7 +110,7 @@ const PublishModal = ({ visible, onCancel, data }) => {
}, },
]} ]}
> >
<Input placeholder="请输入页面名称" defaultValue={data?.pageName ? data.pageName : pageName} onChange={(e) => { setPageName(e.target.value) }} /> <Input placeholder="请输入页面名称" defaultValue={data?.page_name ? data.page_name : page_name} onChange={(e) => { setPageName(e.target.value) }} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="type" name="type"
......
...@@ -28,16 +28,16 @@ function RemoveType({ visible, onCancel }) { ...@@ -28,16 +28,16 @@ function RemoveType({ visible, onCancel }) {
const res = cb(item); const res = cb(item);
if (item.children) res.children = changeData(item.children, item => ({ if (item.children) res.children = changeData(item.children, item => ({
isRemove: true, isRemove: true,
key: item.childTypeId, key: item.child_type_id,
typeId: item.childTypeId, type_id: item.child_type_id,
typeName: item.childTypeName, type_name: item.child_type_name,
})); }));
return res; return res;
}) })
} }
const removeType = (data) => { const removeType = (data) => {
fetchData('/typeManage/deleteChildType', { childTypeId: data.typeId }) fetchData('/typeManage/deleteChildType', { child_type_id: data.type_id })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
message.success('刪除成功') message.success('刪除成功')
...@@ -55,9 +55,9 @@ function RemoveType({ visible, onCancel }) { ...@@ -55,9 +55,9 @@ function RemoveType({ visible, onCancel }) {
.then((res) => { .then((res) => {
// console.log(res.data); // console.log(res.data);
const newData = changeData(res.data, item => ({ const newData = changeData(res.data, item => ({
key: item.typeId, key: item.type_id,
typeId: item.typeId, type_id: item.type_id,
typeName: item.typeName, type_name: item.type_name,
})); }));
// console.log(newData); // console.log(newData);
settypeData(newData) settypeData(newData)
...@@ -69,8 +69,8 @@ function RemoveType({ visible, onCancel }) { ...@@ -69,8 +69,8 @@ function RemoveType({ visible, onCancel }) {
}, []) }, [])
const columns = [ const columns = [
{ title: '类型名', width: 100, dataIndex: 'typeName', key: 'typeName' }, { title: '类型名', width: 100, dataIndex: 'type_name', key: 'type_name' },
{ title: 'Id', width: 100, dataIndex: 'typeId', align: 'center', key: 'typeId' }, { title: 'Id', width: 100, dataIndex: 'type_id', align: 'center', key: 'type_id' },
{ {
title: '操作', width: 100, key: 'operation', align: 'center', title: '操作', width: 100, key: 'operation', align: 'center',
render: (text, record) => ( render: (text, record) => (
......
...@@ -12,17 +12,17 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -12,17 +12,17 @@ const ToolModal = ({ visible, onCancel, data }) => {
}; };
const onCreate = (values) => { const onCreate = (values) => {
let input = { let input = {
toolBoxName: values.name, toolbox_name: values.name,
toolBoxIcon: values.icon, toolbox_icon: values.icon,
toolBoxDesc: values.depict, toolbox_desc: values.depict,
toolBoxUrl: values.url, toolbox_url: values.url,
} }
if (!data) { if (!data) {
input = { input = {
...input, ...input,
typeId: values.type, type_id: values.type,
childTypeId: values.childType child_type_id: values.childType
} }
console.log(input); console.log(input);
fetchData('/add/addToolBox', input) fetchData('/add/addToolBox', input)
...@@ -54,7 +54,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -54,7 +54,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
form.setFieldsValue({ form.setFieldsValue({
type: value, type: value,
}); });
fetchData('/query/queryChildType', { typeId: value }, 'childType') fetchData('/query/queryChildType', { type_id: value }, 'childType')
.then((res) => { .then((res) => {
console.log(res); console.log(res);
...@@ -68,7 +68,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -68,7 +68,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
}; };
useEffect(() => { useEffect(() => {
dataCenter?.type && fetchData('/query/queryChildType', { typeId: dataCenter?.type[0]?.typeId }, 'childType') dataCenter?.type && fetchData('/query/queryChildType', { type_id: dataCenter?.type[0]?.type_id }, 'childType')
.then((res) => { .then((res) => {
console.log(res); console.log(res);
...@@ -100,11 +100,11 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -100,11 +100,11 @@ const ToolModal = ({ visible, onCancel, data }) => {
{...formItemLayout} {...formItemLayout}
name="form_in_modal" name="form_in_modal"
initialValues={data ? { initialValues={data ? {
name: data.toolBoxName, name: data.toolbox_name,
icon: data.toolBoxIcon, icon: data.toolbox_icon,
url: data.toolBoxUrl, url: data.toolbox_url,
depict: data.toolBoxDesc, depict: data.toolbox_desc,
} : { type: dataCenter?.type && dataCenter?.type[0]?.typeId }} } : { type: dataCenter?.type && dataCenter?.type[0]?.type_id }}
> >
<Form.Item <Form.Item
name="name" name="name"
...@@ -171,7 +171,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -171,7 +171,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
{ {
dataCenter?.type?.length && dataCenter?.type.map(v => { dataCenter?.type?.length && dataCenter?.type.map(v => {
return ( return (
<Option key={v.typeId} value={v.typeId}>{v.typeName}</Option> <Option key={v.type_id} value={v.type_id}>{v.type_name}</Option>
) )
}) })
} }
...@@ -190,7 +190,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -190,7 +190,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
{ {
dataCenter?.childType?.length && dataCenter?.childType.map(v => { dataCenter?.childType?.length && dataCenter?.childType.map(v => {
return ( return (
<Option key={v.childTypeId} value={v.childTypeId}>{v.childTypeName}</Option> <Option key={v.child_type_id} value={v.child_type_id}>{v.child_type_name}</Option>
) )
}) })
} }
......
...@@ -10,7 +10,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -10,7 +10,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
const [form] = Form.useForm(); const [form] = Form.useForm();
if (data) { if (data) {
form.setFieldsValue({ form.setFieldsValue({
typeName: data.typeName, type_name: data.type_name,
}); });
} }
const formItemLayout = { const formItemLayout = {
...@@ -27,18 +27,18 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -27,18 +27,18 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
console.log(data); console.log(data);
let input = { let input = {
typeId: '', type_id: '',
typeName: '' type_name: ''
} }
if (!data.isRemove) { if (!data.isRemove) {
input = { input = {
typeId: data.typeId, type_id: data.type_id,
typeName: values.typeName type_name: values.type_name
} }
} else { } else {
input = { input = {
childTypeId: data.typeId, child_type_id: data.type_id,
childTypeName: values.typeName child_type_name: values.type_name
} }
} }
fetchData('/typeManage/updateType', input) fetchData('/typeManage/updateType', input)
...@@ -74,7 +74,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -74,7 +74,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
const onGenderChange = (value) => { const onGenderChange = (value) => {
form.setFieldsValue({ form.setFieldsValue({
typeId: value, type_id: value,
}); });
}; };
...@@ -115,7 +115,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -115,7 +115,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
</Radio.Group> </Radio.Group>
</Form.Item>} </Form.Item>}
{value === 1 || data ? <Form.Item {value === 1 || data ? <Form.Item
name="typeName" name="type_name"
label={`${data ? '' : '父'}类型`} label={`${data ? '' : '父'}类型`}
rules={[ rules={[
{ {
...@@ -128,7 +128,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -128,7 +128,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
</Form.Item> : </Form.Item> :
<> <>
<Form.Item <Form.Item
name="typeId" name="type_id"
label="父类型" label="父类型"
hasFeedback hasFeedback
rules={[{ required: true, message: '请选择父类型!' }]} rules={[{ required: true, message: '请选择父类型!' }]}
...@@ -141,7 +141,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -141,7 +141,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
{ {
dataCenter?.type?.length && dataCenter?.type.map(v => { dataCenter?.type?.length && dataCenter?.type.map(v => {
return ( return (
<Option key={v.typeId} value={v.typeId}>{v.typeName}</Option> <Option key={v.type_id} value={v.type_id}>{v.type_name}</Option>
) )
}) })
} }
...@@ -149,7 +149,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => { ...@@ -149,7 +149,7 @@ const TypeModal = ({ visible, onCancel, queryData, data }) => {
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="childTypeName" name="child_type_name"
label="子类型" label="子类型"
rules={[ rules={[
{ {
......
...@@ -9,22 +9,22 @@ import {NEED_UPDATE_INDEX} from "../../dataCenter/action"; ...@@ -9,22 +9,22 @@ import {NEED_UPDATE_INDEX} from "../../dataCenter/action";
function Index() { function Index() {
const {fetchData, dataCenter, dispatch} = useContext(Root) const {fetchData, dataCenter, dispatch} = useContext(Root)
const getUser = () => { const getUser = () => {
fetchData('/users/getUser', {userId: '100001'}, 'userInfo') fetchData('/users/getUser', {uid: '100001'}, 'userInfo')
.catch(res => .catch(res =>
res.code === 70001 && (window.location.href = '/login') res.code === 70001 && (window.location.href = '/login')
) )
} }
useEffect(() => { useEffect(() => {
fetchData('/query/queryType', {}, 'type') fetchData('/query/queryType', {}, 'type')
.then(() => fetchData('/query/queryChildType', {typeId: dataCenter.typeId}, 'childType')) .then(() => fetchData('/query/queryChildType', {type_id: dataCenter.type_id}, 'childType'))
.then(() => dispatch(NEED_UPDATE_INDEX())) .then(() => dispatch(NEED_UPDATE_INDEX()))
}, [dataCenter.typeId]) }, [dataCenter.type_id])
useEffect(() => { useEffect(() => {
if (dataCenter.needUpdateIndex) { if (dataCenter.needUpdateIndex) {
const _typeId = dataCenter.typeId === 'follow' ? { const _typeId = dataCenter.type_id === 'follow' ? {
isFollow: true, isFollow: true,
typeId: JSON.stringify(dataCenter.userInfo.follow) type_id: JSON.stringify(dataCenter.userInfo.follow)
} : {typeId: dataCenter.typeId} } : {type_id: dataCenter.type_id}
fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX())) fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX()))
} }
}, [dataCenter.needUpdateIndex]) }, [dataCenter.needUpdateIndex])
......
...@@ -14,7 +14,7 @@ function Index() { ...@@ -14,7 +14,7 @@ function Index() {
setPop(popComponent) setPop(popComponent)
} }
const getUser = () => { const getUser = () => {
fetchData('/users/getUser', {userId: '100001'}, 'userInfo') fetchData('/users/getUser', {uid: '100001'}, 'userInfo')
.catch(res => .catch(res =>
res.code === 70001 && (window.location.href = '/login') res.code === 70001 && (window.location.href = '/login')
) )
...@@ -22,16 +22,16 @@ function Index() { ...@@ -22,16 +22,16 @@ function Index() {
useEffect(() => { useEffect(() => {
fetchData('/query/queryType', {}, 'type') fetchData('/query/queryType', {}, 'type')
.then(()=> fetchData('/query/queryChildType',{typeId: dataCenter.typeId},'childType')) .then(()=> fetchData('/query/queryChildType',{type_id: dataCenter.type_id},'childType'))
.then(() => dispatch(NEED_UPDATE_INDEX())) .then(() => dispatch(NEED_UPDATE_INDEX()))
}, [dataCenter.typeId]) }, [dataCenter.type_id])
useEffect(() => { useEffect(() => {
if (dataCenter.needUpdateIndex) { if (dataCenter.needUpdateIndex) {
const _typeId = dataCenter.typeId === 'all' ? {} : dataCenter.typeId === 'follow' ? { const _typeId = dataCenter.type_id === 'all' ? {} : dataCenter.type_id === 'follow' ? {
isFollow: true, isFollow: true,
typeId: JSON.stringify(dataCenter.userInfo.follow) type_id: JSON.stringify(dataCenter.userInfo.follow)
} : {typeId: dataCenter.typeId} } : {type_id: dataCenter.type_id}
fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX())) fetchData('/query/queryToolBox', _typeId, 'toolBox').then(() => dispatch(NEED_UPDATE_INDEX()))
} }
}, [dataCenter.needUpdateIndex]) }, [dataCenter.needUpdateIndex])
......
...@@ -8,7 +8,7 @@ function Login(props) { ...@@ -8,7 +8,7 @@ function Login(props) {
const [needLogin,setNeedLogin] = useState(false) const [needLogin,setNeedLogin] = useState(false)
const [input, setInput] = useFormState() const [input, setInput] = useFormState()
const getUser = ()=>{ const getUser = ()=>{
fetchData('/users/getUser', {userId:'100001'}, 'userInfo') fetchData('/users/getUser', {uid:'100001'}, 'userInfo')
.then(res => res.data.uid && (window.location.href = '/index')) .then(res => res.data.uid && (window.location.href = '/index'))
.catch(res => .catch(res =>
res.code === 70001 && setNeedLogin(true) res.code === 70001 && setNeedLogin(true)
...@@ -16,7 +16,7 @@ function Login(props) { ...@@ -16,7 +16,7 @@ function Login(props) {
} }
const doLogin = () => { const doLogin = () => {
if (needLogin){ if (needLogin){
fetchData('/users/login',{userId: '100001'}) fetchData('/users/login',{uid: '100001'})
.then(()=>{ .then(()=>{
getUser() getUser()
}) })
...@@ -37,7 +37,7 @@ function Login(props) { ...@@ -37,7 +37,7 @@ function Login(props) {
<div className="login"> <div className="login">
<div className='loginDiv'> <div className='loginDiv'>
{ {
needLogin && <input type="text" onChange={e => setInput('userId',e.target.value)} defaultValue={input.userId}/> needLogin && <input type="text" onChange={e => setInput('uid',e.target.value)} defaultValue={input.uid}/>
} }
<button className='btn-login' onClick={() => doLogin()}>登录</button> <button className='btn-login' onClick={() => doLogin()}>登录</button>
</div> </div>
......
...@@ -4,23 +4,23 @@ ...@@ -4,23 +4,23 @@
/query/queryType GET /query/queryType GET
### getUser 获取用户信息 ### getUser 获取用户信息
参数:(cookie userId) 参数:(cookie uid)
/users/getUser GET /users/getUser GET
### queryToolBox 获取工具箱信息 ### queryToolBox 获取工具箱信息
参数: typeId (childTypeId) 参数: type_id (child_type_id)
/query/queryToolBox GET /query/queryToolBox GET
### queryChildType 查询子类型信息 ### queryChildType 查询子类型信息
参数: typeId 参数: type_id
/query/queryChildType GET /query/queryChildType GET
### addToolBox ### addToolBox
参数: toolBoxName: 123 参数: toolbox_name: 123
toolBoxIcon: 123132 toolbox_icon: 123132
toolBoxDesc: 213312 toolbox_desc: 213312
toolBoxUrl: qweqwe toolbox_url: qweqwe
typeId: 2 type_id: 2
childType: 1 childType: 1
/add/addToolBoxId GET /add/addToolBoxId GET
...@@ -33,7 +33,7 @@ childType: 1 ...@@ -33,7 +33,7 @@ childType: 1
### addPage 发布页面 ### addPage 发布页面
参数: code pageName POST 参数: code page_name POST
/page/addPage /page/addPage
### queryPage 查询自定义页面信息 ### queryPage 查询自定义页面信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment