Add production installer and observability tooling

This commit is contained in:
2026-05-07 12:11:15 -03:00
parent a19ac9f00c
commit 5d92a6c99a
30 changed files with 3493 additions and 1015 deletions
+369
View File
@@ -0,0 +1,369 @@
:root {
--white: #fff;
--black: #000;
--gray-100: #f8f9fa;
--gray-200: #e9ecef;
--gray-400: #ced4da;
--gray-500: #adb5bd;
--gray-600: #6c757d;
--gray-700: #495057;
--gray-800: #343a40;
--gray-900: #212529;
--red: #dc3545;
--orange: #fd7e14;
--yellow: #ffc107;
--green: #198754;
--teal: #20c997;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
body {
line-height: 1.5;
}
a {
color: inherit;
text-decoration: none;
}
button,
input,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.container {
width: min(100% - 2rem, 1200px);
margin: 0 auto;
}
.row {
display: flex;
flex-wrap: wrap;
margin: calc(var(--gutter-y, 0) * -0.5) calc(var(--gutter-x, 0) * -0.5);
}
.row > * {
width: 100%;
padding: calc(var(--gutter-y, 0) * 0.5) calc(var(--gutter-x, 0) * 0.5);
}
.g-2 {
--gutter-x: 0.5rem;
--gutter-y: 0.5rem;
}
.g-3 {
--gutter-x: 1rem;
--gutter-y: 1rem;
}
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-6,
.col-lg-6,
.col-xl-3 {
flex: 0 0 100%;
max-width: 100%;
}
@media (min-width: 768px) {
.col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 1200px) {
.col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}
.d-block { display: block; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-uppercase { text-transform: uppercase; }
.fw-semibold { font-weight: 600; }
.small { font-size: 0.875rem; }
.h3, .h4, .h6 { margin: 0; font-weight: 600; line-height: 1.2; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h6 { font-size: 1rem; }
.fs-5 { font-size: 1.25rem; }
.fs-6 { font-size: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-3 { padding: 1rem; }
.w-100 { width: 100%; }
.rounded { border-radius: 0.5rem; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.text-light { color: var(--gray-100); }
.text-secondary { color: var(--gray-500); }
.text-danger { color: #ff7b89; }
.bg-dark { background: rgba(0, 0, 0, 0.35); }
.bg-black { background: rgba(0, 0, 0, 0.55); }
.bg-danger { background: rgba(220, 53, 69, 0.9); color: var(--white); }
.bg-secondary { background: rgba(108, 117, 125, 0.95); color: var(--white); }
.bg-success { background: rgba(25, 135, 84, 0.95); color: var(--white); }
.border-secondary { border-color: rgba(255, 255, 255, 0.14); }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 0.65rem 1rem;
border-radius: 0.6rem;
border: 1px solid transparent;
background: transparent;
color: var(--white);
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-sm {
padding: 0.45rem 0.8rem;
font-size: 0.875rem;
}
.btn-danger {
background: var(--red);
border-color: var(--red);
}
.btn-success {
background: var(--green);
border-color: var(--green);
}
.btn-warning {
background: var(--yellow);
border-color: var(--yellow);
color: var(--gray-900);
}
.btn-outline-light {
border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-danger {
border-color: rgba(220, 53, 69, 0.75);
color: #ff9ba6;
}
.btn-outline-secondary {
border-color: rgba(173, 181, 189, 0.5);
color: var(--gray-200);
}
.form-label,
.form-text {
display: block;
}
.form-label {
margin-bottom: 0.35rem;
}
.form-text {
margin-top: 0.35rem;
font-size: 0.875rem;
}
.form-control {
width: 100%;
padding: 0.7rem 0.85rem;
border-radius: 0.6rem;
border: 1px solid rgba(255, 255, 255, 0.14);
background: rgba(0, 0, 0, 0.35);
color: var(--gray-100);
}
.form-control:focus {
outline: 2px solid rgba(255, 90, 61, 0.35);
border-color: rgba(255, 90, 61, 0.55);
}
.form-control-sm {
padding: 0.55rem 0.7rem;
font-size: 0.875rem;
}
.alert {
position: relative;
padding: 0.8rem 1rem;
border-radius: 0.75rem;
border: 1px solid transparent;
margin-bottom: 1rem;
}
.alert-warning {
background: rgba(255, 193, 7, 0.14);
border-color: rgba(255, 193, 7, 0.35);
color: #ffe28a;
}
.alert-danger {
background: rgba(220, 53, 69, 0.14);
border-color: rgba(220, 53, 69, 0.35);
color: #ff9ba6;
}
.alert-success {
background: rgba(25, 135, 84, 0.14);
border-color: rgba(25, 135, 84, 0.35);
color: #8de5b6;
}
.badge {
display: inline-flex;
align-items: center;
border-radius: 999px;
padding: 0.35rem 0.7rem;
font-weight: 600;
}
.spinner-border {
display: inline-block;
width: 2rem;
height: 2rem;
border: 0.25em solid currentColor;
border-right-color: transparent;
border-radius: 50%;
animation: spin 0.75s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.modal {
position: fixed;
inset: 0;
z-index: 1050;
display: none;
overflow-y: auto;
padding: 1rem;
background: rgba(0, 0, 0, 0.6);
}
.modal.show {
display: block;
}
.modal-dialog {
width: min(100%, 560px);
margin: 2rem auto;
}
.modal-lg {
width: min(100%, 900px);
}
.modal-dialog-scrollable .modal-content {
max-height: calc(100vh - 4rem);
}
.modal-content {
display: flex;
flex-direction: column;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 1rem;
overflow: hidden;
}
.modal-header,
.modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.25rem;
}
.modal-body {
padding: 1rem 1.25rem;
overflow-y: auto;
}
.btn-close {
width: 2rem;
height: 2rem;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--gray-100);
position: relative;
}
.btn-close::before,
.btn-close::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 1rem;
height: 2px;
background: currentColor;
transform-origin: center;
}
.btn-close::before {
transform: translate(-50%, -50%) rotate(45deg);
}
.btn-close::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
.btn-close-white {
color: var(--white);
}
textarea {
resize: vertical;
}
+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<circle cx="32" cy="32" r="24" fill="#12171d" stroke="#ff9f1c" stroke-width="4"/>
<path d="M24 42c0-5 3-8 8-13 5 5 8 8 8 13a8 8 0 1 1-16 0Z" fill="#ff9f1c"/>
<path d="M24 18c0 3-2 4-2 7M32 16c0 4-2 5-2 8M40 18c0 3-2 4-2 7" stroke="#edf2f7" stroke-width="3" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 368 B

+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<circle cx="32" cy="32" r="24" fill="#12171d" stroke="#ff5a3d" stroke-width="4"/>
<circle cx="32" cy="32" r="8" fill="#ff5a3d"/>
<path d="M18 20c2-4 5-6 9-7M37 13c4 1 7 3 9 7M16 32h32M20 44c6 5 18 5 24 0" stroke="#edf2f7" stroke-width="3" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 350 B

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<rect x="14" y="14" width="36" height="36" rx="8" fill="#12171d" stroke="#38bdf8" stroke-width="4"/>
<path d="M24 32h16M32 24v16" stroke="#38bdf8" stroke-width="4" stroke-linecap="round"/>
<circle cx="20" cy="20" r="2.5" fill="#edf2f7"/>
<circle cx="44" cy="20" r="2.5" fill="#edf2f7"/>
<circle cx="20" cy="44" r="2.5" fill="#edf2f7"/>
<circle cx="44" cy="44" r="2.5" fill="#edf2f7"/>
</svg>

After

Width:  |  Height:  |  Size: 477 B

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<rect x="12" y="8" width="40" height="48" rx="6" fill="#12171d" stroke="#22c55e" stroke-width="4"/>
<rect x="20" y="16" width="24" height="10" rx="2" fill="#0f172a" stroke="#22c55e" stroke-width="2"/>
<circle cx="24" cy="38" r="3" fill="#22c55e"/>
<circle cx="32" cy="38" r="3" fill="#ff9f1c"/>
<circle cx="40" cy="38" r="3" fill="#ef4444"/>
<path d="M22 48h20" stroke="#edf2f7" stroke-width="3" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 513 B

+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<path d="M22 44h20l-3-18a7 7 0 0 0-14 0l-3 18Z" fill="#ef4444" stroke="#12171d" stroke-width="3"/>
<rect x="18" y="44" width="28" height="8" rx="3" fill="#edf2f7"/>
<path d="M18 20l-5-5M46 20l5-5M32 12V6" stroke="#edf2f7" stroke-width="3" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 350 B

+53
View File
@@ -0,0 +1,53 @@
(function () {
class Modal {
constructor(element) {
this.element = element;
this.onBackdropClick = this.onBackdropClick.bind(this);
this.onKeydown = this.onKeydown.bind(this);
}
show() {
this.element.classList.add("show");
this.element.setAttribute("aria-hidden", "false");
document.body.style.overflow = "hidden";
this.element.addEventListener("click", this.onBackdropClick);
document.addEventListener("keydown", this.onKeydown);
}
hide() {
this.element.classList.remove("show");
this.element.setAttribute("aria-hidden", "true");
document.body.style.overflow = "";
this.element.removeEventListener("click", this.onBackdropClick);
document.removeEventListener("keydown", this.onKeydown);
}
onBackdropClick(event) {
if (event.target === this.element || event.target.closest("[data-bs-dismiss='modal']")) {
this.hide();
}
}
onKeydown(event) {
if (event.key === "Escape") {
this.hide();
}
}
}
function installAlertDismiss() {
document.addEventListener("click", (event) => {
const button = event.target.closest("[data-bs-dismiss='alert']");
if (!button) {
return;
}
const alert = button.closest(".alert");
if (alert) {
alert.remove();
}
});
}
installAlertDismiss();
window.bootstrap = { Modal };
})();