Anvil/assets/Projects.stories-BJ0X9TFe.js

103 lines
6.1 KiB
JavaScript
Raw Normal View History

2024-07-05 09:29:52 +02:00
import{a as w}from"./utils-AUSSiI9x.js";import{S as j,i as k,c as x,b as f,m as A,a as y,t as D,d as _}from"./index-CRVYNev9.js";import{P as $}from"./Projects-DsvC6rsb.js";import"./lifecycle-DZHCWxcx.js";import"./ZoomOut24-C6SRuWL3.js";import"./spread-CgU5AtxT.js";import"./runtime-VldLyBWb.js";import"./index-CmSOPqre.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./MoreFilters-CzCGPBZ1.js";import"./Pagination-BgzZ8plt.js";import"./Projects-5c_K1XI4.js";import"./Search-BBza7Tsl.js";import"./Starred-0gw4W8jd.js";import"./FileTable-Bz7yFa3M.js";import"./each-DQ20ki7B.js";function B(s){let e,a;return e=new $({props:{data:s[0]}}),{c(){x(e.$$.fragment)},l(t){f(e.$$.fragment,t)},m(t,n){A(e,t,n),a=!0},p(t,[n]){const m={};n&1&&(m.data=t[0]),e.$set(m)},i(t){a||(y(e.$$.fragment,t),a=!0)},o(t){D(e.$$.fragment,t),a=!1},d(t){_(e,t)}}}function S(s,e,a){let{data:t={projects:[]}}=e;return s.$$set=n=>{"data"in n&&a(0,t=n.data)},[t]}class v extends j{constructor(e){super(),k(this,e,S,B,w,{data:0})}}v.__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:v,tags:["autodocs"]},o={args:{data:{projects:[]}}},r={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"}]}]}}},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"}]},{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 c,p,l;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{
2024-06-16 17:30:30 +02:00
args: {
data: {
projects: []
}
}
}`,...(l=(p=o.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};var u,g,d;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.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'
}]
}]
}
}
}`,...(d=(g=r.parameters)==null?void 0:g.docs)==null?void 0:d.source}}};var b,P,h;i.parameters={...i.parameters,docs:{...(b=i.parameters)==null?void 0:b.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'
}]
}]
}
}
}`,...(h=(P=i.parameters)==null?void 0:P.docs)==null?void 0:h.source}}};const V=["NoProjects","SingleProject","MultipleProjects"];export{i as MultipleProjects,o as NoProjects,r as SingleProject,V as __namedExportsOrder,R as default};