1 line
No EOL
4.9 KiB
Text
1 line
No EOL
4.9 KiB
Text
{"version":3,"file":"Project-Dw_8elnQ.js","sources":["../../src/lib/components/molecules/Project.svelte"],"sourcesContent":["<!--\nA single project on the profile.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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\nThis 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\nYou 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\n<script>\n\timport { _ } from 'svelte-i18n';\n\timport {\n\t\tEyeClosed16,\n\t\tPerson24,\n\t\tRepo24,\n\t\tRepoForked16,\n\t\tStar16,\n\t\tTriangleDown16\n\t} from 'svelte-octicons';\n\n\t/**\n\t * Translation keys.\n\t */\n\texport let i18n = {\n\t\tbuttons: {\n\t\t\tfork: 'page.profile.projects.actions.fork',\n\t\t\tstar: 'page.profile.projects.actions.star',\n\t\t\twatch: 'page.profile.projects.actions.watch'\n\t\t}\n\t};\n\n\t/**\n\t * Collaborators to this project.\n\t */\n\texport let collaborators = [];\n\n\t/**\n\t * A software project.\n\t */\n\texport let project = {\n\t\tname: '',\n\t\tsummary: ''\n\t};\n</script>\n\n<div class=\"flex bg-white dark:bg-black border border-surface-100-800-token p-4\">\n\t<!-- Left -->\n\t<div class=\"flex flex-col flex-grow ps-10\">\n\t\t<!-- Name + Icon -->\n\t\t<div class=\"flex -ms-10\">\n\t\t\t<Repo24 fill=\"currentColor\" />\n\t\t\t{project.name}\n\t\t\t<!-- Members -->\n\t\t\t<ul class=\"ms-2 gap-4\">\n\t\t\t\t{#each collaborators as member}\n\t\t\t\t\t<li title={member.preferredUsername}>\n\t\t\t\t\t\t<div class=\"bg-surface-500-400-token text-white dark:text-black rounded-full\">\n\t\t\t\t\t\t\t<Person24 fill=\"currentColor\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t{/each}\n\t\t\t</ul>\n\t\t</div>\n\t\t<!-- Description -->\n\t\t<!-- Compensate padding with negative margin -->\n\t\t<div class=\"flex -ms-4\">\n\t\t\t{project.summary}\n\t\t</div>\n\t\t<!-- Tags -->\n\t\t<div class=\"flex\"></div>\n\t</div>\n\t<!-- Right -->\n\t<div class=\"flex flex-col\">\n\t\t<!-- Star Fork Watch -->\n\t\t<div class=\"flex gap-4\">\n\t\t\t<button type=\"button\" class=\"btn-icon border rounded-none\">\n\t\t\t\t<span class=\"sr-only\">{$_(i18n.buttons.fork)}</span>\n\t\t\t\t<RepoForked16 fill=\"currentColor\" />\n\t\t\t</button>\n\t\t\t<button type=\"button\" class=\"btn-icon border rounded-none\">\n\t\t\t\t<span class=\"sr-only\">{$_(i18n.buttons.star)}</span>\n\t\t\t\t<Star16 fill=\"currentColor\" />\n\t\t\t</button>\n\t\t\t<button type=\"button\" class=\"btn-icon border rounded-none\">\n\t\t\t\t<span class=\"sr-only\">{$_(i18n.buttons.watch)}</span>\n\t\t\t\t<EyeClosed16 fill=\"currentColor\" />\n\t\t\t\t<TriangleDown16 fill=\"currentColor\" />\n\t\t\t</button>\n\t\t</div>\n\t\t<!-- FIXME: Mark up as translatable once I figured out the\n\t\t timestamp needed here -->\n\t\t<div class=\"self-end\">Updated somewhen</div>\n\t</div>\n</div>\n"],"names":["t4","t5","div2","t6","div6","div4","button0","span0","t7_value","cov_a3ca1envj","s","ctx","buttons","fork","t7","t8","repoforked16","t9","button1","span1","t10_value","star","append_hydration","b","current","dirty","set_data","t10","collaborators","$$props"],"mappings":"+yyCA2DgBA,GAAAC,GAAAC,EAAAC,GAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAC,EAAAC,EAAAA,QAAAC,EAAA,CAAAA,EAAAA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