This commit is contained in:
yunpeng.zhang 2024-04-07 14:11:06 +08:00
commit 63cfac7f2b
28 changed files with 1311 additions and 0 deletions

1
134.3ec4f3bc.async.js Normal file

File diff suppressed because one or more lines are too long

297
140.da0c226b.async.js Normal file

File diff suppressed because one or more lines are too long

236
217.ee6b7f3b.async.js Normal file

File diff suppressed because one or more lines are too long

42
276.d255913c.async.js Normal file

File diff suppressed because one or more lines are too long

1
390.41467286.async.js Normal file
View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[390],{96390:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(67294),u=t(35312),s=t(85893);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]);

10
393.fb29dfde.async.js Normal file

File diff suppressed because one or more lines are too long

21
421.42c42abc.async.js Normal file

File diff suppressed because one or more lines are too long

8
559.c5ec3d42.async.js Normal file

File diff suppressed because one or more lines are too long

24
781.0077d585.async.js Normal file

File diff suppressed because one or more lines are too long

3
897.fc555352.async.js Normal file

File diff suppressed because one or more lines are too long

1
905.6e225d1b.async.js Normal file

File diff suppressed because one or more lines are too long

27
992.0e91f55e.async.js Normal file

File diff suppressed because one or more lines are too long

1
CNAME Normal file
View File

@ -0,0 +1 @@
preview.pro.ant.design

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

16
index.html Normal file
View File

@ -0,0 +1,16 @@
<!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>Ans智能BI</title>
<link rel="stylesheet" href="/umi.426615b6.css">
<script async src="/scripts/loading.js"></script>
<script>!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["p__Chart__AddChart__index.a2ceb04e.async.js",12],["134.3ec4f3bc.async.js",134],["140.da0c226b.async.js",140],["217.ee6b7f3b.async.js",217],["276.d255913c.async.js",276],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.ccbd539b.async.js",301],["p__User__Login__index.14e6857c.async.js",366],["p__Chart__MyChart__index.efcc7ecd.async.js",375],["390.41467286.async.js",390],["393.fb29dfde.async.js",393],["421.42c42abc.async.js",421],["p__User__Register__index.c1185fca.async.js",470],["p__Chart__AddChartAsync__index.c490d257.async.js",471],["559.c5ec3d42.async.js",559],["p__404.23e1e28a.async.js",571],["781.0077d585.async.js",781],["897.fc555352.async.js",897],["p__Admin__UserManage__index.8e0adaf6.async.js",901],["905.6e225d1b.async.js",905],["992.0e91f55e.async.js",992]],"r":{"/*":[15,19],"/":[1,5,6,14,19,20],"/analyze":[0,4,10,11,14,16,17,1,5,6,19,20],"/my_chart":[1,4,8,10,14,17,19,5,6,20],"/user/login":[1,2,7,16,17],"/user/register":[1,2,12,16,17],"/analyze/async":[10,11,13,14,16,17,1,5,6,19,20],"/admin/user-manage":[1,2,3,16,17,18,19,5,6,14,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();</script>
</head>
<body>
<div id="root"></div>
<script src="/umi.2ed4be52.js"></script>
</body>
</html>

1
logo.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1689055387311" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10175" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M593.92 457.386667m-341.333333 0a341.333333 341.333333 0 1 0 682.666666 0 341.333333 341.333333 0 1 0-682.666666 0Z" fill="#E9EAEB" p-id="10176"></path><path d="M416.426667 211.626667h27.306666v81.92h-27.306666z" fill="#BCC0C4" p-id="10177"></path><path d="M389.12 238.933333h81.92v27.306667h-81.92zM129.706667 375.466667h27.306666v81.92H129.706667z" fill="#BCC0C4" p-id="10178"></path><path d="M102.4 402.773333h81.92v27.306667H102.4zM826.026667 443.733333h27.306666v81.92h-27.306666z" fill="#BCC0C4" p-id="10179"></path><path d="M798.72 471.04h81.92v27.306667h-81.92z" fill="#BCC0C4" p-id="10180"></path><path d="M826.026667 894.293333h68.266666v27.306667h-68.266666zM921.6 894.293333h27.306667v27.306667h-27.306667zM75.093333 894.293333h27.306667v27.306667H75.093333z" fill="#2A5082" p-id="10181"></path><path d="M607.573333 552.96h150.186667v354.986667H607.573333z" fill="#FFFFFF" p-id="10182"></path><path d="M771.413333 921.6H593.92v-382.293333h177.493333v382.293333z m-150.186666-27.306667h122.88v-327.68h-122.88v327.68z" fill="#2A5082" p-id="10183"></path><path d="M197.973333 785.066667h150.186667v122.88H197.973333z" fill="#E9EAEB" p-id="10184"></path><path d="M361.813333 921.6H184.32v-150.186667h177.493333v150.186667z m-150.186666-27.306667h122.88v-95.573333h-122.88v95.573333z" fill="#2A5082" p-id="10185"></path><path d="M402.773333 703.146667h150.186667v204.8H402.773333z" fill="#E9EAEB" p-id="10186"></path><path d="M566.613333 921.6H389.12v-232.106667h177.493333v232.106667z m-150.186666-27.306667h122.88v-177.493333h-122.88v177.493333z" fill="#2A5082" p-id="10187"></path><path d="M129.706667 894.293333h669.013333v27.306667H129.706667z" fill="#2A5082" p-id="10188"></path><path d="M771.413333 225.28H614.4l39.594667 38.229333-202.069334 202.069334-106.496-106.496L124.245333 581.632l76.458667 77.824 135.168-135.168 106.496 105.130667L730.453333 341.333333l40.96 40.96z" fill="#A3D4FF" p-id="10189"></path><path d="M200.704 678.570667l-95.573333-96.938667 241.664-241.664 106.496 106.496L634.88 263.509333l-51.882667-51.882666H785.066667v203.434666l-54.613334-54.613333-288.085333 288.085333-106.496-106.496-135.168 136.533334zM143.36 581.632l57.344 58.709333 135.168-135.168 106.496 106.496L730.453333 322.218667l27.306667 27.306666v-109.226666h-109.226667l24.576 24.576-221.184 219.818666-106.496-106.496L143.36 581.632z" fill="#2A5082" p-id="10190"></path></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

1
p__404.23e1e28a.async.js Normal file
View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[571],{9826:function(E,n,t){t.r(n);var a=t(35312),o=t(29905),_=t(14726),P=t(67294),s=t(85893),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}}]);

View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[901],{14145:function(j,m,t){t.r(m),t.d(m,{waitTime:function(){return D},waitTimePromise:function(){return p}});var v=t(97857),f=t.n(v),E=t(15009),o=t.n(E),h=t(99289),c=t.n(h),g=t(42127),b=t(96906),T=t(86120),P=t(67294),d=t(85893),p=function(){var u=c()(o()().mark(function a(){var e,r=arguments;return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e=r.length>0&&r[0]!==void 0?r[0]:100,n.abrupt("return",new Promise(function(_){setTimeout(function(){_(!0)},e)}));case 2:case"end":return n.stop()}},a)}));return function(){return u.apply(this,arguments)}}(),D=function(){var u=c()(o()().mark(function a(){var e,r=arguments;return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e=r.length>0&&r[0]!==void 0?r[0]:100,n.next=3,p(e);case 3:case"end":return n.stop()}},a)}));return function(){return u.apply(this,arguments)}}(),y=[{dataIndex:"id",valueType:"indexBorder",width:48},{title:"\u6635\u79F0",dataIndex:"userName",copyable:!0},{title:"\u7528\u6237\u8D26\u53F7",dataIndex:"userAccount",copyable:!0},{title:"\u5934\u50CF",dataIndex:"userAvatar",search:!1,render:function(a,e){return(0,d.jsx)("div",{children:(0,d.jsx)("img",{src:e.userAvatar,width:100})})}},{title:"\u89D2\u8272",dataIndex:"userRole",valueType:"select",valueEnum:{user:{text:"\u666E\u901A\u7528\u6237",status:"Default"},admin:{text:"\u7BA1\u7406\u5458",status:"Success"},ban:{text:"\u8FDD\u89C4\u88AB\u5C01",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",key:"createdTime",dataIndex:"createdTime",valueType:"dateTime",sorter:!0,search:!1},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(a,e,r,s){return[(0,d.jsx)("a",{onClick:function(){var _;s==null||(_=s.startEditable)===null||_===void 0||_.call(s,e.id)},children:"\u7F16\u8F91"},"editable"),(0,d.jsx)(b.Z,{onSelect:function(){return s==null?void 0:s.reload()},menus:[{key:"copy",name:"\u590D\u5236"},{key:"delete",name:"\u5220\u9664"}]},"actionGroup")]}}];m.default=function(){var u=(0,P.useRef)();return(0,d.jsx)(T.Z,{columns:y,actionRef:u,cardBordered:!0,request:c()(o()().mark(function a(){var e,r,s,n,_,i=arguments;return o()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=i.length>0&&i[0]!==void 0?i[0]:{},s=i.length>1?i[1]:void 0,n=i.length>2?i[2]:void 0,console.log(s,n),l.next=6,(0,g.fY)(r);case 6:return _=l.sent,l.abrupt("return",{data:(e=_.data)===null||e===void 0?void 0:e.records});case 8:case"end":return l.stop()}},a)})),editable:{type:"multiple"},columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",onChange:function(e){console.log("value: ",e)}},rowKey:"id",search:{labelWidth:"auto"},options:{setting:{listsHeight:400}},form:{syncToUrl:function(e,r){return r==="get"?f()(f()({},e),{},{created_at:[e.startTime,e.endTime]}):e}},pagination:{pageSize:10,onChange:function(e){return console.log(e)}},dateFormatter:"string",headerTitle:"\u7528\u6237\u5217\u8868"})}}}]);

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

202
scripts/loading.js Normal file
View File

@ -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>
`;
}
})();

View File

@ -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,.umi-plugin-layout-right .umi-plugin-layout-action.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}.umi-plugin-layout-name.umi-plugin-layout-hide-avatar-img{margin-left:0}

File diff suppressed because one or more lines are too long

410
umi.2ed4be52.js Normal file

File diff suppressed because one or more lines are too long

1
umi.426615b6.css Normal file
View File

@ -0,0 +1 @@
html,body,#root{height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.colorWeak{filter:invert(80%)}.ant-layout{min-height:100vh}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{left:unset}canvas{display:block}body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}@media (max-width: 768px){.ant-table{width:100%;overflow-x:auto}.ant-table-thead>tr>th,.ant-table-tbody>tr>th,.ant-table-thead>tr>td,.ant-table-tbody>tr>td{white-space:pre}.ant-table-thead>tr>th>span,.ant-table-tbody>tr>th>span,.ant-table-thead>tr>td>span,.ant-table-tbody>tr>td>span{display:block}}.margin-16{margin-bottom:16px}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}