Update App.tsx
This commit is contained in:
18
App.tsx
18
App.tsx
@@ -38,7 +38,7 @@ const App: React.FC = () => {
|
||||
const clonedTemplate: EmailTemplate = {
|
||||
...t,
|
||||
id: crypto.randomUUID(), // Generate new ID so it's treated as a new insert
|
||||
name: `${t.name} (Copy)`,
|
||||
name: `${t.name} (Copia)`,
|
||||
updatedAt: new Date().toISOString()
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@ const App: React.FC = () => {
|
||||
};
|
||||
|
||||
const handleDelete = async (id: string) => {
|
||||
if (window.confirm("Are you sure you want to delete this template?")) {
|
||||
if (window.confirm("Sei sicuro di voler eliminare questo template?")) {
|
||||
await deleteTemplate(id);
|
||||
await refreshTemplates();
|
||||
}
|
||||
@@ -64,7 +64,7 @@ const App: React.FC = () => {
|
||||
<>
|
||||
{isLoading ? (
|
||||
<div className="flex h-screen items-center justify-center text-slate-500">
|
||||
Loading templates...
|
||||
Caricamento template...
|
||||
</div>
|
||||
) : (
|
||||
<TemplateList
|
||||
@@ -81,7 +81,7 @@ const App: React.FC = () => {
|
||||
className="bg-slate-800 text-white px-4 py-3 rounded-full shadow-lg hover:bg-slate-900 flex items-center gap-2 text-sm font-medium transition-transform hover:scale-105"
|
||||
>
|
||||
<Database size={18} />
|
||||
DB Schema
|
||||
Schema DB
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
@@ -101,10 +101,10 @@ const App: React.FC = () => {
|
||||
<div className="bg-white rounded-xl shadow-2xl max-w-2xl w-full p-6">
|
||||
<h2 className="text-xl font-bold mb-4 flex items-center gap-2">
|
||||
<Database className="text-brand-600"/>
|
||||
Database Setup for n8n
|
||||
Configurazione Database per n8n
|
||||
</h2>
|
||||
<p className="text-slate-600 text-sm mb-4">
|
||||
To make this app work with your internal software, create this table in your MySQL or PostgreSQL database.
|
||||
Per far funzionare questa app con il tuo software interno, crea questa tabella nel tuo database MySQL o PostgreSQL.
|
||||
</p>
|
||||
<div className="bg-slate-900 text-slate-100 p-4 rounded-lg overflow-x-auto custom-scrollbar mb-4">
|
||||
<pre className="text-xs font-mono leading-relaxed">{SQL_SCHEMA}</pre>
|
||||
@@ -113,17 +113,17 @@ const App: React.FC = () => {
|
||||
<button
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(SQL_SCHEMA);
|
||||
alert("Schema copied!");
|
||||
alert("Schema copiato!");
|
||||
}}
|
||||
className="px-4 py-2 bg-slate-100 text-slate-700 font-medium rounded hover:bg-slate-200"
|
||||
>
|
||||
Copy SQL
|
||||
Copia SQL
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setShowSchema(false)}
|
||||
className="px-4 py-2 bg-brand-600 text-white font-medium rounded hover:bg-brand-700"
|
||||
>
|
||||
Close
|
||||
Chiudi
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user