feat(cloudron): add tirreno package artifacts
- 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.
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
import {fireEvent} from './utils/Event.js?v=2';
|
||||
|
||||
export class DeleteAccountPopUp {
|
||||
|
||||
constructor() {
|
||||
|
||||
const onDeleteAccountButtonClicked = this.onDeleteAccountButtonClicked.bind(this);
|
||||
this.closeAccountButton.addEventListener('click', onDeleteAccountButtonClicked, false);
|
||||
|
||||
const onConfirmDeleteAccountButton = this.onConfirmDeleteAccountButton.bind(this);
|
||||
this.confirmButton.addEventListener('click', onConfirmDeleteAccountButton, false);
|
||||
|
||||
const onKeydown = this.onKeydown.bind(this);
|
||||
window.addEventListener('keydown', onKeydown, false);
|
||||
|
||||
const onCloseButtonClick = this.onCloseButtonClick.bind(this);
|
||||
this.closePopUpButton.addEventListener('click', onCloseButtonClick, false);
|
||||
}
|
||||
|
||||
//https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
|
||||
onKeydown(e) {
|
||||
if (e.defaultPrevented) {
|
||||
return; // Do nothing if the event was already processed
|
||||
}
|
||||
switch (e.key) {
|
||||
case 'Esc': // IE/Edge specific value
|
||||
case 'Escape':
|
||||
this.close();
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
// Cancel the default action to avoid it being handled twice
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
onConfirmDeleteAccountButton(e) {
|
||||
e.preventDefault();
|
||||
this.accountForm.submit();
|
||||
|
||||
this.card.classList.add('is-hidden');
|
||||
this.contentDiv.classList.add('is-hidden');
|
||||
|
||||
}
|
||||
|
||||
onDeleteAccountButtonClicked(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// close other panels
|
||||
const card = document.querySelector('.details-card#enrich-all-popup');
|
||||
if (card && !card.classList.contains('is-hidden')) {
|
||||
fireEvent('enrichAllPopUpClosed');
|
||||
card.classList.add('is-hidden');
|
||||
}
|
||||
|
||||
this.card.classList.remove('is-hidden');
|
||||
this.contentDiv.classList.remove('is-hidden');
|
||||
}
|
||||
|
||||
onCloseButtonClick(e) {
|
||||
e.preventDefault();
|
||||
this.close();
|
||||
}
|
||||
|
||||
close() {
|
||||
fireEvent('closeAccountPopUpClosed');
|
||||
this.card.classList.add('is-hidden');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
get contentDiv() {
|
||||
return this.card.querySelector('div.content');
|
||||
}
|
||||
|
||||
get card() {
|
||||
return document.querySelector('.details-card#close-account-popup');
|
||||
}
|
||||
|
||||
get closePopUpButton() {
|
||||
return this.card.querySelector('.delete');
|
||||
}
|
||||
|
||||
get accountForm() {
|
||||
return document.getElementById('close-account-form');
|
||||
}
|
||||
|
||||
get confirmButton() {
|
||||
return document.getElementById('confirm-close-account-button');
|
||||
}
|
||||
|
||||
get closeAccountButton() {
|
||||
return document.getElementById('close-account-btn');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user