Files
tehran_taj/apps/admin-panel/dist/assets/myData-BU0yMXzV.js
T
mahmoodandClaude Sonnet 5.5 5ddb225813 fix(ui): act-as strip no longer covers headers; customer type and slider permission
- apps: the fixed «در حال مشاهده به‌عنوان» strip (38px) sat over the fixed page
  headers, which still sat at top: 0 (the old 30px body padding was shorter than
  the strip too). The strip's height is now one variable, --aab-h, that the
  fixed headers (PageBar, home, dashboard, toasts) use as their top.
- admin: the customer form offers only «مغازه دار اپلیکیشن» to anyone but the
  super admin; bankers and walk-in shopkeepers are listed by super-admin-only
  endpoints, so ordinary admins lost the customers they created under them.
- admin: the mobile slider rid (custom.config.statics.slider) was only under the
  «سفارشی» branch, which the permission screen hides outside level 104. Same rid,
  now listed under «مدیریت ثابت ها». Display only: the slider routes are still
  gated by config.statics.

Rebuilds admin-panel, user-app and user-app-v2 dist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 11:16:23 +03:30

2 lines
1.1 KiB
JavaScript

import{u as x}from"./auth-BB1QmSNz.js";import{d as v,x as y,y as h,a as b,w as t,m as g,r as u,o as w,c as s,f as n,t as c,s as m}from"./index-D8Sl1lAu.js";const B=v({__name:"myData",setup(C){const d=x(),_=g(null),o=m(()=>_.value??d.user),i=m(()=>{var a,r;return(r=(a=o.value)==null?void 0:a.user_type)==null?void 0:r.title});return y(async()=>{try{const{data:a}=await h.get("admin/users/me");_.value=a}catch(a){console.log(a)}}),(a,r)=>{const l=u("a-descriptions-item"),p=u("a-descriptions"),f=u("a-card");return w(),b(f,{title:"اطلاعات کاربری",class:"page-card"},{default:t(()=>[s(p,{column:{xxl:3,xl:3,lg:3,md:2,sm:2,xs:1}},{default:t(()=>[s(l,{label:"نام"},{default:t(()=>{var e;return[n(c(((e=o.value)==null?void 0:e.fname)||"-"),1)]}),_:1}),s(l,{label:"نام خانوادگی"},{default:t(()=>{var e;return[n(c(((e=o.value)==null?void 0:e.lname)||"-"),1)]}),_:1}),s(l,{label:"شماره تلفن"},{default:t(()=>{var e;return[n(c(((e=o.value)==null?void 0:e.mobile)||"-"),1)]}),_:1}),s(l,{label:"نوع کاربری"},{default:t(()=>[n(c(i.value||"آنلاین"),1)]),_:1})]),_:1})]),_:1})}}});export{B as default};