1 line
16 KiB
Text
1 line
16 KiB
Text
|
{"version":3,"file":"History.stories-DhiTtwaT.js","sources":["../../stories/molecules/History.stories.ts"],"sourcesContent":["/* Stories for History molecule.\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 History from '$lib/components/molecules/History.svelte';\n\nconst meta = {\n\ttitle: 'Molecules/History',\n\tcomponent: History,\n\ttags: ['autodocs']\n} satisfies Meta<History>;\n\nconst followingsMap = [\n\t{\n\t\t'@context': [\n\t\t\t'https://www.w3.org/ns/activitystreams',\n\t\t\t'https://w3id.org/security/v2',\n\t\t\t'https://forgefed.org/ns'\n\t\t],\n\t\tid: 'https://fig.fr33domlover.site/repos/9nOkn',\n\t\tinbox: 'https://fig.fr33domlover.site/repos/9nOkn/inbox',\n\t\toutbox: 'https://fig.fr33domlover.site/repos/9nOkn/outbox',\n\t\tfollowers: 'https://fig.fr33domlover.site/repos/9nOkn/followers',\n\t\tpublicKey: ['https://fig.fr33domlover.site/akey1', 'https://fig.fr33domlover.site/akey2'],\n\t\ttype: 'Repository',\n\t\tname: 'Very fun demo',\n\t\tsummary: 'Testing MR demo',\n\t\tteam: null,\n\t\tversionControlSystem: 'https://forgefed.org/ns#git',\n\t\tsendPatchesTo: 'https://fig.fr33domlover.site/looms/9nOkn',\n\t\tcloneUri: 'https://fig.fr33domlover.site/repos/9nOkn',\n\t\tcollaborators: 'https://fig.fr33domlover.site/repos/9nOkn/collabs',\n\t\tcontext: 'https://fig.fr33domlover.site/repos/9nOkn/projects'\n\t},\n\t{\n\t\t'@context': [\n\t\t\t'https://www.w3.org/ns/activitystreams',\n\t\t\t'https://w3id.org/security/v2',\n\t\t\t'https://forgefed.org/ns'\n\t\t],\n\t\tid: 'https://fig.fr33domlover.site/repos/Pn9Yn',\n\t\tinbox: 'https://fig.fr33domlover.site/repos/Pn9Yn/inbox',\n\t\toutbox: 'https://fig.fr33domlover.site/repos/Pn9Yn/outbox',\n\t\tfollowers: 'https://fig.fr33domlover.site/repos/Pn9Yn/followers',\n\t\tpublicKey: ['https://fig.fr33domlover.site/akey1', 'https://fig.fr33domlover.site/akey2'],\n\t\ttype: 'Repository',\n\t\tname: 'Anvil',\n\t\tsummary: 'Mirror of Anvil so I can develop its UI',\n\t\tteam: null,\n\t\tversionControlSystem: 'https://forgefed.org/ns#git',\n\t\tcloneUri: 'https://fig.fr33domlover.site/repos/Pn9Yn',\n\t\tcollaborators: 'https://fig.fr33domlover.site/repos/Pn9Yn/collabs',\n\t\tcontext: 'https://fig.fr33domlover.site/repos/Pn9Yn/projects'\n\t}\n];\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Empty: Story = {\n\targs: {\n\t\tcommitsMap: [],\n\t\tfollowingsMap: []\n\t}\n};\n\nexport const SingleDateSingleProjectSingleCommit: Story = {\n\targs: {\n\t\tcommitsMap: generateCommits([\n\t\t\t{\n\t\t\t\tcommitId: '36e1bb146fa3a6fb5c8d490f76ff4cca5f8f2e78',\n\t\t\t\tcommitName: 'Initial commit',\n\t\t\t\tcommitted: '2022-09-28T17:01:30Z',\n\t\t\t\trepoId: 'Pn9Yn'\n\t\t\t}\n\t\t]),\n\t\tfollowingsMap\n\t}\n};\n\nexport const SingleDateSingleProjectMultipleCommits: Story = {\n\targs: {\n\t\tcommitsMap: generateCommits([\n\t\t\t{\n\t\t\t\tcommitId: '36e1bb146fa3a6fb5c8d490f76ff4cca5f8f2e78',\n\t\t\t\tcommitName: 'Initial commit',\n\t\t\t\tcommitted: '2022-09-28T17:01:30Z',\n\t\t\t\trepoId: 'Pn9Yn'\n\t\t\t},\n\t\t\t{\n\t\t\t\tcommitId: '36e1bb146fa3a6fb5c8d490f76ff4cca5f8f2e78',\n\t\t\t\tcommitName: 'Best commit ever',\n\t\t\t\tcommitted: '2022-09-28T17:01:30Z',\n\t\t\t\trepoId: 'Pn9Yn'\n\t\t\t}\n\t\t]),\n\t\tfollowingsMap\n\t}\n};\n\nexport const Single
|