fix(admin): persist data directory and pass env vars

This commit is contained in:
Schubert Ferenc 2026-07-03 22:25:04 +02:00
parent 99e8201745
commit 1d7e7c41c9
39 changed files with 1297 additions and 32 deletions

48
lib/admin/types.ts Normal file
View file

@ -0,0 +1,48 @@
export type InquiryStatus = "new" | "in_progress" | "done";
export type ContactInquiry = {
id: string;
createdAt: string;
status: InquiryStatus;
name: string;
email: string;
phone?: string;
subject?: string;
message: string;
};
export type RepairInquiry = {
id: string;
createdAt: string;
status: InquiryStatus;
name: string;
email: string;
phone?: string;
manufacturer: string;
model: string;
serialNumber?: string;
deviceType: string;
accessories?: string;
opened?: string;
previousWork?: string;
description: string;
};
export type SiteSettings = {
companyName: string;
phone: string;
email: string;
address: string;
openingHours: string;
googleMapsEmbedUrl: string;
socialLinks: string;
};
export type SmtpSettings = {
host: string;
port: string;
username: string;
fromAddress: string;
replyToAddress: string;
tls: boolean;
};