Rebuilds apps/api/release, apps/user-app/dist and apps/user-app-v2/dist
from b3dae57 (login code without the ~15s wait, no wage-quote loop).
The admin panel is unchanged and not rebuilt.
Co-authored-by: Cursor <cursoragent@cursor.com>
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{P as x}from"./PageBar-Cr7g3ExH.js";import{d as p,b as o,c as r,q as n,m as i,G as P,H as S,J as k,n as b,K as B,M as _,D as v,g as y,h as u,x as E,N as L,O as C,z as d,F as N,r as $,i as A,B as F,_ as V}from"./index-Dj-zFcSq.js";import{S as D}from"./SectionHead-BUIFj68E.js";import{P as H}from"./ProductCard-KJNEeFjH.js";const I={class:"flex justify-center items-center empty"},z=p({__name:"EmptyState",props:{description:{},image:{}},setup(e){return(t,a)=>(o(),r("div",I,[n(i(P),{description:"موردی یافت نشد",image:e.image,class:"h-[200px] w-[200px] opacity-70"},null,8,["image"])]))}}),G="/assets/favoritEmpty-kbtPAdi5.svg",M=p({__name:"ScrollFetchSearch",props:{loading:{type:Boolean},flag:{type:Boolean},padding:{}},emits:["fetch"],setup(e,{emit:t}){const a=t,l=S(),s=u(null);return k(s,()=>{a("fetch")},{distance:50}),(c,f)=>(o(),r("main",{class:"flex flex-col flex-1 overflow-auto no-scrollbar w-[100vw] max-w-screen-md m-auto",style:b({paddingTop:e.padding||i(l).headerHeight+"px"}),ref_key:"scrollArea",ref:s},[B(c.$slots,"default"),n(_,{cls:"my-[10px]",spinning:e.loading,indicator:!0,tip:"درحال دریافت اطلاعات"},null,8,["spinning"]),e.flag?(o(),v(z,{key:0,image:i(G)},null,8,["image"])):y("",!0)],4))}});function T(){const e=L({totalPages:0,productList:[],flag:!1});return{productsData:e,getProducts:async(a,l=!1)=>{if(!l){a.value=!0;try{e.productList=await E.listProducts(),e.flag=e.productList.length<1}catch(s){console.log(s)}finally{a.value=!1}}}}}const j={class:"newest"},q={key:0,class:"newest__grid"},g=20,J=p({__name:"NewestView",setup(e){const{productsData:t,getProducts:a}=T(),l=u(!1),s=u(!1),c=u(g),f=A(()=>t.productList.slice(0,c.value));C(async()=>{await a(l,!1)});const h=async()=>{if(c.value<t.productList.length){c.value+=g;return}await a(s,!0)};return(K,O)=>{const w=F("container");return o(),r("div",j,[n(x,{title:"جدیدترین محصولات","back-to":"home"}),n(_,{spinning:l.value,tip:"درحال دریافت اطلاعات"},{default:d(()=>[n(M,{class:"newest__scroll",loading:s.value,flag:i(t).flag,padding:"0px",onFetch:h},{default:d(()=>[n(w,{class:"newest__body"},{default:d(()=>[n(D,{title:"تازهها",subtitle:"آخرین افزودههای مجموعه"}),i(t).productList.length?(o(),r("div",q,[(o(!0),r(N,null,$(f.value,m=>(o(),v(H,{key:m.id,value:m},null,8,["value"]))),128))])):y("",!0)]),_:1})]),_:1},8,["loading","flag"])]),_:1},8,["spinning"])])}}}),W=V(J,[["__scopeId","data-v-222395fd"]]);export{W as default};
|