PageSourceSearch

https://tvspektrum.cz/build/assets/Index-DghIWSrt.js

js tvspektrum.cz collected 2026-10-07 19:27:39 UTC 2,332 bytes, 1 lines download raw bytes

1import{d,c as f,w as b,o as t,a as e,e as s,h as g,F as v,b as u,m as x,v as _,n as y,f as m,N as w,t as h}from"./app-GYzGmuSI.js";import{_ as k}from"./AppLayout-CWz5USgu.js";import{P as N}from"./Plus-Cn8iDiBR.js";import{C}from"./Cancel-Bv6wnw5l.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./DropdownLink-DufrpttY.js";import"./Composables-BwLh971f.js";import"./RecipeList-C_W2Mw63.js";import"./Footer-CNVwS0s3.js";const B={class:"w-3/4 p-4 mx-auto mt-5 rounded w-md-1/2"},E={class:"justify-items-center"},F={class:"table-auto w-full border-collapse rounded-t-lg overflow-hidden shadow-lg glass-bg"},I={class:"p-2"},V={key:2,class:"mb-4 p-4 border border-gray-300 rounded bg-gray-100"},P={key:0,class:"text-red-600"},D={__name:"Index",props:{permissions:Array},setup(c){const r=d(!1),a=d(""),l=d(!1),i=()=>{r.value=!r.value},p=()=>{w.post(route("permissions.store"),{name:a.value},{onSuccess:()=>{a.value="",r.value=!1,l.value=!1},onError:()=>{l.value=!0}})};return(J,o)=>(t(),f(k,{title:"Jogosultságok"},{default:b(()=>[e("div",B,[e("div",E,[e("table",F,[o[1]||(o[1]=e("thead",null,[e("tr",{class:"text-slate-900 bg-slate-200"},[e("th",null,"Név")])],-1)),e("tbody",null,[(t(!0),s(v,null,g(c.permissions,n=>(t(),s("tr",{key:n.name,class:"text-slate-900 font-bold"},[e("td",I,h(n.name),1)]))),128))])])]),r.value?(t(),s("button",{key:0,onClick:i,class:"rounded-full p-[6px] my-2 text-slate-100 bg-gradient-to-r from-yellow-500 to-yellow-700 text-sm w-fit drop-shadow icon"},[u(C)])):(t(),s("button",{key:1,onClick:i,class:"rounded-full p-[6px] my-2 text-slate-100 bg-gradient-to-r from-blue-500 to-blue-700 text-sm w-fit drop-shadow icon"},[u(N)])),r.value?(t(),s("div",V,[o[2]||(o[2]=e("label",{for:"permissionName",class:"block text-gray-700 font-bold mb-2"},"Jogosultság neve:",-1)),x(e("input",{"onUpdate:modelValue":o[0]||(o[0]=n=>a.value=n),type:"text",id:"permissionName",class:y(["w-full p-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500",l.value?"border-red-500":"border-gray-400"])},null,2),[[_,a.value]]),l.value?(t(),s("p",P,"Ez a mező kötelező.")):m("",!0),e("button",{onClick:p,class:"mt-2 px-4 py-2 bg-green-500 text-white rounded hover:bg-green-600 transition"}," Mentés ")])):m("",!0)])]),_:1}))}},G=z(D,[["__scopeId","data-v-67702e9f"]]);export{G 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.