Anvil/assets/Projects.stories-a008a848.js

103 lines
6.1 KiB
JavaScript
Raw Normal View History

2024-03-18 11:41:20 +01:00
import{a as w}from"./utils-6ebe0a8e.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-3a0d73e3.js";import{P as $}from"./Projects-f6a4884c.js";import"./lifecycle-cafe499b.js";import"./ZoomOut24-2eaac4cc.js";import"./spread-8a54911c.js";import"./runtime-a5210d67.js";import"./index-db42f6c8.js";import"./_commonjsHelpers-725317a4.js";import"./MoreFilters-9a485b3d.js";import"./Pagination-77c8cc8c.js";import"./Projects-081efb34.js";import"./Search-92254bf8.js";import"./Starred-16694df1.js";import"./FileTable-1d60bdd0.js";import"./each-b4878c9e.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 Q={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:`{
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 R=["NoProjects","SingleProject","MultipleProjects"];export{i as MultipleProjects,o as NoProjects,r as SingleProject,R as __namedExportsOrder,Q as default};