refactor: 添加前端文件

This commit is contained in:
bunny 2025-04-05 16:36:32 +08:00
parent b8ce1f3454
commit 7da1234109
11 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1 @@
.page-container[data-v-128c8218]{display:flex;padding:100px}.page-container .pic-404[data-v-128c8218]{width:600px;overflow:hidden}.page-container .pic-404__parent[data-v-128c8218]{width:100%}.page-container .pic-404__child.left[data-v-128c8218]{top:17px;left:220px;width:80px;opacity:0;animation-name:cloudLeft-128c8218;animation-duration:2s;animation-timing-function:linear;animation-delay:1s;animation-fill-mode:forwards}.page-container .pic-404__child.mid[data-v-128c8218]{top:10px;left:420px;width:46px;opacity:0;animation-name:cloudMid-128c8218;animation-duration:2s;animation-timing-function:linear;animation-delay:1.2s;animation-fill-mode:forwards}.page-container .pic-404__child.right[data-v-128c8218]{top:100px;left:500px;width:62px;opacity:0;animation-name:cloudRight-128c8218;animation-duration:2s;animation-timing-function:linear;animation-delay:1s;animation-fill-mode:forwards}@keyframes cloudLeft-128c8218{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudMid-128c8218{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudRight-128c8218{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.page-container .bullshit[data-v-128c8218]{width:300px;padding:30px 0;overflow:hidden}.page-container .bullshit__oops[data-v-128c8218]{margin-bottom:20px;font-size:32px;font-weight:700;line-height:40px;color:#1482f0;opacity:0;animation-name:slideUp-128c8218;animation-duration:.5s;animation-fill-mode:forwards}.page-container .bullshit__headline[data-v-128c8218]{margin-bottom:10px;font-size:20px;font-weight:700;line-height:24px;color:#222;opacity:0;animation-name:slideUp-128c8218;animation-duration:.5s;animation-delay:.1s;animation-fill-mode:forwards}.page-container .bullshit__info[data-v-128c8218]{margin-bottom:30px;font-size:13px;line-height:21px;color:gray;opacity:0;animation-name:slideUp-128c8218;animation-duration:.5s;animation-delay:.2s;animation-fill-mode:forwards}.page-container .bullshit__return-home[data-v-128c8218]{display:block;float:left;width:110px;height:36px;font-size:14px;line-height:36px;color:#fff;text-align:center;cursor:pointer;background:#1482f0;border-radius:100px;opacity:0;animation-name:slideUp-128c8218;animation-duration:.5s;animation-delay:.3s;animation-fill-mode:forwards}@keyframes slideUp-128c8218{0%{opacity:0;transform:translateY(60px)}to{opacity:1;transform:translateY(0)}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{g as v,c as a,o as f,m as s,a as t,n as e,p as l,i as c}from"./vendor-B_wa1CoW.js";import{_ as d}from"./index-CzX1Gtq9.js";const i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACKCAMAAABhAnODAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUdwTPf6/v////f6/v////////////z9//////////////////7+//v///f6/v////f5/vz///////////////j6/vf7/v////////////v8//////j7/v7+//////////////////////////////////////v8/+nx/fv9//b6/vr7/v////f5/vj7//////j7/vj7//f5/vD2/f///////////////+jy/P////////j6//////f6/v////f7/vj6/vf6/vL3/f////////j7/vv8//////3///f6/vf6/vb6/v////r8//f7/fL3/P///////////+jw/PT4/v3+//////////////7+//b6/v///////+jx/P///+jy/f////f6/uz0/eny/PT9/+jx/PT4/uz0/f////f6/vb6/vv9//z9//////3+//r8//f6/vj7/+ny/P////f6/////////+jw/Pf6/v////f6/vj7/v////f6/fT4//j7//b7//////b6/evy/P///+vz/P////////T3/v///+jx/P3+/////+nx+/f6/v///////+jw/Pj6/v///+nx/P///+vz/P////////////j7/vj7//H2/P///+zz/Pb6/v////////////P3/v39/////+/1/v///+jx++jx/Pj6/unx/ff6/+fx/Pf6/+jx/Ony/Ojx/Pz+//H3/v////7+//b6/vj8//7+//b5/v////b6/uz0/ff6/fj6//v8//j5/fb7//////v9/vn8//v8//f5//f6/vP3/Ojx/ez0/u31/v////f5/f///////////+z0/Pz9/+rz/+nw++30/Or0/fj//+jx/f////////f7//v9/+fw++nw/f////b4/v///+jw/f////P4/vj//+fz+/r8/u/2/unw//////f5/fb6/vb7//////b6/f3+//////L3/vr9/+/1/fT3/ff7/v////n8/vf6/v///+fw+/b5/fP4/f////T4/lxP5j4AAAD6dFJOUwD+9P3lAfb9pvsC/BIO+gnmDM3h7/PtBMLqvPn0NU5AId3+gajrK8T0Fc2/29/S4sXC47/4W8ho+psHMMD8GLvN97nyGfG++h74yMsGbJ/Dddjx5L5E1t/XN9PUjvzo7dHh2uge/sLBtdjs7r/s48rW08bFtMrE8NxS2cAKpy18c2OR0SPPiCnLvv35mdS9bV7z1Tlbl8woy7ToVMuw1c+63qLFM3zOD9i20N+6+GSqT5pLvOfb0Uifrn/ux5e3z4s7G41QVlrEvnzMx7GCaYXt4vw+icDeJG0alHj2jGl56FB5rcAmQfXBInOF13KSlNCEtNSBpOo946pl6lljAAAF7ElEQVR42u3ceVQTRxwH8AVCyk0gUAhKqwFRFAKIgALhEgS5WlBUsCCHCNJntYBCDQL6tGKtVbxqRUXrgYp4lko98BZ7n/a+Sy97X7QO62uRPHgBdjeTzcxm+l6+/2f4PDKZ3+zsb5eiMOdyw8UAZ9/I87VXqx0oQmJ/qfb2eFojkoDUmuvuNgZFvXf9lyQ7mjlnk5bVeBnA1JRRU15Cc+Xwr0CUIKjJqvpo6kYTThQd7S8FPZkl2DfqffKHp+JobZEEpAN1yuzxm5LdU5b50hBRLJSD/rxihRWVcO2K/1QYFG3XkQYG5ElsKNuU1PE0ZLrGycDgnMEFe4GmzSQKf5UqcamW2bVo9ATAkOV4XLWafzpufqIqUjU2j2HxUvo7AuZY34fDdUnJOJPyolTtRwIU2/tWjXvdpIA14k0Ylgct06srK6C9PbLDbTLgyoKnka+lkTBTXukHtEQaixj2KtRvcS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7CTIvS5lbzrRiU37GOermdW690V8G7nIuS7Ckd+LQFD7g0VzMtiWdZ4XRHNDOL/yNHQ1um9jUo0a6vTrVDE3U1jdowd1K9vxuMw6SH9nmtma+o+UKe5SftW5/LjOYKicMDuLiK76vqugaMxlx/db4zm1/UWhrcwlx9ed2zf3PH5cNzlh9+t5O7uf3GXH76wO7jLD3YY3/KDGca//GCFSYPMKQJhTg+GUhR5MH3LDyaY/uUHD8zVnaIIhM3C8gIGvWE5IdjeP6IPDFn5YUo9b5j1pFgKY6o2H5rIC1aM/2VFNp+WFuoKQ1t+OA47v1ynCwx1+eFM9TvNkDD05UdLzN8+MUc7DEf5gTgtO35sDCcMT/mBisPmQ9msMNdMypDxfr+UEYat/OiQ7188OBiWE+JCEZGwT6ZpwMQexLw7j6KsvjlRoYZhLj88Enr8WEv3nWIvisDYdv5JGdOf/wBvCt5Mksy8ZAAAAABJRU5ErkJggg==",n={class:"page-container"},A={class:"bullshit"},j=d(v({__name:"404",setup(v){const d=l();return(v,l)=>(f(),a("div",n,[l[2]||(l[2]=s('<div class="pic-404" data-v-128c8218><img alt="404" class="pic-404__parent" src="/static/png/404-D6_y3Jr2.png" data-v-128c8218><img alt="404" class="pic-404__child left" src="'+i+'" data-v-128c8218><img alt="404" class="pic-404__child mid" src="'+i+'" data-v-128c8218><img alt="404" class="pic-404__child right" src="'+i+'" data-v-128c8218></div>',1)),t("div",A,[l[1]||(l[1]=s('<div class="bullshit__oops" data-v-128c8218>OOPS!</div><div class="bullshit__info" data-v-128c8218> All rights reserved <a href="https://wallstreetcn.com" style="color:#20a0ff;" target="_blank" data-v-128c8218>wallstreetcn</a></div><div class="bullshit__headline" data-v-128c8218>The webmaster said that you can not enter this page...</div><div class="bullshit__info" data-v-128c8218> Please check that the URL you entered is correct, or click the button below to return to the homepage. </div>',4)),t("a",{class:"bullshit__return-home",href:"/",onClick:l[0]||(l[0]=e((v=>c(d).replace("/")),["prevent"]))}," Back to home ")])]))}}),[["__scopeId","data-v-128c8218"]]);export{j as default};

View File

@ -0,0 +1 @@
import{g as a,z as e,p as s,c as r,o as t}from"./vendor-B_wa1CoW.js";const p=a({__name:"index",setup(a){const p=e(),o=s(),{params:n,query:u}=p,{path:c}=n;return o.replace({path:"/"+c,query:u}),(a,e)=>(t(),r("div"))}});export{p as default};

View File

@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/404-C_lpZYhl.js","static/js/vendor-B_wa1CoW.js","static/css/vendor-D-laMJ-n.css","static/css/404-XvabTZcV.css","static/js/index-BJySthY7.js","static/js/index-DLbg_SJd.js","static/js/table-1NFVR9mO.js","static/js/index-DCYnxSc3.js"])))=>i.map(i=>d[i]);
import{c as e,o as t,a as n,b as r,r as o,d as s,e as a,f as i,g as c,u as l,h as d,i as u,N as m,w as p,j as f,T as h,k as _,l as y}from"./vendor-B_wa1CoW.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const v={},E=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));r=Promise.allSettled(t.map((e=>{if((e=function(e){return"/"+e}(e))in v)return;v[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,n&&o.setAttribute("nonce",n),document.head.appendChild(o),t?new Promise(((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)}))},g=[{path:"/error",component:()=>E((()=>import("./404-C_lpZYhl.js")),__vite__mapDeps([0,1,2,3])),meta:{hidden:!0}}],w=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},P={class:"container m-auto"},b={class:"container mx-auto"};const L=w({},[["render",function(s,a){const i=o("router-view");return t(),e("div",P,[a[0]||(a[0]=n("h1",{class:"mt-4 text-center font-bold font-size-[22px] c-primary"},"代码生成器",-1)),n("main",b,[r(i)]),a[1]||(a[1]=n("footer",{class:"my-4 text-center"},[n("p",null,"© 2025 Bunny.保留所有权利.")],-1))])}]]),O=[...[{path:"/redirect",component:L,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>E((()=>import("./index-BJySthY7.js")),__vite__mapDeps([4,1,2]))}]}],...[{path:"/",name:"/",component:L,redirect:"/home",meta:{transition:"fade"},children:[{path:"/home",name:"home",component:()=>E((()=>import("./index-DLbg_SJd.js")),__vite__mapDeps([5,6,1,2]))},{path:"/generator-code",name:"generatorCode",component:()=>E((()=>import("./index-DCYnxSc3.js")),__vite__mapDeps([7,1,2,6]))}]}],...g],x=s({history:a(),routes:O,scrollBehavior:()=>({left:0,top:0,behavior:"smooth"})}),A=i();const j={install(e){(e=>{e.use(x)})(e),function(e){e.use(A)}(e)}};const k=w(c({setup(){window.$message=l()}}),[["render",function(e,t,n,r,o,s){return" "}]]);y(c({__name:"App",setup:e=>(e,n)=>{const s=o("router-view");return t(),d(u(m),null,{default:p((()=>[r(u(f),null,{default:p((()=>[r(k),r(s,null,{default:p((({Component:e,route:n})=>[r(h,{name:n.meta.transition||"fade-transform",mode:"out-in"},{default:p((()=>[(t(),d(_(e),{key:n.path}))])),_:2},1032,["name"])])),_:1})])),_:1})])),_:1})}})).use(j).mount("#app");export{w as _};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{u as e}from"./table-1NFVR9mO.js";import{p as t,b as a,q as l,g as n,s as r,c as i,o as s,w as c,i as o,t as u,v as d,F as m,a as p,x as f,y}from"./vendor-B_wa1CoW.js";function b(){const e=t(),n=t=>{e.replace({path:"/generator-code",query:{tableName:t.tableName}}).then()};return[{title:"序号",key:"no",titleAlign:"center",align:"center",render:(e,t)=>t+1},{title:"数据库名称",key:"tableCat",titleAlign:"center",align:"center",render:e=>a(l,{type:"primary"},{default:()=>[e.tableCat]})},{title:"表类型",key:"tableType",titleAlign:"center",align:"center",render:e=>a(l,null,{default:()=>[e.tableType]})},{title:"表名",key:"tableName",titleAlign:"center",align:"center",render:e=>a(l,{type:"info",onClick:()=>n(e)},{default:()=>[e.tableName]})},{title:"注释内容",key:"comment",titleAlign:"center",align:"center",render:e=>a(l,{type:"info",onClick:()=>n(e)},{default:()=>[e.comment]})}]}const g={class:"mt-2"},k=n({__name:"index",setup(t){const n=e();return r((()=>{n.getAllTableMetaData()})),(e,t)=>(s(),i(m,null,[a(o(u),{class:"my-2",title:"提示"},{default:c((()=>[p("p",null,[t[2]||(t[2]=f(" 点击 ")),a(o(l),null,{default:c((()=>t[0]||(t[0]=[f("表名")]))),_:1}),t[3]||(t[3]=f(" 或 ")),a(o(l),null,{default:c((()=>t[1]||(t[1]=[f("注释内容")]))),_:1}),t[4]||(t[4]=f(" 跳转 "))]),p("p",g,[t[5]||(t[5]=f(" 数据库共 ")),a(o(l),{type:"info"},{default:c((()=>[f(y(o(n).tableList.length),1)])),_:1}),t[6]||(t[6]=f(" 张表 "))])])),_:1}),a(o(d),{bordered:!0,columns:o(b)(),data:o(n).tableList},null,8,["columns","data"])],64))}});export{k as default};

View File

@ -0,0 +1 @@
var e=(e,t,a)=>new Promise(((r,s)=>{var o=e=>{try{l(a.next(e))}catch(t){s(t)}},n=e=>{try{l(a.throw(e))}catch(t){s(t)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,n);l((a=a.apply(e,t)).next())}));import{V as t,W as a,B as r}from"./vendor-B_wa1CoW.js";const s=t.create({baseURL:"/api",timeout:5e4,headers:{"Content-Type":"application/json;charset=utf-8"},paramsSerializer:e=>a.stringify(e)});s.interceptors.request.use((e=>{const t=localStorage.getItem("accessToken");return t&&(e.headers.Authorization=t),e}),(e=>Promise.reject(e))),s.interceptors.response.use((e=>"blob"===e.config.responseType||"arraybuffer"===e.config.responseType?e:200===e.status?e.data:Promise.reject(e.data.message||"Error")),(e=>(e.response.data,Promise.reject(e.message))));const o=r("tableStore",{state:()=>({tableList:[]}),getters:{},actions:{getAllTableMetaData(){return e(this,null,(function*(){const e=yield s({url:"/table/getAllTableMetaData",method:"get"});200!==e.code&&window.$message.error(e.message),this.tableList=e.data}))},getTableMetaData(t){return e(this,null,(function*(){const e=yield(a={tableName:t},s({url:"/table/getTableMetaData",method:"get",params:a}));var a;return 200!==e.code?(window.$message.error(e.message),{}):e.data}))},getColumnInfo(t){return e(this,null,(function*(){const e=yield(a={tableName:t},s({url:"/table/getColumnInfo",method:"get",params:a}));var a;return 200!==e.code?(window.$message.error(e.message),{}):e.data}))}}});export{s,o as u};

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB