x
This commit is contained in:
@@ -26,3 +26,5 @@ toulu
|
||||
develop/boltdb
|
||||
develop/core
|
||||
*.db
|
||||
dist/
|
||||
core/dist
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[361],{26361:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(50959),u=t(86195),s=t(11527);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
preview.pro.ant.design
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html><html><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Ant Design Pro</title>
|
||||
<link rel="stylesheet" href="/admin/umi.d8ae1311.css">
|
||||
<script async="" src="/scripts/loading.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/admin/umi.d87f33ac.js"></script>
|
||||
|
||||
</body></html>
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" version="1.1" viewBox="0 0 200 200"><title>Group 28 Copy 5</title><desc>Created with Sketch.</desc><defs><linearGradient id="linearGradient-1" x1="62.102%" x2="108.197%" y1="0%" y2="37.864%"><stop offset="0%" stop-color="#4285EB"/><stop offset="100%" stop-color="#2EC7FF"/></linearGradient><linearGradient id="linearGradient-2" x1="69.644%" x2="54.043%" y1="0%" y2="108.457%"><stop offset="0%" stop-color="#29CDFF"/><stop offset="37.86%" stop-color="#148EFF"/><stop offset="100%" stop-color="#0A60FF"/></linearGradient><linearGradient id="linearGradient-3" x1="69.691%" x2="16.723%" y1="-12.974%" y2="117.391%"><stop offset="0%" stop-color="#FA816E"/><stop offset="41.473%" stop-color="#F74A5C"/><stop offset="100%" stop-color="#F51D2C"/></linearGradient><linearGradient id="linearGradient-4" x1="68.128%" x2="30.44%" y1="-35.691%" y2="114.943%"><stop offset="0%" stop-color="#FA8E7D"/><stop offset="51.264%" stop-color="#F74A5C"/><stop offset="100%" stop-color="#F51D2C"/></linearGradient></defs><g id="Page-1" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="logo" transform="translate(-20.000000, -20.000000)"><g id="Group-28-Copy-5" transform="translate(20.000000, 20.000000)"><g id="Group-27-Copy-3"><g id="Group-25" fill-rule="nonzero"><g id="2"><path id="Shape" fill="url(#linearGradient-1)" d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z"/><path id="Shape" fill="url(#linearGradient-2)" d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z"/></g><path id="Shape" fill="url(#linearGradient-3)" d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z"/></g><ellipse id="Combined-Shape" cx="100.519" cy="100.437" fill="url(#linearGradient-4)" rx="23.6" ry="23.581"/></g></g></g></g></svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[571],{13140:function(E,n,t){t.r(n);var a=t(86195),o=t(28630),_=t(26572),P=t(50959),s=t(11527),u=function(){return(0,s.jsx)(o.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,s.jsx)(_.ZP,{type:"primary",onClick:function(){return a.history.push("/")},children:"Back Home"})})};n.default=u}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[966],{81734:function(H,O,e){e.r(O);var B=e(25359),C=e.n(B),I=e(49811),R=e.n(I),T=e(54306),m=e.n(T),x=e(25367),K=e(34316),M=e(87474),U=e(12472),L=e(12817),j=e(64619),c=e(86195),S=e(833),W=e(46370),p=e(50959),o=e(11527),E="listenOnGroups";O.default=function(){var f,Z=(0,p.useState)([]),g=m()(Z,2),k=g[0],G=g[1],$=(0,p.useState)([{id:"empty"}]),h=m()($,2),d=h[0],v=h[1],J=(0,p.useState)("bottom"),A=m()(J,2),D=A[0],N=A[1],P=(0,c.useRequest)(function(){return(0,c.request)("/api/storage",{params:{keys:[E].join(",")}})}),y=P.data,z=P.error,V=P.loading;if(V)return(0,o.jsx)(x.Z,{});if(z)return(0,K.Z)(),null;if(((f=d[0])===null||f===void 0?void 0:f.id)=="empty"){var b=[],i=Object.keys(y).map(function(n){var a=n.split(".")[1];b.push("nickname."+a);try{n=JSON.parse(y[n])}catch(_){n={}}return n.id=a,n});(0,c.request)("/api/storage",{params:{keys:b.join(",")}}).then(function(n){if(n.data)for(var a in n.data){var _=a.split(".")[1];for(var u in i)if(i[u].id==_)try{var t=JSON.parse(n.data[a]),r=t.v,s=t.p;r&&(i[u].nickname=r,i[u].platform=s)}catch(l){}}v(i)})}var w=[{title:"\u7FA4\u53F7",dataIndex:"id",width:"15%"},{title:"\u7FA4\u79F0",dataIndex:"nickname",width:"15%",readonly:!0},{title:"\u5E73\u53F0",width:"15%",dataIndex:"platform",readonly:!0},{title:"\u5907\u6CE8",dataIndex:"decs",fieldProps:function(a,_){var u=_.rowKey,t=_.rowIndex;return a.getFieldValue([u||"","title"])==="\u4E0D\u597D\u73A9"?{disabled:!0}:t>9?{disabled:!0}:{}}},{title:"\u72B6\u6001",dataIndex:"enable",valueType:"switch",width:"10%",render:function(a,_){var u;return(0,o.jsx)(S.Z,{disabled:!0,defaultChecked:(u=d.find(function(t){return t.id==_.id}))===null||u===void 0?void 0:u.enable})}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(a,_,u,t){return[(0,o.jsx)("a",{onClick:function(){var s;t==null||(s=t.startEditable)===null||s===void 0||s.call(t,_.id)},children:"\u7F16\u8F91"},"editable"),(0,o.jsx)("a",{onClick:function(){v(d.filter(function(l){return l.id!==_.id}));var s={};s[E+"."+_.id]="",(0,M.Z)(s)},children:"\u5220\u9664"},"delete")]}}];return(0,o.jsxs)(U._z,{children:[(0,o.jsx)(W.Z,{style:{marginBottom:"10px"},message:"\u5B89\u5168\u8D77\u89C1\uFF0C\u7FA4\u804A\u6D88\u606F\u9ED8\u8BA4\u4E0D\u4F1A\u88AB\u76D1\u542C\u5904\u7406\uFF0C\u4F60\u53EF\u4EE5\u5728\u8FD9\u91CC\u6DFB\u52A0\u4F60\u60F3\u8981\u63A5\u6536\u5904\u7406\u6D88\u606F\u7684\u7FA4\u804A\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u5728\u7FA4\u804A\u4E2D\u4F7F\u7528listen\u548Cunlisten\u5F00\u542F\u548C\u5173\u95ED\u3002",type:"info",closeText:"\u5173\u95ED"}),(0,o.jsx)(L.Z,{rowKey:"id",maxLength:1005,scroll:{x:960},recordCreatorProps:D!=="hidden"?{position:D,record:function(){return{id:""+(Math.random()*1e6).toFixed(0)}}}:!1,loading:!1,toolBarRender:function(){return[(0,o.jsx)(j.Z.Group,{fieldProps:{value:D,onChange:function(_){N(_.target.value)}},options:[{label:"\u6DFB\u52A0\u5230\u9876\u90E8",value:"top"},{label:"\u6DFB\u52A0\u5230\u5E95\u90E8",value:"bottom"},{label:"\u9690\u85CF",value:"hidden"}]},"render")]},columns:w,value:d,onChange:v,editable:{type:"multiple",editableKeys:k,onSave:function(){var n=R()(C()().mark(function _(u,t){var r;return C()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r={},u!=t.id&&(r[E+"."+u]=""),r[E+"."+t.id]=JSON.stringify(t),(0,M.Z)(r),v(d.map(function(F){return F.id==u?t:F}));case 5:case"end":return l.stop()}},_)}));function a(_,u){return n.apply(this,arguments)}return a}(),onChange:G}})]})}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[81],{38146:function(H,C,e){e.r(C);var B=e(25359),A=e.n(B),R=e(49811),T=e.n(R),I=e(54306),p=e.n(I),x=e(25367),K=e(34316),O=e(87474),U=e(12472),L=e(12817),j=e(64619),c=e(86195),S=e(833),W=e(46370),m=e(50959),l=e(11527),E="noReplyGroups";C.default=function(){var f,Z=(0,m.useState)([]),M=p()(Z,2),k=M[0],G=M[1],$=(0,m.useState)([{id:"empty"}]),g=p()($,2),d=g[0],v=g[1],J=(0,m.useState)("bottom"),h=p()(J,2),D=h[0],N=h[1],P=(0,c.useRequest)(function(){return(0,c.request)("/api/storage",{params:{keys:[E].join(",")}})}),y=P.data,z=P.error,V=P.loading;if(V)return(0,l.jsx)(x.Z,{});if(z)return(0,K.Z)(),null;if(((f=d[0])===null||f===void 0?void 0:f.id)=="empty"){var F=[],i=Object.keys(y).map(function(n){var a=n.split(".")[1];F.push("nickname."+a);try{n=JSON.parse(y[n])}catch(u){n={}}return n.id=a,n});(0,c.request)("/api/storage",{params:{keys:F.join(",")}}).then(function(n){if(n.data)for(var a in n.data){var u=a.split(".")[1];for(var t in i)if(i[t].id==u)try{var _=JSON.parse(n.data[a]),r=_.v,o=_.p;r&&(i[t].nickname=r,i[t].platform=o)}catch(s){}}v(i)})}var w=[{title:"\u7FA4\u53F7",dataIndex:"id",width:"15%"},{title:"\u7FA4\u79F0",dataIndex:"nickname",width:"15%",readonly:!0},{title:"\u5E73\u53F0",width:"15%",dataIndex:"platform",valueType:"select",readonly:!0},{title:"\u5907\u6CE8",dataIndex:"decs",fieldProps:function(a,u){var t=u.rowKey,_=u.rowIndex;return a.getFieldValue([t||"","title"])==="\u4E0D\u597D\u73A9"?{disabled:!0}:_>9?{disabled:!0}:{}}},{title:"\u72B6\u6001",dataIndex:"enable",valueType:"switch",width:"10%",render:function(a,u){var t;return(0,l.jsx)(S.Z,{disabled:!0,defaultChecked:(t=d.find(function(_){return _.id==u.id}))===null||t===void 0?void 0:t.enable})}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(a,u,t,_){return[(0,l.jsx)("a",{onClick:function(){var o;_==null||(o=_.startEditable)===null||o===void 0||o.call(_,u.id)},children:"\u7F16\u8F91"},"editable"),(0,l.jsx)("a",{onClick:function(){v(d.filter(function(s){return s.id!==u.id}));var o={};o[E+"."+u.id]="",(0,O.Z)(o)},children:"\u5220\u9664"},"delete")]}}];return(0,l.jsxs)(U._z,{children:[(0,l.jsx)(W.Z,{style:{marginBottom:"10px"},message:"\u9ED8\u8BA4\u6D88\u606F\u88AB\u5904\u7406\u662F\u53EF\u4EE5\u505A\u51FA\u56DE\u590D\u7684\uFF0C\u5982\u679C\u4F60\u5E0C\u671B\u673A\u5668\u4EBA\u53EA\u5728\u7FA4\u804A\u4E2D\u76D1\u542C\u6D88\u606F\uFF0C\u62C5\u5FC3\u5728\u7FA4\u91CC\u81EA\u52A8\u53D1\u8A00\u800C\u66B4\u9732\u88AB\u8E22\u5C31\u53EF\u4EE5\u628A\u7FA4\u804A\u52A0\u5165\u5230\u8FD9\u91CC\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u5728\u7FA4\u804A\u4E2D\u4F7F\u7528reply\u548Cnoreply\u5F00\u542F\u548C\u5173\u95ED\u3002",type:"info",closeText:"\u5173\u95ED"}),(0,l.jsx)(L.Z,{rowKey:"id",maxLength:1005,scroll:{x:960},recordCreatorProps:D!=="hidden"?{position:D,record:function(){return{id:""+(Math.random()*1e6).toFixed(0)}}}:!1,loading:!1,toolBarRender:function(){return[(0,l.jsx)(j.Z.Group,{fieldProps:{value:D,onChange:function(u){N(u.target.value)}},options:[{label:"\u6DFB\u52A0\u5230\u9876\u90E8",value:"top"},{label:"\u6DFB\u52A0\u5230\u5E95\u90E8",value:"bottom"},{label:"\u9690\u85CF",value:"hidden"}]},"render")]},columns:w,value:d,onChange:v,editable:{type:"multiple",editableKeys:k,onSave:function(){var n=T()(A()().mark(function u(t,_){var r;return A()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:r={},t!=_.id&&(r[E+"."+t]=""),r[E+"."+_.id]=JSON.stringify(_),(0,O.Z)(r),v(d.map(function(b){return b.id==t?_:b}));case 5:case"end":return s.stop()}},u)}));function a(u,t){return n.apply(this,arguments)}return a}(),onChange:G}})]})}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[538],{29620:function(H,C,e){e.r(C);var I=e(25359),O=e.n(I),R=e(49811),U=e.n(R),x=e(54306),c=e.n(x),B=e(25367),K=e(34316),M=e(87474),L=e(12472),j=e(12817),S=e(64619),m=e(86195),W=e(833),F=e(46370),p=e(50959),l=e(11527),E="noListenUsers";C.default=function(){var f,Z=(0,p.useState)([]),g=c()(Z,2),k=g[0],G=g[1],$=(0,p.useState)([{id:"empty"}]),h=c()($,2),d=h[0],v=h[1],J=(0,p.useState)("bottom"),y=c()(J,2),D=y[0],N=y[1],P=(0,m.useRequest)(function(){return(0,m.request)("/api/storage",{params:{keys:[E].join(",")}})}),b=P.data,z=P.error,V=P.loading;if(V)return(0,l.jsx)(B.Z,{});if(z)return(0,K.Z)(),null;if(((f=d[0])===null||f===void 0?void 0:f.id)=="empty"){var A=[],i=Object.keys(b).map(function(n){var u=n.split(".")[1];A.push("nickname."+u);try{n=JSON.parse(b[n])}catch(_){n={}}return n.id=u,n});(0,m.request)("/api/storage",{params:{keys:A.join(",")}}).then(function(n){if(n.data)for(var u in n.data){var _=u.split(".")[1];for(var a in i)if(i[a].id==_)try{var t=JSON.parse(n.data[u]),r=t.v,s=t.p;r&&(i[a].nickname=r,i[a].platform=s)}catch(o){}}v(i)})}var w=[{title:"\u8D26\u53F7",dataIndex:"id",width:"15%"},{title:"\u6635\u79F0",dataIndex:"nickname",width:"15%",readonly:!0},{title:"\u5E73\u53F0",width:"15%",dataIndex:"platform",valueType:"select",readonly:!0},{title:"\u5907\u6CE8",dataIndex:"decs",fieldProps:function(u,_){var a=_.rowKey,t=_.rowIndex;return u.getFieldValue([a||"","title"])==="\u4E0D\u597D\u73A9"?{disabled:!0}:t>9?{disabled:!0}:{}}},{title:"\u72B6\u6001",dataIndex:"enable",valueType:"switch",width:"10%",render:function(u,_){var a;return(0,l.jsx)(W.Z,{disabled:!0,defaultChecked:(a=d.find(function(t){return t.id==_.id}))===null||a===void 0?void 0:a.enable})}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(u,_,a,t){return[(0,l.jsx)("a",{onClick:function(){var s;t==null||(s=t.startEditable)===null||s===void 0||s.call(t,_.id)},children:"\u7F16\u8F91"},"editable"),(0,l.jsx)("a",{onClick:function(){v(d.filter(function(o){return o.id!==_.id}));var s={};s[E+"."+_.id]="",(0,M.Z)(s)},children:"\u5220\u9664"},"delete")]}}];return(0,l.jsxs)(L._z,{children:[(0,l.jsx)(F.Z,{style:{marginBottom:"10px"},message:"\u9ED8\u8BA4\u76D1\u542C\u56DE\u590D\u6240\u6709\u79C1\u804A\uFF0C\u4F7F\u7528unlisten\u53E3\u4EE4\u5C4F\u853D\u79C1\u804A\uFF0Clisten\u53E3\u4EE4\u6062\u590D\u79C1\u804A\u3002\u7528\u6237\u88AB\u5C4F\u853D\u540E\u5C06\u4E0D\u518D\u63A5\u6536\u6709\u5173\u7528\u6237\u7684\u4EFB\u4F55\u6D88\u606F\u3002",type:"info",closeText:"\u5173\u95ED"}),(0,l.jsx)(j.Z,{rowKey:"id",maxLength:1005,scroll:{x:960},recordCreatorProps:D!=="hidden"?{position:D,record:function(){return{id:""+(Math.random()*1e6).toFixed(0)}}}:!1,loading:!1,toolBarRender:function(){return[(0,l.jsx)(S.Z.Group,{fieldProps:{value:D,onChange:function(_){N(_.target.value)}},options:[{label:"\u6DFB\u52A0\u5230\u9876\u90E8",value:"top"},{label:"\u6DFB\u52A0\u5230\u5E95\u90E8",value:"bottom"},{label:"\u9690\u85CF",value:"hidden"}]},"render")]},columns:w,value:d,onChange:v,editable:{type:"multiple",editableKeys:k,onSave:function(){var n=U()(O()().mark(function _(a,t){var r;return O()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r={},a!=t.id&&(r[E+"."+a]=""),r[E+"."+t.id]=JSON.stringify(t),(0,M.Z)(r),v(d.map(function(T){return T.id==a?t:T}));case 5:case"end":return o.stop()}},_)}));function u(_,a){return n.apply(this,arguments)}return u}(),onChange:G}})]})}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[737],{34316:function(I,r,_){var d=_(86195),t=_(21362),m=function(){t.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var s=new URL(window.location.href).searchParams,o=s.get("redirect");window.location.pathname!=="/user/login"&&!o&&d.history.replace({pathname:"/user/login"})};r.Z=m},55324:function(I,r,_){_.r(r);var d=_(25359),t=_.n(d),m=_(49811),v=_.n(m),s=_(54306),o=_.n(s),U=_(34316),C=_(87474),O=_(77121),g=_(12472),E=_(78434),M=_.n(E),P=_(86195),n=_(21137),R=_(21362),i=_(68243),c=_(28964),l=_(31255),p=_(26572),T=_(50959),e=_(11527),j=n.Z.Option,K="\u6211\u7684\u63D2\u4EF6\u7F51\u7AD9.com",W="\u52A0\u5BC6\u8BA2\u9605\u94FE\u63A5",b="http://",Z=K,$=function(y){var a=document.createElement("textarea");a.value=y,a.setAttribute("readOnly","true"),document.body.appendChild(a),a.select(),document.execCommand("Copy"),a.className="oInput",a.style.display="none",a.style.opacity="0"},k=function(){var y=(0,T.useState)(W),a=o()(y,2),L=a[0],x=a[1],A=(0,P.useRequest)(function(){return(0,P.request)("/api/storage",{params:{keys:["sillyGirl.plugin_sublink"].join(",")}})}),V=A.data,z=A.error,F=A.loading,G=function(){var f=v()(t()().mark(function u(){var h,B;return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,C.Z)({"sillyGirl.plugin_sublink":b+Z},"","","");case 2:h=D.sent,B=h==null?void 0:h.messages["sillyGirl.plugin_sublink"],B&&(x(B),R.ZP.info("\u5DF2\u751F\u6210\u8BA2\u9605\u94FE\u63A5\u3002"));case 5:case"end":return D.stop()}},u)}));return function(){return f.apply(this,arguments)}}();if(F)return(0,e.jsx)(E.Loading,{});if(z)return(0,U.Z)(),null;if(L==W){var S=V["sillyGirl.plugin_sublink"];S&&x(S)}return(0,e.jsxs)(g._z,{children:[(0,e.jsx)(i.Z,{children:(0,e.jsx)(c.Z,{onChange:function(u){Z=u.target.value,G()},addonBefore:(0,e.jsxs)(n.Z,{onSelect:function(u){b=u,G()},defaultValue:b,className:"select-before",children:[(0,e.jsx)(j,{value:"http://",children:"http://"}),(0,e.jsx)(j,{value:"https://",children:"https://"})]}),defaultValue:K})}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)(c.Z.Group,{compact:!0,children:[(0,e.jsx)(c.Z,{style:{width:"calc(300px)"},disabled:!0,value:L}),(0,e.jsx)(l.Z,{children:(0,e.jsx)(p.ZP,{onClick:function(){$(L),R.ZP.info("\u590D\u5236\u6210\u529F\u3002",1)},icon:(0,e.jsx)(O.Z,{})})})]})]})};r.default=k},87474:function(I,r,_){var d=_(25359),t=_.n(d),m=_(49811),v=_.n(m),s=_(21362),o=_(86195),U=function(){var C=v()(t()().mark(function O(g){var E,M,P,n=arguments;return t()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return E=n.length>1&&n[1]!==void 0?n[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",M=n.length>2&&n[2]!==void 0?n[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",P=n.length>3&&n[3]!==void 0?n[3]:"\u63D0\u4EA4\u5931\u8D25",E&&s.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),i.abrupt("return",new Promise(function(c){(0,o.request)("/api/storage",{method:"put",data:g}).then(function(l){var p;if(s.ZP.destroy(),(l==null||(p=l.data)===null||p===void 0?void 0:p.isLogin)==!1){s.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var T=new URL(window.location.href).searchParams,e=T.get("redirect");window.location.pathname!=="/user/login"&&!e&&o.history.replace({pathname:"/user/login"});return}l!=null&&l.success?M&&s.ZP.success(M,1):P&&s.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),c(l)})}));case 5:case"end":return i.stop()}},O)}));return function(g){return C.apply(this,arguments)}}();r.Z=U}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[145],{34316:function(D,t,_){var m=_(86195),o=_(21362),P=function(){o.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var a=new URL(window.location.href).searchParams,r=a.get("redirect");window.location.pathname!=="/user/login"&&!r&&m.history.replace({pathname:"/user/login"})};t.Z=P},21503:function(D,t,_){_.r(t);var m=_(34316),o=_(87474),P=_(12472),E=_(78434),a=_.n(E),r=_(86195),v=_(28964),l=_(11527),g=v.Z.TextArea,s="sillyGirl.plugin_subcribe_addresses",c=function(){var i=(0,r.useRequest)(function(){return(0,r.request)("/api/storage",{params:{keys:[s].join(",")}})}),e=i.data,p=i.error,u=i.loading;return u?(0,l.jsx)(E.Loading,{}):p?((0,m.Z)(),null):(0,l.jsxs)(P._z,{children:[(0,l.jsx)(g,{rows:4,onChange:function(n){var d={};d[s]=n.target.value,(0,o.Z)(d)},defaultValue:e[s]?e[s]:"",placeholder:"sub://T4EywWN46ztYBhHNdOl6ToiHi7qXH2cnKFZUdP2NlO2dkxtUT8gl82IjCRFQ5Ts1KyGq1tY9M+BYBeHloaIPKoFaB6JJ4YcuHBM+Hj+UmC1k0jCmJ2fG6ZwAaIhwurm8"}),(0,l.jsx)("br",{})]})};t.default=c},87474:function(D,t,_){var m=_(25359),o=_.n(m),P=_(49811),E=_.n(P),a=_(21362),r=_(86195),v=function(){var l=E()(o()().mark(function g(s){var c,f,i,e=arguments;return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c=e.length>1&&e[1]!==void 0?e[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",f=e.length>2&&e[2]!==void 0?e[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",i=e.length>3&&e[3]!==void 0?e[3]:"\u63D0\u4EA4\u5931\u8D25",c&&a.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),u.abrupt("return",new Promise(function(M){(0,r.request)("/api/storage",{method:"put",data:s}).then(function(n){var d;if(a.ZP.destroy(),(n==null||(d=n.data)===null||d===void 0?void 0:d.isLogin)==!1){a.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var O=new URL(window.location.href).searchParams,h=O.get("redirect");window.location.pathname!=="/user/login"&&!h&&r.history.replace({pathname:"/user/login"});return}n!=null&&n.success?f&&a.ZP.success(f,1):i&&a.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),M(n)})}));case 5:case"end":return u.stop()}},g)}));return function(s){return l.apply(this,arguments)}}();t.Z=v}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[398],{25367:function(r,e,_){var l=_(68243),s=_(86981),a=_(11527),u=function(){return(0,a.jsxs)(l.Z,{size:"middle",children:[(0,a.jsx)(s.Z,{size:"small"}),(0,a.jsx)(s.Z,{}),(0,a.jsx)(s.Z,{size:"large"})]})};e.Z=u},34316:function(r,e,_){var l=_(86195),s=_(21362),a=function(){s.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var o=new URL(window.location.href).searchParams,E=o.get("redirect");window.location.pathname!=="/user/login"&&!E&&l.history.replace({pathname:"/user/login"})};e.Z=a},72392:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var _Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(54689),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(25359),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(49811),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(54306),_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),_pages_Loading__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25367),_pages_LoginPage__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(34316),_pages_submit__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(87474),_monaco_editor_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10217),_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(12472),_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(81308),_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(48989),_umijs_max__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(86195),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(26572),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(79112),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(50959),lodash__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(32699),lodash__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(11527),empty="???xxxooxox",demoScript=`/**
|
||||
* @title \u65E0\u540D\u811A\u672C
|
||||
*/`,Script=function(e){var _,l,s=(0,_umijs_max__WEBPACK_IMPORTED_MODULE_8__.useModel)("@@initialState"),a=s.initialState,u=s.refresh,o=(0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(!1),E=_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(o,2),f=E[0],b=E[1],g=(0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(empty),D=_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(g,2),p=D[0],P=D[1],m=(0,react__WEBPACK_IMPORTED_MODULE_9__.useRef)(null),n=a==null||(_=a.currentUser)===null||_===void 0?void 0:_.plugins[(a==null||(l=a.currentUser)===null||l===void 0?void 0:l.plugins.length)-1].path,v=n.indexOf(e.id)!=-1,d=(0,_umijs_max__WEBPACK_IMPORTED_MODULE_8__.useRequest)(function(){return v?new Promise(function(c){var t={success:!0};t["plugins."+e.id]="",c(t)}):(0,_umijs_max__WEBPACK_IMPORTED_MODULE_8__.request)("/api/storage",{params:{keys:["plugins."+e.id].join(",")}})}),L=d.data,i=d.error,M=d.loading;if(M)return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_pages_Loading__WEBPACK_IMPORTED_MODULE_4__.Z,{});if(i)return(0,_pages_LoginPage__WEBPACK_IMPORTED_MODULE_5__.Z)(),null;p==empty&&P(v?demoScript:L["plugins."+e.id]);var U=function(){var c=_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function t(){var A,I,R,C;return _Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=m.current?m.current.getValue().replace(/\r\n/g,`
|
||||
`):p,I={},I["plugins."+e.id]=A,O.next=5,(0,_pages_submit__WEBPACK_IMPORTED_MODULE_6__.Z)(I);case 5:R=O.sent,C=R==null?void 0:R.messages["plugins."+e.id],C?C=="\u6807\u9898\u53D8\u66F4\u3002"?u():P(C):v?u():A==""&&(_umijs_max__WEBPACK_IMPORTED_MODULE_8__.history.push(n),u());case 8:case"end":return O.stop()}},t)}));return function(){return c.apply(this,arguments)}}(),T=function(t){t.key==="s"&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),U())};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_12__._z,{extra:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__.ZP,{type:"primary",onClick:function(){b(!0)},children:"\u8868\u5355"},"2"),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__.ZP,{type:"primary",onClick:U,children:"\u4FDD\u5B58"},"1")],children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div",{onKeyDown:T,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_monaco_editor_react__WEBPACK_IMPORTED_MODULE_7__.ZP,{defaultLanguage:"javascript",value:p,height:"1000px",options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1},onMount:function(t){m.current=t}})}),f&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(MyModal,{data:{id:e.id,script:p},open:f,onCancel:function(){b(!1)},editorRef:m})]})};__webpack_exports__.default=function(){var r=(0,_umijs_max__WEBPACK_IMPORTED_MODULE_8__.useParams)();return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(Script,{id:r.id},r.id)};function MyModal(props){for(var content=props.editorRef.current?props.editorRef.current.getValue().replace(/\r\n/g,`
|
||||
`):"",formRef=(0,react__WEBPACK_IMPORTED_MODULE_9__.useRef)(),result=[],keys=[],_i=0,_arr=[/@form\s+({[^*]+?})/g,/Form\(([\s\S]+?)\)/g];_i<_arr.length;_i++){var pattern=_arr[_i],matches=content.matchAll(pattern),_iterator=_Users_cdle_Desktop_sillyPage_node_modules_pnpm_babel_runtime_7_21_0_node_modules_babel_runtime_helpers_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0___default()(matches),_step;try{var _loop=function _loop(){var match=_step.value;try{var _a=function(e){for(var _ in e)e[_].dataIndex&&(e[_].key=e[_].dataIndex),e[_].key&&keys.push(e[_].key),e[_].columns&&(e[_].columns=_a(e[_].columns));return e},formObject=eval("(".concat(match[1],")"));(0,lodash__WEBPACK_IMPORTED_MODULE_10__.isArray)(formObject)||(formObject=[formObject]),result=result.concat(formObject),keys=[],result=_a(result)}catch(r){console.log("form\u8868\u5355\u89E3\u6790\u9519\u8BEF",r)}};for(_iterator.s();!(_step=_iterator.n()).done;)_loop()}catch(r){_iterator.e(r)}finally{_iterator.f()}}return(0,react__WEBPACK_IMPORTED_MODULE_9__.useEffect)(function(){(0,_umijs_max__WEBPACK_IMPORTED_MODULE_8__.request)("/api/storage",{params:{keys:keys.join(",")}}).then(function(r){if(r&&r.data){var e;for(var _ in r.data)r.data[_]=="false"&&(r.data[_]=!1),r.data[_]==""&&delete r.data[_];(e=formRef.current)===null||e===void 0||e.setFieldsValue(r.data)}})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__.Z,{open:props.open,onCancel:props.onCancel,onOk:function r(){var e,_=formRef==null||(e=formRef.current)===null||e===void 0?void 0:e.getFieldsValue();(0,_pages_submit__WEBPACK_IMPORTED_MODULE_6__.Z)(_).finally(function(){props.onCancel()})},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_15__.A,{formRef,submitter:!1,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_pro_components__WEBPACK_IMPORTED_MODULE_16__.Z,{layoutType:"Embed",columns:result})})})}},87474:function(r,e,_){var l=_(25359),s=_.n(l),a=_(49811),u=_.n(a),o=_(21362),E=_(86195),f=function(){var b=u()(s()().mark(function g(D){var p,P,m,n=arguments;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return p=n.length>1&&n[1]!==void 0?n[1]:"\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",P=n.length>2&&n[2]!==void 0?n[2]:"\u63D0\u4EA4\u6210\u529F\uFF01",m=n.length>3&&n[3]!==void 0?n[3]:"\u63D0\u4EA4\u5931\u8D25",p&&o.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),d.abrupt("return",new Promise(function(L){(0,E.request)("/api/storage",{method:"put",data:D}).then(function(i){var M;if(o.ZP.destroy(),(i==null||(M=i.data)===null||M===void 0?void 0:M.isLogin)==!1){o.ZP.warning("\u767B\u5F55\u5931\u6548\uFF01",2);var U=new URL(window.location.href).searchParams,T=U.get("redirect");window.location.pathname!=="/user/login"&&!T&&E.history.replace({pathname:"/user/login"});return}i!=null&&i.success?P&&o.ZP.success(P,1):m&&o.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2),L(i)})}));case 5:case"end":return d.stop()}},g)}));return function(D){return b.apply(this,arguments)}}();e.Z=f}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
|
||||
<svg width="42" height="42" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<path fill="#070707" d="m6.717392,13.773912l5.6,0c2.8,0 4.7,1.9 4.7,4.7c0,2.8 -2,4.7 -4.9,4.7l-2.5,0l0,4.3l-2.9,0l0,-13.7zm2.9,2.2l0,4.9l1.9,0c1.6,0 2.6,-0.9 2.6,-2.4c0,-1.6 -0.9,-2.4 -2.6,-2.4l-1.9,0l0,-0.1zm8.9,11.5l2.7,0l0,-5.7c0,-1.4 0.8,-2.3 2.2,-2.3c0.4,0 0.8,0.1 1,0.2l0,-2.4c-0.2,-0.1 -0.5,-0.1 -0.8,-0.1c-1.2,0 -2.1,0.7 -2.4,2l-0.1,0l0,-1.9l-2.7,0l0,10.2l0.1,0zm11.7,0.1c-3.1,0 -5,-2 -5,-5.3c0,-3.3 2,-5.3 5,-5.3s5,2 5,5.3c0,3.4 -1.9,5.3 -5,5.3zm0,-2.1c1.4,0 2.2,-1.1 2.2,-3.2c0,-2 -0.8,-3.2 -2.2,-3.2c-1.4,0 -2.2,1.2 -2.2,3.2c0,2.1 0.8,3.2 2.2,3.2z" class="st0" id="Ant-Design-Pro"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 677 B |
@@ -0,0 +1,202 @@
|
||||
/**
|
||||
* loading 占位
|
||||
* 解决首次加载时白屏的问题
|
||||
*/
|
||||
(function () {
|
||||
const _root = document.querySelector('#root');
|
||||
if (_root && _root.innerHTML === '') {
|
||||
_root.innerHTML = `
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#root {
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
.loading-title {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.loading-sub-title {
|
||||
margin-top: 20px;
|
||||
font-size: 1rem;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.page-loading-warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 26px;
|
||||
}
|
||||
.ant-spin {
|
||||
position: absolute;
|
||||
display: none;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
color: #1890ff;
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
opacity: 0;
|
||||
-webkit-transition: -webkit-transform 0.3s
|
||||
cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: -webkit-transform 0.3s
|
||||
cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),
|
||||
-webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
-webkit-font-feature-settings: "tnum";
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
.ant-spin-spinning {
|
||||
position: static;
|
||||
display: inline-block;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ant-spin-dot {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
background-color: #1890ff;
|
||||
border-radius: 100%;
|
||||
-webkit-transform: scale(0.75);
|
||||
-ms-transform: scale(0.75);
|
||||
transform: scale(0.75);
|
||||
-webkit-transform-origin: 50% 50%;
|
||||
-ms-transform-origin: 50% 50%;
|
||||
transform-origin: 50% 50%;
|
||||
opacity: 0.3;
|
||||
-webkit-animation: antspinmove 1s infinite linear alternate;
|
||||
animation: antSpinMove 1s infinite linear alternate;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(1) {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(2) {
|
||||
top: 0;
|
||||
right: 0;
|
||||
-webkit-animation-delay: 0.4s;
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(3) {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
-webkit-animation-delay: 0.8s;
|
||||
animation-delay: 0.8s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(4) {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
-webkit-animation-delay: 1.2s;
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-spin {
|
||||
-webkit-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
-webkit-animation: antrotate 1.2s infinite linear;
|
||||
animation: antRotate 1.2s infinite linear;
|
||||
}
|
||||
|
||||
.ant-spin-lg .ant-spin-dot {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.ant-spin-lg .ant-spin-dot i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
.ant-spin-blur {
|
||||
background: #fff;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes antSpinMove {
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antSpinMove {
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes antRotate {
|
||||
to {
|
||||
-webkit-transform: rotate(405deg);
|
||||
transform: rotate(405deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antRotate {
|
||||
to {
|
||||
-webkit-transform: rotate(405deg);
|
||||
transform: rotate(405deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
min-height: 362px;
|
||||
">
|
||||
<div class="page-loading-warp">
|
||||
<div class="ant-spin ant-spin-lg ant-spin-spinning">
|
||||
<span class="ant-spin-dot ant-spin-dot-spin">
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loading-title">
|
||||
正在加载资源
|
||||
</div>
|
||||
<div class="loading-sub-title">
|
||||
初次加载资源可能需要较多时间 请耐心等待
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
})();
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
@media screen and (max-width: 480px){.umi-plugin-layout-container{width:100%!important}.umi-plugin-layout-container>*{border-radius:0!important}}.umi-plugin-layout-menu .anticon{margin-right:8px}.umi-plugin-layout-menu .ant-dropdown-menu-item{min-width:160px}.umi-plugin-layout-right{display:flex!important;float:right;height:100%;margin-left:auto;overflow:hidden}.umi-plugin-layout-right .umi-plugin-layout-action{display:flex;align-items:center;height:100%;padding:0 12px;cursor:pointer;transition:all .3s}.umi-plugin-layout-right .umi-plugin-layout-action>i{color:#ffffffd9;vertical-align:middle}.umi-plugin-layout-right .umi-plugin-layout-action:hover{background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-action:global(.opened){background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-search{padding:0 12px}.umi-plugin-layout-right .umi-plugin-layout-search:hover{background:transparent}.umi-plugin-layout-name{margin-left:8px}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -160,7 +160,7 @@ func init() {
|
||||
if fs[k].UUID == outs[i].Scripts[j] && !Contains(scripts, fs[k].UUID) { //
|
||||
fs[k].Handle(s)
|
||||
content = s.GetContent()
|
||||
fmt.Println(content)
|
||||
// fmt.Println(content)
|
||||
if content == "" {
|
||||
goto HELL
|
||||
}
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ func DecryptByAes(data string) ([]byte, error) {
|
||||
func halfEct(str string) string {
|
||||
ss := regexp.MustCompile(`/\*hidden\*/([\s\S]+?)/\*neddih\*/`).FindAllString(str, -1)
|
||||
for _, v := range ss {
|
||||
fmt.Println(v)
|
||||
// fmt.Println(v)
|
||||
// panic("")
|
||||
c_, _ := EncryptByAes([]byte(v))
|
||||
str = strings.Replace(str, v, fmt.Sprintf(`/** Here is hidden scripts %s */`, c_), 1)
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ func initListenReply() {
|
||||
} else {
|
||||
info := &GroupInfo{}
|
||||
json.Unmarshal(data, info)
|
||||
fmt.Println(string(b1), string(utils.JsonMarshal(info)))
|
||||
// fmt.Println(string(b1), string(utils.JsonMarshal(info)))
|
||||
if info.Enable {
|
||||
NoListenUsers.Store(string(b1), info.Platform)
|
||||
}
|
||||
|
||||
@@ -95,10 +95,11 @@ func initPluginList() {
|
||||
for _, carry := range carrys {
|
||||
list = append(list, <-carry...)
|
||||
}
|
||||
cyzl := "7642f5de-3300-11ed-8a79-52540066b468"
|
||||
plugin_list = list
|
||||
// if sillyGirl.GetString("password") == "" && plugins.GetString("7642f5de-3300-11ed-8a79-52540066b468") == "" { //自动安装老版命令
|
||||
// plugins.Set("7642f5de-3300-11ed-8a79-52540066b468", "install")
|
||||
// }
|
||||
if sillyGirl.GetString("password") == "" && plugins.GetString(cyzl) == "" { //自动安装老版命令
|
||||
plugins.Set(cyzl, "install")
|
||||
}
|
||||
// if plugins.GetString("78b15932-334f-11ed-8b59-aaaa00117a5c") == "" { //自动安装比价文案
|
||||
// plugins.Set("78b15932-334f-11ed-8b59-aaaa00117a5c", "install")
|
||||
// }
|
||||
|
||||
+20
-19
@@ -2,6 +2,7 @@ package core
|
||||
|
||||
import (
|
||||
"context"
|
||||
"embed"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
@@ -16,8 +17,8 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// //go:embed admin/*
|
||||
// var static embed.FS
|
||||
//go:embed admin/*
|
||||
var static embed.FS
|
||||
|
||||
var Handle = make(map[string]func(c *gin.Context))
|
||||
|
||||
@@ -50,23 +51,23 @@ func init() {
|
||||
}
|
||||
c.Status(200)
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/admin") {
|
||||
// if file, err := static.Open(strings.Trim(c.Request.URL.Path, "/")); err == nil {
|
||||
// fs, _ := file.Stat()
|
||||
// if !fs.IsDir() {
|
||||
// defer file.Close()
|
||||
// c.Header("cache-control", "max-age=864000")
|
||||
// io.Copy(c.Writer, file)
|
||||
// return
|
||||
// } else {
|
||||
// file.Close()
|
||||
// }
|
||||
// }
|
||||
// data, err := static.ReadFile("admin/index.html")
|
||||
// if err == nil {
|
||||
// c.Header("Content-Type", "text/html; charset=utf-8")
|
||||
// c.Writer.Write(data)
|
||||
// return
|
||||
// }
|
||||
if file, err := static.Open(strings.Trim(c.Request.URL.Path, "/")); err == nil {
|
||||
fs, _ := file.Stat()
|
||||
if !fs.IsDir() {
|
||||
defer file.Close()
|
||||
c.Header("cache-control", "max-age=864000")
|
||||
io.Copy(c.Writer, file)
|
||||
return
|
||||
} else {
|
||||
file.Close()
|
||||
}
|
||||
}
|
||||
data, err := static.ReadFile("admin/index.html")
|
||||
if err == nil {
|
||||
c.Header("Content-Type", "text/html; charset=utf-8")
|
||||
c.Writer.Write(data)
|
||||
return
|
||||
}
|
||||
}
|
||||
for _, req := range ss {
|
||||
if c.Request.URL.Path == req.Path && (req.Method == c.Request.Method || req.Method == "ANY") {
|
||||
|
||||
Reference in New Issue
Block a user