PageSourceSearch

https://lowiczanin.info/_nuxt/SVh_ITWd.js

js lowiczanin.info collected 2026-09-24 19:47:12 UTC 3,287 bytes, 1 lines download raw bytes

1import t from"./9qViMJ07.js";import{d as s,a,b as e,k as r}from"./Cm2J8wJT.js";import i from"./DJw__Pj3.js";import{ah as l,ak as n,O as u,X as d,J as o,M as c,$ as m,L as h,V as p,U as _,S as g,a4 as y,Q as M}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const b=s({setup:()=>({store:a(),portalId:r().public.portalId}),components:{UserPanelLayout:t,UserMaterialsMenu:i},asyncData:async()=>{let t={};const s=e();return t.path=s.path,t},data:()=>({initialized:!1,material:!1,loading:!1,error:!1,helpers:{error:!1},list:[]}),methods:{getItemStatus(t){let s="";switch(t){case 0:s="NOWY";break;case 1:s="ZAAKCEPTOWANY";break;case 2:s="ODRZUCONY";break;case 3:s="ZAKOŃCZONY"}return s},getItemStatusClass(t){let s="";switch(t){case 0:s="btn-light";break;case 1:s="btn-success";break;case 2:s="btn-danger";break;case 3:s="btn-dark"}return s},async getUserMaterials(){try{const t=this.user.id,s=await $fetch(`/api/userMaterials/${t}`);s&&200===s.status?(0===s.data.length&&this.$router.push("/profil/nagraj-nam-temat/nowy"),this.list=s.data,this.loading=!1):this.error=s.message?`Wystąpił błąd podczas pobierania danych - "${s.message}"`:"Wystąpił nieoczekiwany błąd"}catch(t){this.error=`Wystąpił nieoczekiwany błąd - "${t.message}"`}this.loading=!1}},computed:{user(){return this.store.user},formatedList(){return this.list}},watch:{user:{handler(){this.user&&!this.initialized&&(this.initialized=!0,this.getUserMaterials())}}}},"$Unz5a1xBFJ"),k={class:"userMaterials"},f={class:"userMaterials__list"},v={key:0,class:"text-center"},x={key:1,class:"alert alert-danger text-center"},$={key:2},w={class:"userMaterials__item-title"},j=["href"],z={class:"userMaterials__item-description text-secondary"};const O=l(b,[["render",function(s,a,e,r,i,l){const b=n("UserMaterialsMenu"),O=t;return o(),u(O,null,{default:d((()=>[c("div",k,[m(b,{path:s.path}
1,null,8,["path"]),c("div",f,[s.loading?(o(),h("div",v,a[0]||(a[0]=[c("span",{class:"spinner-border text-secondary",role:"status"},[c("span",{class:"visually-hidden"})],-1),c("br",null,null,-1),c("span",{class:"text-muted userMaterials__load-title"},"Wczytuję listę tematów..",-1)]))):p("",!0),!s.loading&&s.error?(o(),h("div",x,[c("strong",null,_(s.error),1)])):p("",!0),!s.loading&&s.list&&0===s.list.length?(o(),h("div",$,a[1]||(a[1]=[c("div",{class:"alert alert-info text-center"},"Brak wyników listy",-1)]))):p("",!0),!s.loading&&s.list&&s.list.length>0?(o(),h(g,{key:3},[a[2]||(a[2]=c("div",{class:"userMaterials__item userMaterials__head"},[c("div",{class:"userMaterials__item-head text-muted userMaterials__item-title"},"Tytuł"),c("div",{class:"userMaterials__item-head text-muted userMaterials__item-description"},"Opis"),c("div",{class:"userMaterials__item-head text-muted userMaterials__item-status"},"Status")],-1)),(o(!0),h(g,null,y(s.formatedList,((t,a)=>(o(),h("div",{key:`list_item_${a}_${s.page}`,class:"userMaterials__item"},[c("div",w,[c("strong",null,[c("a",{href:`/profil/nagraj-nam-temat/${t.id}`},_(t.title),9,j)])]),c("div",z,_(t.description),1),c("div",{class:M(["userMaterials__item-status",`userMaterials__item-status--${t.status}`])},[c("span",{class:M(s.getItemStatusClass(t.status))},_(s.getItemStatus(t.status)),3)],2)])))),128))],64)):p("",!0)])])])),_:1})}]]);export{O 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.