Anvil/assets/CommitDate-C6S4VMTL.js.map
André Jaenisch 957cae7b79
Updates
2024-08-12 15:09:11 +02:00

1 line
No EOL
2 KiB
Text

{"version":3,"file":"CommitDate-C6S4VMTL.js","sources":["../../src/lib/components/atoms/CommitDate.svelte"],"sourcesContent":["<!--\nCommitDate atom.\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 { _, date } from 'svelte-i18n';\n\timport { GitCommit24, Repo24 } from 'svelte-octicons';\n\n\t/**\n\t * The commit date as ISOString.\n\t */\n\texport let commitDate = '1970-01-01';\n\n\t/**\n\t * Number of commits on this repo at this date.\n\t */\n\texport let numberOfCommits = 0;\n\n\t/**\n\t * The name of the repo the commit is associated with.\n\t */\n\texport let repoName = '';\n\n\tconst i18n = {\n\t\tnumberOfCommits: 'page.profile.history.activities.commits.number'\n\t};\n</script>\n\n<div class=\"flex gap-6 -ms-6\">\n\t<span class=\"bg-white dark:bg-black\">\n\t\t<GitCommit24 fill=\"currentColor\" />\n\t</span>\n\t<span class=\"flex gap-6 -ms-3\">\n\t\t<!-- Pluralisation: https://lokalise.com/blog/svelte-i18n/#Pluralization_with_Svelte_i18n -->\n\t\t{$date(new Date(commitDate))} - {$_(i18n.numberOfCommits, {\n\t\t\tvalues: { number: numberOfCommits }\n\t\t})}\n\t\t<span class=\"flex gap-2\">\n\t\t\t<Repo24 fill=\"currentColor\" />\n\t\t\t{repoName}\n\t\t</span>\n\t</span>\n</div>\n"],"names":["div","span0","cov_1ketzn943d","s"],"mappings":"+xhBA2CmCA,EAAAC,CAAA,EAAAC,EAAA,EAAAC"}