1 line
4.1 KiB
Text
1 line
4.1 KiB
Text
|
{"version":3,"file":"FileTable-B8nDvUIs.js","sources":["../../src/lib/components/organisms/FileTable.svelte"],"sourcesContent":["<!--\nFileTable organism.\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 {\n\t\tEyeClosed16,\n\t\tRepoForked16,\n\t\tRepo24,\n\t\tStar16,\n\t\tTriangleDown16,\n\t\tTriangleDown24\n\t} from 'svelte-octicons';\n\timport { _ } from 'svelte-i18n';\n\n\t/**\n\t * Translation keys.\n\t */\n\texport let i18n = {\n\t\theading: {\n\t\t\tlastUpdated: '',\n\t\t\tname: ''\n\t\t},\n\t\ttable: {\n\t\t\tupdated: ''\n\t\t}\n\t};\n\n\t/**\n\t * Available projects.\n\t */\n\texport let projects = [];\n</script>\n\n<table class=\"w-4/5 min-w-96 px-4 mx-auto\">\n\t<thead>\n\t\t<tr class=\"flex justify-between gap-4 bg-surface-100 h-8\">\n\t\t\t<th class=\"flex text-surface-400 mx-4\">\n\t\t\t\t{$_(i18n.heading.name)}\n\t\t\t\t<TriangleDown24 fill=\"currentColor\" />\n\t\t\t</th>\n\t\t\t<th class=\"text-surface-400 mx-4\">\n\t\t\t\t{$_(i18n.heading.lastUpdated)}\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t{#each projects as project}\n\t\t\t<tr class=\"flex justify-between gap-4 bg-white border\">\n\t\t\t\t<td class=\"flex mx-4 gap-4\">\n\t\t\t\t\t<Repo24 fill=\"currentColor\" />\n\t\t\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t<span class=\"text-primary-500\">{project.name}</span>\n\t\t\t\t\t\t\t{#each project.members as member}\n\t\t\t\t\t\t\t\t<a href=\"/people/{member.slug}\">\n\t\t\t\t\t\t\t\t\t<img src={member.avatar} alt={member.name} />\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"text-surface-400\">\n\t\t\t\t\t\t\t{project.description}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t{#each project.tags as tag}\n\t\t\t\t\t\t\t\t<a href={tag.link} class=\"bg-primary-100 text-primary-500 rounded-full px-2\">\n\t\t\t\t\t\t\t\t\t{tag.name}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div class=\"flex flex-col px-4 py-4\">\n\t\t\t\t\t\t<div class=\"flex justify-between gap-4\">\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2\">\n\t\t\t\t\t\t\t\t<RepoForked16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2\">\n\t\t\t\t\t\t\t\t<Star16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2 flex\">\n\t\t\t\t\t\t\t\t<EyeClosed16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t\t<TriangleDown16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"text-surface-400\">\n\t\t\t\t\t\t\t{$_(i18n.table.updated, {\n\t\t\t\t\t\t\t\tvalues: {\n\t\t\t\t\t\t\t\t\trelativeTime: project.lastUpdated.toISOString()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t{/each}\n\t</tbody>\n</table>\n"],"names":["values","append_hydration","div4","button1","cov_97ddjplgj","s","button2","div6","div5","projects","b","$$props"],"mappings":"w15DAiEmBA,OAAA,27JAAAC,EADOC,EAAAC,CAAA,EAAAC,EAAA,EAAAC,EAAA,GAAA,oDAC2BH,EAAAI,CAAA,EAAAF,EAAA,EAAAC,EAAA,GAAA,oGAAdE,EAAAC,CAAA,EAAAJ,EAAA,EAAA
|