seekerj commited on
Commit
37bff3f
1 Parent(s): 3eabede

update paper information

Browse files
metagpt/static/assets/{home-34c2809c.js → home-9531062a.js} RENAMED
The diff for this file is too large to render. See raw diff
 
metagpt/static/assets/{index-8383ce54.js → index-2bd3402c.js} RENAMED
@@ -1 +1 @@
1
- import{c as T,Y as re,Z as ce,r as ae,_ as ie,d as le,m as ue,f as de,p as fe,q as me,$ as I,v as ge,a0 as R}from"./vue-e0bc46a9.js";import{c as pe,l as he,a as ve,b as H,M as J,t as ye,d as be,C as Se,S as N,o as P,e as U,f as we}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const _e={},Ce=new Proxy(_e,{get(e,t){return e[t]||t}}),ke={},Le=new Proxy(ke,{get(e,t){return!t.toString().startsWith("__v_")&&e[t],e[t]}}),Oe={"zh-CN":he,"en-US":ve},E={"zh-CN":"zh-CN","en-US":"en-US"};let x="lang";const Re="zh-CN";try{x=localStorage==null?void 0:localStorage.getItem(x)}catch{console.warn("[Client]:localStorage is not available.")}const Ee=Re,_=pe({locale:E[Ee],fallbackLocale:E["zh-CN"],messages:{"zh-CN":Ce,"en-US":Le}}),st=(e,t={})=>`${_.global.t(e,t)}`,xe=e=>{if(E[e]){_.global.locale=e;try{localStorage==null||localStorage.setItem(x,e)}catch{console.warn("[Client]:localStorage is not available.")}window.location.reload()}},Ae=()=>{const e=T(()=>_.global.locale);return{setLang:xe,lang:e}},qe=T(()=>Oe[_.global.locale]),y={error:-1,success:[0,200,204],needAuthorization:401,notFound:404,notAllowed:[403,1403],needRequest:202,needMessage:[208,1e3]},j=()=>{let e=()=>{};const t=new Promise(r=>{e=r});return[e,t]},{CancelToken:Y}=H,D=Math.random().toString().slice(2),Te=1*60*1e3,Me="/api";let k;const Ie=()=>{k==null||k();const{close:e}=J.error("登录失效,请重新登录!");k=e};let Z=Y.source();const Ne=()=>{Z=Y.source()},Pe=H.create({baseURL:Me,timeout:Te}),z=e=>y.success.includes(+e),Q=async e=>{const{getToken:t,logout:r}=ee(),{lang:n}=Ae(),s=Z;e.cancelToken=e.cancelToken||s.token;let o=!1;e.headers=e.headers||{},t()&&(e.headers.Authorization=t()),e.headers.lang=n.value;const a=i=>{const{data:c}=i,[u,h]=j(),f=new FileReader;return f.readAsText(c,"utf-8"),f.onload=()=>{var M;try{const C=JSON.parse(f.result);if(C){u(C);return}}catch(C){console.log(C)}const se=(M=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i.headers["content-disposition"]))==null?void 0:M[1],ne=new Blob([c],{type:i.headers["content-type"]});u({code:y.success[0],data:{name:se,blob:ne},message:"",isRequestSuccess:!0})},h},l=(i,c)=>{var h;const{code:u}=i.data;(u===y.needAuthorization||((h=c==null?void 0:c.response)==null?void 0:h.status)===401)&&(o=!0,Ie(),s.cancel(D),Ne(),r())},m=e.responseType==="blob";function d(i){o||J.error(i||this.message)}try{const i=await Pe.request(e);let{data:c}=i;return m&&(c=await a(i)),l(i),c.message=c.message||c.msg||"",c.isRequestSuccess=z(c.code),c.showRequestErrorMessage=d.bind(c),c}catch(i){if(i.message===D){const[,f]=j();return f}const c=i.response;if(!c){const f={code:y.error,message:i.message,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}let{data:u}=c;if(m&&(u=await a(c)),typeof u=="string"){const f={code:y.error,message:i.message||c.statusText,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}l(c,i),u&&(u.message=u.message||u.msg||i.message||"",u.isRequestSuccess=z(u.code),u.showRequestErrorMessage=d.bind(u));const h={code:y.error,message:i.message,isRequestSuccess:!1};return h.showRequestErrorMessage=d.bind(h),Object.assign(h,u)}},nt=e=>Q({url:"/v1/user/login",method:"post",data:e}),Ue=()=>Q({url:"/v1/user/detail"});var b=(e=>(e.home="/static/index.html",e.login="/login",e.register="/register",e.notFound="/404",e.app="/app",e.appConfig="/app/config/:id",e.appCreate="/appCreate",e.library="/library",e.knowledge="/library/knowledge",e.history="/library/history",e.config="/config",e))(b||{}),A=(e=>(e.Admin="admin",e.SuperAdmin="super_admin",e.User="user",e))(A||{});const je="modulepreload",De=function(e){return"/static/"+e},B={},O=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=De(o),o in B)return;B[o]=!0;const a=o.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const c=s[i];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":je,a||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),a)return new Promise((i,c)=>{d.addEventListener("load",i),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},ze=[{path:b.login,name:b.login,component:()=>O(()=>import("./login-9c70a2c8.js"),["assets/login-9c70a2c8.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])},{path:b.home,name:b.home,component:()=>O(()=>import("./home-34c2809c.js"),["assets/home-34c2809c.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"]),meta:{showSideBar:!0,needLogin:!0}},{path:"/:pathMatch(.*)*",component:()=>O(()=>import("./home-34c2809c.js"),["assets/home-34c2809c.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])}],Be="/",X=re({history:ce(Be),routes:ze}),S=ae(),q="token",Fe=()=>localStorage.getItem(q)||"",F=e=>e?localStorage.setItem(q,e):localStorage.removeItem(q),ee=()=>{const e=async()=>{const{data:n,showRequestErrorMessage:s,isRequestSuccess:o}=await Ue();if(!o){s();return}S.value=n},t=async()=>{F(),S.value=void 0,X.push({name:b.login})},r=T(()=>{var n,s;return((n=S.value)==null?void 0:n.user_role)===A.Admin||((s=S.value)==null?void 0:s.user_role)===A.SuperAdmin});return{getUser:e,user:S,isAdmin:r,logout:t,setToken:F,getToken:Fe}},v=ie(null);function $e(){ee();const e=n=>{var o,a;if(!v.value)return;const s=()=>{var l;n(),(l=v.value)==null||l.off("connect",s)};(o=v.value)!=null&&o.connected?n():(a=v.value)==null||a.on("connect",s)};return{socket:v,onAndAutoOff:n=>{const s=Object.entries(n).reduce((o,[a,l])=>(o[a]=m=>{l(m)},o),{});ye(async()=>{for(const[o,a]of Object.entries(s))e(()=>{v.value.on(o,a)})}),be(async()=>{var o;for(const[a,l]of Object.entries(s))(o=v.value)==null||o.off(a,l)})},emit:(n,...s)=>{e(()=>{var o;(o=v.value)==null||o.emit(n,...s)})}}}const Ve=le({__name:"App",setup(e){return $e(),(t,r)=>{const n=ue("router-view");return de(),fe(I(Se),{locale:I(qe)},{default:me(()=>[ge(n)]),_:1},8,["locale"])}}});const te=(e,t)=>Object.prototype.toString.call(e)===t,Ke=e=>te(e,"[object Boolean]"),oe=e=>te(e,"[object Object]"),rt=e=>{var t,r;if((t=navigator==null?void 0:navigator.clipboard)!=null&&t.writeText)(r=navigator==null?void 0:navigator.clipboard)==null||r.writeText(e);else{const n=document.createElement("textarea");n.value=e,n.style.position="absolute",n.style.opacity="0",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy")}},ct=e=>new TextDecoder("utf-8").decode(e),We=(e,t)=>oe(e)?t.every(r=>Object.hasOwn(e,r)):!1,Ge=e=>oe(e)&&We(e,["loading"]),$=e=>{const t={loading:!0,text:""};return Ke(e)?t.loading=e:Ge(e)?(t.loading=e.loading,t.text=e.text||""):(console.warn("please check v-loading binding, should be boolean or { loading: boolean; text: string; }"),t.loading=!!e),t},V="loadingDirectiveElement",K="fullScreen",w="posRelative",g=Symbol("vLoadingDirective"),p=Symbol("loadingSpinApp"),He={mounted:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},updated:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},unmounted:e=>{e.classList.remove(w),e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p])}},W=e=>typeof e=="function",L=Symbol("clickOutside"),G=e=>()=>{e()},Je={mounted:(e,t)=>{if(!W(t.value)){console.warn("v-clickoutside binding should be function");return}const r=G(t.value);e[L]=r,P("clickoutside",e,r)},updated:(e,t)=>{let r=e[L];if(r&&U("clickoutside",e,r),!W(t.value)){console.warn("v-clickoutside binding should be function");return}r=G(t.value),e[L]=r,P("clickoutside",e,r)},unmounted:e=>{const t=e[L];t&&U("clickoutside",e,t)}},Ye=e=>{e.directive("loading",He),e.directive("clickoutside",Je)},Ze={install:Ye};const Qe=R(Ve);Qe.use(we()).use(X).use(Ze).use(_).mount("#app");export{rt as C,b as P,ct as U,nt as l,st as t,ee as u};
 
1
+ import{c as T,Y as re,Z as ce,r as ae,_ as ie,d as le,m as ue,f as de,p as fe,q as me,$ as I,v as ge,a0 as R}from"./vue-e0bc46a9.js";import{c as pe,l as he,a as ve,b as H,M as J,t as ye,d as be,C as Se,S as N,o as P,e as U,f as we}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const _e={},Ce=new Proxy(_e,{get(e,t){return e[t]||t}}),ke={},Le=new Proxy(ke,{get(e,t){return!t.toString().startsWith("__v_")&&e[t],e[t]}}),Oe={"zh-CN":he,"en-US":ve},E={"zh-CN":"zh-CN","en-US":"en-US"};let x="lang";const Re="zh-CN";try{x=localStorage==null?void 0:localStorage.getItem(x)}catch{console.warn("[Client]:localStorage is not available.")}const Ee=Re,_=pe({locale:E[Ee],fallbackLocale:E["zh-CN"],messages:{"zh-CN":Ce,"en-US":Le}}),st=(e,t={})=>`${_.global.t(e,t)}`,xe=e=>{if(E[e]){_.global.locale=e;try{localStorage==null||localStorage.setItem(x,e)}catch{console.warn("[Client]:localStorage is not available.")}window.location.reload()}},Ae=()=>{const e=T(()=>_.global.locale);return{setLang:xe,lang:e}},qe=T(()=>Oe[_.global.locale]),y={error:-1,success:[0,200,204],needAuthorization:401,notFound:404,notAllowed:[403,1403],needRequest:202,needMessage:[208,1e3]},j=()=>{let e=()=>{};const t=new Promise(r=>{e=r});return[e,t]},{CancelToken:Y}=H,D=Math.random().toString().slice(2),Te=1*60*1e3,Me="/api";let k;const Ie=()=>{k==null||k();const{close:e}=J.error("登录失效,请重新登录!");k=e};let Z=Y.source();const Ne=()=>{Z=Y.source()},Pe=H.create({baseURL:Me,timeout:Te}),z=e=>y.success.includes(+e),Q=async e=>{const{getToken:t,logout:r}=ee(),{lang:n}=Ae(),s=Z;e.cancelToken=e.cancelToken||s.token;let o=!1;e.headers=e.headers||{},t()&&(e.headers.Authorization=t()),e.headers.lang=n.value;const a=i=>{const{data:c}=i,[u,h]=j(),f=new FileReader;return f.readAsText(c,"utf-8"),f.onload=()=>{var M;try{const C=JSON.parse(f.result);if(C){u(C);return}}catch(C){console.log(C)}const se=(M=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i.headers["content-disposition"]))==null?void 0:M[1],ne=new Blob([c],{type:i.headers["content-type"]});u({code:y.success[0],data:{name:se,blob:ne},message:"",isRequestSuccess:!0})},h},l=(i,c)=>{var h;const{code:u}=i.data;(u===y.needAuthorization||((h=c==null?void 0:c.response)==null?void 0:h.status)===401)&&(o=!0,Ie(),s.cancel(D),Ne(),r())},m=e.responseType==="blob";function d(i){o||J.error(i||this.message)}try{const i=await Pe.request(e);let{data:c}=i;return m&&(c=await a(i)),l(i),c.message=c.message||c.msg||"",c.isRequestSuccess=z(c.code),c.showRequestErrorMessage=d.bind(c),c}catch(i){if(i.message===D){const[,f]=j();return f}const c=i.response;if(!c){const f={code:y.error,message:i.message,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}let{data:u}=c;if(m&&(u=await a(c)),typeof u=="string"){const f={code:y.error,message:i.message||c.statusText,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}l(c,i),u&&(u.message=u.message||u.msg||i.message||"",u.isRequestSuccess=z(u.code),u.showRequestErrorMessage=d.bind(u));const h={code:y.error,message:i.message,isRequestSuccess:!1};return h.showRequestErrorMessage=d.bind(h),Object.assign(h,u)}},nt=e=>Q({url:"/v1/user/login",method:"post",data:e}),Ue=()=>Q({url:"/v1/user/detail"});var b=(e=>(e.home="/static/index.html",e.login="/login",e.register="/register",e.notFound="/404",e.app="/app",e.appConfig="/app/config/:id",e.appCreate="/appCreate",e.library="/library",e.knowledge="/library/knowledge",e.history="/library/history",e.config="/config",e))(b||{}),A=(e=>(e.Admin="admin",e.SuperAdmin="super_admin",e.User="user",e))(A||{});const je="modulepreload",De=function(e){return"/static/"+e},B={},O=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=De(o),o in B)return;B[o]=!0;const a=o.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const c=s[i];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":je,a||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),a)return new Promise((i,c)=>{d.addEventListener("load",i),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},ze=[{path:b.login,name:b.login,component:()=>O(()=>import("./login-96d14205.js"),["assets/login-96d14205.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])},{path:b.home,name:b.home,component:()=>O(()=>import("./home-9531062a.js"),["assets/home-9531062a.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"]),meta:{showSideBar:!0,needLogin:!0}},{path:"/:pathMatch(.*)*",component:()=>O(()=>import("./home-9531062a.js"),["assets/home-9531062a.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])}],Be="/",X=re({history:ce(Be),routes:ze}),S=ae(),q="token",Fe=()=>localStorage.getItem(q)||"",F=e=>e?localStorage.setItem(q,e):localStorage.removeItem(q),ee=()=>{const e=async()=>{const{data:n,showRequestErrorMessage:s,isRequestSuccess:o}=await Ue();if(!o){s();return}S.value=n},t=async()=>{F(),S.value=void 0,X.push({name:b.login})},r=T(()=>{var n,s;return((n=S.value)==null?void 0:n.user_role)===A.Admin||((s=S.value)==null?void 0:s.user_role)===A.SuperAdmin});return{getUser:e,user:S,isAdmin:r,logout:t,setToken:F,getToken:Fe}},v=ie(null);function $e(){ee();const e=n=>{var o,a;if(!v.value)return;const s=()=>{var l;n(),(l=v.value)==null||l.off("connect",s)};(o=v.value)!=null&&o.connected?n():(a=v.value)==null||a.on("connect",s)};return{socket:v,onAndAutoOff:n=>{const s=Object.entries(n).reduce((o,[a,l])=>(o[a]=m=>{l(m)},o),{});ye(async()=>{for(const[o,a]of Object.entries(s))e(()=>{v.value.on(o,a)})}),be(async()=>{var o;for(const[a,l]of Object.entries(s))(o=v.value)==null||o.off(a,l)})},emit:(n,...s)=>{e(()=>{var o;(o=v.value)==null||o.emit(n,...s)})}}}const Ve=le({__name:"App",setup(e){return $e(),(t,r)=>{const n=ue("router-view");return de(),fe(I(Se),{locale:I(qe)},{default:me(()=>[ge(n)]),_:1},8,["locale"])}}});const te=(e,t)=>Object.prototype.toString.call(e)===t,Ke=e=>te(e,"[object Boolean]"),oe=e=>te(e,"[object Object]"),rt=e=>{var t,r;if((t=navigator==null?void 0:navigator.clipboard)!=null&&t.writeText)(r=navigator==null?void 0:navigator.clipboard)==null||r.writeText(e);else{const n=document.createElement("textarea");n.value=e,n.style.position="absolute",n.style.opacity="0",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy")}},ct=e=>new TextDecoder("utf-8").decode(e),We=(e,t)=>oe(e)?t.every(r=>Object.hasOwn(e,r)):!1,Ge=e=>oe(e)&&We(e,["loading"]),$=e=>{const t={loading:!0,text:""};return Ke(e)?t.loading=e:Ge(e)?(t.loading=e.loading,t.text=e.text||""):(console.warn("please check v-loading binding, should be boolean or { loading: boolean; text: string; }"),t.loading=!!e),t},V="loadingDirectiveElement",K="fullScreen",w="posRelative",g=Symbol("vLoadingDirective"),p=Symbol("loadingSpinApp"),He={mounted:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},updated:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},unmounted:e=>{e.classList.remove(w),e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p])}},W=e=>typeof e=="function",L=Symbol("clickOutside"),G=e=>()=>{e()},Je={mounted:(e,t)=>{if(!W(t.value)){console.warn("v-clickoutside binding should be function");return}const r=G(t.value);e[L]=r,P("clickoutside",e,r)},updated:(e,t)=>{let r=e[L];if(r&&U("clickoutside",e,r),!W(t.value)){console.warn("v-clickoutside binding should be function");return}r=G(t.value),e[L]=r,P("clickoutside",e,r)},unmounted:e=>{const t=e[L];t&&U("clickoutside",e,t)}},Ye=e=>{e.directive("loading",He),e.directive("clickoutside",Je)},Ze={install:Ye};const Qe=R(Ve);Qe.use(we()).use(X).use(Ze).use(_).mount("#app");export{rt as C,b as P,ct as U,nt as l,st as t,ee as u};
metagpt/static/assets/{login-9c70a2c8.js → login-96d14205.js} RENAMED
@@ -1 +1 @@
1
- import{d as H,f as v,h as w,N as U,a1 as b,r as _,a as x,c as S,o as F,l,v as s,q as t,$ as e,u as i,t as n,a2 as T}from"./vue-e0bc46a9.js";import{t as h,u as R,P as V,l as q}from"./index-8383ce54.js";import{F as f,I as L,B as G,g as N,h as E,L as g,i as z}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";const A={width:"111",height:"23",viewBox:"0 0 111 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=U('<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="white"></path><mask id="mask0_3275_99396" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="41" height="23"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="black"></path></mask><g mask="url(#mask0_3275_99396)"><circle cx="18.3917" cy="9.75161" r="12.3957" fill="url(#paint0_radial_3275_99396)"></circle><path d="M6.81156 6.45303L8.28313 -6.26299L20.7218 4.39474C20.7218 4.39474 20.1285 4.81161 19.6762 5.62887C18.8474 7.12662 17.6593 9.2678 17.6593 9.2678L6.81156 6.45303Z" fill="url(#paint1_linear_3275_99396)"></path></g><path d="M49.6909 6.07724H51.4969L54.9829 14.0852H55.0249L58.4969 6.07724H60.3029V16.0732H58.7769V8.93324H58.7209L55.6549 16.0732H54.3389L51.2729 8.93324H51.2169V16.0732H49.6909V6.07724ZM65.1951 8.63924C66.3711 8.63924 67.2811 9.03124 67.8971 9.84324C68.4571 10.5712 68.7511 11.5792 68.7651 12.8672H63.2771C63.3331 13.5672 63.5151 14.1132 63.8511 14.4912C64.1871 14.8552 64.6491 15.0512 65.2371 15.0512C65.7551 15.0512 66.1751 14.9252 66.4971 14.6872C66.7491 14.4912 66.9591 14.1692 67.1551 13.7492H68.6391C68.4711 14.4212 68.1491 14.9952 67.6451 15.4432C67.0151 15.9892 66.2171 16.2692 65.2511 16.2692C64.1871 16.2692 63.3331 15.9332 62.7171 15.2752C62.0451 14.5752 61.7091 13.6372 61.7091 12.4472C61.7091 11.3692 62.0171 10.4732 62.6611 9.74524C63.2771 9.00324 64.1311 8.63924 65.1951 8.63924ZM65.2371 9.85724C64.6771 9.85724 64.2431 10.0112 63.9071 10.3472C63.5991 10.6692 63.3891 11.1312 63.3051 11.7472H67.2111C67.0711 10.4872 66.4131 9.85724 65.2371 9.85724ZM72.2294 6.49724V8.83524H73.8814V10.0672H72.2294V14.2672C72.2294 14.4632 72.2714 14.6032 72.3554 14.7012C72.4394 14.7852 72.5654 14.8412 72.7474 14.8412H73.6994V16.0732H72.5094C71.8934 16.0732 71.4314 15.9052 71.1514 15.5832C70.8714 15.2752 70.7454 14.8412 70.7454 14.2672V10.0672H69.4014V8.83524H70.7454V7.11324L72.2294 6.49724ZM78.3383 8.63924C79.4023 8.63924 80.1863 8.90524 80.6903 9.43724C81.1243 9.89924 81.3483 10.5712 81.3483 11.4532V16.0732H79.9763V15.0512C79.6963 15.4152 79.3463 15.7092 78.9263 15.9192C78.4503 16.1432 77.8903 16.2692 77.2463 16.2692C76.4903 16.2692 75.9023 16.0732 75.4823 15.6952C75.0203 15.3172 74.7963 14.8272 74.7963 14.2252C74.7963 13.4132 75.1183 12.7832 75.7623 12.3492C76.3503 11.9292 77.1903 11.7192 78.2543 11.6912L79.8783 11.6492V11.3552C79.8783 10.3472 79.3323 9.84324 78.2403 9.84324C77.7783 9.84324 77.4003 9.92724 77.1203 10.0952C76.7843 10.2912 76.5743 10.5852 76.4903 10.9912L75.0203 10.8652C75.1743 10.0812 75.5663 9.49324 76.1823 9.12924C76.7143 8.79324 77.4423 8.63924 78.3383 8.63924ZM79.8783 12.7272L78.3523 12.7692C76.9943 12.7972 76.3223 13.2732 76.3223 14.1692C76.3223 14.4492 76.4343 14.6732 76.6723 14.8552C76.8963 15.0372 77.2043 15.1352 77.5823 15.1352C78.2123 15.1352 78.7443 14.9392 79.1923 14.5612C79.6403 14.1832 79.8783 13.7072 79.8783 13.1472V12.7272ZM87.513 5.88124C88.787 5.88124 89.795 6.16124 90.537 6.74924C91.251 7.30924 91.699 8.13524 91.881 9.25524H90.341C90.201 8.58324 89.893 8.07924 89.417 7.74324C88.941 7.39324 88.297 7.22524 87.513 7.22524C86.547 7.22524 85.777 7.54724 85.203 8.21924C84.587 8.91924 84.293 9.88524 84.293 11.1172C84.293 12.3212 84.559 13.2452 85.119 13.8892C85.707 14.5892 86.631 14.9392 87.877 14.9392C88.367 14.9392 88.829 14.8692 89.263 14.7572C89.683 14.6452 90.047 14.4772 90.383 14.2672V12.0972H87.625V10.7952H91.909V14.9952C91.391 15.4012 90.789 15.7092 90.103 15.9332C89.375 16.1572 88.577 16.2692 87.709 16.2692C86.113 16.2692 84.881 15.7652 83.999 14.7572C83.173 13.8192 82.767 12.6012 82.767 11.1172C82.767 9.61924 83.173 8.38724 83.999 7.42124C84.867 6.38524 86.043 5.88124 87.513 5.88124ZM93.7417 6.07724H97.8857C100.266 6.07724 101.456 7.08524 101.456 9.11524C101.456 11.1592 100.252 12.1812 97.8577 12.1812H95.2677V16.0732H93.7417V6.07724ZM95.2677 7.37924V10.8792H97.7597C98.5157 10.8792 99.0617 10.7392 99.4117 10.4592C99.7477 10.1792 99.9297 9.73124 99.9297 9.11524C99.9297 8.49924 99.7477 8.05124 99.3977 7.79924C99.0477 7.51924 98.5017 7.37924 97.7597 7.37924H95.2677ZM102.105 6.07724H110.295V7.37924H106.963V16.0732H105.451V7.37924H102.105V6.07724Z" fill="white"></path><defs><radialGradient id="paint0_radial_3275_99396" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(18.3917 9.75161) rotate(90) scale(12.3957)"><stop stop-color="#582AFF"></stop><stop offset="1" stop-color="#582AFF" stop-opacity="0"></stop></radialGradient><linearGradient id="paint1_linear_3275_99396" x1="8.37635" y1="1.52165" x2="19.1719" y2="7.92579" gradientUnits="userSpaceOnUse"><stop offset="0.15027" stop-color="#5329EA" stop-opacity="0"></stop><stop offset="1" stop-color="#5027E4" stop-opacity="0.82"></stop></linearGradient></defs>',5),O=[I],P=H({__name:"LogoWhite",setup(k){return(p,c)=>(v(),w("svg",A,O))}}),W={class:"login"},D={class:"loginbg"},j=l("div",{class:"title"},"MetaGPT",-1),J={class:"loginform"},K={style:{width:"418px"}},Q={class:"formTitle"},X={class:"toolBoxBtn"},Y={class:"desc"},o1=H({__name:"login",setup(k){const p=b(),c=_(),C=x({username:"",password:""}),d=_(!1),M=S(()=>({username:[{required:!0,message:h("请输入用户名")}],password:[{required:!0,message:h("请输入密码")}]})),{setToken:y,getToken:Z}=R(),u=_(!1),$=async()=>{var m;if(u.value||await((m=c.value)==null?void 0:m.validate()))return;u.value=!0;const{isRequestSuccess:o,showRequestErrorMessage:r,data:B}=await q({account:C.username,password:C.password});if(u.value=!1,!o){r();return}y(B.token),p.replace({name:V.home})};return F(()=>{Z()&&p.replace({name:V.home})}),(a,o)=>(v(),w("div",W,[l("div",D,[s(P,{class:"logiWhite"}),j]),l("div",J,[l("div",K,[s(e(z),{ref_key:"formRef",ref:c,model:e(C),rules:e(M)},{default:t(()=>[s(e(f),{"hide-label":""},{default:t(()=>[l("div",Q,i(a.$t("账号登录")),1)]),_:1}),s(e(f),{"hide-label":"",field:"username"},{default:t(()=>[s(e(L),{modelValue:e(C).username,"onUpdate:modelValue":o[0]||(o[0]=r=>e(C).username=r),placeholder:a.$t("用户名/邮箱"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(f),{"hide-label":"",field:"password"},{default:t(()=>[s(e(L),{modelValue:e(C).password,"onUpdate:modelValue":o[1]||(o[1]=r=>e(C).password=r),type:"password",placeholder:a.$t("密码"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(G),{type:"primary",long:"",size:"large",disabled:!e(d),loading:e(u),onClick:$},{default:t(()=>[n(i(a.$t("登录")),1)]),_:1},8,["disabled","loading"]),s(e(N),{class:"spaceBTW toolBox",fill:""},{default:t(()=>[l("span",X,i(a.$t("忘记密码")),1)]),_:1}),l("div",null,[s(e(E),{modelValue:e(d),"onUpdate:modelValue":o[2]||(o[2]=r=>T(d)?d.value=r:null)},{default:t(()=>[l("div",Y,[n(i(a.$t("登录或完成注册即代表你同意")),1),s(e(g),null,{default:t(()=>[n(i(a.$t("用户协议")),1)]),_:1}),n(" "+i(a.$t("和"))+" ",1),s(e(g),null,{default:t(()=>[n(i(a.$t("隐私政策")),1)]),_:1})])]),_:1},8,["modelValue"])])]),_:1},8,["model","rules"])])])]))}});export{o1 as default};
 
1
+ import{d as H,f as v,h as w,N as U,a1 as b,r as _,a as x,c as S,o as F,l,v as s,q as t,$ as e,u as i,t as n,a2 as T}from"./vue-e0bc46a9.js";import{t as h,u as R,P as V,l as q}from"./index-2bd3402c.js";import{F as f,I as L,B as G,g as N,h as E,L as g,i as z}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";const A={width:"111",height:"23",viewBox:"0 0 111 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=U('<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="white"></path><mask id="mask0_3275_99396" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="41" height="23"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="black"></path></mask><g mask="url(#mask0_3275_99396)"><circle cx="18.3917" cy="9.75161" r="12.3957" fill="url(#paint0_radial_3275_99396)"></circle><path d="M6.81156 6.45303L8.28313 -6.26299L20.7218 4.39474C20.7218 4.39474 20.1285 4.81161 19.6762 5.62887C18.8474 7.12662 17.6593 9.2678 17.6593 9.2678L6.81156 6.45303Z" fill="url(#paint1_linear_3275_99396)"></path></g><path d="M49.6909 6.07724H51.4969L54.9829 14.0852H55.0249L58.4969 6.07724H60.3029V16.0732H58.7769V8.93324H58.7209L55.6549 16.0732H54.3389L51.2729 8.93324H51.2169V16.0732H49.6909V6.07724ZM65.1951 8.63924C66.3711 8.63924 67.2811 9.03124 67.8971 9.84324C68.4571 10.5712 68.7511 11.5792 68.7651 12.8672H63.2771C63.3331 13.5672 63.5151 14.1132 63.8511 14.4912C64.1871 14.8552 64.6491 15.0512 65.2371 15.0512C65.7551 15.0512 66.1751 14.9252 66.4971 14.6872C66.7491 14.4912 66.9591 14.1692 67.1551 13.7492H68.6391C68.4711 14.4212 68.1491 14.9952 67.6451 15.4432C67.0151 15.9892 66.2171 16.2692 65.2511 16.2692C64.1871 16.2692 63.3331 15.9332 62.7171 15.2752C62.0451 14.5752 61.7091 13.6372 61.7091 12.4472C61.7091 11.3692 62.0171 10.4732 62.6611 9.74524C63.2771 9.00324 64.1311 8.63924 65.1951 8.63924ZM65.2371 9.85724C64.6771 9.85724 64.2431 10.0112 63.9071 10.3472C63.5991 10.6692 63.3891 11.1312 63.3051 11.7472H67.2111C67.0711 10.4872 66.4131 9.85724 65.2371 9.85724ZM72.2294 6.49724V8.83524H73.8814V10.0672H72.2294V14.2672C72.2294 14.4632 72.2714 14.6032 72.3554 14.7012C72.4394 14.7852 72.5654 14.8412 72.7474 14.8412H73.6994V16.0732H72.5094C71.8934 16.0732 71.4314 15.9052 71.1514 15.5832C70.8714 15.2752 70.7454 14.8412 70.7454 14.2672V10.0672H69.4014V8.83524H70.7454V7.11324L72.2294 6.49724ZM78.3383 8.63924C79.4023 8.63924 80.1863 8.90524 80.6903 9.43724C81.1243 9.89924 81.3483 10.5712 81.3483 11.4532V16.0732H79.9763V15.0512C79.6963 15.4152 79.3463 15.7092 78.9263 15.9192C78.4503 16.1432 77.8903 16.2692 77.2463 16.2692C76.4903 16.2692 75.9023 16.0732 75.4823 15.6952C75.0203 15.3172 74.7963 14.8272 74.7963 14.2252C74.7963 13.4132 75.1183 12.7832 75.7623 12.3492C76.3503 11.9292 77.1903 11.7192 78.2543 11.6912L79.8783 11.6492V11.3552C79.8783 10.3472 79.3323 9.84324 78.2403 9.84324C77.7783 9.84324 77.4003 9.92724 77.1203 10.0952C76.7843 10.2912 76.5743 10.5852 76.4903 10.9912L75.0203 10.8652C75.1743 10.0812 75.5663 9.49324 76.1823 9.12924C76.7143 8.79324 77.4423 8.63924 78.3383 8.63924ZM79.8783 12.7272L78.3523 12.7692C76.9943 12.7972 76.3223 13.2732 76.3223 14.1692C76.3223 14.4492 76.4343 14.6732 76.6723 14.8552C76.8963 15.0372 77.2043 15.1352 77.5823 15.1352C78.2123 15.1352 78.7443 14.9392 79.1923 14.5612C79.6403 14.1832 79.8783 13.7072 79.8783 13.1472V12.7272ZM87.513 5.88124C88.787 5.88124 89.795 6.16124 90.537 6.74924C91.251 7.30924 91.699 8.13524 91.881 9.25524H90.341C90.201 8.58324 89.893 8.07924 89.417 7.74324C88.941 7.39324 88.297 7.22524 87.513 7.22524C86.547 7.22524 85.777 7.54724 85.203 8.21924C84.587 8.91924 84.293 9.88524 84.293 11.1172C84.293 12.3212 84.559 13.2452 85.119 13.8892C85.707 14.5892 86.631 14.9392 87.877 14.9392C88.367 14.9392 88.829 14.8692 89.263 14.7572C89.683 14.6452 90.047 14.4772 90.383 14.2672V12.0972H87.625V10.7952H91.909V14.9952C91.391 15.4012 90.789 15.7092 90.103 15.9332C89.375 16.1572 88.577 16.2692 87.709 16.2692C86.113 16.2692 84.881 15.7652 83.999 14.7572C83.173 13.8192 82.767 12.6012 82.767 11.1172C82.767 9.61924 83.173 8.38724 83.999 7.42124C84.867 6.38524 86.043 5.88124 87.513 5.88124ZM93.7417 6.07724H97.8857C100.266 6.07724 101.456 7.08524 101.456 9.11524C101.456 11.1592 100.252 12.1812 97.8577 12.1812H95.2677V16.0732H93.7417V6.07724ZM95.2677 7.37924V10.8792H97.7597C98.5157 10.8792 99.0617 10.7392 99.4117 10.4592C99.7477 10.1792 99.9297 9.73124 99.9297 9.11524C99.9297 8.49924 99.7477 8.05124 99.3977 7.79924C99.0477 7.51924 98.5017 7.37924 97.7597 7.37924H95.2677ZM102.105 6.07724H110.295V7.37924H106.963V16.0732H105.451V7.37924H102.105V6.07724Z" fill="white"></path><defs><radialGradient id="paint0_radial_3275_99396" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(18.3917 9.75161) rotate(90) scale(12.3957)"><stop stop-color="#582AFF"></stop><stop offset="1" stop-color="#582AFF" stop-opacity="0"></stop></radialGradient><linearGradient id="paint1_linear_3275_99396" x1="8.37635" y1="1.52165" x2="19.1719" y2="7.92579" gradientUnits="userSpaceOnUse"><stop offset="0.15027" stop-color="#5329EA" stop-opacity="0"></stop><stop offset="1" stop-color="#5027E4" stop-opacity="0.82"></stop></linearGradient></defs>',5),O=[I],P=H({__name:"LogoWhite",setup(k){return(p,c)=>(v(),w("svg",A,O))}}),W={class:"login"},D={class:"loginbg"},j=l("div",{class:"title"},"MetaGPT",-1),J={class:"loginform"},K={style:{width:"418px"}},Q={class:"formTitle"},X={class:"toolBoxBtn"},Y={class:"desc"},o1=H({__name:"login",setup(k){const p=b(),c=_(),C=x({username:"",password:""}),d=_(!1),M=S(()=>({username:[{required:!0,message:h("请输入用户名")}],password:[{required:!0,message:h("请输入密码")}]})),{setToken:y,getToken:Z}=R(),u=_(!1),$=async()=>{var m;if(u.value||await((m=c.value)==null?void 0:m.validate()))return;u.value=!0;const{isRequestSuccess:o,showRequestErrorMessage:r,data:B}=await q({account:C.username,password:C.password});if(u.value=!1,!o){r();return}y(B.token),p.replace({name:V.home})};return F(()=>{Z()&&p.replace({name:V.home})}),(a,o)=>(v(),w("div",W,[l("div",D,[s(P,{class:"logiWhite"}),j]),l("div",J,[l("div",K,[s(e(z),{ref_key:"formRef",ref:c,model:e(C),rules:e(M)},{default:t(()=>[s(e(f),{"hide-label":""},{default:t(()=>[l("div",Q,i(a.$t("账号登录")),1)]),_:1}),s(e(f),{"hide-label":"",field:"username"},{default:t(()=>[s(e(L),{modelValue:e(C).username,"onUpdate:modelValue":o[0]||(o[0]=r=>e(C).username=r),placeholder:a.$t("用户名/邮箱"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(f),{"hide-label":"",field:"password"},{default:t(()=>[s(e(L),{modelValue:e(C).password,"onUpdate:modelValue":o[1]||(o[1]=r=>e(C).password=r),type:"password",placeholder:a.$t("密码"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(G),{type:"primary",long:"",size:"large",disabled:!e(d),loading:e(u),onClick:$},{default:t(()=>[n(i(a.$t("登录")),1)]),_:1},8,["disabled","loading"]),s(e(N),{class:"spaceBTW toolBox",fill:""},{default:t(()=>[l("span",X,i(a.$t("忘记密码")),1)]),_:1}),l("div",null,[s(e(E),{modelValue:e(d),"onUpdate:modelValue":o[2]||(o[2]=r=>T(d)?d.value=r:null)},{default:t(()=>[l("div",Y,[n(i(a.$t("登录或完成注册即代表你同意")),1),s(e(g),null,{default:t(()=>[n(i(a.$t("用户协议")),1)]),_:1}),n(" "+i(a.$t("和"))+" ",1),s(e(g),null,{default:t(()=>[n(i(a.$t("隐私政策")),1)]),_:1})])]),_:1},8,["modelValue"])])]),_:1},8,["model","rules"])])])]))}});export{o1 as default};
metagpt/static/assets/{style-0c1bae8d.css → style-df8dc071.css} RENAMED
The diff for this file is too large to render. See raw diff
 
metagpt/static/index.html CHANGED
@@ -6,11 +6,11 @@
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <link rel="shortcut icon" href="/static/assets/favicon-beef0aa9.ico" type="image/x-icon" />
8
  <title>meta-gpt</title>
9
- <script type="module" crossorigin src="/static/assets/index-8383ce54.js"></script>
10
  <link rel="modulepreload" crossorigin href="/static/assets/vue-e0bc46a9.js">
11
  <link rel="modulepreload" crossorigin href="/static/assets/__commonjsHelpers__-042e6b4d.js">
12
  <link rel="modulepreload" crossorigin href="/static/assets/vendor-4cd7d240.js">
13
- <link rel="stylesheet" href="/static/assets/style-0c1bae8d.css">
14
  </head>
15
 
16
  <body>
 
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <link rel="shortcut icon" href="/static/assets/favicon-beef0aa9.ico" type="image/x-icon" />
8
  <title>meta-gpt</title>
9
+ <script type="module" crossorigin src="/static/assets/index-2bd3402c.js"></script>
10
  <link rel="modulepreload" crossorigin href="/static/assets/vue-e0bc46a9.js">
11
  <link rel="modulepreload" crossorigin href="/static/assets/__commonjsHelpers__-042e6b4d.js">
12
  <link rel="modulepreload" crossorigin href="/static/assets/vendor-4cd7d240.js">
13
+ <link rel="stylesheet" href="/static/assets/style-df8dc071.css">
14
  </head>
15
 
16
  <body>