PageSourceSearch

https://polimi-dabc.netlify.app/_nuxt/BGY7LDCb.js

js polimi-dabc.netlify.app collected 2026-10-03 11:18:14 UTC 2,114 bytes, 45 lines download raw bytes

1import{_ as j,a as y,b as $}from"./CeR1vgCe.js";import{_ as A}from"./Dy5loE2_.js";import{u as x,p as w,j as P,k as T,e as b,w as o,l as B,o as C,a as s,d as l,x as k}from"./CKKA5GW1.js";import{u as I}from"./DdRRAuYW.js";import"./DxDFcNyH.js";import"./iWIPS92C.js";import"./B59e65U3.js";const L={__name:"index",async setup(F){let t,i;const{locale:c,t:_}=x(),m=w("client"),{session:a}=I(),u=`*[_type == 'user' && email == $email && !(_id in path("drafts.**"))][0]{
2  "researchProjects": *[_type=='researchProject' && references(^._id) && !(_id in path("drafts.**"))]{
3    _id,
4    visible,
5    "title": title[$lang],
6    ...,
7    "slug": "/it/${_("pages.researchProjects")}/" + slug[$lang].current,
8    image{
9        asset->{
10            url,
11            "alt": altTexts[$lang],
12        }
13    },
14    ImagesCarousel{
15        slides[]{
16            asset->{
17                url,
18                "alt": altTexts[$lang],
19            }
20        }
21    },
22    researchGroups[]->{
23        "title": title[$lang],
24        ...
25    },
26    researchLines[]->{
27        ...
28    },
29    asideContent[]{
30        listOptions,
31        title,
32        people[]->{
33            first_name,
34            last_name,
35            _id
36
37        },
38        texts[]{
39            content,
40            ...
41        }
42    }
43  },
44  ...,
45}`,{data:n,refresh:d}=([t,i]=P(()=>{var e;return B(u,{email:(e=a==null?void 0:a.value)==null?void 0:e.email,lang:c.value})}),t=await t,i(),t),p=async(e,r)=>{await m.patch(n.value.researchProjects[e]._id).ifRevisionId(n.value.researchProjects[e]._rev).set({visible:!r}).commit().then(()=>d())};return T({title:"Admin",meta:[{name:"twitter:title",content:"Admin"},{property:"og:title",content:"Admin"}]}),(e,r)=>{const h=y,f=A,g=$,v=j;return C(),b(v,null,{default:o(()=>[s(h,{title:"Progetti di Ricerca",addButtonFunction:()=>("navigateTo"in e?e.navigateTo:l(k))("/it/admin/research-projects/new")},null,8,["addButtonFunction"]),s(g,null,{default:o(()=>[s(f,{head:[{title:e.$t("title")}],data:l(n).researchProjects,hide:p,slug:"/admin/research-projects/"},null,8,["head","data"])]),_:1})]),_:1})}}};export{L 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.