- Add CloudronStack/output/CloudronPackages-Artifacts/tirreno/ directory and its contents - Includes package manifest, Dockerfile, source code, documentation, and build artifacts - Add tirreno-1761840148.tar.gz as a build artifact - Add tirreno-cloudron-package-1761841304.tar.gz as the Cloudron package - Include all necessary files for the tirreno Cloudron package This adds the complete tirreno Cloudron package artifacts to the repository.
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
export class ThresholdsForm {
|
|
constructor() {
|
|
const updateReviewQueueOptions = this.updateReviewQueueOptions.bind(this);
|
|
this.blacklistOptions.forEach(radio => {
|
|
radio.addEventListener('change', updateReviewQueueOptions, false);
|
|
});
|
|
|
|
const updateBlacklistOptions = this.updateBlacklistOptions.bind(this);
|
|
this.reviewQueueOptions.forEach(radio => {
|
|
radio.addEventListener('change', updateBlacklistOptions, false);
|
|
});
|
|
}
|
|
|
|
updateReviewQueueOptions(e) {
|
|
const blacklistValue = this.blacklistVal;
|
|
|
|
this.reviewQueueOptions.forEach(radio => {
|
|
const value = parseInt(radio.value, 10);
|
|
radio.disabled = value <= blacklistValue;
|
|
});
|
|
}
|
|
|
|
updateBlacklistOptions(e) {
|
|
const reviewValue = this.reviewQueueVal;
|
|
|
|
this.blacklistOptions.forEach(radio => {
|
|
const value = parseInt(radio.value, 10);
|
|
radio.disabled = value >= reviewValue;
|
|
});
|
|
}
|
|
|
|
|
|
get reviewQueueOptions() {
|
|
return document.querySelectorAll('input[name="review-queue-threshold"]');
|
|
}
|
|
|
|
get blacklistOptions() {
|
|
return document.querySelectorAll('input[name="blacklist-threshold"]');
|
|
}
|
|
|
|
get reviewQueueVal() {
|
|
return parseInt(document.querySelector('input[name="review-queue-threshold"]:checked').value || 100, 10);
|
|
}
|
|
|
|
get blacklistVal() {
|
|
return parseInt(document.querySelector('input[name="blacklist-threshold"]:checked').value || -1, 10);
|
|
}
|
|
}
|