From efe9c62d824ec166acb9e2a0ba4ce2fd93305cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=86=E5=95=A6=E5=A5=BD=E6=A2=A6?= <530353222@qq.com> Date: Thu, 7 Sep 2023 17:47:45 +0800 Subject: [PATCH] ui --- frontend/index.html | 92 ++++++++++++++++++ frontend/src/App.vue | 13 +-- .../{Index-d7469016.js => Index-40318c85.js} | 2 +- .../{index-f45cb953.js => index-02b24eb9.js} | 4 +- public/dist/index.html | 94 ++++++++++++++++++- 5 files changed, 193 insertions(+), 12 deletions(-) rename public/dist/assets/{Index-d7469016.js => Index-40318c85.js} (89%) rename public/dist/assets/{index-f45cb953.js => index-02b24eb9.js} (99%) diff --git a/frontend/index.html b/frontend/index.html index db2beed7..42ae824b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,8 +5,100 @@
A fast, desktop software development framework
',3)];const o=a(c,[["render",function(a,e,c,o,n,r){return t(),s("section",d,f)}],["__scopeId","data-v-19ff7cd7"]]);export{o as default}; +import{_ as a,o as t,c as s,a as e}from"./index-02b24eb9.js";const c={data:()=>({test:""}),methods:{test(){}}},d={id:"hero"},f=[e('A fast, desktop software development framework
',3)];const o=a(c,[["render",function(a,e,c,o,n,r){return t(),s("section",d,f)}],["__scopeId","data-v-19ff7cd7"]]);export{o as default}; diff --git a/public/dist/assets/index-f45cb953.js b/public/dist/assets/index-02b24eb9.js similarity index 99% rename from public/dist/assets/index-f45cb953.js rename to public/dist/assets/index-02b24eb9.js index 83e36582..9a1efbb1 100644 --- a/public/dist/assets/index-f45cb953.js +++ b/public/dist/assets/index-02b24eb9.js @@ -1,6 +1,6 @@ -function e(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;of?J(e,s,l,!0,!1,p):F(t,r,o,s,l,i,c,a,p)},z=(e,t,r,o,s,l,i,c,a)=>{let u=0;const f=t.length;let p=e.length-1,d=f-1;for(;u<=p&&u<=d;){const n=e[u],o=t[u]=a?Ur(t[u]):Lr(t[u]);if(!Pr(n,o))break;y(n,o,r,null,s,l,i,c,a),u++}for(;u<=p&&u<=d;){const n=e[p],o=t[d]=a?Ur(t[d]):Lr(t[d]);if(!Pr(n,o))break;y(n,o,r,null,s,l,i,c,a),p--,d--}if(u>p){if(u<=d){const e=d+1,n=e f?J(e,s,l,!0,!1,p):F(t,r,o,s,l,i,c,a,p)},z=(e,t,r,o,s,l,i,c,a)=>{let u=0;const f=t.length;let p=e.length-1,d=f-1;for(;u<=p&&u<=d;){const n=e[u],o=t[u]=a?Ur(t[u]):Lr(t[u]);if(!Pr(n,o))break;y(n,o,r,null,s,l,i,c,a),u++}for(;u<=p&&u<=d;){const n=e[p],o=t[d]=a?Ur(t[d]):Lr(t[d]);if(!Pr(n,o))break;y(n,o,r,null,s,l,i,c,a),p--,d--}if(u>p){if(u<=d){const e=d+1,n=eLo(e,s)))?r.push(s):n.push(s));const i=e.matched[l];i&&(t.matched.find((e=>Lo(e,i)))||o.push(i))}return[n,r,o]}(e,t);n=Zs(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Ys(r,e,t))}));const c=b.bind(null,e,t);return n.push(c),I(n).then((()=>{n=[];for(const r of s.list())n.push(Ys(r,e,t));return n.push(c),I(n)})).then((()=>{n=Zs(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ys(r,e,t))}));return n.push(c),I(n)})).then((()=>{n=[];for(const r of i)if(r.beforeEnter)if($o(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ys(o,e,t));else n.push(Ys(r.beforeEnter,e,t));return n.push(c),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Zs(i,"beforeRouteEnter",e,t),n.push(c),I(n)))).then((()=>{n=[];for(const r of l.list())n.push(Ys(r,e,t));return n.push(c),I(n)})).catch((e=>is(e,8)?e:Promise.reject(e)))}function x(e,t,n){i.list().forEach((r=>_((()=>r(e,t,n)))))}function E(e,t,n,r,s){const l=m(e,t);if(l)return l;const i=t===ns,a=Po?history.state:{};n&&(r||i?o.replace(e.fullPath,Ro({scroll:i&&a&&a.scroll},s)):o.push(e.fullPath,s)),c.value=e,F(e,t,n,i),j()}let C;function O(){C||(C=o.listen(((e,t,n)=>{if(!M.listening)return;const r=d(e),s=v(r);if(s)return void y(Ro(s,{replace:!0}),r).catch(Fo);a=r;const l=c.value;var i,u;Po&&(i=Xo(l.fullPath,n.delta),u=Go(),Qo.set(i,u)),w(r,l).catch((e=>is(e,12)?e:is(e,2)?(y(e.to,r).then((e=>{is(e,20)&&!n.delta&&n.type===Bo.pop&&o.go(-1,!1)})).catch(Fo),Promise.reject()):(n.delta&&o.go(-n.delta,!1),R(e,r,l)))).then((e=>{(e=e||E(r,l,!1))&&(n.delta&&!is(e,8)?o.go(-n.delta,!1):n.type===Bo.pop&&is(e,20)&&o.go(-1,!1)),x(r,l,e)})).catch(Fo)})))}let S,k=Qs(),P=Qs();function R(e,t,n){j(e);const r=P.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function j(e){return S||(S=!e,O(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function F(t,n,r,o){const{scrollBehavior:s}=e;if(!Po||!s)return Promise.resolve();const l=!r&&function(e){const t=Qo.get(e);return Qo.delete(e),t}(Xo(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return At().then((()=>s(t,n,l))).then((e=>e&&Ko(e))).catch((e=>R(e,t,n)))}const $=e=>o.go(e);let A;const T=new Set,M={currentRoute:c,listening:!0,addRoute:function(e,n){let r,o;return ts(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:d,options:e,push:g,replace:function(e){return g(Ro(h(e),{replace:!0}))},go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:P.add,isReady:function(){return S&&c.value!==ns?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",el),e.component("RouterView",ol),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>vt(c)}),Po&&!A&&c.value===ns&&(A=!0,g(o.location).catch((e=>{})));const t={};for(const r in ns)Object.defineProperty(t,r,{get:()=>c.value[r],enumerable:!0});e.provide(Gs,this),e.provide(Ks,tt(t)),e.provide(Xs,c);const n=e.unmount;T.add(e),e.unmount=function(){T.delete(e),T.size<1&&(a=ns,C&&C(),C=null,c.value=ns,A=!1,S=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return M}({history:((al=location.host?al||location.pathname+location.search:"").includes("#")||(al+="#"),es(al)),routes:il});var al;const ul=((...e)=>{const t=(xo||(xo=dr(wo))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(g(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;m(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t})(Co);ul.config.productionTip=!1;for(const fl in ko)ul.component(fl,ko[fl]);ul.use(cl).mount("#app");export{Eo as _,Ir as a,Sr as c,xr as o};
+ */const Ro=Object.assign;function jo(e,t){const n={};for(const r in t){const o=t[r];n[r]=$o(o)?o.map(e):e(o)}return n}const Fo=()=>{},$o=Array.isArray,Ao=/\/$/,To=e=>e.replace(Ao,"");function Mo(e,t,n="/"){let r,o={},s="",l="";const i=t.indexOf("#");let c=t.indexOf("?");return iLo(e,s)))?r.push(s):n.push(s));const i=e.matched[l];i&&(t.matched.find((e=>Lo(e,i)))||o.push(i))}return[n,r,o]}(e,t);n=Zs(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Ys(r,e,t))}));const c=b.bind(null,e,t);return n.push(c),I(n).then((()=>{n=[];for(const r of s.list())n.push(Ys(r,e,t));return n.push(c),I(n)})).then((()=>{n=Zs(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ys(r,e,t))}));return n.push(c),I(n)})).then((()=>{n=[];for(const r of i)if(r.beforeEnter)if($o(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ys(o,e,t));else n.push(Ys(r.beforeEnter,e,t));return n.push(c),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Zs(i,"beforeRouteEnter",e,t),n.push(c),I(n)))).then((()=>{n=[];for(const r of l.list())n.push(Ys(r,e,t));return n.push(c),I(n)})).catch((e=>is(e,8)?e:Promise.reject(e)))}function x(e,t,n){i.list().forEach((r=>_((()=>r(e,t,n)))))}function E(e,t,n,r,s){const l=m(e,t);if(l)return l;const i=t===ns,a=Po?history.state:{};n&&(r||i?o.replace(e.fullPath,Ro({scroll:i&&a&&a.scroll},s)):o.push(e.fullPath,s)),c.value=e,F(e,t,n,i),j()}let C;function O(){C||(C=o.listen(((e,t,n)=>{if(!M.listening)return;const r=d(e),s=v(r);if(s)return void y(Ro(s,{replace:!0}),r).catch(Fo);a=r;const l=c.value;var i,u;Po&&(i=Xo(l.fullPath,n.delta),u=Go(),Qo.set(i,u)),w(r,l).catch((e=>is(e,12)?e:is(e,2)?(y(e.to,r).then((e=>{is(e,20)&&!n.delta&&n.type===Bo.pop&&o.go(-1,!1)})).catch(Fo),Promise.reject()):(n.delta&&o.go(-n.delta,!1),R(e,r,l)))).then((e=>{(e=e||E(r,l,!1))&&(n.delta&&!is(e,8)?o.go(-n.delta,!1):n.type===Bo.pop&&is(e,20)&&o.go(-1,!1)),x(r,l,e)})).catch(Fo)})))}let S,k=Qs(),P=Qs();function R(e,t,n){j(e);const r=P.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function j(e){return S||(S=!e,O(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function F(t,n,r,o){const{scrollBehavior:s}=e;if(!Po||!s)return Promise.resolve();const l=!r&&function(e){const t=Qo.get(e);return Qo.delete(e),t}(Xo(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return At().then((()=>s(t,n,l))).then((e=>e&&Ko(e))).catch((e=>R(e,t,n)))}const $=e=>o.go(e);let A;const T=new Set,M={currentRoute:c,listening:!0,addRoute:function(e,n){let r,o;return ts(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:d,options:e,push:g,replace:function(e){return g(Ro(h(e),{replace:!0}))},go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:P.add,isReady:function(){return S&&c.value!==ns?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",el),e.component("RouterView",ol),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>vt(c)}),Po&&!A&&c.value===ns&&(A=!0,g(o.location).catch((e=>{})));const t={};for(const r in ns)Object.defineProperty(t,r,{get:()=>c.value[r],enumerable:!0});e.provide(Gs,this),e.provide(Ks,tt(t)),e.provide(Xs,c);const n=e.unmount;T.add(e),e.unmount=function(){T.delete(e),T.size<1&&(a=ns,C&&C(),C=null,c.value=ns,A=!1,S=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return M}({history:((al=location.host?al||location.pathname+location.search:"").includes("#")||(al+="#"),es(al)),routes:il});var al;const ul=((...e)=>{const t=(xo||(xo=dr(wo))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(g(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;m(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t})(Co);ul.config.productionTip=!1;for(const fl in ko)ul.component(fl,ko[fl]);ul.use(cl).mount("#app");export{Eo as _,Ir as a,Sr as c,xr as o};
diff --git a/public/dist/index.html b/public/dist/index.html
index dcb48052..6c158628 100644
--- a/public/dist/index.html
+++ b/public/dist/index.html
@@ -5,10 +5,102 @@