PageSourceSearch

https://nedelia.lt/build/assets/edit-AVIaHy0K.js

js nedelia.lt collected 2026-10-02 10:37:11 UTC 2,343 bytes, 1 lines download raw bytes

1import{d as v,g as y,b as p,e as d,c as o,p as u,a as t,F as g,I as b,B as k,J as c,r as m,o as i,q as h,s as _}from"./app-0ijXnjiB.js";const w={class:"bg-white dark:bg-gray-900 xl:ml-64"},V={class:"py-8 px-4 max-w-2xl lg:py-16"},B={key:0,class:"flex p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400",role:"alert"},M={class:"mt-1.5 list-disc list-inside"},C={action:"#"},I={class:"flex flex-col gap-16px"},Z=v({__name:"edit",setup(N){y(()=>{x()});const l=m([]),n=m(""),r=m("");function x(){p.get("/api/admin/boards/"+d.currentRoute.value.params.id).then(a=>{n.value=a.data.data.title,r.value=a.data.data.key}).catch(function(a){l.value=a.response.data.errors})}function f(){p.put("/api/admin/boards-update/"+d.currentRoute.value.params.id,{title:n.value,key:r.value,lang:localStorage.getItem("lang")||"lt"}).then(a=>{a.status===200&&d.push({path:"/admin/boards"})}).catch(function(a){l.value=a.response.data.errors})}return(a,e)=>(i(),o(g,null,[u(_),t("section",w,[t("div",V,[e[5]||(e[5]=t("h2",{class:"mb-4 text-xl font-bold text-gray-900 dark:text-white"},"Meniu punkto redagavimas",-1)),Object.keys(l.value).length>0?(i(),o("div",B,[e[3]||(e[3]=t("svg",{class:"flex-shrink-0 inline w-4 h-4 me-3 mt-[2px]","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[t("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})],-1)),e[4]||(e[4]=t("span",{class:"sr-only"},"Danger",-1)),t("div",null,[e[2]||(e[2]=t("span",{class:"font-medium"},"Klaida",-1)),t("ul",M,[(i(!0),o(g,null,b(l.value,s=>(i(),o("li",null,h(s),1))),256))])])])):k("",!0),t("form",C,[t("div",I,[u(c,{label:"Pavadinimas",type:"text",modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=s=>n.value=s)},null,8,["modelValue"]),u(c,{label:"Raktas",type:"text",modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=s=>r.value=s)},null,8,["modelValue"])]),t("button",{type:"button",onClick:f,class:"bg-[#065f46] inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800"}," Iššsaugoti ")])])])],64))}});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.