PageSourceSearch

https://klimatkalendern.nu/assets/TodoLists-DyY7zkfL.js

js klimatkalendern.nu collected 2026-10-04 10:25:28 UTC 2,107 bytes, 2 lines download raw bytes

1import{d as D,c as d,b as I,ay as k,ac as L,ag as B,g as i,n as E,l as e,o as a,j as n,h as u,ae as b,a3 as p,k as r,t as c,U as R,w as f,s as x,V as v,W as T,i as G}from"./main-ClBra0b9.js";import{C as M}from"./todos-DFq7lnHV.js";import{_ as W}from"./CompactTodo.vue_vue_type_script_setup_true_lang-Knv07kE_.js";import{u as j}from"./group-CT8JZXj-.js";import{u as A}from"./head-D61NCrDr.js";import"./Account-HdOD7WvC.js";import"./group-DqHLD7t8.js";import"./resources-D7vWurZK.js";import"./post-CzYHNEo7.js";const F={key:0,class:"container mx-auto"},Z=D({__name:"TodoLists",props:{preferredUsername:{}},setup(g){const y=g,C=d(()=>y.preferredUsername),{group:o}=j(C),{t:U}=I({useScope:"global"});A({title:d(()=>U("{group}'s todolists",{group:k(o.value)}))});const m=L({title:"",id:"",todos:{elements:[],total:0}}),V=d(()=>o.value?.todoLists.elements??[]),{mutate:N}=B(M);return(s,l)=>{const O=r("breadcrumbs-nav"),S=r("o-input"),$=r("o-field"),w=r("o-button"),h=r("router-link");return e(o)?(a(),i("div",F,[n(O,{links:[{name:e(p).GROUP,params:{preferredUsername:e(b)(e(o))},text:e(k)(e(o))},{name:e(p).TODO_LISTS,params:{preferredUsername:e(b)(e(o))},text:s.$t("Task lists")}]},null,8,["links"]),u("section",null,[u("p",null,c(s.$t("Create to-do lists for all the tasks you need to do, assign them and set due dates.")),1),u("form",{class:"form",onSubmit:l[1]||(l[1]=R(t=>e(N)({title:m.title,groupId:e(o)?.id}),["prevent"]))},[n($,{label:s.$t("List title")},{default:f(()=>[n(S,{modelValue:m.title,"onUpdate:modelValue":l[0]||(l[0]=t=>m.title=t)},null,8,["modelValue"])]),_:1},8,["label"]),n(w,{"native-type":"submit"},{default:f(()=>[x(c(s.$t("Create a new list")),1)]),_:1})],32),(a(!0),i(v,null,T(V.value,t=>(a(),i("div",{key:t.id},[n(h,{to:{name:e(p).TODO_LIST,params:{id:t.id}}},{default:f(()=>[u("h3",null,c(s.$t("{title} ({count} todos)",{count:t.todos.total,title:t.title},t.todos.total)),1)]),_:2},1032,["to"]),(a(!0),i(v,null,T(t.todos.elements,_=>(a(),G(W,{todo:_,key:_.id},null,8,["todo"]))),128))]))),128))])])):E("",!0)}}});export{Z as default};
2//# sourceMappingURL=TodoLists-DyY7zkfL.js.map

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.