PageSourceSearch

https://sara-school.netlify.app/assets/NoticePage-DmOGk_rO.js

js sara-school.netlify.app collected 2026-10-03 11:22:13 UTC 1,829 bytes, 1 lines download raw bytes

1import{_ as N,F as S,r as v,o as b,I as w,J as r,K as d,L as s,a0 as I,a1 as f,U as C,V as e,P as p,T as Q,R as B,S as P,N as i,M as x,a2 as R,Y as k,Z as D}from"./index-DmMWFTlW.js";import{Q as L}from"./QInnerLoading-dtZQza8j.js";import{Q as V}from"./QPage-B13jEZvj.js";const u=o=>(k("data-v-31eccb3e"),o=o(),D(),o),A=u(()=>e("div",{class:"text-2xl"},"Notice Board",-1)),T={class:"row q-col-gutter-x-md"},q={class:"border"},F={class:"text-primary text-xl"},M=u(()=>e("br",null,null,-1)),U={class:"mb-5"},$={class:"space-x-2"},G=u(()=>e("b",null,"By:",-1)),j=u(()=>e("b",null,"Date:",-1)),E={key:0,class:"text-center text-grey-7"},J={__name:"NoticePage",setup(o){const _=S(),c=v([]),l=v(!0),y=async()=>{l.value=!0;const n=_.getUserRole,g=_.getSchoolCode;let t="";n==="Teacher"?t="Teacher":n==="Student"?t=_.getClass:t="All";const m=`api/GetNewsPort/Getnews/${n}/${g}/${t}`;console.log("Requesting URL:",m);try{const{data:a}=await R.get(m);c.value=a||[],console.log("Received data:",a),console.log("Is data an array?",Array.isArray(a))}catch(a){console.error("Failed to fetch notices:",a),c.value=[]}finally{l.value=!1}};return b(()=>{y()}),(n,g)=>(r(),w(V,{padding:""},{default:d(()=>[s(I,null,{default:d(()=>[s(f,{class:"md:flex"},{default:d(()=>[A]),_:1}),s(C),s(f,null,{default:d(()=>[e("div",T,[(r(!0),p(B,null,P(c.value,(t,h)=>(r(),p("div",{class:"col-md-6 q-mb-md",key:h},[e("div",q,[e("div",F,i(t.subjectMessage),1),M,e("div",U,[e("span",null,i(t.messagedetail),1)]),e("div",$,[e("span",null,[G,x(" "+i(t.creator_id),1)]),e("span",null,[j,x(" "+i(new Date(t.createDate).toLocaleDateString()),1)])])])]))),128))]),!l.value&&c.value.length===0?(r(),p("div",E," No notices found. ")):Q("",!0)]),_:1}),s(L,{showing:l.value},null,8,["showing"])]),_:1})]),_:1}))}},z=N(J,[["__scopeId","data-v-31eccb3e"]]);export{z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.