Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 50s
更新了前端构建产物包括JavaScript、CSS和HTML文件,主要涉及以下变更: 1. 新增了多个组件和工具函数,包括异常页面组件、iframe组件等 2. 更新了活动管理、产品管理、优惠券管理等业务模块 3. 优化了构建配置和依赖管理 4. 修复了一些样式和功能问题 5. 更新了测试相关文件 同时更新了部分后端服务接口和测试用例。这些变更主要是为了支持新功能和改进现有功能的用户体验。
2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,i=(e,t)=>{for(var s in t||(t={}))l.call(t,s)&&o(e,s,t[s]);if(a)for(var s of a(t))r.call(t,s)&&o(e,s,t[s]);return e},n=(e,a)=>t(e,s(a));import{d as u,e as d,t as p,r as c,f as m,n as g,g as v,c as h,a as f,o as x,h as y,i as b,j as w,k,l as _,m as j,p as B,q as M,b as P,s as T,v as E,x as $,y as O,z as I,A as V,B as F,C as L,E as R,D as z,F as C,G as S,w as A,H as U,I as X,J as D,K as N,L as q,M as H,N as K,O as Y,P as G,Q as J,R as Q,S as W,T as Z}from"./index-BeZn6wgH.js";/* empty css *//* empty css *//* empty css */import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang-BQI7d56A.js";import{_ as te}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as se,a as ae}from"./LoginLeftView-CSOU4vG6.js";import{M as le}from"./md5-CVAokE_s.js";import{E as re,a as oe}from"./index-Dn4yxdMr.js";import{E as ie,a as ne}from"./index-B43cMk6T.js";import{E as ue}from"./index-BtwYQklV.js";import"./el-dropdown-item-D3gOKOyu.js";import"./index-CnhjG_Ys.js";import"./index-A3hG-0VQ.js";import"./index-DC47MImW.js";import"./index-s8Fl0Qzt.js";import"./castArray-BakW2F2h.js";import"./refs-Cw5r5QN8.js";import"./useHeaderBar-_gW4JOkk.js";import"./index-ClC46U48.js";import"./_initCloneObject-BHiCRTfC.js";import"./index-rM5MDBEe.js";import"./token-DWNpOE8r.js";import"./debounce-C7sIggI-.js";import"./_baseIteratee-sVeOpCU9.js";import"./index-DZdoPtEQ.js";const de=te(u(n(i({},{name:"ArtDragVerify"}),{__name:"index",props:{value:{type:Boolean,default:!1},width:{default:"100%"},height:{default:40},text:{default:"按住滑块拖动"},successText:{default:"success"},background:{default:"#eee"},progressBarBg:{default:"#1385FF"},completedBg:{default:"#57D187"},circle:{type:Boolean,default:!1},radius:{default:"calc(var(--custom-radius) / 3 + 2px)"},handlerIcon:{default:"solar:double-alt-arrow-right-linear"},successIcon:{default:"ri:check-fill"},handlerBg:{default:"#fff"},textSize:{default:"13px"},textColor:{default:"#333"}},emits:["handlerMove","update:value","passCallback"],setup(e,{expose:t,emit:s}){const a=s,l=e,r=d({isMoving:!1,x:0,isOk:!1}),{isOk:o}=p(r),i=c(),n=c(),u=c(),T=c();let E,$,O,I;const V=e=>{E=e.targetTouches[0].pageX,$=e.targetTouches[0].pageY},F=e=>{O=e.targetTouches[0].pageX,I=e.targetTouches[0].pageY,Math.abs(O-E)>Math.abs(I-$)&&e.preventDefault()};document.addEventListener("touchstart",V),document.addEventListener("touchmove",F,{passive:!1});const L=()=>{var e;return"string"==typeof l.width?(null==(e=i.value)?void 0:e.offsetWidth)||260:l.width};m(()=>{var e;null==(e=i.value)||e.style.setProperty("--textColor",l.textColor),g(()=>{var e,t;const s=L();null==(e=i.value)||e.style.setProperty("--width",Math.floor(s/2)+"px"),null==(t=i.value)||t.style.setProperty("--pwidth",-Math.floor(s/2)+"px")}),document.addEventListener("touchstart",V),document.addEventListener("touchmove",F,{passive:!1})}),v(()=>{document.removeEventListener("touchstart",V),document.removeEventListener("touchmove",F)});const R={left:"0",width:l.height+"px",height:l.height+"px",background:l.handlerBg},z=h(()=>({width:"string"==typeof l.width?l.width:l.width+"px",height:l.height+"px",lineHeight:l.height+"px",background:l.background,borderRadius:l.circle?l.height/2+"px":l.radius})),C={background:l.progressBarBg,height:l.height+"px",borderRadius:l.circle?l.height/2+"px 0 0 "+l.height/2+"px":l.radius},S=h(()=>({fontSize:l.textSize})),A=h(()=>l.value?l.successText:l.text),U=e=>{l.value||(r.isMoving=!0,u.value.style.transition="none",r.x=(e.pageX||e.touches[0].pageX)-parseInt(u.value.style.left.replace("px",""),10)),a("handlerMove")},X=e=>{if(r.isMoving&&!l.value){const t=L();let s=(e.pageX||e.touches[0].pageX)-r.x;s>0&&s<=t-l.height?(u.value.style.left=s+"px",T.value.style.width=s+l.height/2+"px"):s>t-l.height&&(u.value.style.left=t-l.height+"px",T.value.style.width=t-l.height/2+"px",N())}},D=e=>{if(r.isMoving&&!l.value){const t=L();(e.pageX||e.changedTouches[0].pageX)-r.x<t-l.height?(r.isOk=!0,u.value.style.left="0",u.value.style.transition="all 0.2s",T.value.style.width="0",r.isOk=!1):(u.value.style.transition="none",u.value.style.left=t-l.height+"px",T.value.style.width=t-l.height/2+"px",N()),r.isMoving=!1}},N=()=>{a("update:value",!0),r.isMoving=!1,T.value.style.background=l.completedBg,n.value.style["-webkit-text-fill-color"]="unset",n.value.style.animation="slidetounlock2 2s cubic-bezier(0, 0.2, 1, 1) infinite",n.value.style.color="#fff",a("passCallback")};return t({reset:()=>{u.value.style.left="0",T.value.style.width="0",T.value.style.background=l.progressBarBg,n.value.style["-webkit-text-fill-color"]="transparent",n.value.style.animation="slidetounlock 2s cubic-bezier(0, 0.2, 1, 1) infinite",n.value.style.color=l.background,a("update:value",!1),r.isOk=!1,r.isMoving=!1,r.x=0}}),(t,s)=>{const a=ee;return x(),f("div",{ref_key:"dragVerify",ref:i,class:"drag_verify",style:y(b(z)),onMousemove:X,onMouseup:D,onMouseleave:D,onTouchmove:X,onTouchend:D},[w("div",{class:k(["dv_progress_bar",{goFirst2:b(o)}]),ref_key:"progressBar",ref:T,style:C},null,2),w("div",{class:"dv_text",style:y(b(S)),ref_key:"messageRef",ref:n},[t.$slots.textBefore?_(t.$slots,"textBefore",{key:0},void 0,!0):j("",!0),B(" "+M(b(A))+" ",1),t.$slots.textAfter?_(t.$slots,"textAfter",{key:1},void 0,!0):j("",!0)],4),w("div",{class:k(["dv_handler dv_handler_bg",{goFirst:b(o)}]),onMousedown:U,onTouchstart:U,ref_key:"handler",ref:u,style:R},[P(a,{icon:e.value?e.successIcon:e.handlerIcon,class:"text-g-600"},null,8,["icon"])],34)],36)}}})),[["__scopeId","data-v-471ea464"]]),pe={class:"flex w-full h-screen"},ce={class:"relative flex-1"},me={class:"auth-right-wrap"},ge={class:"form"},ve={class:"title"},he={class:"sub-title"},fe={class:"relative pb-5 mt-6"},xe={class:"flex-cb mt-2 text-sm"},ye={style:{"margin-top":"30px"}},be={class:"mt-5 text-sm text-gray-600"},we=te(u(n(i({},{name:"Login"}),{__name:"index",setup(e){const t=T(),{isDark:s}=E(t),{t:a,locale:l}=$(),r=c(0);O(l,()=>{r.value++});const o=h(()=>[{key:"super",label:a("login.roles.super"),userName:"Super",password:"123456",roles:["R_SUPER"]},{key:"admin",label:a("login.roles.admin"),userName:"Admin",password:"123456",roles:["R_ADMIN"]},{key:"user",label:a("login.roles.user"),userName:"User",password:"123456",roles:["R_USER"]}]),i=c(),n=I(),u=V(),p=c(!1),g=c(!1),v=F.systemInfo.name,y=c(),_=d({account:"",username:"",password:"",rememberPassword:!0}),j=h(()=>({username:[{required:!0,message:a("login.placeholder.username"),trigger:"blur"}],password:[{required:!0,message:a("login.placeholder.password"),trigger:"blur"}]})),ee=c(!1),te=L(),we=h(()=>te.query.redirect),ke=h(()=>we.value&&"/auth/login"!==we.value);m(()=>{_e("super"),ke.value&&R({title:a("login.sessionExpired.title"),message:a("login.sessionExpired.message"),type:"warning",duration:5e3,zIndex:1e4})});const _e=e=>{var t,s;const a=o.value.find(t=>t.key===e);_.account=e,_.username=null!=(t=null==a?void 0:a.userName)?t:"",_.password=null!=(s=null==a?void 0:a.password)?s:""},je=()=>{return e=this,t=null,s=function*(){if(y.value)try{if(!(yield y.value.validate()))return;if(!p.value)return void(g.value=!0);ee.value=!0;const{username:e,password:t}=_,{token:s,is_super:a}=yield J({userName:e,password:le(t).toString()});if(!s)throw new Error("Login failed - no token received");n.setToken(s);const l=yield Q();n.setUserInfo(l),n.setLoginStatus(!0),Me(),we.value&&"/auth/login"!==we.value?u.push(we.value):u.push("/")}catch(e){e instanceof W?401===e.code||e.code:Z.error("登录失败,请稍后重试")}finally{ee.value=!1,Be()}},new Promise((a,l)=>{var r=e=>{try{i(s.next(e))}catch(t){l(t)}},o=e=>{try{i(s.throw(e))}catch(t){l(t)}},i=e=>e.done?a(e.value):Promise.resolve(e.value).then(r,o);i((s=s.apply(e,t)).next())});var e,t,s},Be=()=>{i.value.reset()},Me=()=>{setTimeout(()=>{R({title:a("login.success.title"),type:"success",duration:2500,zIndex:1e4,message:`${a("login.success.message")}, ${v}!`})},150)};return(e,t)=>{const a=se,l=ae,n=ne,u=ie,d=re,c=D,m=de,v=ue,h=z("RouterLink"),T=K,E=oe,$=C("ripple");return x(),f("div",pe,[P(a),w("div",ce,[P(l),w("div",me,[w("div",ge,[w("h3",ve,M(e.$t("login.title")),1),w("p",he,M(e.$t("login.subTitle")),1),(x(),S(E,{ref_key:"formRef",ref:y,model:b(_),rules:b(j),key:b(r),onKeyup:G(Y(je,["prevent"]),["enter"]),style:{"margin-top":"25px"}},{default:A(()=>[P(d,{prop:"account"},{default:A(()=>[P(u,{modelValue:b(_).account,"onUpdate:modelValue":t[0]||(t[0]=e=>b(_).account=e),onChange:_e},{default:A(()=>[(x(!0),f(U,null,X(b(o),e=>(x(),S(n,{key:e.key,label:e.label,value:e.key},{default:A(()=>[w("span",null,M(e.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),P(d,{prop:"username"},{default:A(()=>[P(c,{class:"custom-height",placeholder:e.$t("login.placeholder.username"),modelValue:b(_).username,"onUpdate:modelValue":t[1]||(t[1]=e=>b(_).username=e),modelModifiers:{trim:!0}},null,8,["placeholder","modelValue"])]),_:1}),P(d,{prop:"password"},{default:A(()=>[P(c,{class:"custom-height",placeholder:e.$t("login.placeholder.password"),modelValue:b(_).password,"onUpdate:modelValue":t[2]||(t[2]=e=>b(_).password=e),modelModifiers:{trim:!0},type:"password",autocomplete:"off","show-password":""},null,8,["placeholder","modelValue"])]),_:1}),w("div",fe,[w("div",{class:k(["relative z-[2] overflow-hidden select-none rounded-lg border border-transparent tad-300",{"!border-[#FF4E4F]":!b(p)&&b(g)}])},[P(m,{ref_key:"dragVerify",ref:i,value:b(p),"onUpdate:value":t[3]||(t[3]=e=>q(p)?p.value=e:null),text:e.$t("login.sliderText"),textColor:"var(--art-gray-700)",successText:e.$t("login.sliderSuccessText"),progressBarBg:b(N)("--el-color-primary"),background:b(s)?"#26272F":"#F1F1F4",handlerBg:"var(--default-box-color)"},null,8,["value","text","successText","progressBarBg","background"])],2),w("p",{class:k(["absolute top-0 z-[1] px-px mt-2 text-xs text-[#f56c6c] tad-300",{"translate-y-10":!b(p)&&b(g)}])},M(e.$t("login.placeholder.slider")),3)]),w("div",xe,[P(v,{modelValue:b(_).rememberPassword,"onUpdate:modelValue":t[4]||(t[4]=e=>b(_).rememberPassword=e)},{default:A(()=>[B(M(e.$t("login.rememberPwd")),1)]),_:1},8,["modelValue"]),P(h,{class:"text-theme",to:{name:"ForgetPassword"}},{default:A(()=>[B(M(e.$t("login.forgetPwd")),1)]),_:1})]),w("div",ye,[H((x(),S(T,{class:"w-full custom-height",type:"primary",onClick:Y(je,["prevent"]),loading:b(ee)},{default:A(()=>[B(M(e.$t("login.btnText")),1)]),_:1},8,["loading"])),[[$]])]),w("div",be,[w("span",null,M(e.$t("login.noAccount")),1),P(h,{class:"text-theme",to:{name:"Register"}},{default:A(()=>[B(M(e.$t("login.register")),1)]),_:1})])]),_:1},8,["model","rules","onKeyup"]))])])])])}}})),[["__scopeId","data-v-e3d6febd"]]);export{we as default};
|