Anvil/assets/Projects.stories-COotnn36.js.map

1 line
7.3 KiB
Text
Raw Normal View History

2024-08-12 15:09:11 +02:00
{"version":3,"file":"Projects.stories-COotnn36.js","sources":["../../stories/pages/Projects.stories.ts"],"sourcesContent":["/* Stories for Projects page.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Projects from '$lib/components/pages/Projects.svelte';\n\nconst meta = {\n\ttitle: 'Pages/Projects',\n\tcomponent: Projects,\n\ttags: ['autodocs']\n} satisfies Meta<Projects>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const NoProjects: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: []\n\t\t}\n\t}\n};\n\nexport const SingleProject: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: [\n\t\t\t\t{\n\t\t\t\t\tname: 'Project A',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),\n\t\t\t\t\tmembers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person A',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'a'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person B',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'b'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person C',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'c'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttags: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ActivityPub',\n\t\t\t\t\t\t\tlink: '/tag/ActivityPub'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'css',\n\t\t\t\t\t\t\tlink: '/tag/css'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'guile',\n\t\t\t\t\t\t\tlink: '/tag/guile'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n};\n\nexport const MultipleProjects: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tprojects: [\n\t\t\t\t{\n\t\t\t\t\tname: 'Project A',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000),\n\t\t\t\t\tmembers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person A',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'a'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person B',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'b'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Person C',\n\t\t\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t\t\tslug: 'c'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttags: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ActivityPub',\n\t\t\t\t\t\t\tlink: '/tag/ActivityPub'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'css',\n\t\t\t\t\t\t\tlink: '/tag/css'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'guile',\n\t\t\t\t\t\t\tlink: '/tag/guile'\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'Project B',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'This software project is a web-based application that will allow users to book appointments online.',\n\t\t\t\t\tavatar: 'https://example.com',\n\t\t\t\t\t// Date back three months\n\t\t\t\t\tlastUpdated: new Date(Date.now() - 3 * 30 * 24 *