Compare commits

...

2 Commits
1.4.2 ... 1.4.3

Author SHA1 Message Date
33166bfafc
🚀RELEASE v1.4.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-04 14:32:56 +02:00
b2648645e8
revert: buggy pagination
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-04 14:32:37 +02:00
7 changed files with 37 additions and 77 deletions

View File

@ -2,8 +2,15 @@
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)
> 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(DonorDetail): missing toast import [`edc2dca`](https://git.odit.services/lfk/frontend/commit/edc2dcab92c3cace05335a283a849c3c978ec8ec)

View File

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

View File

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

View File

@ -167,27 +167,13 @@
}
onMount(async () => {
let page = 0;
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,
data: current_donations,
}));
dataLoaded = true;
page++;
pagesize += 100;
}
const donations = await DonationService.donationControllerGetAll();
current_donations = donations;
options.update((options) => ({
...options,
data: current_donations,
}));
dataLoaded = true;
});
</script>

View File

@ -146,24 +146,13 @@
}
onMount(async () => {
let page = 0;
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,
data: current_donors,
}));
dataLoaded = true;
page++;
pagesize += 100;
}
const donors = await DonorService.donorControllerGetAll();
current_donors = donors;
options.update((options) => ({
...options,
data: donors,
}));
dataLoaded = true;
});
</script>

View File

@ -161,22 +161,13 @@
}
);
let page = 0;
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,
data: current_runners,
}));
dataLoaded = true;
page++;
}
const runners = await RunnerService.runnerControllerGetAll();
current_runners = runners;
options.update((options) => ({
...options,
data: current_runners,
}));
dataLoaded = true;
});
</script>

View File

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