Anvil/assets/Profile.stories-_GBJH6fV.js.map
André Jaenisch fe5164d76e
Updates
2024-08-14 17:01:21 +02:00

1 line
No EOL
3.2 KiB
Text

{"version":3,"file":"Profile.stories-_GBJH6fV.js","sources":["../../stories/templates/Profile.stories.ts"],"sourcesContent":["/* Stories for Profile template.\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 { withActions } from '@storybook/addon-actions/decorator';\nimport { withLinks } from '@storybook/addon-links';\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Profile from '$lib/components/templates/Profile.svelte';\n\nconst meta = {\n\ttitle: 'Templates/Profile',\n\tcomponent: Profile,\n\ttags: ['autodocs'],\n\targs: {\n\t\tsb: 'Templates/ImportProject'\n\t},\n\targTypes: {\n\t\tonClick: { action: 'click' },\n\t\tdata: { controls: 'object' },\n\t\tsb: { control: 'radio', options: ['Templates/ImportProject'] }\n\t},\n\tdecorators: [withActions, withLinks]\n} satisfies Meta<Profile>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tuser: {\n\t\t\t\tavatar: '',\n\t\t\t\tcreated_at: new Date(),\n\t\t\t\tcreated_at_formatted: (function () {\n\t\t\t\t\tconst locale = 'en-US';\n\t\t\t\t\treturn new Intl.DateTimeFormat(locale).format(new Date());\n\t\t\t\t})(),\n\t\t\t\tcreated_with: 'Anvil',\n\t\t\t\tdisplay_name: 'Jane Doe',\n\t\t\t\tinstance: 'domain.example',\n\t\t\t\tpronoun: 'she/her',\n\t\t\t\tusername: 'jane_doe'\n\t\t\t}\n\t\t}\n\t}\n};\n"],"names":["meta","title","component","Profile","tags","args","sb","argTypes","onClick","action","data","controls","control","options","decorators","withActions","withLinks","Plain","user","avatar","created_at","Date","created_at_formatted","locale","Intl","DateTimeFormat","format","created_with","display_name","instance","pronoun","username","parameters","docs","source","originalSource"],"mappings":"07BAkBA,MAAMA,EAAO,CACTC,MAAO,oBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,KAAI,CACAC,GAAI,yBACT,EACCC,SAAQ,CACJC,QAAS,CAAEC,OAAQ,OAAI,EACvBC,KAAM,CAAEC,SAAU,QAAK,EACvBL,GAAI,CAAEM,QAAS,QAASC,QAAS,CAAC,yBAAsB,CAAA,CAC7D,EACCC,WAAY,CAACC,EAAaC,CAAO,CACrC,EAKaC,EAAe,CACxBZ,KAAI,CACAK,KAAC,CACCQ,KAAA,CACKC,OAAA,GACCC,eAAWC,KACXC,qBAAuB,UAAC,CACpB,MAAMC,EAAE,QACD,OAAA,IAAIC,KAAKC,eAAeF,CAAM,EAAEG,OAAI,IAAAL,IAAA,CAAA,EACtD,EACOM,aAAU,QACVC,aAAa,WACbC,SAAU,iBACVC,QAAO,UACPC,SAAQ,UACpB,CACD,CACD,CACF,YAAEd,EAAAe,WAAA,CAAA,GAAAf,EAAAe,WAAAC,KAAA,CAAA,IAAAhB,EAAAA,EAAAe,aAAAf,YAAAA,EAAAgB,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAlB,GAAAA,EAAAA,EAAAe,aAAAf,YAAAA,EAAAgB,OAAAhB,YAAAA,EAAAiB,MAAA,CAAA,CAAA"}