Files
tehran_tala/apps/admin-panel/dist/assets/user-CpbQxxBB.js
T
s.esmaeiliandClaude Opus 5.5 1bc3739e78 Merge release/delivery (IAM single sign-on) into the triage work
Brings the four release/delivery commits (IAM SSO for the admin panel,
both apps and the API; IAM env in docker-compose) onto fix/issues-triage.

Conflicts:
- customer-auth.service.ts imports: both kept.
- both apps' api/client.ts: both kept (AccountingBalance/WageQuote, and
  iamAppUrl).
- all build output (admin-panel, user-app, user-app-v2 dist, and the api
  release bundle): rebuilt from the merged source instead of picking a
  side.

Fixed while verifying:
- The IAM change calls iam.browserBootstrapUrl after every login, but
  the identity-service stand-ins in three test files lacked it. 15 tests
  failed on release/delivery itself.
- SMS relay: SMS_RELAY_PLATFORM was read but never sent, so the gateway
  never got `platform` (documented body: phone, host, text, platform).
  relayConfig() now returns it ("default" → null) and the request carries
  it. sms.service.spec now passes.

All 249 API tests pass; the three front-ends type-check and build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 09:03:53 +03:30

2 lines
2.9 KiB
JavaScript

import{a as R,b as f,X as D}from"./model-CvqTGmy8.js";import{d as M,a as v,w as t,r as n,o as r,c as a,h as x,T as O,b as y,f as l,t as c,F as w,i as U,l as b,x as C,z as g}from"./index-CVG99b4v.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./filters-UavLT20t.js";import"./index-pLFqZCCf.js";import"./SettingOutlined-D7--Xtqg.js";function q(){const i=new R("admin/misc/notify/list","لیست نوتیفیکیشن های دریافتی");return i.add(new f("id","شماره")),i.add(new f("title","عنوان")),i.add(new f("text","متن").noSort()),i.add(new f("opt","عملیات").noSort().renderSlot("opt")),i.noFilters(),i}const A={key:0},G=M({__name:"user",setup(i){const z=q(),I=b(null),_=b(!1),o=b(void 0),S=[{title:"مشتری",dataIndex:"customer"},{title:"وضعیت",dataIndex:"is_read"}];async function $(u){const{data:e}=await C.get(`notify/${u.id}`);o.value=e,_.value=!0}async function N(u){var e,m;try{await C.get(`notify/read/${u.id}`),u.is_read=!0,o.value&&(o.value.read_count+=1),g.success("علامت‌گذاری شد")}catch(s){g.error(((m=(e=s==null?void 0:s.response)==null?void 0:e.data)==null?void 0:m.message)??"خطا")}}return(u,e)=>{const m=n("a-tooltip"),s=n("a-descriptions-item"),T=n("a-descriptions"),X=n("a-tag"),k=n("a-button"),B=n("a-table"),F=n("a-empty"),V=n("a-modal"),E=n("a-card");return r(),v(E,{title:"لیست نوتیفیکیشن های دریافتی"},{default:t(()=>[a(D,{ref_key:"tbl",ref:I,model:x(z)},{opt:t(({record:d})=>[a(m,{title:"مشاهده"},{default:t(()=>[a(x(O),{class:"cursor-pointer mx-1 text-primary",onClick:p=>$(d)},null,8,["onClick"])]),_:2},1024)]),_:1},8,["model"]),a(V,{open:_.value,"onUpdate:open":e[1]||(e[1]=d=>_.value=d),title:"مشاهده نوتیفیکیشن",width:"60%"},{footer:t(()=>[a(k,{onClick:e[0]||(e[0]=d=>_.value=!1)},{default:t(()=>[...e[4]||(e[4]=[l("بستن",-1)])]),_:1})]),default:t(()=>[o.value?(r(),y("div",A,[a(T,{bordered:"",size:"small",column:1},{default:t(()=>[a(s,{label:"عنوان"},{default:t(()=>[l(c(o.value.title),1)]),_:1}),a(s,{label:"متن"},{default:t(()=>[l(c(o.value.body),1)]),_:1}),a(s,{label:"ارسال کننده"},{default:t(()=>[l(c(o.value.sender??"-"),1)]),_:1}),a(s,{label:"خوانده شده"},{default:t(()=>[l(c(o.value.read_count)+" از "+c(o.value.total_count),1)]),_:1})]),_:1}),a(B,{class:"mt-4",size:"small","data-source":o.value.recipients,columns:S,pagination:{pageSize:10},"row-key":"id"},{bodyCell:t(({column:d,record:p})=>[d.dataIndex==="is_read"?(r(),y(w,{key:0},[p.is_read?(r(),v(X,{key:0,color:"green"},{default:t(()=>[...e[2]||(e[2]=[l("خوانده شده",-1)])]),_:1})):(r(),v(k,{key:1,size:"small",onClick:H=>N(p)},{default:t(()=>[...e[3]||(e[3]=[l("علامت‌گذاری",-1)])]),_:1},8,["onClick"]))],64)):d.dataIndex==="customer"?(r(),y(w,{key:1},[l(c(p.customer.name),1)],64)):U("",!0)]),_:1},8,["data-source"])])):(r(),v(F,{key:1}))]),_:1},8,["open"])]),_:1})}}}),Y=j(G,[["__scopeId","data-v-5ef49344"]]);export{Y as default};