Files
Sillyv2/core/admin/p__Basic__index.3fcdde4e.async.js
T
cdle 7376417c07 x
2023-06-04 16:03:13 +08:00

11 lines
13 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[294],{66732:function(ae,D,n){var z=n(75782),$=n(58733),K=n(50959),i=n(46227),P=n(11527),C=["fieldProps","proFieldProps"],x=["fieldProps","proFieldProps"],E="text",H=function(m){var g=m.fieldProps,B=m.proFieldProps,T=(0,$.Z)(m,C);return(0,P.jsx)(i.Z,(0,z.Z)({valueType:E,fieldProps:g,filedConfig:{valueType:E},proFieldProps:B},T))},U=function(m){var g=m.fieldProps,B=m.proFieldProps,T=(0,$.Z)(m,x);return(0,P.jsx)(i.Z,(0,z.Z)({valueType:"password",fieldProps:g,proFieldProps:B,filedConfig:{valueType:E}},T))},F=H;F.Password=U,F.displayName="ProFormComponent",D.Z=F},9750:function(ae,D,n){n.r(D),n.d(D,{default:function(){return _}});var z=n(25359),$=n.n(z),K=n(49811),i=n.n(K),P=n(12472),C=n(81308),x=n(66732),E=n(75782),H=n(58733),U=n(50959),F=n(46227),d=n(11527),m=["fieldProps","min","proFieldProps","max"],g=function(u,y){var c=u.fieldProps,s=u.min,v=u.proFieldProps,b=u.max,L=(0,H.Z)(u,m);return(0,d.jsx)(F.Z,(0,E.Z)({valueType:"digit",fieldProps:(0,E.Z)({min:s,max:b},c),ref:y,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:v},L))},B=U.forwardRef(g),T=B,q=n(31491),X=n(26572),f=n(21362),A=n(86195),_=function(){return(0,d.jsx)(P._z,{title:"\u57FA\u7840\u914D\u7F6E",children:(0,d.jsx)(q.Z,{children:(0,d.jsxs)(C.A,{autoFocus:!1,submitter:{render:function(u,y){return[(0,d.jsx)(X.ZP,{htmlType:"button",onClick:function(){f.ZP.info("\u5347\u7EA7\u4E2D..."),(0,A.request)("/api/storage",{method:"put",data:{"app.compiled_at":Math.random().toString(36).substring(2,12)}}).then(function(s){if(s.errors)for(var v in s.errors)f.ZP.error(s.errors[v],4);if(s.messages)for(var b in s.messages)f.ZP.success(s.messages[b],4)})},children:"\u4E00\u952E\u5347\u7EA7"},"update"),(0,d.jsx)(X.ZP,{htmlType:"button",onClick:function(){f.ZP.info("\u91CD\u542F\u4E2D..."),(0,A.request)("/api/storage",{method:"put",data:{"app.started_at":Math.random().toString(36).substring(2,12)}}).then(function(s){if(s.errors)for(var v in s.errors)f.ZP.error(s.errors[v],4);if(s.messages)for(var b in s.messages)f.ZP.success(s.messages[b],4)})},children:"\u91CD\u542F\u7A0B\u5E8F"},"reload")]}},request:i()($()().mark(function M(){var u;return $()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,A.request)("/api/storage",{params:{keys:["app.name","app.port","app.password","app.machine_id","app.started_at","app.compiled_at"].join(",")}});case 2:return u=c.sent,c.abrupt("return",u.data);case 4:case"end":return c.stop()}},M)})),onBlur:function(u){var y=u.target.value,c=u.target.getAttribute("id"),s={};c&&(s[c]=y,(0,A.request)("/api/storage",{method:"put",data:s}).then(function(v){var b=!1;for(var L in v.errors)b=!0,v.errors[L]!="unchanged"&&f.ZP.warning(v.errors[L],4);if(!b)if(c=="app.port"){f.ZP.success("\u7AEF\u53E3\u4FEE\u6539\u6210\u529F\uFF0C\u5373\u5C06\u8DF3\u8F6C\u9875\u9762\uFF01",5);var R=window.location.origin,Z="80",G="";if(R.includes(":".concat(Z,"/")))G=R.replace(":".concat(Z,"/"),":".concat(y,"/"));else{var e=new URL(R);e.port=y,G=e.toString()}window.location.href=G}else f.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)}))},children:[(0,d.jsxs)(C.A.Group,{children:[(0,d.jsx)(x.Z,{name:"app.name",label:"\u767B\u5F55\u8D26\u53F7",tooltip:"\u673A\u5668\u4EBA\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}),(0,d.jsx)(x.Z,{width:"md",name:"app.password",label:"\u767B\u5F55\u5BC6\u7801",tooltip:"\u4E3B\u8981\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u767B\u5F55"})]}),(0,d.jsxs)(C.A.Group,{children:[(0,d.jsx)(x.Z,{disabled:!0,name:"app.started_at",label:"\u542F\u52A8\u65F6\u95F4"}),(0,d.jsx)(x.Z,{disabled:!0,name:"app.compiled_at",label:"\u7F16\u8BD1\u7248\u672C"}),(0,d.jsx)(x.Z,{width:"md",name:"app.machine_id",label:"\u673A\u5668\u7801",disabled:!0})]}),(0,d.jsx)(C.A.Group,{children:(0,d.jsx)(T,{width:"sm",tooltip:"\u8BF7\u8C28\u614E\u4FEE\u6539\uFF0C\u5982\u679C\u56E0\u6B64\u65E0\u6CD5\u8BBF\u95EE\u8BF7\u91CD\u65B0\u8FD0\u884C\u7A0B\u5E8F\u5E76\u4FEE\u6539\u7AEF\u53E3\u3002",name:"app.port",label:"\u7AEF\u53E3"})})]})})})}},31491:function(ae,D,n){n.d(D,{Z:function(){return G}});var z=n(84875),$=n.n(z),K=n(65395),i=n(50959),P=n(70458),C=n(85460),x=n(37454),E=n(53315),H=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(o[r[t]]=e[r[t]]);return o},F=e=>{var{prefixCls:a,className:o,hoverable:r=!0}=e,t=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:p}=i.useContext(P.E_),j=p("card",a),W=$()(`${j}-grid`,o,{[`${j}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},t,{className:W}))},d=n(97624),m=n(74074),g=n(49272);const B=e=>{const{antCls:a,componentCls:o,cardHeadHeight:r,cardPaddingBase:t,cardHeadTabsMarginBottom:p}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${t}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,g.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},g.vS),{[`
> ${o}-typography,
> ${o}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:p,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},T=e=>{const{cardPaddingBase:a,colorBorderSecondary:o,cardShadow:r,lineWidth:t}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:`
${t}px 0 0 0 ${o},
0 ${t}px 0 0 ${o},
${t}px ${t}px 0 0 ${o},
${t}px 0 0 0 ${o} inset,
0 ${t}px 0 0 ${o} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},q=e=>{const{componentCls:a,iconCls:o,cardActionsLiMargin:r,cardActionsIconSize:t,colorBorderSecondary:p}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${p}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,g.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:t,lineHeight:`${t*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${p}`}}})},X=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,g.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},g.vS),"&-description":{color:e.colorTextDescription}}),f=e=>{const{componentCls:a,cardPaddingBase:o,colorFillAlter:r}=e;return{[`${a}-head`]:{padding:`0 ${o}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${e.padding}px ${o}px`}}},A=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},_=e=>{const{componentCls:a,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:t,boxShadowTertiary:p,cardPaddingBase:j}=e;return{[a]:Object.assign(Object.assign({},(0,g.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:p},[`${a}-head`]:B(e),[`${a}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:j,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,g.dF)()),[`${a}-grid`]:T(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${a}-actions`]:q(e),[`${a}-meta`]:X(e)}),[`${a}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${t}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${a}-contain-grid`]:{[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:r}}},[`${a}-type-inner`]:f(e),[`${a}-loading`]:A(e),[`${a}-rtl`]:{direction:"rtl"}}},M=e=>{const{componentCls:a,cardPaddingSM:o,cardHeadHeightSM:r}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:r,padding:`0 ${o}px`,fontSize:e.fontSize,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:o}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}};var u=(0,d.Z)("Card",e=>{const a=(0,m.TS)(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[_(a),M(a)]}),y=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(o[r[t]]=e[r[t]]);return o};function c(e){return e.map((o,r)=>i.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${r}`},i.createElement("span",null,o)))}var v=i.forwardRef((e,a)=>{const{prefixCls:o,className:r,rootClassName:t,extra:p,headStyle:j={},bodyStyle:W={},title:S,loading:J,bordered:k=!0,size:Q,type:w,cover:V,actions:ee,tabList:N,children:Y,activeTabKey:re,defaultActiveTabKey:ie,tabBarExtraContent:de,hoverable:se,tabProps:le={}}=e,ce=y(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:pe,direction:ue}=i.useContext(P.E_),ge=O=>{var h;(h=e.onTabChange)===null||h===void 0||h.call(e,O)},me=i.useMemo(()=>{let O=!1;return i.Children.forEach(Y,h=>{h&&h.type&&h.type===F&&(O=!0)}),O},[Y]),l=pe("card",o),[fe,ve]=u(l),he=i.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Y),te=re!==void 0,be=Object.assign(Object.assign({},le),{[te?"activeKey":"defaultActiveKey"]:te?re:ie,tabBarExtraContent:de});let oe;const I=(0,C.Z)(Q),$e=!I||I==="default"?"large":I,ne=N&&N.length?i.createElement(E.Z,Object.assign({size:$e},be,{className:`${l}-head-tabs`,onChange:ge,items:N.map(O=>{var h;return{label:O.tab,key:O.key,disabled:(h=O.disabled)!==null&&h!==void 0?h:!1}})})):null;(S||p||ne)&&(oe=i.createElement("div",{className:`${l}-head`,style:j},i.createElement("div",{className:`${l}-head-wrapper`},S&&i.createElement("div",{className:`${l}-head-title`},S),p&&i.createElement("div",{className:`${l}-extra`},p)),ne));const xe=V?i.createElement("div",{className:`${l}-cover`},V):null,ye=i.createElement("div",{className:`${l}-body`,style:W},J?he:Y),Se=ee&&ee.length?i.createElement("ul",{className:`${l}-actions`},c(ee)):null,Pe=(0,K.Z)(ce,["onTabChange"]),Ce=$()(l,{[`${l}-loading`]:J,[`${l}-bordered`]:k,[`${l}-hoverable`]:se,[`${l}-contain-grid`]:me,[`${l}-contain-tabs`]:N&&N.length,[`${l}-${I}`]:I,[`${l}-type-${w}`]:!!w,[`${l}-rtl`]:ue==="rtl"},r,t,ve);return fe(i.createElement("div",Object.assign({ref:a},Pe,{className:Ce}),oe,xe,ye,Se))}),b=function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(o[r[t]]=e[r[t]]);return o},R=e=>{const{prefixCls:a,className:o,avatar:r,title:t,description:p}=e,j=b(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:W}=i.useContext(P.E_),S=W("card",a),J=$()(`${S}-meta`,o),k=r?i.createElement("div",{className:`${S}-meta-avatar`},r):null,Q=t?i.createElement("div",{className:`${S}-meta-title`},t):null,w=p?i.createElement("div",{className:`${S}-meta-description`},p):null,V=Q||w?i.createElement("div",{className:`${S}-meta-detail`},Q,w):null;return i.createElement("div",Object.assign({},j,{className:J}),k,V)};const Z=v;Z.Grid=F,Z.Meta=R;var G=Z}}]);