Compare commits

..

No commits in common. "1.4.3" and "1.4.2" have entirely different histories.
1.4.3 ... 1.4.2

7 changed files with 77 additions and 37 deletions

View File

@ -2,15 +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.3](https://git.odit.services/lfk/frontend/compare/1.4.2...1.4.3)
- revert: buggy pagination [`b264864`](https://git.odit.services/lfk/frontend/commit/b2648645e8fc05f8742ecfc592557f954261671b)
#### [1.4.2](https://git.odit.services/lfk/frontend/compare/1.4.1...1.4.2) #### [1.4.2](https://git.odit.services/lfk/frontend/compare/1.4.1...1.4.2)
> 4 May 2023
- 🚀RELEASE v1.4.2 [`53e3ddb`](https://git.odit.services/lfk/frontend/commit/53e3ddb751c1150a4640ae6302e4df5b88cedc51)
- fix(GenerateRunnerCertificates): missing toast import [`d49f545`](https://git.odit.services/lfk/frontend/commit/d49f545d94acabc0c96860f212466b7a4cbe7dab) - fix(GenerateRunnerCertificates): missing toast import [`d49f545`](https://git.odit.services/lfk/frontend/commit/d49f545d94acabc0c96860f212466b7a4cbe7dab)
- fix(DonorDetail): missing toast import [`edc2dca`](https://git.odit.services/lfk/frontend/commit/edc2dcab92c3cace05335a283a849c3c978ec8ec) - fix(DonorDetail): missing toast import [`edc2dca`](https://git.odit.services/lfk/frontend/commit/edc2dcab92c3cace05335a283a849c3c978ec8ec)

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.3-RELEASE_INFO</span >RELEASE_INFO-1.4.2-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.3", "version": "1.4.2",
"type": "module", "type": "module",
"scripts": { "scripts": {
"i18n-order": "node order.js", "i18n-order": "node order.js",

View File

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

View File

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

View File

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

View File

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