mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
Merge pull request #216 from jhd3197/feat/ux-monitors-services-queues-empty
feat(ui): calmer Monitors, Services and Queues empty states
This commit is contained in:
20 files changed
+15
-23
No files matched your search
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "مراقبة {{name}}",
|
||||
"nextCheck": "الاختيار التالي",
|
||||
"noMonitorsMatch": "لا توجد مراقبات مطابقة",
|
||||
"nothingIsBeingWatchedYet": "لا شيء يتم مراقبته بعد",
|
||||
"offForSelfSignedCertificatesOn": "إيقاف تشغيل الشهادات الموقعة ذاتيًا على المضيفين الداخليين.",
|
||||
"pause": "يوقف",
|
||||
"paused": "تم إيقاف {{name}} مؤقتًا",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "মনিটরিং {{name}}",
|
||||
"nextCheck": "পরবর্তী চেক",
|
||||
"noMonitorsMatch": "কোনো মনিটর মেলে না",
|
||||
"nothingIsBeingWatchedYet": "এখনও কিছুই দেখা হচ্ছে না",
|
||||
"offForSelfSignedCertificatesOn": "অভ্যন্তরীণ হোস্টে স্ব-স্বাক্ষরিত শংসাপত্রের জন্য বন্ধ।",
|
||||
"pause": "বিরতি",
|
||||
"paused": "বিরাম দেওয়া হয়েছে {{name}}৷",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Überwachung von {{name}}",
|
||||
"nextCheck": "Nächste Kontrolle",
|
||||
"noMonitorsMatch": "Es stimmen keine Monitore überein",
|
||||
"nothingIsBeingWatchedYet": "Es wird noch nichts angeschaut",
|
||||
"offForSelfSignedCertificatesOn": "Aus für selbstsignierte Zertifikate auf internen Hosts.",
|
||||
"pause": "Pause",
|
||||
"paused": "Pausiert {{name}}",
|
||||
|
||||
@@ -4060,6 +4060,7 @@
|
||||
"couldntLoadMonitors": "Couldn't load monitors.",
|
||||
"createMonitor": "Create monitor",
|
||||
"creating": "Creating…",
|
||||
"emptyShort": "Watch a site, API, or port.",
|
||||
"expectedStatus": "Expected status",
|
||||
"failedChecksToleratedBeforeAnIncident": "Failed checks tolerated before an incident opens.",
|
||||
"filterMonitors": "Filter monitors",
|
||||
@@ -4074,7 +4075,7 @@
|
||||
"monitoring": "Monitoring {{name}}",
|
||||
"nextCheck": "Next check",
|
||||
"noMonitorsMatch": "No monitors match",
|
||||
"nothingIsBeingWatchedYet": "Nothing is being watched yet",
|
||||
"noMonitorsYet": "No monitors yet",
|
||||
"offForSelfSignedCertificatesOn": "Off for self-signed certificates on internal hosts.",
|
||||
"pause": "Pause",
|
||||
"paused": "Paused {{name}}",
|
||||
@@ -4766,7 +4767,7 @@
|
||||
"couldntLoadQueues": "Couldn't load queues.",
|
||||
"couldntLoadStats": "Couldn't load queue stats.",
|
||||
"couldntSend": "Couldn't send the message.",
|
||||
"createAQueueGroupAndQueue": "Create a queue group and queue to start sending messages.",
|
||||
"createAQueueGroupAndQueue": "Groups hold your queues. Create a group, add a queue to it, then send messages through that queue.",
|
||||
"createGroup": "Create group",
|
||||
"createQueue": "Create queue",
|
||||
"createQueueGroup": "Create queue group",
|
||||
@@ -4775,6 +4776,7 @@
|
||||
"deleteQueue": "Delete queue",
|
||||
"deleteQueue3": "Delete queue",
|
||||
"empty": "Empty",
|
||||
"emptyShort": "Create a group, then a queue.",
|
||||
"group": "Group",
|
||||
"groups": "Groups",
|
||||
"loadingQueueBus": "Loading queue bus…",
|
||||
@@ -5917,6 +5919,8 @@
|
||||
"couldntStopServices": "Couldn't stop the services.",
|
||||
"couldntUpdateService": "Couldn't update the service.",
|
||||
"createService": "New service",
|
||||
"emptyFull": "Connect a Git repository, upload files, or install a ready-made template to deploy your first service.",
|
||||
"emptyShort": "Connect a repo or install a template.",
|
||||
"environment": "Environment",
|
||||
"failedToLoadEnvironments": "Couldn't load environments.",
|
||||
"failedToLoadProjects": "Couldn't load projects.",
|
||||
@@ -5930,6 +5934,7 @@
|
||||
"movedServices_other": "Moved {{count}} services",
|
||||
"moving": "Moving…",
|
||||
"newService": "New service",
|
||||
"noServicesYet": "No services yet",
|
||||
"noSpecificEnvironment": "No specific environment",
|
||||
"restartAll": "Restart all",
|
||||
"searchServices": "Search services…",
|
||||
|
||||
@@ -3972,7 +3972,6 @@
|
||||
"monitoring": "Monitorizando {{name}}",
|
||||
"nextCheck": "Próxima comprobación",
|
||||
"noMonitorsMatch": "Ningún monitor coincide",
|
||||
"nothingIsBeingWatchedYet": "Aún no se vigila nada",
|
||||
"offForSelfSignedCertificatesOn": "Desactívalo para certificados autofirmados en hosts internos.",
|
||||
"pause": "Pausar",
|
||||
"paused": "Se pausó {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Surveillance {{name}}",
|
||||
"nextCheck": "Vérification suivante",
|
||||
"noMonitorsMatch": "Aucun moniteur ne correspond",
|
||||
"nothingIsBeingWatchedYet": "Rien n'est encore regardé",
|
||||
"offForSelfSignedCertificatesOn": "Désactivé pour les certificats auto-signés sur les hôtes internes.",
|
||||
"pause": "Pause",
|
||||
"paused": "En pause {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Pemantauan {{name}}",
|
||||
"nextCheck": "Periksa selanjutnya",
|
||||
"noMonitorsMatch": "Tidak ada monitor yang cocok",
|
||||
"nothingIsBeingWatchedYet": "Belum ada yang diawasi",
|
||||
"offForSelfSignedCertificatesOn": "Nonaktif untuk sertifikat yang ditandatangani sendiri pada host internal.",
|
||||
"pause": "Berhenti sebentar",
|
||||
"paused": "{{name}} dijeda",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Monitoraggio {{name}}",
|
||||
"nextCheck": "Prossimo controllo",
|
||||
"noMonitorsMatch": "Nessun monitor corrisponde",
|
||||
"nothingIsBeingWatchedYet": "Non si sta ancora guardando nulla",
|
||||
"offForSelfSignedCertificatesOn": "Disattivato per i certificati autofirmati su host interni.",
|
||||
"pause": "Pausa",
|
||||
"paused": "In pausa {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "{{name}} 모니터링",
|
||||
"nextCheck": "다음 확인",
|
||||
"noMonitorsMatch": "일치하는 모니터가 없습니다.",
|
||||
"nothingIsBeingWatchedYet": "아직 시청 중인 항목이 없습니다.",
|
||||
"offForSelfSignedCertificatesOn": "내부 호스트의 자체 서명된 인증서의 경우 꺼집니다.",
|
||||
"pause": "일시중지",
|
||||
"paused": "일시중지됨 {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Monitorowanie {{name}}",
|
||||
"nextCheck": "Następna kontrola",
|
||||
"noMonitorsMatch": "Żadne monitory nie pasują",
|
||||
"nothingIsBeingWatchedYet": "Na razie nic nie jest oglądane",
|
||||
"offForSelfSignedCertificatesOn": "Wyłączone dla certyfikatów z podpisem własnym na hostach wewnętrznych.",
|
||||
"pause": "Pauza",
|
||||
"paused": "Wstrzymano {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Monitoramento {{name}}",
|
||||
"nextCheck": "Próxima verificação",
|
||||
"noMonitorsMatch": "Nenhum monitor corresponde",
|
||||
"nothingIsBeingWatchedYet": "Nada está sendo assistido ainda",
|
||||
"offForSelfSignedCertificatesOn": "Desativado para certificados autoassinados em hosts internos.",
|
||||
"pause": "Pausa",
|
||||
"paused": "{{name}} pausado",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Мониторинг {{name}}",
|
||||
"nextCheck": "Следующая проверка",
|
||||
"noMonitorsMatch": "Ни один монитор не подходит",
|
||||
"nothingIsBeingWatchedYet": "Пока ничего не смотрят",
|
||||
"offForSelfSignedCertificatesOn": "Выключено для самозаверяющих сертификатов на внутренних хостах.",
|
||||
"pause": "Приостановить",
|
||||
"paused": "Приостановлено {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "การตรวจสอบ {{name}}",
|
||||
"nextCheck": "ตรวจสอบครั้งต่อไป",
|
||||
"noMonitorsMatch": "ไม่มีตัวเฝ้าสังเกตที่ตรงกัน",
|
||||
"nothingIsBeingWatchedYet": "ยังไม่ได้ดูอะไรเลย",
|
||||
"offForSelfSignedCertificatesOn": "ปิดสำหรับใบรับรองที่ลงนามด้วยตนเองบนโฮสต์ภายใน",
|
||||
"pause": "หยุดชั่วคราว",
|
||||
"paused": "หยุด {{name}} ชั่วคราว",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "{{name}}'nin izlenmesi",
|
||||
"nextCheck": "Sonraki kontrol",
|
||||
"noMonitorsMatch": "Hiçbir monitör eşleşmiyor",
|
||||
"nothingIsBeingWatchedYet": "Henüz hiçbir şey izlenmiyor",
|
||||
"offForSelfSignedCertificatesOn": "Dahili ana makinelerdeki kendinden imzalı sertifikalar için kapalı.",
|
||||
"pause": "Duraklat",
|
||||
"paused": "Duraklatıldı {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "Giám sát {{name}}",
|
||||
"nextCheck": "Kiểm tra tiếp theo",
|
||||
"noMonitorsMatch": "Không có trình giám sát nào phù hợp",
|
||||
"nothingIsBeingWatchedYet": "Chưa có gì được theo dõi",
|
||||
"offForSelfSignedCertificatesOn": "Tắt đối với chứng chỉ tự ký trên máy chủ nội bộ.",
|
||||
"pause": "Tạm dừng",
|
||||
"paused": "Đã tạm dừng {{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "监控 {{name}}",
|
||||
"nextCheck": "下一步检查",
|
||||
"noMonitorsMatch": "没有匹配的监控项",
|
||||
"nothingIsBeingWatchedYet": "目前还没有任何内容被关注",
|
||||
"offForSelfSignedCertificatesOn": "对于内部主机上的自签名证书关闭。",
|
||||
"pause": "暂停",
|
||||
"paused": "已暂停{{name}}",
|
||||
|
||||
@@ -3971,7 +3971,6 @@
|
||||
"monitoring": "監控{{name}}",
|
||||
"nextCheck": "下次檢查",
|
||||
"noMonitorsMatch": "沒有符合條件的監測器",
|
||||
"nothingIsBeingWatchedYet": "目前還沒有任何內容被關注",
|
||||
"offForSelfSignedCertificatesOn": "對於內部主機上的自簽名憑證關閉。",
|
||||
"pause": "暫停",
|
||||
"paused": "已暫停 {{name}}",
|
||||
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
import api from '../services/api';
|
||||
import { useToast } from '../contexts/useToast.js';
|
||||
import EmptyState from '../components/EmptyState';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import ErrorState from '../components/ErrorState';
|
||||
import {
|
||||
DataTable, DataTableFooter, Drawer, FilterButton, FilterDrawer,
|
||||
@@ -519,10 +520,10 @@ export default function Monitors() {
|
||||
) : monitors.length === 0 ? (
|
||||
<EmptyState
|
||||
icon={Radar}
|
||||
title={hasFilters ? t('app.monitors.noMonitorsMatch', 'No monitors match') : t('app.monitors.nothingIsBeingWatchedYet', 'Nothing is being watched yet')}
|
||||
title={hasFilters ? t('app.monitors.noMonitorsMatch', 'No monitors match') : t('app.monitors.noMonitorsYet', 'No monitors yet')}
|
||||
description={hasFilters
|
||||
? t('app.monitors.tryADifferentSearchOrClear', 'Try a different search or clear the filters.')
|
||||
: t('app.monitors.addAMonitorToWatchA', 'Add a monitor to watch a website, an API endpoint, a database port or a WordPress site, and get an incident when it stops answering.')}
|
||||
: <>{t('app.monitors.emptyShort', 'Watch a site, API, or port.')} <InfoTip>{t('app.monitors.addAMonitorToWatchA', 'Add a monitor to watch a website, an API endpoint, a database port or a WordPress site, and get an incident when it stops answering.')}</InfoTip></>}
|
||||
action={hasFilters
|
||||
? <Button variant="outline" onClick={() => { setQ(''); setFilters({ status: '', type: '' }); }}>{t('common.actions.clearFilters', 'Clear filters')}</Button>
|
||||
: <Button onClick={openCreate}><Plus size={16} /> {t('app.monitors.addMonitor', 'New monitor')}</Button>}
|
||||
|
||||
@@ -16,6 +16,7 @@ import api from '../services/api';
|
||||
import { useToast } from '../contexts/useToast.js';
|
||||
import { useConfirm } from '../hooks/useConfirm';
|
||||
import EmptyState from '../components/EmptyState';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import Modal from '@/components/Modal';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Tip } from '@/components/ui/tooltip';
|
||||
@@ -630,7 +631,7 @@ const QueueOperations = () => {
|
||||
icon={Layers}
|
||||
title={queues.length === 0 ? t('app.queueOperations.noQueuesYet', 'No queues yet') : t('app.queueOperations.noQueuesMatchTheseFilters', 'No queues match these filters')}
|
||||
description={queues.length === 0
|
||||
? t('app.queueOperations.createAQueueGroupAndQueue', 'Create a queue group and queue to start sending messages.')
|
||||
? <>{t('app.queueOperations.emptyShort', 'Create a group, then a queue.')} <InfoTip>{t('app.queueOperations.createAQueueGroupAndQueue', 'Groups hold your queues. Create a group, add a queue to it, then send messages through that queue.')}</InfoTip></>
|
||||
: t('app.queueOperations.adjustTheFiltersOrSearchQuery', 'Adjust the filters or search query to see your queues.')}
|
||||
action={queues.length === 0 ? (
|
||||
<Button onClick={() => setShowGroupModal(true)}>
|
||||
|
||||
@@ -6,6 +6,7 @@ import api from '../services/api';
|
||||
import { useToast } from '../contexts/useToast.js';
|
||||
import { getServiceType, getStatusConfig, formatRelativeTime } from '../utils/serviceTypes';
|
||||
import ResourceListPage from '../components/layouts/ResourceListPage';
|
||||
import InfoTip from '@/components/InfoTip';
|
||||
import BandwidthSparkline from '../components/BandwidthSparkline';
|
||||
import { formatBytes } from '../utils/formatBytes';
|
||||
import { Pill, ServiceTile, EnvTag, SearchField, serviceStatusKind } from '@/components/ds';
|
||||
@@ -431,8 +432,8 @@ const Services = () => {
|
||||
</>
|
||||
}
|
||||
emptyIcon={Layers}
|
||||
emptyTitle="No services found"
|
||||
emptyDescription="Connect a repository or install a template to get started"
|
||||
emptyTitle={t('app.services.noServicesYet', 'No services yet')}
|
||||
emptyDescription={<>{t('app.services.emptyShort', 'Connect a repo or install a template.')} <InfoTip>{t('app.services.emptyFull', 'Connect a Git repository, upload files, or install a ready-made template to deploy your first service.')}</InfoTip></>}
|
||||
emptyAction={
|
||||
<Button asChild>
|
||||
<Link to="/services/new">{t('app.services.createService', 'New service')}</Link>
|
||||
|
||||
Reference in new issue
Block a user