Compare commits
	
		
			9 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b5c079da9a | |||
| 93422b9779 | |||
| 6dcfd9a4fe | |||
| 6d1919974a | |||
| f27c716296 | |||
| 21395241de | |||
| 8d2cb13195 | |||
| e61e8b063a | |||
| 073c78d98a | 
							
								
								
									
										24
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -2,9 +2,33 @@ | ||||
|  | ||||
| All notable changes to this project will be documented in this file. Dates are displayed in UTC. | ||||
|  | ||||
| #### [1.12.6](https://git.odit.services/lfk/frontend/compare/1.12.5...1.12.6) | ||||
|  | ||||
| - feat(pdfs): Experimental generation of large runner card files [`93422b9`](https://git.odit.services/lfk/frontend/commit/93422b97799c5e45c89acadd34f33b1a11b04617) | ||||
|  | ||||
| #### [1.12.5](https://git.odit.services/lfk/frontend/compare/1.12.4...1.12.5) | ||||
|  | ||||
| > 1 May 2025 | ||||
|  | ||||
| - chore(release): 1.12.5 [`6dcfd9a`](https://git.odit.services/lfk/frontend/commit/6dcfd9a4fedd1e44894c9803482576bc650fb4db) | ||||
| - fix(locales): Fixed translation [`2139524`](https://git.odit.services/lfk/frontend/commit/21395241de4de8f3a6b8404758d09c01d8a6f95f) | ||||
| - feat(runners): Show total donations in runner detail [`f27c716`](https://git.odit.services/lfk/frontend/commit/f27c716296e228ecccbf500a21130f1bc47ea52d) | ||||
| - chore(deps): Bump @odit/lfk-client-js to 1.2.7 [`6d19199`](https://git.odit.services/lfk/frontend/commit/6d1919974aacd74a265cf9ce0c9ed501028f0aa3) | ||||
| - fix: Update release script to include --only-version flag [`8d2cb13`](https://git.odit.services/lfk/frontend/commit/8d2cb13195856f47022d414f3243e9a21457832b) | ||||
|  | ||||
| #### [1.12.4](https://git.odit.services/lfk/frontend/compare/1.12.3...1.12.4) | ||||
|  | ||||
| > 28 April 2025 | ||||
|  | ||||
| - chore(release): 1.12.4 [`e61e8b0`](https://git.odit.services/lfk/frontend/commit/e61e8b063af75539b7db93c5ca42965417019f29) | ||||
| - fix: Disable ios auto zooming on inputs [`073c78d`](https://git.odit.services/lfk/frontend/commit/073c78d98afd1c2f08b190aeda942a634e9bb888) | ||||
|  | ||||
| #### [1.12.3](https://git.odit.services/lfk/frontend/compare/1.12.2...1.12.3) | ||||
|  | ||||
| > 28 April 2025 | ||||
|  | ||||
| - feat: Fast card replacement view [`7f802d5`](https://git.odit.services/lfk/frontend/commit/7f802d57f81d913634f28e2def29c183b0fdd098) | ||||
| - chore(release): 1.12.3 [`85e4faf`](https://git.odit.services/lfk/frontend/commit/85e4faf898b4844bb2fcaf87e332c1471ef14b57) | ||||
|  | ||||
| #### [1.12.2](https://git.odit.services/lfk/frontend/compare/1.12.1...1.12.2) | ||||
|  | ||||
|   | ||||
| @@ -6,14 +6,14 @@ | ||||
|     <link rel="manifest" href="/manifest.webmanifest" /> | ||||
|     <link rel="apple-touch-icon" href="/lfk-logo.png" /> | ||||
|     <meta name="theme-color" content="#FFFFFF" /> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | ||||
|     <meta name="description" content="Lauf Für Kaya! - Admin" /> | ||||
|     <title>Lauf für Kaya! - Admin</title> | ||||
|   </head> | ||||
|  | ||||
|   <body> | ||||
|     <span style="display: none; visibility: hidden" id="buildinfo" | ||||
|       >RELEASE_INFO-1.12.3-RELEASE_INFO</span | ||||
|       >RELEASE_INFO-1.12.6-RELEASE_INFO</span | ||||
|     > | ||||
|     <noscript>You need to enable JavaScript to run this app.</noscript> | ||||
|     <script src="/env.js"></script> | ||||
|   | ||||
| @@ -1,13 +1,13 @@ | ||||
| { | ||||
|   "name": "@odit/lfk-frontend", | ||||
|   "version": "1.12.3", | ||||
|   "version": "1.12.6", | ||||
|   "type": "module", | ||||
|   "scripts": { | ||||
|     "i18n-order": "node order.js", | ||||
|     "dev": "vite", | ||||
|     "format": "prettier --write --plugin-search-dir=. .", | ||||
|     "build": "vite build", | ||||
|     "release": "release-it", | ||||
|     "release": "release-it --only-version", | ||||
|     "licenses:export": "license-exporter --json -o public" | ||||
|   }, | ||||
|   "license": "CC-BY-NC-SA-4.0", | ||||
| @@ -43,7 +43,7 @@ | ||||
|   "dependencies": { | ||||
|     "@bwip-js/browser": "^4.6.0", | ||||
|     "@fontsource/athiti": "^5.2.5", | ||||
|     "@odit/lfk-client-js": "1.2.5", | ||||
|     "@odit/lfk-client-js": "1.2.7", | ||||
|     "@paralleldrive/cuid2": "2.2.2", | ||||
|     "@tailwindcss/vite": "^4.1.4", | ||||
|     "@tanstack/svelte-table": "8.9.1", | ||||
|   | ||||
| @@ -1,197 +1,256 @@ | ||||
| <script> | ||||
| 	import { _ } from "svelte-i18n"; | ||||
| 	import { | ||||
| 		RunnerCardService, | ||||
| 		RunnerOrganizationService, | ||||
| 		RunnerTeamService, | ||||
| 	} from "@odit/lfk-client-js"; | ||||
| 	import toast from "svelte-french-toast"; | ||||
| 	import DocumentServer from "./DocumentServer.ts"; | ||||
|   import { _ } from "svelte-i18n"; | ||||
|   import { | ||||
|     RunnerCardService, | ||||
|     RunnerOrganizationService, | ||||
|     RunnerTeamService, | ||||
|   } from "@odit/lfk-client-js"; | ||||
|   import toast from "svelte-french-toast"; | ||||
|   import DocumentServer from "./DocumentServer.ts"; | ||||
|  | ||||
| 	import { init } from "@paralleldrive/cuid2"; | ||||
| 	const createId = init({ length: 10, fingerprint: "lfk-frontend" }); | ||||
| 	const documentServer = new DocumentServer( | ||||
| 		config.baseurl_documentserver, | ||||
| 		config.documentserver_key | ||||
| 	); | ||||
|   import { init } from "@paralleldrive/cuid2"; | ||||
|   const createId = init({ length: 10, fingerprint: "lfk-frontend" }); | ||||
|   const documentServer = new DocumentServer( | ||||
|     config.baseurl_documentserver, | ||||
|     config.documentserver_key | ||||
|   ); | ||||
|  | ||||
| 	export let cards_show = false; | ||||
| 	export let generate_cards = []; | ||||
| 	export let generate_runners = []; | ||||
| 	export let generate_orgs = []; | ||||
| 	export let generate_teams = []; | ||||
|   export let cards_show = false; | ||||
|   export let generate_cards = []; | ||||
|   export let generate_runners = []; | ||||
|   export let generate_orgs = []; | ||||
|   export let generate_teams = []; | ||||
|  | ||||
| 	function download(blob, fileName) { | ||||
| 		const url = window.URL.createObjectURL(blob); | ||||
| 		let a = document.createElement("a"); | ||||
| 		a.href = url; | ||||
| 		a.download = fileName; | ||||
| 		document.body.appendChild(a); | ||||
| 		a.click(); | ||||
| 		a.remove(); | ||||
| 		toast.dismiss(); | ||||
| 		toast.success($_("pdf-successfully-generated")); | ||||
| 	} | ||||
|   function download(blob, fileName) { | ||||
|     const url = window.URL.createObjectURL(blob); | ||||
|     let a = document.createElement("a"); | ||||
|     a.href = url; | ||||
|     a.download = fileName; | ||||
|     document.body.appendChild(a); | ||||
|     a.click(); | ||||
|     a.remove(); | ||||
|     toast.dismiss(); | ||||
|     toast.success($_("pdf-successfully-generated")); | ||||
|   } | ||||
|  | ||||
| 	function generateRunnerCards(locale) { | ||||
| 		if (generate_orgs.length > 0) { | ||||
| 			generateOrgCards(locale); | ||||
| 		} else if (generate_teams.length > 0) { | ||||
| 			generateTeamCards(locale); | ||||
| 		} else if (generate_runners.length > 0) { | ||||
| 			generateRunnersCards(locale); | ||||
|   function generateRunnerCards(locale, useCombined = false) { | ||||
|     if (generate_orgs.length > 0) { | ||||
| 		if(useCombined){ | ||||
| 			generateOrgCardsCombined(locale); | ||||
| 		} else { | ||||
| 			generateCards(locale); | ||||
| 			generateOrgCards(locale) | ||||
| 		} | ||||
| 	} | ||||
|     } else if (generate_teams.length > 0) { | ||||
|       generateTeamCards(locale); | ||||
|     } else if (generate_runners.length > 0) { | ||||
|       generateRunnersCards(locale); | ||||
|     } else { | ||||
|       generateCards(locale); | ||||
|     } | ||||
|   } | ||||
|  | ||||
| 	function generateCards(locale) { | ||||
| 		toast.loading($_("generating-pdf")); | ||||
| 		documentServer | ||||
| 			.generateCards(generate_cards, locale) | ||||
| 			.then((blob) => { | ||||
| 				download(blob, `${$_("runnercards")}-${locale}-${createId()}.pdf`); | ||||
| 			}) | ||||
| 			.catch((err) => { | ||||
| 				console.error(err); | ||||
| 			}); | ||||
| 	} | ||||
|   function generateCards(locale) { | ||||
|     toast.loading($_("generating-pdf")); | ||||
|     documentServer | ||||
|       .generateCards(generate_cards, locale) | ||||
|       .then((blob) => { | ||||
|         download(blob, `${$_("runnercards")}-${locale}-${createId()}.pdf`); | ||||
|       }) | ||||
|       .catch((err) => { | ||||
|         console.error(err); | ||||
|       }); | ||||
|   } | ||||
|  | ||||
| 	async function generateRunnersCards(locale) { | ||||
| 		toast.loading($_("generating-pdf")); | ||||
| 		const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
| 		let cards = []; | ||||
| 		for (let runner of generate_runners) { | ||||
| 			let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
| 			if (!card) { | ||||
| 				card = await RunnerCardService.runnerCardControllerPost({ | ||||
| 					runner: runner.id, | ||||
| 				}); | ||||
| 			} | ||||
| 			cards.push(card); | ||||
| 		} | ||||
| 		documentServer | ||||
| 			.generateCards(cards, locale) | ||||
| 			.then((blob) => { | ||||
| 				let fileName = `${$_("runnercards")}-${locale}-${createId()}.pdf`; | ||||
| 				if (generate_runners.length == 1) { | ||||
| 					fileName = `${$_("runnercards")}_${generate_runners[0].firstname}_${ | ||||
| 						generate_runners[0].lastname | ||||
| 					}-${locale}-${createId()}.pdf`; | ||||
| 				} | ||||
| 				download(blob, fileName); | ||||
| 			}) | ||||
| 			.catch((err) => {}); | ||||
| 	} | ||||
|   async function generateRunnersCards(locale) { | ||||
|     toast.loading($_("generating-pdf")); | ||||
|     const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
|     let cards = []; | ||||
|     for (let runner of generate_runners) { | ||||
|       let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|       if (!card) { | ||||
|         card = await RunnerCardService.runnerCardControllerPost({ | ||||
|           runner: runner.id, | ||||
|         }); | ||||
|       } | ||||
|       cards.push(card); | ||||
|     } | ||||
|     documentServer | ||||
|       .generateCards(cards, locale) | ||||
|       .then((blob) => { | ||||
|         let fileName = `${$_("runnercards")}-${locale}-${createId()}.pdf`; | ||||
|         if (generate_runners.length == 1) { | ||||
|           fileName = `${$_("runnercards")}_${generate_runners[0].firstname}_${ | ||||
|             generate_runners[0].lastname | ||||
|           }-${locale}-${createId()}.pdf`; | ||||
|         } | ||||
|         download(blob, fileName); | ||||
|       }) | ||||
|       .catch((err) => {}); | ||||
|   } | ||||
|  | ||||
| 	async function generateTeamCards(locale) { | ||||
| 		toast.loading($_("generating-pdfs")); | ||||
| 		let count = 0; | ||||
| 		const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
| 		for (const t of generate_teams) { | ||||
| 			const runners = await RunnerTeamService.runnerTeamControllerGetRunners( | ||||
| 				t.id | ||||
| 			); | ||||
| 			let cards = []; | ||||
| 			for (let runner of runners) { | ||||
| 				let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
| 				if (!card) { | ||||
| 					card = await RunnerCardService.runnerCardControllerPost({ | ||||
| 						runner: runner.id, | ||||
| 					}); | ||||
| 				} | ||||
| 				cards.push(card); | ||||
| 			} | ||||
| 			documentServer | ||||
| 				.generateCards(cards, locale) | ||||
| 				.then((blob) => { | ||||
| 					download( | ||||
| 						blob, | ||||
| 						`${$_("runnercards")}_${t.name}-${locale}-${createId()}.pdf` | ||||
| 					); | ||||
| 				}) | ||||
| 				.catch((err) => {}); | ||||
| 		} | ||||
| 	} | ||||
|   async function generateTeamCards(locale) { | ||||
|     toast.loading($_("generating-pdfs")); | ||||
|     let count = 0; | ||||
|     const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
|     for (const t of generate_teams) { | ||||
|       const runners = await RunnerTeamService.runnerTeamControllerGetRunners( | ||||
|         t.id | ||||
|       ); | ||||
|       let cards = []; | ||||
|       for (let runner of runners) { | ||||
|         let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|         if (!card) { | ||||
|           card = await RunnerCardService.runnerCardControllerPost({ | ||||
|             runner: runner.id, | ||||
|           }); | ||||
|         } | ||||
|         cards.push(card); | ||||
|       } | ||||
|       documentServer | ||||
|         .generateCards(cards, locale) | ||||
|         .then((blob) => { | ||||
|           download( | ||||
|             blob, | ||||
|             `${$_("runnercards")}_${t.name}-${locale}-${createId()}.pdf` | ||||
|           ); | ||||
|         }) | ||||
|         .catch((err) => {}); | ||||
|     } | ||||
|   } | ||||
|  | ||||
| 	async function generateOrgCards(locale) { | ||||
| 		toast.loading($_("generating-pdfs")); | ||||
| 		const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
| 		let count = 0; | ||||
| 		let count_orgs = 0; | ||||
| 		for (const o of generate_orgs) { | ||||
| 			count_orgs++; | ||||
| 			let count = 0; | ||||
| 			let runners = | ||||
| 				await RunnerOrganizationService.runnerOrganizationControllerGetRunners( | ||||
| 					o.id, | ||||
| 					true | ||||
| 				); | ||||
| 			let cards = []; | ||||
| 			for (let runner of runners) { | ||||
| 				let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
| 				if (!card) { | ||||
| 					card = await RunnerCardService.runnerCardControllerPost({ | ||||
| 						runner: runner.id, | ||||
| 					}); | ||||
| 				} | ||||
| 				cards.push(card); | ||||
| 			} | ||||
| 			await documentServer | ||||
| 				.generateCards(cards, locale) | ||||
| 				.then((blob) => { | ||||
| 					download( | ||||
| 						blob, | ||||
| 						`${$_("runnercards")}_${o.name}_direct-${locale}-${createId()}.pdf` | ||||
| 					); | ||||
| 				}) | ||||
| 				.catch((err) => {}); | ||||
| 			for (const t of o.teams) { | ||||
| 				count++; | ||||
| 				let runners = await RunnerTeamService.runnerTeamControllerGetRunners( | ||||
| 					t.id | ||||
| 				); | ||||
| 				let cards = []; | ||||
| 				for (let runner of runners) { | ||||
| 					let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
| 					if (!card) { | ||||
| 						card = await RunnerCardService.runnerCardControllerPost({ | ||||
| 							runner: runner.id, | ||||
| 						}); | ||||
| 					} | ||||
| 					cards.push(card); | ||||
| 				} | ||||
| 				await documentServer | ||||
| 					.generateCards(cards, locale) | ||||
| 					.then((blob) => { | ||||
| 						download( | ||||
| 							blob, | ||||
| 							`${$_("runnercards")}_${o.name}_${ | ||||
| 								t.name | ||||
| 							}-${locale}-${createId()}.pdf` | ||||
| 						); | ||||
| 					}) | ||||
| 					.catch((err) => {}); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|   async function generateOrgCards(locale) { | ||||
|     toast.loading($_("generating-pdfs")); | ||||
|     const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
|     let count = 0; | ||||
|     let count_orgs = 0; | ||||
|     for (const o of generate_orgs) { | ||||
|       count_orgs++; | ||||
|       let count = 0; | ||||
|       let runners = | ||||
|         await RunnerOrganizationService.runnerOrganizationControllerGetRunners( | ||||
|           o.id, | ||||
|           true | ||||
|         ); | ||||
|       let cards = []; | ||||
|       for (let runner of runners) { | ||||
|         let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|         if (!card) { | ||||
|           card = await RunnerCardService.runnerCardControllerPost({ | ||||
|             runner: runner.id, | ||||
|           }); | ||||
|         } | ||||
|         cards.push(card); | ||||
|       } | ||||
|       await documentServer | ||||
|         .generateCards(cards, locale) | ||||
|         .then((blob) => { | ||||
|           download( | ||||
|             blob, | ||||
|             `${$_("runnercards")}_${o.name}_direct-${locale}-${createId()}.pdf` | ||||
|           ); | ||||
|         }) | ||||
|         .catch((err) => {}); | ||||
|       for (const t of o.teams) { | ||||
|         count++; | ||||
|         let runners = await RunnerTeamService.runnerTeamControllerGetRunners( | ||||
|           t.id | ||||
|         ); | ||||
|         let cards = []; | ||||
|         for (let runner of runners) { | ||||
|           let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|           if (!card) { | ||||
|             card = await RunnerCardService.runnerCardControllerPost({ | ||||
|               runner: runner.id, | ||||
|             }); | ||||
|           } | ||||
|           cards.push(card); | ||||
|         } | ||||
|         await documentServer | ||||
|           .generateCards(cards, locale) | ||||
|           .then((blob) => { | ||||
|             download( | ||||
|               blob, | ||||
|               `${$_("runnercards")}_${o.name}_${ | ||||
|                 t.name | ||||
|               }-${locale}-${createId()}.pdf` | ||||
|             ); | ||||
|           }) | ||||
|           .catch((err) => {}); | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|   async function generateOrgCardsCombined(locale) { | ||||
|     toast.loading($_("generating-pdfs")); | ||||
|     const current_cards = await RunnerCardService.runnerCardControllerGetAll(); | ||||
|     let count = 0; | ||||
|     let count_orgs = 0; | ||||
|     for (const o of generate_orgs) { | ||||
|       count_orgs++; | ||||
|       let cards = []; | ||||
|       let count = 0; | ||||
|       let runners = | ||||
|         await RunnerOrganizationService.runnerOrganizationControllerGetRunners( | ||||
|           o.id, | ||||
|           true | ||||
|         ); | ||||
|       for (let runner of runners) { | ||||
|         let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|         if (!card) { | ||||
|           card = await RunnerCardService.runnerCardControllerPost({ | ||||
|             runner: runner.id, | ||||
|           }); | ||||
|         } | ||||
|         cards.push(card); | ||||
|       } | ||||
|       for (const t of o.teams) { | ||||
|         count++; | ||||
|         let runners = await RunnerTeamService.runnerTeamControllerGetRunners( | ||||
|           t.id | ||||
|         ); | ||||
|         for (let runner of runners) { | ||||
|           let card = current_cards.find((c) => c.runner?.id == runner.id); | ||||
|           if (!card) { | ||||
|             card = await RunnerCardService.runnerCardControllerPost({ | ||||
|               runner: runner.id, | ||||
|             }); | ||||
|           } | ||||
|           cards.push(card); | ||||
|         } | ||||
|       } | ||||
|       await documentServer | ||||
|         .generateCards(cards, locale) | ||||
|         .then((blob) => { | ||||
|           download( | ||||
|             blob, | ||||
|             `${$_("runnercards")}_${o.name}-${locale}-${createId()}.pdf` | ||||
|           ); | ||||
|         }) | ||||
|         .catch((err) => {}); | ||||
|     } | ||||
|   } | ||||
| </script> | ||||
|  | ||||
| {#if cards_show} | ||||
| 	<button | ||||
| 		on:click={() => { | ||||
| 			generateRunnerCards("de"); | ||||
| 		}} | ||||
| 		class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:w-auto sm:text-sm mb-1 lg:mb-0" | ||||
| 	> | ||||
| 		{$_("generate-runnercards")}: DE | ||||
| 	</button> | ||||
| 	<button | ||||
| 		on:click={() => { | ||||
| 			generateRunnerCards("en"); | ||||
| 		}} | ||||
| 		class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:w-auto sm:text-sm mb-1 lg:mb-0" | ||||
| 	> | ||||
| 		{$_("generate-runnercards")}: EN | ||||
| 	</button> | ||||
|   <button | ||||
|     on:click={() => { | ||||
|       generateRunnerCards("de"); | ||||
|     }} | ||||
|     on:contextmenu|preventDefault={() => { | ||||
|       generateRunnerCards("de", true); | ||||
|     }} | ||||
|     class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:w-auto sm:text-sm mb-1 lg:mb-0" | ||||
|   > | ||||
|     {$_("generate-runnercards")}: DE | ||||
|   </button> | ||||
|   <button | ||||
|     on:click={() => { | ||||
|       generateRunnerCards("en"); | ||||
|     }} | ||||
| 	on:contextmenu|preventDefault={() => { | ||||
|       generateRunnerCards("en", true); | ||||
|     }} | ||||
|     class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:w-auto sm:text-sm mb-1 lg:mb-0" | ||||
|   > | ||||
|     {$_("generate-runnercards")}: EN | ||||
|   </button> | ||||
| {/if} | ||||
|   | ||||
| @@ -289,6 +289,13 @@ | ||||
| 			<br /> | ||||
| 			<span class="text-gray-700">{original_data.distance / 1000} km</span> | ||||
| 		</div> | ||||
| 		<div class="text-sm w-full mt-2"> | ||||
| 			<span class="font-semibold text-gray-700">{$_("total-donation-amount")}</span> | ||||
| 			<br /> | ||||
| 			<span class="text-gray-700">{(editable.donationAmount / 100) | ||||
| 					.toFixed(2) | ||||
| 					.toLocaleString("de-DE", { valute: "EUR" })}€</span> | ||||
| 		</div> | ||||
| 		<div class="text-sm w-full mt-2"> | ||||
| 			<span class="font-semibold text-gray-700">{$_("created_via")}</span> | ||||
| 			<br /> | ||||
|   | ||||
| @@ -468,7 +468,7 @@ | ||||
|     "timestamp": "timestamp", | ||||
|     "token": "Token", | ||||
|     "total-distance": "total distance", | ||||
|     "total-donation-amount": "total donation amount", | ||||
|     "total-donation-amount": "Total donations", | ||||
|     "total-donation-count": "total donations (count)", | ||||
|     "total-donations": "total donations", | ||||
|     "total-donors": "total donors", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user