Compare commits

..

No commits in common. "1.4.5" and "1.4.4" have entirely different histories.
1.4.5 ... 1.4.4

8 changed files with 32 additions and 81 deletions

View File

@ -2,16 +2,8 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC. All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [1.4.5](https://git.odit.services/lfk/frontend/compare/1.4.4...1.4.5)
- Revert "revert: buggy pagination" [`dacb2f8`](https://git.odit.services/lfk/frontend/commit/dacb2f8ace373f6594fc64af133971af053f00c0)
- fix: Removed dynamic pagesize adjustments [`803d64c`](https://git.odit.services/lfk/frontend/commit/803d64c78caa570d31d6055e70e2d2af6834f04b)
#### [1.4.4](https://git.odit.services/lfk/frontend/compare/1.4.3...1.4.4) #### [1.4.4](https://git.odit.services/lfk/frontend/compare/1.4.3...1.4.4)
> 4 May 2023
- 🚀RELEASE v1.4.4 [`b7a5396`](https://git.odit.services/lfk/frontend/commit/b7a53960e5f37ae089d77bc11668d917145e2abb)
- fix(AddDonationModal): missing toast dismiss on success distance donation [`66f1e6b`](https://git.odit.services/lfk/frontend/commit/66f1e6b4fe1350ee79673a0aff97e36f44179c92) - fix(AddDonationModal): missing toast dismiss on success distance donation [`66f1e6b`](https://git.odit.services/lfk/frontend/commit/66f1e6b4fe1350ee79673a0aff97e36f44179c92)
#### [1.4.3](https://git.odit.services/lfk/frontend/compare/1.4.2...1.4.3) #### [1.4.3](https://git.odit.services/lfk/frontend/compare/1.4.2...1.4.3)

View File

@ -13,7 +13,7 @@
<body> <body>
<span style="display: none; visibility: hidden" id="buildinfo" <span style="display: none; visibility: hidden" id="buildinfo"
>RELEASE_INFO-1.4.5-RELEASE_INFO</span >RELEASE_INFO-1.4.4-RELEASE_INFO</span
> >
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<script src="/env.js"></script> <script src="/env.js"></script>

View File

@ -1,6 +1,6 @@
{ {
"name": "@odit/lfk-frontend", "name": "@odit/lfk-frontend",
"version": "1.4.5", "version": "1.4.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"i18n-order": "node order.js", "i18n-order": "node order.js",

View File

@ -153,7 +153,7 @@
onMount(async () => { onMount(async () => {
toast.loading($_("loading-cards")); toast.loading($_("loading-cards"));
let page = 0; let page = 0;
let pagesize = 500; let pagesize = 100;
while (page >= 0) { while (page >= 0) {
const cards = await RunnerCardService.runnerCardControllerGetAll( const cards = await RunnerCardService.runnerCardControllerGetAll(
page, page,
@ -171,6 +171,7 @@
dataLoaded = true; dataLoaded = true;
page++; page++;
pagesize += 100;
} }
toast.dismiss(); toast.dismiss();
toast.success($_("all-cards-loaded")); toast.success($_("all-cards-loaded"));

View File

@ -167,26 +167,13 @@
} }
onMount(async () => { onMount(async () => {
let page = 0; const donations = await DonationService.donationControllerGetAll();
let pagesize = 300; current_donations = donations;
while (page >= 0) { options.update((options) => ({
const donations = await DonationService.donationControllerGetAll( ...options,
page, data: current_donations,
pagesize }));
); dataLoaded = true;
if (donations.length == 0) {
page = -2;
}
current_donations = current_donations.concat(...donations);
options.update((options) => ({
...options,
data: current_donations,
}));
dataLoaded = true;
page++;
}
}); });
</script> </script>

View File

@ -146,23 +146,13 @@
} }
onMount(async () => { onMount(async () => {
let page = 0; const donors = await DonorService.donorControllerGetAll();
let pagesize = 300; current_donors = donors;
while (page >= 0) { options.update((options) => ({
const donors = await DonorService.donorControllerGetAll(page, pagesize); ...options,
if (donors.length == 0) { data: donors,
page = -2; }));
} dataLoaded = true;
current_donors = current_donors.concat(...donors);
options.update((options) => ({
...options,
data: current_donors,
}));
dataLoaded = true;
page++;
}
}); });
</script> </script>

View File

@ -161,22 +161,13 @@
} }
); );
let page = 0; const runners = await RunnerService.runnerControllerGetAll();
while (page >= 0) { current_runners = runners;
const runners = await RunnerService.runnerControllerGetAll(page, 500); options.update((options) => ({
if (runners.length == 0) { ...options,
page = -2; data: current_runners,
} }));
dataLoaded = true;
current_runners = current_runners.concat(...runners);
options.update((options) => ({
...options,
data: current_runners,
}));
dataLoaded = true;
page++;
}
}); });
</script> </script>

View File

@ -178,23 +178,13 @@
} }
onMount(async () => { onMount(async () => {
let page = 0; const scans = await ScanService.scanControllerGetAll();
let pagesize = 500; current_scans = scans;
while (page >= 0) { options.update((options) => ({
const scans = await ScanService.scanControllerGetAll(page, pagesize); ...options,
if (scans.length == 0) { data: current_scans,
page = -2; }));
} dataLoaded = true;
current_scans = current_scans.concat(...scans);
options.update((options) => ({
...options,
data: current_scans,
}));
dataLoaded = true;
page++;
}
}); });
</script> </script>