mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
feat(ui): calmer Domains, Cron and SSL empty states
Short one-line descriptions with the longer explanation behind an InfoTip, matching the Databases pattern. SSL now uses the same empty-state size as the other pages (new optional emptySize prop on ResourceListPage, default lg).
This commit is contained in:
1 parent
73d2758c2e
commit
250cab5537
21 files changed
+35
-22
No files matched your search
@@ -100,6 +100,7 @@ export default function ResourceListPage({
|
||||
emptyTitle = 'No results',
|
||||
emptyDescription = '',
|
||||
emptyAction = null,
|
||||
emptySize = 'lg',
|
||||
// filtered empty (items exist but none match the filter/search)
|
||||
filteredEmptyIcon,
|
||||
filteredEmptyTitle = 'No results found',
|
||||
@@ -352,7 +353,7 @@ export default function ResourceListPage({
|
||||
/>
|
||||
) : resolvedTotal === 0 ? (
|
||||
<EmptyState
|
||||
size="lg"
|
||||
size={emptySize}
|
||||
icon={emptyIcon}
|
||||
title={emptyTitle}
|
||||
description={emptyDescription}
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "لم يتم إنتاج أي إخراج.",
|
||||
"noRunsRecordedYet": "لم يتم تسجيل أي عمليات تشغيل حتى الآن.",
|
||||
"noRunsYet": "لا توجد عمليات تشغيل بعد",
|
||||
"noScheduledJobsFoundCreateYour": "لم يتم العثور على وظائف مجدولة. قم بإنشاء أول مهمة cron لأتمتة المهام.",
|
||||
"paused": "متوقف مؤقتًا",
|
||||
"runHistory": "سجل التشغيل",
|
||||
"runHistoryIsAnAdminOnly": "سجل التشغيل هو سطح مخصص للمسؤول فقط.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "কোন আউটপুট উত্পাদিত.",
|
||||
"noRunsRecordedYet": "এখনো কোনো রান রেকর্ড হয়নি।",
|
||||
"noRunsYet": "এখনো কোনো রান নেই",
|
||||
"noScheduledJobsFoundCreateYour": "কোনো নির্ধারিত চাকরি পাওয়া যায়নি। কাজগুলি স্বয়ংক্রিয় করতে আপনার প্রথম cron কাজ তৈরি করুন৷",
|
||||
"paused": "বিরতি দেওয়া হয়েছে",
|
||||
"runHistory": "রান ইতিহাস",
|
||||
"runHistoryIsAnAdminOnly": "রান ইতিহাস হল একটি প্রশাসক-শুধুমাত্র পৃষ্ঠ।",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Es wurde keine Ausgabe erzeugt.",
|
||||
"noRunsRecordedYet": "Es wurden noch keine Läufe aufgezeichnet.",
|
||||
"noRunsYet": "Noch keine Läufe",
|
||||
"noScheduledJobsFoundCreateYour": "Keine geplanten Jobs gefunden. Erstellen Sie Ihren ersten Cronjob, um Aufgaben zu automatisieren.",
|
||||
"paused": "Angehalten",
|
||||
"runHistory": "Laufverlauf",
|
||||
"runHistoryIsAnAdminOnly": "Der Ausführungsverlauf ist eine reine Administratoroberfläche.",
|
||||
|
||||
@@ -1582,6 +1582,7 @@
|
||||
"cronJobRestored": "Cron job \"{{name}}\" restored",
|
||||
"cronJobUpdated": "Cron job updated",
|
||||
"cronJobs": "Cron jobs",
|
||||
"cronJobsRunCommandsOnA": "Cron jobs run commands on a schedule, such as backups, cleanups or reports. Create the first one with New cron job.",
|
||||
"crontabEntry": "Crontab entry",
|
||||
"deleteCronJob": "Delete cron job",
|
||||
"descriptionOptional": "Description (optional)",
|
||||
@@ -1613,7 +1614,6 @@
|
||||
"noOutputProduced": "No output produced.",
|
||||
"noRunsRecordedYet": "No runs recorded yet.",
|
||||
"noRunsYet": "No runs yet",
|
||||
"noScheduledJobsFoundCreateYour": "No scheduled jobs found. Create your first cron job to automate tasks.",
|
||||
"paused": "Paused",
|
||||
"runHistory": "Run history",
|
||||
"runHistoryIsAnAdminOnly": "Run history is an admin-only surface.",
|
||||
@@ -1625,6 +1625,7 @@
|
||||
"runsAsThePanelSSystem": "Runs as the panel's system user, from its home directory.",
|
||||
"saveChanges": "Save changes",
|
||||
"scheduleACommandOnThisServer": "Schedule a command on this server",
|
||||
"scheduleARecurringTask": "Schedule a recurring task.",
|
||||
"searchJobsOrCommands": "Search jobs or commands…",
|
||||
"successRate": "Success rate",
|
||||
"timesShownInYourLocalTimezone": "Times shown in your local time zone ·",
|
||||
@@ -2239,6 +2240,7 @@
|
||||
"adding": "Adding…",
|
||||
"alias": "Alias",
|
||||
"application": "Service",
|
||||
"attachADomainOrConnectDns": "Attach a domain or connect DNS.",
|
||||
"attachADomainToAnApplication": "Attach a domain to a service, or connect a DNS provider to see its zones here.",
|
||||
"autoRenew": "Auto-renew",
|
||||
"checkDns": "Check DNS",
|
||||
@@ -5164,6 +5166,7 @@
|
||||
"beginPrivateKey": "-----BEGIN PRIVATE KEY-----",
|
||||
"bringYourOwnCertificate": "Bring your own certificate",
|
||||
"certbotInstalledSuccessfully": "Certbot installed",
|
||||
"certbotMustBeInstalledFirst": "Certbot must be installed first.",
|
||||
"certificateForRenewed": "Certificate for {{domain}} renewed",
|
||||
"certificateForRevoked": "Certificate for {{domain}} revoked",
|
||||
"certificateObtainedSuccessfully": "Certificate obtained",
|
||||
@@ -5186,6 +5189,7 @@
|
||||
"failedToSetupAutoRenewal": "Couldn't set up auto-renewal.",
|
||||
"failedToUploadCertificate": "Couldn't upload the certificate.",
|
||||
"forCertificateExpirationNotifications": "For certificate expiration notifications",
|
||||
"freeAutoRenewingCertificates": "Get free, auto-renewing certificates for your domains.",
|
||||
"freeSslFromLetSEncrypt": "Free SSL from Let's Encrypt",
|
||||
"installCertbot": "Install Certbot",
|
||||
"installCertbotFirst": "Install Certbot first",
|
||||
@@ -5193,6 +5197,7 @@
|
||||
"issuer": "Issuer",
|
||||
"issues": "Issues",
|
||||
"newCertificate": "New certificate",
|
||||
"noSslCertificates": "No SSL certificates",
|
||||
"obtainAFreeAutomaticallyRenewedSsl": "Obtain a free, automatically-renewed SSL certificate for your domains.",
|
||||
"obtainCertificateAction": "Obtain certificate",
|
||||
"obtainSslCertificate": "Obtain SSL certificate",
|
||||
@@ -5208,6 +5213,7 @@
|
||||
"revokeCertificate": "Revoke certificate",
|
||||
"revokeDelete": "Revoke and delete",
|
||||
"searchCertificates": "Search certificates…",
|
||||
"secureYourDomainsWithLetS": "Secure your domains with Let's Encrypt.",
|
||||
"singleBaseDomainHint": "A single base domain for the wildcard certificate",
|
||||
"upload": "Upload",
|
||||
"uploadCertificateAction": "Upload certificate",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "No se produjo ninguna salida.",
|
||||
"noRunsRecordedYet": "Aún no hay ejecuciones registradas.",
|
||||
"noRunsYet": "Aún no hay ejecuciones",
|
||||
"noScheduledJobsFoundCreateYour": "No se encontraron tareas programadas. Crea tu primera tarea cron para automatizar procesos.",
|
||||
"paused": "En pausa",
|
||||
"runHistory": "Historial de ejecuciones",
|
||||
"runHistoryIsAnAdminOnly": "El historial de ejecuciones es una función solo para administradores.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Aucune sortie produite.",
|
||||
"noRunsRecordedYet": "Aucune exécution enregistrée pour le moment.",
|
||||
"noRunsYet": "Aucune exécution pour le moment",
|
||||
"noScheduledJobsFoundCreateYour": "Aucune tâche planifiée trouvée. Créez votre première tâche cron pour automatiser les tâches.",
|
||||
"paused": "En pause",
|
||||
"runHistory": "Historique d'exécution",
|
||||
"runHistoryIsAnAdminOnly": "L’historique des exécutions est une surface réservée aux administrateurs.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Tidak ada keluaran yang dihasilkan.",
|
||||
"noRunsRecordedYet": "Belum ada proses yang tercatat.",
|
||||
"noRunsYet": "Belum ada run",
|
||||
"noScheduledJobsFoundCreateYour": "Tidak ada pekerjaan terjadwal yang ditemukan. Buat pekerjaan cron pertama Anda untuk mengotomatisasi tugas.",
|
||||
"paused": "Dijeda",
|
||||
"runHistory": "Riwayat proses",
|
||||
"runHistoryIsAnAdminOnly": "Riwayat proses adalah permukaan khusus admin.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Nessun output prodotto.",
|
||||
"noRunsRecordedYet": "Nessuna esecuzione ancora registrata.",
|
||||
"noRunsYet": "Ancora nessuna esecuzione",
|
||||
"noScheduledJobsFoundCreateYour": "Nessun lavoro programmato trovato. Crea il tuo primo lavoro cron per automatizzare le attività.",
|
||||
"paused": "In pausa",
|
||||
"runHistory": "Cronologia esecuzioni",
|
||||
"runHistoryIsAnAdminOnly": "La cronologia delle esecuzioni è una superficie riservata all'amministratore.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "출력이 생성되지 않습니다.",
|
||||
"noRunsRecordedYet": "아직 기록된 실행이 없습니다.",
|
||||
"noRunsYet": "아직 실행 없음",
|
||||
"noScheduledJobsFoundCreateYour": "예약된 작업을 찾을 수 없습니다. 첫 번째 크론 작업을 만들어 작업을 자동화하세요.",
|
||||
"paused": "일시중지됨",
|
||||
"runHistory": "실행 기록",
|
||||
"runHistoryIsAnAdminOnly": "실행 기록은 관리자 전용 영역입니다.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Nie wytworzono żadnych wyników.",
|
||||
"noRunsRecordedYet": "Nie zarejestrowano jeszcze żadnych uruchomień.",
|
||||
"noRunsYet": "Brak uruchomień",
|
||||
"noScheduledJobsFoundCreateYour": "Nie znaleziono zaplanowanych zadań. Utwórz swoje pierwsze zadanie cron, aby zautomatyzować zadania.",
|
||||
"paused": "Wstrzymano",
|
||||
"runHistory": "Historia uruchomień",
|
||||
"runHistoryIsAnAdminOnly": "Historia uruchamiania jest platformą dostępną tylko dla administratora.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Nenhuma saída produzida.",
|
||||
"noRunsRecordedYet": "Nenhuma execução registrada ainda.",
|
||||
"noRunsYet": "Nenhuma execução ainda",
|
||||
"noScheduledJobsFoundCreateYour": "Nenhum trabalho agendado encontrado. Crie seu primeiro cron job para automatizar tarefas.",
|
||||
"paused": "Pausado",
|
||||
"runHistory": "Histórico de execução",
|
||||
"runHistoryIsAnAdminOnly": "O histórico de execução é uma superfície somente para administradores.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Выходных данных не получено.",
|
||||
"noRunsRecordedYet": "Запусков пока не зафиксировано.",
|
||||
"noRunsYet": "Запусков пока нет",
|
||||
"noScheduledJobsFoundCreateYour": "Запланированных вакансий не найдено. Создайте свое первое задание cron для автоматизации задач.",
|
||||
"paused": "Приостановлено",
|
||||
"runHistory": "История запуска",
|
||||
"runHistoryIsAnAdminOnly": "История запусков доступна только администратору.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "ไม่มีผลผลิตออกมา",
|
||||
"noRunsRecordedYet": "ยังไม่มีการบันทึกการรัน",
|
||||
"noRunsYet": "ยังไม่มีการรัน",
|
||||
"noScheduledJobsFoundCreateYour": "ไม่พบงานที่กำหนดเวลาไว้ สร้างงาน cron งานแรกของคุณเพื่อทำให้งานเป็นแบบอัตโนมัติ",
|
||||
"paused": "หยุดชั่วคราว",
|
||||
"runHistory": "ประวัติการรัน",
|
||||
"runHistoryIsAnAdminOnly": "ประวัติการเรียกใช้เป็นพื้นที่สำหรับผู้ดูแลระบบเท่านั้น",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Çıktı üretilmedi.",
|
||||
"noRunsRecordedYet": "Henüz kayıtlı bir çalıştırma yok.",
|
||||
"noRunsYet": "Henüz çalıştırma yok",
|
||||
"noScheduledJobsFoundCreateYour": "Planlanmış iş bulunamadı. Görevleri otomatikleştirmek için ilk cron işinizi oluşturun.",
|
||||
"paused": "Duraklatıldı",
|
||||
"runHistory": "Çalıştırma geçmişi",
|
||||
"runHistoryIsAnAdminOnly": "Çalıştırma geçmişi yalnızca yöneticilerin erişebildiği bir yüzeydir.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "Không có đầu ra được sản xuất.",
|
||||
"noRunsRecordedYet": "Chưa có lần chạy nào được ghi lại.",
|
||||
"noRunsYet": "Chưa có lượt chạy nào",
|
||||
"noScheduledJobsFoundCreateYour": "Không tìm thấy công việc theo lịch trình. Tạo công việc cron đầu tiên của bạn để tự động hóa các tác vụ.",
|
||||
"paused": "Đã tạm dừng",
|
||||
"runHistory": "Lịch sử chạy",
|
||||
"runHistoryIsAnAdminOnly": "Lịch sử chạy là một bề mặt chỉ dành cho quản trị viên.",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "没有产生任何输出。",
|
||||
"noRunsRecordedYet": "尚未记录任何运行。",
|
||||
"noRunsYet": "尚无运行",
|
||||
"noScheduledJobsFoundCreateYour": "没有找到预定的工作。创建您的第一个 cron 作业来自动执行任务。",
|
||||
"paused": "已暂停",
|
||||
"runHistory": "运行历史",
|
||||
"runHistoryIsAnAdminOnly": "运行历史记录是仅限管理员使用的界面。",
|
||||
|
||||
@@ -1585,7 +1585,6 @@
|
||||
"noOutputProduced": "沒有產生任何輸出。",
|
||||
"noRunsRecordedYet": "尚無執行記錄。",
|
||||
"noRunsYet": "尚未執行",
|
||||
"noScheduledJobsFoundCreateYour": "尚無排程作業。請建立第一個 Cron 作業,以自動執行工作。",
|
||||
"paused": "已暫停",
|
||||
"runHistory": "執行歷史",
|
||||
"runHistoryIsAnAdminOnly": "執行歷史記錄是僅限管理員使用的介面。",
|
||||
|
||||
@@ -5,6 +5,7 @@ import { useAuth } from '../contexts/useAuth.js';
|
||||
import { useConfirm } from '../hooks/useConfirm';
|
||||
import useFocusParam from '@/hooks/useFocusParam';
|
||||
import EmptyState from '../components/EmptyState';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import Modal from '@/components/Modal';
|
||||
import {
|
||||
Clock, Plus, RefreshCw, Play, Pause, Trash2, Pencil,
|
||||
@@ -466,7 +467,12 @@ const CronJobs = () => {
|
||||
<EmptyState
|
||||
icon={Clock}
|
||||
title={t('app.cronJobs.noCronJobs', 'No cron jobs')}
|
||||
description={t('app.cronJobs.noScheduledJobsFoundCreateYour', 'No scheduled jobs found. Create your first cron job to automate tasks.')}
|
||||
description={(
|
||||
<>
|
||||
{t('app.cronJobs.scheduleARecurringTask', 'Schedule a recurring task.')}
|
||||
<InfoTip>{t('app.cronJobs.cronJobsRunCommandsOnA', 'Cron jobs run commands on a schedule, such as backups, cleanups or reports. Create the first one with New cron job.')}</InfoTip>
|
||||
</>
|
||||
)}
|
||||
action={<Button onClick={openCreateDrawer}><Plus size={16} /> {t('app.cronJobs.newCronJob', 'New cron job')}</Button>}
|
||||
/>
|
||||
) : (
|
||||
|
||||
@@ -8,6 +8,7 @@ import api from '../services/api';
|
||||
import { useToast } from '../contexts/useToast.js';
|
||||
import { useAuth } from '../contexts/useAuth.js';
|
||||
import EmptyState from '../components/EmptyState';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import ErrorState from '../components/ErrorState';
|
||||
import Modal from '@/components/Modal';
|
||||
import DomainField from '@/components/DomainField';
|
||||
@@ -665,7 +666,12 @@ const Domains = () => {
|
||||
<EmptyState
|
||||
icon={Globe}
|
||||
title={t('app.domains.noDomainsYet', 'No domains yet')}
|
||||
description={t('app.domains.attachADomainToAnApplication', 'Attach a domain to a service, or connect a DNS provider to see its zones here.')}
|
||||
description={(
|
||||
<>
|
||||
{t('app.domains.attachADomainOrConnectDns', 'Attach a domain or connect DNS.')}
|
||||
<InfoTip>{t('app.domains.attachADomainToAnApplication', 'Attach a domain to a service, or connect a DNS provider to see its zones here.')}</InfoTip>
|
||||
</>
|
||||
)}
|
||||
action={<Button onClick={() => setShowAddModal(true)}><Plus size={16} /> {t('app.domains.addDomain2', 'Add domain')}</Button>}
|
||||
/>
|
||||
) : (
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
} from 'lucide-react';
|
||||
import api from '../services/api';
|
||||
import Modal from '@/components/Modal';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import { Pill, SearchField } from '@/components/ds';
|
||||
import ResourceListPage from '../components/layouts/ResourceListPage';
|
||||
import { useTopbarActions } from '@/hooks/useTopbarActions';
|
||||
@@ -523,8 +524,17 @@ const SSLCertificates = () => {
|
||||
onSearchChange={setSearch}
|
||||
searchInTopbar
|
||||
emptyIcon={Lock}
|
||||
emptyTitle="No SSL certificates"
|
||||
emptyDescription="Obtain your first Let's Encrypt certificate to secure your domains."
|
||||
emptySize="default"
|
||||
emptyTitle={t('app.sSLCertificates.noSslCertificates', 'No SSL certificates')}
|
||||
emptyDescription={(
|
||||
<>
|
||||
{t('app.sSLCertificates.secureYourDomainsWithLetS', "Secure your domains with Let's Encrypt.")}
|
||||
<InfoTip>
|
||||
{t('app.sSLCertificates.freeAutoRenewingCertificates', 'Get free, auto-renewing certificates for your domains.')}
|
||||
{!certbotInstalled && ` ${t('app.sSLCertificates.certbotMustBeInstalledFirst', 'Certbot must be installed first.')}`}
|
||||
</InfoTip>
|
||||
</>
|
||||
)}
|
||||
emptyAction={certbotInstalled ? (
|
||||
<Button onClick={() => setShowObtainModal(true)}>
|
||||
<Plus size={16} />
|
||||
|
||||
Reference in new issue
Block a user