PageSourceSearch

https://intranet.arrossaires.com/build/assets/Show-866f5cf7.js

js arrossaires.com collected 2026-09-24 10:02:16 UTC 2,461 bytes, 1 lines download raw bytes

1import{_ as h}from"./AppLayout-1cfc0b25.js";import{d as g}from"./index-a915e0aa.js";import{d as p,x as y,o as l,c as v,w as m,a as e,b as r,g as b,e as d,h as w,F as k,t as x,f as C}from"./app-f77acba6.js";import"./logo-arrossaires-320e372a.js";import"./_plugin-vue_export-helper-c27b6911.js";/* empty css            */const N={style:{display:"flex","flex-direction":"row",gap:"40px","align-items":"center"}},S={href:"/rols/create",class:"bg-green-500 hover:bg-green-700 text-white font-bold py-1 px-2 rounded"},V={class:"table-container"},B={class:"table-auto w-full border-collapse",style:{"table-layout":"fixed"}},R={class:"px-4 py-2"},$={class:"px-4 py-2",style:{display:"flex",gap:"10px"}},A=["href"],q=["onClick"],E={key:0,class:"confirmation-modal"},F={class:"bg-white w-1/3 mx-auto p-6 rounded-lg"},M={class:"mt-2 text-gray-700"},H={__name:"Show",props:{roles:Array},setup(_){const o=p(null),a=p(!1),n=(c=null)=>{o.value=c,a.value=!a.value},f=()=>{console.log(o.value),o.value&&g.Inertia.delete(`/rols/remove/${o.value.id}`,{onSuccess:()=>{n(),o.value=null}})};return(c,t)=>{const i=y("font-awesome-icon");return l(),v(h,{title:"Roles"},{header:m(()=>[e("div",N,[t[1]||(t[1]=e("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Rols",-1)),e("a",S,[r(i,{icon:"add"}),t[0]||(t[0]=b(" Afegir rol "))])])]),default:m(()=>{var u;return[e("div",null,[e("div",V,[e("table",B,[t[2]||(t[2]=e("thead",{style:{color:"white","font-size":"18px"}},[e("tr",{style:{"background-color":"#00b050"}},[e("th",{class:"px-4 py-2",style:{width:"60%"}},"Nom"),e("th",{class:"px-4 py-2",style:{width:"10%"}},"Accions")])],-1)),e("tbody",null,[(l(!0),d(k,null,w(_.roles,s=>(l(),d("tr",{key:s.id},[e("td",R,x(s.name),1),e("td",$,[e("a",{href:`/rols/show/${s.id}`,class:"text-indigo-600 hover:text-indigo-900"},[r(i,{icon:"edit"})],8,A),e("a",{style:{cursor:"pointer"},onClick:j=>n(s),class:"text-red-600 hover:text-red-900"},[r(i,{icon:"trash"})],8,q)])]))),128))])])]),a.value?(l(),d("div",E,[e("div",F,[t[3]||(t[3]=e("h2",{class:"text-xl font-semibold"},"Estàs segur que vols eliminar aquest rol?",-1)),e("p",M,x((u=o.value)==null?void 0:u.name),1),e("div",{class:"flex justify-end mt-4"},[e("button",{class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded mr-2",onClick:f}," Sí "),e("button",{class:"bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded",onClick:n}," No ")])])])):C("",!0)])]}),_:1})}}};export{H 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.