Anvil/assets/Projects.stories-Bx9yX2cs.js
André Jaenisch 55cfc3a009
Updates
2024-07-31 10:01:28 +02:00

103 lines
12 KiB
JavaScript

import{S as P,c as w,a as j,d as y,e as k,m as _,b as x,t as D,f as B}from"./index-CP70Tq58.js";import{P as S}from"./Projects-Db378KDM.js";import"./lifecycle-D_bIUHQK.js";import"./ZoomOut24-CRRKQWCt.js";import"./spread-CgU5AtxT.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./MoreFilters-B4t2jZDB.js";import"./Pagination-XiFdj-wV.js";import"./Projects-CRVXlmir.js";import"./Search-JUUNwYhr.js";import"./Starred-CuQ7_0YX.js";import"./FileTable-B8nDvUIs.js";import"./each-C4g42ehH.js";function n(){var a="/home/andre/src/svelte/Anvil/src/lib/components/pages/Projects.svelte",t="44f7cdb80f6b66adf6f1126a162af351e395c4fc",l=window,e="__coverage__",o={path:"/home/andre/src/svelte/Anvil/src/lib/components/pages/Projects.svelte",statementMap:{0:{start:{line:20,column:1},end:{line:20,column:79}},1:{start:{line:22,column:1},end:{line:50,column:3}},2:{start:{line:24,column:3},end:{line:24,column:50}},3:{start:{line:27,column:3},end:{line:27,column:56}},4:{start:{line:30,column:3},end:{line:30,column:53}},5:{start:{line:31,column:3},end:{line:31,column:18}},6:{start:{line:34,column:36},end:{line:34,column:38}},7:{start:{line:35,column:3},end:{line:35,column:75}},8:{start:{line:35,column:27},end:{line:35,column:75}},9:{start:{line:36,column:3},end:{line:36,column:51}},10:{start:{line:39,column:3},end:{line:39,column:23}},11:{start:{line:39,column:16},end:{line:39,column:23}},12:{start:{line:40,column:3},end:{line:40,column:54}},13:{start:{line:41,column:3},end:{line:41,column:18}},14:{start:{line:44,column:3},end:{line:44,column:55}},15:{start:{line:45,column:3},end:{line:45,column:19}},16:{start:{line:48,column:3},end:{line:48,column:50}},17:{start:{line:54,column:35},end:{line:54,column:42}},18:{start:{line:56,column:1},end:{line:58,column:3}},19:{start:{line:57,column:2},end:{line:57,column:62}},20:{start:{line:57,column:25},end:{line:57,column:62}},21:{start:{line:60,column:1},end:{line:60,column:15}},22:{start:{line:65,column:2},end:{line:65,column:10}},23:{start:{line:66,column:2},end:{line:66,column:78}},24:{start:{line:70,column:25},end:{line:70,column:397}}},fnMap:{0:{name:"create_fragment",decl:{start:{line:17,column:9},end:{line:17,column:24}},loc:{start:{line:17,column:30},end:{line:51,column:1}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:6},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:11},end:{line:28,column:3}},line:26},3:{name:"(anonymous_3)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:20},end:{line:32,column:3}},line:29},4:{name:"(anonymous_4)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:18},end:{line:37,column:3}},line:33},5:{name:"(anonymous_5)",decl:{start:{line:38,column:2},end:{line:38,column:3}},loc:{start:{line:38,column:11},end:{line:42,column:3}},line:38},6:{name:"(anonymous_6)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:11},end:{line:46,column:3}},line:43},7:{name:"(anonymous_7)",decl:{start:{line:47,column:2},end:{line:47,column:3}},loc:{start:{line:47,column:15},end:{line:49,column:3}},line:47},8:{name:"instance",decl:{start:{line:53,column:9},end:{line:53,column:17}},loc:{start:{line:53,column:49},end:{line:61,column:1}},line:53},9:{name:"(anonymous_9)",decl:{start:{line:56,column:16},end:{line:56,column:17}},loc:{start:{line:56,column:27},end:{line:58,column:2}},line:56},10:{name:"(anonymous_10)",decl:{start:{line:64,column:1},end:{line:64,column:2}},loc:{start:{line:64,column:22},end:{line:67,column:2}},line:64}},branchMap:{0:{loc:{start:{line:35,column:3},end:{line:35,column:75}},type:"if",locations:[{start:{line:35,column:3},end:{line:35,column:75}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:35},1:{loc:{start:{line:39,column:3},end:{line:39,column:23}},type:"if",locations:[{start:{line:39,column:3},end:{line:39,column:23}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},2:{loc:{start:{line:54,column:7},end:{line:54,column:30}},type:"default-arg",locations:[{start:{line:54,column:14},end:{line:54,column:30}}],line:54},3:{loc:{start:{line:57,column:2},end:{line:57,column:62}},type:"if",locations:[{start:{line:57,column:2},end:{line:57,column:62}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0],3:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/andre/src/svelte/Anvil/src/lib/components/pages/Projects.svelte"],names:[],mappings:";;;;;;;;;;;;;;AAcQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,MAAM,CAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKhD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,KACd,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"44f7cdb80f6b66adf6f1126a162af351e395c4fc"},s=l[e]||(l[e]={});(!s[a]||s[a].hash!==t)&&(s[a]=o);var A=s[a];return n=function(){return A},A}n();function $(a){n().f[0]++;let t,l;return n().s[0]++,t=new S({props:{data:a[0]}}),n().s[1]++,{c(){n().f[1]++,n().s[2]++,y(t.$$.fragment)},l(e){n().f[2]++,n().s[3]++,k(t.$$.fragment,e)},m(e,o){n().f[3]++,n().s[4]++,_(t,e,o),n().s[5]++,l=!0},p(e,[o]){n().f[4]++;const s=(n().s[6]++,{});n().s[7]++,o&1?(n().b[0][0]++,n().s[8]++,s.data=e[0]):n().b[0][1]++,n().s[9]++,t.$set(s)},i(e){if(n().f[5]++,n().s[10]++,l){n().b[1][0]++,n().s[11]++;return}else n().b[1][1]++;n().s[12]++,x(t.$$.fragment,e),n().s[13]++,l=!0},o(e){n().f[6]++,n().s[14]++,D(t.$$.fragment,e),n().s[15]++,l=!1},d(e){n().f[7]++,n().s[16]++,B(t,e)}}}function M(a,t,l){n().f[8]++;let{data:e=(n().b[2][0]++,{projects:[]})}=(n().s[17]++,t);return n().s[18]++,a.$$set=o=>{n().f[9]++,n().s[19]++,"data"in o?(n().b[3][0]++,n().s[20]++,l(0,e=o.data)):n().b[3][1]++},n().s[21]++,[e]}class h extends P{constructor(t){n().f[10]++,n().s[22]++,super(),n().s[23]++,w(this,t,M,$,j,{data:0})}}n().s[24]++;h.__docgen={version:3,name:"Projects.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const R={title:"Pages/Projects",component:h,tags:["autodocs"]},c={args:{data:{projects:[]}}},i={args:{data:{projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}}},m={args:{data:{projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]},{name:"Project B",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}}};var r,u,d;c.parameters={...c.parameters,docs:{...(r=c.parameters)==null?void 0:r.docs,source:{originalSource:`{
args: {
data: {
projects: []
}
}
}`,...(d=(u=c.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};var p,C,g;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:`{
args: {
data: {
projects: [{
name: 'Project A',
description: 'This software project is a web-based application that will allow users to book appointments online.',
avatar: 'https://example.com',
// Date back three months
lastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),
members: [{
name: 'Person A',
avatar: 'https://example.com',
slug: 'a'
}, {
name: 'Person B',
avatar: 'https://example.com',
slug: 'b'
}, {
name: 'Person C',
avatar: 'https://example.com',
slug: 'c'
}],
tags: [{
name: 'ActivityPub',
link: '/tag/ActivityPub'
}, {
name: 'css',
link: '/tag/css'
}, {
name: 'guile',
link: '/tag/guile'
}]
}]
}
}
}`,...(g=(C=i.parameters)==null?void 0:C.docs)==null?void 0:g.source}}};var f,b,v;m.parameters={...m.parameters,docs:{...(f=m.parameters)==null?void 0:f.docs,source:{originalSource:`{
args: {
data: {
projects: [{
name: 'Project A',
description: 'This software project is a web-based application that will allow users to book appointments online.',
avatar: 'https://example.com',
// Date back three months
lastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),
members: [{
name: 'Person A',
avatar: 'https://example.com',
slug: 'a'
}, {
name: 'Person B',
avatar: 'https://example.com',
slug: 'b'
}, {
name: 'Person C',
avatar: 'https://example.com',
slug: 'c'
}],
tags: [{
name: 'ActivityPub',
link: '/tag/ActivityPub'
}, {
name: 'css',
link: '/tag/css'
}, {
name: 'guile',
link: '/tag/guile'
}]
}, {
name: 'Project B',
description: 'This software project is a web-based application that will allow users to book appointments online.',
avatar: 'https://example.com',
// Date back three months
lastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),
members: [{
name: 'Person A',
avatar: 'https://example.com',
slug: 'a'
}, {
name: 'Person B',
avatar: 'https://example.com',
slug: 'b'
}],
tags: [{
name: 'ActivityPub',
link: '/tag/ActivityPub'
}, {
name: 'css',
link: '/tag/css'
}, {
name: 'guile',
link: '/tag/guile'
}]
}]
}
}
}`,...(v=(b=m.parameters)==null?void 0:b.docs)==null?void 0:v.source}}};const V=["NoProjects","SingleProject","MultipleProjects"];export{m as MultipleProjects,c as NoProjects,i as SingleProject,V as __namedExportsOrder,R as default};
//# sourceMappingURL=Projects.stories-Bx9yX2cs.js.map