feat: Add email configuration and alert system

Introduces SMTP configuration settings and alert definitions to enable automated email notifications.
This includes new types for `SmtpConfig` and `AlertDefinition`, and integrates these into the settings page and mock database.
Adds styling for select elements and scrollbar hiding in the main HTML.
Updates mock database logic to potentially support local development without a backend.
This commit is contained in:
2025-12-06 23:01:02 +01:00
parent 89f4c9946b
commit 26fc451871
13 changed files with 1167 additions and 223 deletions

View File

@@ -1,29 +0,0 @@
# Stage 1: Build
FROM node:20-alpine as build
WORKDIR /app
# Copia i file di dipendenze
COPY package*.json ./
# Installa le dipendenze
RUN npm install
# Copia tutto il codice sorgente
COPY . .
# Esegui la build di produzione (crea la cartella dist)
RUN npm run build
# Stage 2: Serve con Nginx
FROM nginx:alpine
# Copia i file compilati dalla build precedente alla cartella di Nginx
COPY --from=build /app/dist /usr/share/nginx/html
# Copia la configurazione custom di Nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]