✨ feat(email): Add traffic exhaustion template
This commit is contained in:
parent
fbad3b0e51
commit
bb3bd7b50c
@ -286,31 +286,34 @@ export default function Page() {
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value='template'>
|
||||
<div className='grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3'>
|
||||
{['verify_email_template', 'expiration_email_template', 'maintenance_email_template'].map(
|
||||
(templateKey) => (
|
||||
<Card key={templateKey}>
|
||||
<CardHeader>
|
||||
<CardTitle>{t(`${templateKey}`)}</CardTitle>
|
||||
<CardDescription>
|
||||
{t(`${templateKey}Description`, { after: '{{', before: '}}' })}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<HTMLEditor
|
||||
placeholder={t('inputPlaceholder')}
|
||||
value={data?.config?.[templateKey] as string}
|
||||
onBlur={(value) =>
|
||||
updateConfig('config', {
|
||||
...data?.config,
|
||||
[templateKey]: value,
|
||||
})
|
||||
}
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
),
|
||||
)}
|
||||
<div className='grid grid-cols-1 gap-4 md:grid-cols-2'>
|
||||
{[
|
||||
'verify_email_template',
|
||||
'expiration_email_template',
|
||||
'maintenance_email_template',
|
||||
'traffic_exceed_email_template',
|
||||
].map((templateKey) => (
|
||||
<Card key={templateKey}>
|
||||
<CardHeader>
|
||||
<CardTitle>{t(`${templateKey}`)}</CardTitle>
|
||||
<CardDescription>
|
||||
{t(`${templateKey}Description`, { after: '{{', before: '}}' })}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<HTMLEditor
|
||||
placeholder={t('inputPlaceholder')}
|
||||
value={data?.config?.[templateKey] as string}
|
||||
onBlur={(value) =>
|
||||
updateConfig('config', {
|
||||
...data?.config,
|
||||
[templateKey]: value,
|
||||
})
|
||||
}
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Stav",
|
||||
"subject": "Předmět",
|
||||
"template": "Šablona",
|
||||
"traffic_exceed_email_template": "Šablona oznámení o překročení provozu",
|
||||
"traffic_exceed_email_templateDescription": "Zástupné symboly {after}.variable{before} budou nahrazeny skutečnými daty. Ujistěte se, že tyto proměnné zachováte.",
|
||||
"verify_email_template": "Šablona ověřovacího e-mailu",
|
||||
"verify_email_templateDescription": "Zástupné symboly {after}.variable{before} budou nahrazeny skutečnými daty. Ujistěte se, že tyto proměnné zachováte.",
|
||||
"whitelistSuffixes": "Povolené přípony",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Status",
|
||||
"subject": "Betreff",
|
||||
"template": "Vorlage",
|
||||
"traffic_exceed_email_template": "Benachrichtigung über überschreitenden Verkehr",
|
||||
"traffic_exceed_email_templateDescription": "Die Platzhalter {after}.variable{before} werden durch tatsächliche Daten ersetzt. Stellen Sie sicher, dass Sie diese Variablen beibehalten.",
|
||||
"verify_email_template": "E-Mail-Bestätigungsvorlage",
|
||||
"verify_email_templateDescription": "Die Platzhalter {after}.variable{before} werden durch tatsächliche Daten ersetzt. Stellen Sie sicher, dass diese Variablen beibehalten werden.",
|
||||
"whitelistSuffixes": "Whitelist-Suffixe",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Status",
|
||||
"subject": "Subject",
|
||||
"template": "Template",
|
||||
"traffic_exceed_email_template": "Traffic Exceed Notice Template",
|
||||
"traffic_exceed_email_templateDescription": "The {after}.variable{before} placeholders will be replaced with actual data. Ensure to keep these variables.",
|
||||
"verify_email_template": "Verification Email Template",
|
||||
"verify_email_templateDescription": "The {after}.variable{before} placeholders will be replaced with actual data. Ensure to keep these variables.",
|
||||
"whitelistSuffixes": "Whitelist Suffixes",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Estado",
|
||||
"subject": "Asunto",
|
||||
"template": "Plantilla",
|
||||
"traffic_exceed_email_template": "Plantilla de Notificación de Exceso de Tráfico",
|
||||
"traffic_exceed_email_templateDescription": "Los marcadores de posición {after}.variable{before} serán reemplazados con datos reales. Asegúrate de mantener estas variables.",
|
||||
"verify_email_template": "Plantilla de Correo Electrónico de Verificación",
|
||||
"verify_email_templateDescription": "Los marcadores de posición {after}.variable{before} serán reemplazados con datos reales. Asegúrese de mantener estas variables.",
|
||||
"whitelistSuffixes": "Sufijos de la lista blanca",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Estado",
|
||||
"subject": "Asunto",
|
||||
"template": "Plantilla",
|
||||
"traffic_exceed_email_template": "Plantilla de Notificación de Exceso de Tráfico",
|
||||
"traffic_exceed_email_templateDescription": "Los marcadores de posición {after}.variable{before} serán reemplazados con datos reales. Asegúrate de mantener estas variables.",
|
||||
"verify_email_template": "Plantilla de Correo Electrónico de Verificación",
|
||||
"verify_email_templateDescription": "Los marcadores de posición {after}.variable{before} serán reemplazados con datos reales. Asegúrate de mantener estas variables.",
|
||||
"whitelistSuffixes": "Sufijos de Lista Blanca",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "وضعیت",
|
||||
"subject": "موضوع",
|
||||
"template": "الگو",
|
||||
"traffic_exceed_email_template": "الگوی اعلان ترافیک بیش از حد",
|
||||
"traffic_exceed_email_templateDescription": "جایگزینهای {after}.variable{before} با دادههای واقعی خواهد شد. اطمینان حاصل کنید که این متغیرها را حفظ کنید.",
|
||||
"verify_email_template": "قالب ایمیل تأیید",
|
||||
"verify_email_templateDescription": "جایگذاریهای {after}.variable{before} با دادههای واقعی جایگزین خواهند شد. اطمینان حاصل کنید که این متغیرها را حفظ کنید.",
|
||||
"whitelistSuffixes": "پسوندهای لیست سفید",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Tila",
|
||||
"subject": "Aihe",
|
||||
"template": "Malline",
|
||||
"traffic_exceed_email_template": "Liikenteen Ylitysilmoitusmalli",
|
||||
"traffic_exceed_email_templateDescription": "{after}.variable{before} -paikat korvataan todellisilla tiedoilla. Varmista, että säilytät nämä muuttujat.",
|
||||
"verify_email_template": "Sähköpostin Vahvistusmalli",
|
||||
"verify_email_templateDescription": "Paikkamerkit {after}.variable{before} korvataan todellisilla tiedoilla. Varmista, että pidät nämä muuttujat.",
|
||||
"whitelistSuffixes": "Sallittujen luetteloiden päätteet",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Statut",
|
||||
"subject": "Sujet",
|
||||
"template": "Modèle",
|
||||
"traffic_exceed_email_template": "Modèle de notification de dépassement de trafic",
|
||||
"traffic_exceed_email_templateDescription": "Les espaces réservés {after}.variable{before} seront remplacés par des données réelles. Assurez-vous de conserver ces variables.",
|
||||
"verify_email_template": "Modèle d'Email de Vérification",
|
||||
"verify_email_templateDescription": "Les espaces réservés {after}.variable{before} seront remplacés par des données réelles. Assurez-vous de conserver ces variables.",
|
||||
"whitelistSuffixes": "Suffixes de la liste blanche",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "स्थिति",
|
||||
"subject": "विषय",
|
||||
"template": "टेम्पलेट",
|
||||
"traffic_exceed_email_template": "ट्रैफिक अधिकता सूचना टेम्पलेट",
|
||||
"traffic_exceed_email_templateDescription": "{after}.variable{before} प्लेसहोल्डर्स को वास्तविक डेटा के साथ प्रतिस्थापित किया जाएगा। सुनिश्चित करें कि इन वेरिएबल्स को बनाए रखें।",
|
||||
"verify_email_template": "सत्यापन ईमेल टेम्पलेट",
|
||||
"verify_email_templateDescription": "{after}.variable{before} प्लेसहोल्डर्स को वास्तविक डेटा से बदला जाएगा। सुनिश्चित करें कि इन वेरिएबल्स को बनाए रखें।",
|
||||
"whitelistSuffixes": "श्वेतसूची प्रत्यय",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Állapot",
|
||||
"subject": "Tárgy",
|
||||
"template": "Sablon",
|
||||
"traffic_exceed_email_template": "Forgalmi Túllépés Értesítő Sablon",
|
||||
"traffic_exceed_email_templateDescription": "A {after}.variable{before} helyettesítők tényleges adatokkal lesznek helyettesítve. Győződjön meg róla, hogy ezeket a változókat megőrzi.",
|
||||
"verify_email_template": "Ellenőrző Email Sablon",
|
||||
"verify_email_templateDescription": "A {after}.variable{before} helyőrzőket tényleges adatokkal fogjuk helyettesíteni. Ügyeljen arra, hogy ezeket a változókat megtartsa.",
|
||||
"whitelistSuffixes": "Engedélyezett utótagok",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "ステータス",
|
||||
"subject": "件名",
|
||||
"template": "テンプレート",
|
||||
"traffic_exceed_email_template": "トラフィック超過通知テンプレート",
|
||||
"traffic_exceed_email_templateDescription": "{after}と{before}の変数は実際のデータに置き換えられます。これらの変数を保持することを確認してください。",
|
||||
"verify_email_template": "確認メールテンプレート",
|
||||
"verify_email_templateDescription": "{after}.variable{before} のプレースホルダーは実際のデータに置き換えられます。これらの変数を保持してください。",
|
||||
"whitelistSuffixes": "ホワイトリストのサフィックス",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "상태",
|
||||
"subject": "제목",
|
||||
"template": "템플릿",
|
||||
"traffic_exceed_email_template": "트래픽 초과 알림 템플릿",
|
||||
"traffic_exceed_email_templateDescription": "{after}.variable{before} 자리표시는 실제 데이터로 대체됩니다. 이러한 변수를 유지해야 합니다.",
|
||||
"verify_email_template": "이메일 인증 템플릿",
|
||||
"verify_email_templateDescription": "{after}.variable{before} 자리표시는 실제 데이터로 대체됩니다. 이 변수를 반드시 유지하십시오.",
|
||||
"whitelistSuffixes": "허용 목록 접미사",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Status",
|
||||
"subject": "Emne",
|
||||
"template": "Mal",
|
||||
"traffic_exceed_email_template": "Varsel om overskridelse av trafikk",
|
||||
"traffic_exceed_email_templateDescription": "Plassholderne {after}.variable{before} vil bli erstattet med faktiske data. Sørg for å beholde disse variablene.",
|
||||
"verify_email_template": "Verifikasjons-e-postmal",
|
||||
"verify_email_templateDescription": "Plassholderne {after}.variable{before} vil bli erstattet med faktiske data. Sørg for å beholde disse variablene.",
|
||||
"whitelistSuffixes": "Hvitelistesuffikser",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Status",
|
||||
"subject": "Temat",
|
||||
"template": "Szablon",
|
||||
"traffic_exceed_email_template": "Szablon powiadomienia o przekroczeniu ruchu",
|
||||
"traffic_exceed_email_templateDescription": "Miejsca {after}.variable{before} zostaną zastąpione rzeczywistymi danymi. Upewnij się, że te zmienne są zachowane.",
|
||||
"verify_email_template": "Szablon e-maila weryfikacyjnego",
|
||||
"verify_email_templateDescription": "Elementy zastępcze {after}.variable{before} zostaną zastąpione rzeczywistymi danymi. Upewnij się, że te zmienne zostaną zachowane.",
|
||||
"whitelistSuffixes": "Dozwolone Sufiksy",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Status",
|
||||
"subject": "Assunto",
|
||||
"template": "Modelo",
|
||||
"traffic_exceed_email_template": "Modelo de Notificação de Excesso de Tráfego",
|
||||
"traffic_exceed_email_templateDescription": "Os espaços reservados {after}.variable{before} serão substituídos por dados reais. Certifique-se de manter essas variáveis.",
|
||||
"verify_email_template": "Modelo de E-mail de Verificação",
|
||||
"verify_email_templateDescription": "Os marcadores {after}.variable{before} serão substituídos por dados reais. Certifique-se de manter essas variáveis.",
|
||||
"whitelistSuffixes": "Sufixos de Lista Branca",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Stare",
|
||||
"subject": "Subiect",
|
||||
"template": "Șablon",
|
||||
"traffic_exceed_email_template": "Șablon de notificare a depășirii traficului",
|
||||
"traffic_exceed_email_templateDescription": "Plasamentele {after}.variable{before} vor fi înlocuite cu datele reale. Asigurați-vă că păstrați aceste variabile.",
|
||||
"verify_email_template": "Șablon de e-mail pentru verificare",
|
||||
"verify_email_templateDescription": "Locurile rezervate {after}.variable{before} vor fi înlocuite cu date reale. Asigurați-vă că păstrați aceste variabile.",
|
||||
"whitelistSuffixes": "Sufixe pe lista albă",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Статус",
|
||||
"subject": "Тема",
|
||||
"template": "Шаблон",
|
||||
"traffic_exceed_email_template": "Шаблон уведомления о превышении трафика",
|
||||
"traffic_exceed_email_templateDescription": "Места {after}.variable{before} будут заменены на фактические данные. Убедитесь, что эти переменные сохранены.",
|
||||
"verify_email_template": "Шаблон письма для подтверждения",
|
||||
"verify_email_templateDescription": "Заполнители {after}.variable{before} будут заменены фактическими данными. Убедитесь, что эти переменные сохранены.",
|
||||
"whitelistSuffixes": "Белый список суффиксов",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "สถานะ",
|
||||
"subject": "เรื่อง",
|
||||
"template": "แม่แบบ",
|
||||
"traffic_exceed_email_template": "เทมเพลตการแจ้งเตือนการเกินการจราจร",
|
||||
"traffic_exceed_email_templateDescription": "ตัวแปร {after}.variable{before} จะถูกแทนที่ด้วยข้อมูลจริง โปรดตรวจสอบให้แน่ใจว่าได้เก็บตัวแปรเหล่านี้ไว้",
|
||||
"verify_email_template": "เทมเพลตอีเมลยืนยัน",
|
||||
"verify_email_templateDescription": "ตัวแปร {after}.variable{before} จะถูกแทนที่ด้วยข้อมูลจริง โปรดตรวจสอบให้แน่ใจว่าเก็บตัวแปรเหล่านี้ไว้",
|
||||
"whitelistSuffixes": "อนุญาตให้ใช้คำต่อท้าย",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Durum",
|
||||
"subject": "Konu",
|
||||
"template": "Şablon",
|
||||
"traffic_exceed_email_template": "Trafik Aşım Bildirimi Şablonu",
|
||||
"traffic_exceed_email_templateDescription": "{after}.variable{before} yer tutucuları gerçek verilerle değiştirilecektir. Bu değişkenleri koruduğunuzdan emin olun.",
|
||||
"verify_email_template": "Doğrulama E-posta Şablonu",
|
||||
"verify_email_templateDescription": "{after}.variable{before} yer tutucuları gerçek verilerle değiştirilecektir. Bu değişkenleri koruduğunuzdan emin olun.",
|
||||
"whitelistSuffixes": "Beyaz Liste Sonekleri",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Статус",
|
||||
"subject": "Тема",
|
||||
"template": "Шаблон",
|
||||
"traffic_exceed_email_template": "Шаблон сповіщення про перевищення трафіку",
|
||||
"traffic_exceed_email_templateDescription": "Місця для змінних {after}.variable{before} будуть замінені на фактичні дані. Переконайтеся, що ці змінні залишаються.",
|
||||
"verify_email_template": "Шаблон електронного листа для підтвердження",
|
||||
"verify_email_templateDescription": "Заповнювачі {after}.variable{before} будуть замінені на фактичні дані. Переконайтеся, що зберегли ці змінні.",
|
||||
"whitelistSuffixes": "Білий список суфіксів",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "Trạng thái",
|
||||
"subject": "Chủ đề",
|
||||
"template": "Mẫu",
|
||||
"traffic_exceed_email_template": "Mẫu Thông Báo Vượt Quá Lưu Lượng",
|
||||
"traffic_exceed_email_templateDescription": "Các biến {after}.variable{before} sẽ được thay thế bằng dữ liệu thực tế. Đảm bảo giữ nguyên các biến này.",
|
||||
"verify_email_template": "Mẫu Email Xác Minh",
|
||||
"verify_email_templateDescription": "Các chỗ trống {after}.variable{before} sẽ được thay thế bằng dữ liệu thực tế. Đảm bảo giữ nguyên các biến này.",
|
||||
"whitelistSuffixes": "Danh sách trắng Hậu tố",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "状态",
|
||||
"subject": "主题",
|
||||
"template": "模板",
|
||||
"traffic_exceed_email_template": "流量超限通知模板",
|
||||
"traffic_exceed_email_templateDescription": "{after}和{before}变量将被实际数据替换。请确保保留这些变量。",
|
||||
"verify_email_template": "验证电子邮件模板",
|
||||
"verify_email_templateDescription": "{after}.variable{before} 占位符将被实际数据替换。请确保保留这些变量。",
|
||||
"whitelistSuffixes": "白名单后缀",
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
"status": "狀態",
|
||||
"subject": "主題",
|
||||
"template": "模板",
|
||||
"traffic_exceed_email_template": "流量超標通知模板",
|
||||
"traffic_exceed_email_templateDescription": "{after}和{before}變量將會被實際數據替換。請確保保留這些變量。",
|
||||
"verify_email_template": "驗證電郵範本",
|
||||
"verify_email_templateDescription": "{after}.variable{before} 佔位符將被實際數據替換。請確保保留這些變數。",
|
||||
"whitelistSuffixes": "白名單後綴",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user