1 line
4.8 KiB
Text
1 line
4.8 KiB
Text
|
{"version":3,"file":"Project-CLLCqUml.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 border border-surface-100 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 text-white 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":"qxyCA2DgBA,GAAAC,GAAAC,EAAAC,GAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAC,EAAAC,EAAAA,QAAAC,EAAA,CAAAA,EAAAA,EAAA,CAAAC,EAAAA,QAAAC,IAAA,MAGLC,GAAAC,GAAAC,EAAAC,GAAAC,EAAAC,EAAAC,GAAAX,EAAA,EAAAC,QAAAC,EAAA,GAAAA,EAAA,CAAAC,EAAAA,QAAAS,IAAA,EAAA,g5JAHKC,EAAOhB,EAAAC,CAAA,EAAAE,EAAAC,EAAAA,WAAlBY,EAAAA,EAAAA,EAAAA,IAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,IAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,aAG
|