From 72eb4e2aad66e4f4b8cdb902707227654aae2ca7 Mon Sep 17 00:00:00 2001 From: Fernanda Andrade <119636766+fe222004@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:32:49 -0500 Subject: [PATCH] log-viewer --- config/app.php | 1 + config/log-viewer.php | 77 ++++ lang/vendor/log-viewer/ar.json | 13 + lang/vendor/log-viewer/bg.json | 13 + lang/vendor/log-viewer/bn.json | 13 + lang/vendor/log-viewer/de.json | 13 + lang/vendor/log-viewer/es.json | 13 + lang/vendor/log-viewer/et.json | 13 + lang/vendor/log-viewer/fa.json | 13 + lang/vendor/log-viewer/fr.json | 13 + lang/vendor/log-viewer/he.json | 13 + lang/vendor/log-viewer/hu.json | 13 + lang/vendor/log-viewer/hy.json | 13 + lang/vendor/log-viewer/id.json | 13 + lang/vendor/log-viewer/it.json | 13 + lang/vendor/log-viewer/ja.json | 13 + lang/vendor/log-viewer/ko.json | 13 + lang/vendor/log-viewer/ms.json | 13 + lang/vendor/log-viewer/nl.json | 13 + lang/vendor/log-viewer/pl.json | 13 + lang/vendor/log-viewer/pt-BR.json | 13 + lang/vendor/log-viewer/ro.json | 13 + lang/vendor/log-viewer/ru.json | 13 + lang/vendor/log-viewer/si.json | 13 + lang/vendor/log-viewer/sv.json | 13 + lang/vendor/log-viewer/th.json | 13 + lang/vendor/log-viewer/tr.json | 13 + lang/vendor/log-viewer/uk.json | 13 + lang/vendor/log-viewer/uz.json | 13 + lang/vendor/log-viewer/zh-TW.json | 13 + lang/vendor/log-viewer/zh.json | 13 + .../log-viewer/bootstrap-3/_master.blade.php | 342 ++++++++++++++++++ .../bootstrap-3/dashboard.blade.php | 52 +++ .../log-viewer/bootstrap-3/logs.blade.php | 152 ++++++++ .../log-viewer/bootstrap-3/show.blade.php | 286 +++++++++++++++ .../log-viewer/bootstrap-4/_master.blade.php | 270 ++++++++++++++ .../bootstrap-4/dashboard.blade.php | 53 +++ .../log-viewer/bootstrap-4/logs.blade.php | 152 ++++++++ .../log-viewer/bootstrap-4/show.blade.php | 273 ++++++++++++++ .../log-viewer/bootstrap-5/_master.blade.php | 277 ++++++++++++++ .../bootstrap-5/dashboard.blade.php | 53 +++ .../log-viewer/bootstrap-5/logs.blade.php | 157 ++++++++ .../log-viewer/bootstrap-5/show.blade.php | 271 ++++++++++++++ 43 files changed, 2793 insertions(+) create mode 100644 config/log-viewer.php create mode 100644 lang/vendor/log-viewer/ar.json create mode 100644 lang/vendor/log-viewer/bg.json create mode 100644 lang/vendor/log-viewer/bn.json create mode 100644 lang/vendor/log-viewer/de.json create mode 100644 lang/vendor/log-viewer/es.json create mode 100644 lang/vendor/log-viewer/et.json create mode 100644 lang/vendor/log-viewer/fa.json create mode 100644 lang/vendor/log-viewer/fr.json create mode 100644 lang/vendor/log-viewer/he.json create mode 100644 lang/vendor/log-viewer/hu.json create mode 100644 lang/vendor/log-viewer/hy.json create mode 100644 lang/vendor/log-viewer/id.json create mode 100644 lang/vendor/log-viewer/it.json create mode 100644 lang/vendor/log-viewer/ja.json create mode 100644 lang/vendor/log-viewer/ko.json create mode 100644 lang/vendor/log-viewer/ms.json create mode 100644 lang/vendor/log-viewer/nl.json create mode 100644 lang/vendor/log-viewer/pl.json create mode 100644 lang/vendor/log-viewer/pt-BR.json create mode 100644 lang/vendor/log-viewer/ro.json create mode 100644 lang/vendor/log-viewer/ru.json create mode 100644 lang/vendor/log-viewer/si.json create mode 100644 lang/vendor/log-viewer/sv.json create mode 100644 lang/vendor/log-viewer/th.json create mode 100644 lang/vendor/log-viewer/tr.json create mode 100644 lang/vendor/log-viewer/uk.json create mode 100644 lang/vendor/log-viewer/uz.json create mode 100644 lang/vendor/log-viewer/zh-TW.json create mode 100644 lang/vendor/log-viewer/zh.json create mode 100644 resources/views/vendor/log-viewer/bootstrap-3/_master.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-3/dashboard.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-3/logs.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-3/show.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-4/_master.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-4/dashboard.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-4/logs.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-4/show.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-5/_master.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-5/dashboard.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-5/logs.blade.php create mode 100644 resources/views/vendor/log-viewer/bootstrap-5/show.blade.php diff --git a/config/app.php b/config/app.php index 9207160..0385ad9 100644 --- a/config/app.php +++ b/config/app.php @@ -168,6 +168,7 @@ // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, + Arcanedev\LogViewer\LogViewerServiceProvider::class, ])->toArray(), /* diff --git a/config/log-viewer.php b/config/log-viewer.php new file mode 100644 index 0000000..6a05e7a --- /dev/null +++ b/config/log-viewer.php @@ -0,0 +1,77 @@ + storage_path('logs'), + + 'pattern' => [ + 'prefix' => Filesystem::PATTERN_PREFIX, // 'laravel-' + 'date' => Filesystem::PATTERN_DATE, // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]' + 'extension' => Filesystem::PATTERN_EXTENSION, // '.log' + ], + + 'locale' => 'auto', + + 'theme' => 'bootstrap-5', + + 'route' => [ + 'enabled' => true, + 'attributes' => [ + 'prefix' => 'log-viewer', + 'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null, + ], + 'show' => 'log-viewer::logs.show' + ], + + 'per-page' => 30, + + 'download' => [ + 'prefix' => 'laravel-', + 'extension' => 'log', + ], + + 'menu' => [ + 'filter-route' => 'log-viewer::logs.filter', + 'icons-enabled' => true, + ], + + 'icons' => [ + 'all' => 'fa fa-fw fa-list', + 'emergency' => 'fa fa-fw fa-bug', + 'alert' => 'fa fa-fw fa-bullhorn', + 'critical' => 'fa fa-fw fa-heartbeat', + 'error' => 'fa fa-fw fa-times-circle', + 'warning' => 'fa fa-fw fa-exclamation-triangle', + 'notice' => 'fa fa-fw fa-exclamation-circle', + 'info' => 'fa fa-fw fa-info-circle', + 'debug' => 'fa fa-fw fa-life-ring', + ], + + 'colors' => [ + 'levels' => [ + 'empty' => '#D1D1D1', + 'all' => '#8A8A8A', + 'emergency' => '#B71C1C', + 'alert' => '#D32F2F', + 'critical' => '#F44336', + 'error' => '#FF5722', + 'warning' => '#FF9100', + 'notice' => '#4CAF50', + 'info' => '#1976D2', + 'debug' => '#90CAF9', + ], + ], + + 'highlight' => [ + '^#\d+', + '^Stack trace:', + ], + + // Asegúrate de que esta parte esté correcta + 'log_parsing_regex' => '/^\[(\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}\.?(\d{6}([\+-]\d\d:\d\d)?)?)\](.*?(\w+)\.|.*?)(' + .implode('|', array_filter(LogLevelsContract::all())) + .')?: (.*?)( in [\/].*?:[0-9]+)?$/is', +]; diff --git a/lang/vendor/log-viewer/ar.json b/lang/vendor/log-viewer/ar.json new file mode 100644 index 0000000..2aac8b0 --- /dev/null +++ b/lang/vendor/log-viewer/ar.json @@ -0,0 +1,13 @@ +{ + "Date": "تاريخ", + "The list of logs is empty!": "قائمة سجلات فارغة!", + "All": "الجميع", + "Emergency": "حالات الطوارئ", + "Alert": "إنذار", + "Critical": "حرج", + "Error": "خطأ", + "Warning": "تحذير", + "Notice": "ملاحظة", + "Info": "المعلومات", + "Debug": "التصحيح" +} diff --git a/lang/vendor/log-viewer/bg.json b/lang/vendor/log-viewer/bg.json new file mode 100644 index 0000000..a13af29 --- /dev/null +++ b/lang/vendor/log-viewer/bg.json @@ -0,0 +1,13 @@ +{ + "Date": "Дата", + "The list of logs is empty!": "Не са намерени логове!", + "All": "Всички", + "Emergency": "Emergency", + "Alert": "Alert", + "Critical": "Critical", + "Error": "Error", + "Warning": "Warning", + "Notice": "Notice", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/bn.json b/lang/vendor/log-viewer/bn.json new file mode 100644 index 0000000..9b94393 --- /dev/null +++ b/lang/vendor/log-viewer/bn.json @@ -0,0 +1,13 @@ +{ + "Date": "তারিখ", + "The list of logs is empty!": "কোন লগ পাওয়া যায়নি!", + "All": "সবগুলি", + "Emergency": "জরুরী", + "Alert": "সতর্ক", + "Critical": "সংকটপূর্ণ", + "Error": "ত্রুটি", + "Warning": "সতর্কতা", + "Notice": "নোটিস", + "Info": "তথ্য", + "Debug": "রুটি অনুসন্ধান" +} diff --git a/lang/vendor/log-viewer/de.json b/lang/vendor/log-viewer/de.json new file mode 100644 index 0000000..8ed6ad6 --- /dev/null +++ b/lang/vendor/log-viewer/de.json @@ -0,0 +1,13 @@ +{ + "Date": "Datum", + "The list of logs is empty!": "KeineLogDateiengefunden!", + "All": "Alle", + "Emergency": "Notfall", + "Alert": "Alarm", + "Critical": "Kritisch", + "Error": "Fehler", + "Warning": "Warnung", + "Notice": "Hinweis", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/es.json b/lang/vendor/log-viewer/es.json new file mode 100644 index 0000000..dc68239 --- /dev/null +++ b/lang/vendor/log-viewer/es.json @@ -0,0 +1,13 @@ +{ + "Date": "Fecha", + "The list of logs is empty!": "La lista del log está vacía!", + "All": "Todos", + "Emergency": "Emergencia", + "Alert": "Alerta", + "Critical": "Criticos", + "Error": "Errores", + "Warning": "Advertencia", + "Notice": "Aviso", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/et.json b/lang/vendor/log-viewer/et.json new file mode 100644 index 0000000..185c410 --- /dev/null +++ b/lang/vendor/log-viewer/et.json @@ -0,0 +1,13 @@ +{ + "Date": "Kuupäev", + "The list of logs is empty!": "Logide nimekiri on tühi!", + "All": "Kõik", + "Emergency": "Erakorraline", + "Alert": "Häire", + "Critical": "Kriitiline", + "Error": "Viga", + "Warning": "Hoiatus", + "Notice": "Teade", + "Info": "Info", + "Debug": "Silumine" +} diff --git a/lang/vendor/log-viewer/fa.json b/lang/vendor/log-viewer/fa.json new file mode 100644 index 0000000..7017be0 --- /dev/null +++ b/lang/vendor/log-viewer/fa.json @@ -0,0 +1,13 @@ +{ + "Date": "تاریخ", + "The list of logs is empty!": "لیست لاگ ها خالی است!", + "All": "همه", + "Emergency": "اورژانسی", + "Alert": "اخطار", + "Critical": "بحرانی", + "Error": "خطا", + "Warning": "هشدار", + "Notice": "اعلان", + "Info": "اطلاعات", + "Debug": "دیباگ" +} diff --git a/lang/vendor/log-viewer/fr.json b/lang/vendor/log-viewer/fr.json new file mode 100644 index 0000000..594edb0 --- /dev/null +++ b/lang/vendor/log-viewer/fr.json @@ -0,0 +1,13 @@ +{ + "Date": "Date", + "The list of logs is empty!": "La liste des logs est vide !", + "All": "Tous", + "Emergency": "Urgence", + "Alert": "Alerte", + "Critical": "Critique", + "Error": "Erreur", + "Warning": "Avertissement", + "Notice": "Notice", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/he.json b/lang/vendor/log-viewer/he.json new file mode 100644 index 0000000..36b2cc8 --- /dev/null +++ b/lang/vendor/log-viewer/he.json @@ -0,0 +1,13 @@ +{ + "Date": "תאריך", + "The list of logs is empty!": "רשימת הלוגים ריקה!", + "All": "הכל", + "Emergency": "חרום", + "Alert": "אזעקה", + "Critical": "קריטי", + "Error": "שגיאה", + "Warning": "אזהרה", + "Notice": "הודעה", + "Info": "מידע", + "Debug": "ניפוי" +} diff --git a/lang/vendor/log-viewer/hu.json b/lang/vendor/log-viewer/hu.json new file mode 100644 index 0000000..5c548aa --- /dev/null +++ b/lang/vendor/log-viewer/hu.json @@ -0,0 +1,13 @@ +{ + "Date": "Dátum", + "The list of logs is empty!": "A naplók listája üres!", + "All": "Összes", + "Emergency": "Vészhelyzet", + "Alert": "Riasztás", + "Critical": "Kritikus", + "Error": "Hiba", + "Warning": "Figyelmeztetés", + "Notice": "Értesítés", + "Info": "Információ", + "Debug": "Hibakeresés" +} diff --git a/lang/vendor/log-viewer/hy.json b/lang/vendor/log-viewer/hy.json new file mode 100644 index 0000000..20bc2fd --- /dev/null +++ b/lang/vendor/log-viewer/hy.json @@ -0,0 +1,13 @@ +{ + "Date": "Ամսաթիվ", + "The list of logs is empty!": "Լոգերի ցուցակը դատարկ է։", + "All": "Բոլորը", + "Emergency": "Վթարային", + "Alert": "Նախազգուշացում", + "Critical": "Կրիտիկական", + "Error": "Սխալ", + "Warning": "Նախազգուշացում", + "Notice": "Ծանուցում", + "Info": "Տեղեկատվություն", + "Debug": "Կարգաբերում" +} diff --git a/lang/vendor/log-viewer/id.json b/lang/vendor/log-viewer/id.json new file mode 100644 index 0000000..c283380 --- /dev/null +++ b/lang/vendor/log-viewer/id.json @@ -0,0 +1,13 @@ +{ + "Date": "Tanggal", + "The list of logs is empty!": "Daftar Log Kosong", + "All": "Semua", + "Emergency": "Darurat", + "Alert": "Waspada", + "Critical": "Kritis", + "Error": "Kesalahan", + "Warning": "Peringatan", + "Notice": "Pemberitahuan", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/it.json b/lang/vendor/log-viewer/it.json new file mode 100644 index 0000000..8a5bbe4 --- /dev/null +++ b/lang/vendor/log-viewer/it.json @@ -0,0 +1,13 @@ +{ + "Date": "Data", + "The list of logs is empty!": "L'elenco dei log è vuoto!", + "All": "Tutti", + "Emergency": "Emergenza", + "Alert": "Allarme", + "Critical": "Critico", + "Error": "Errore", + "Warning": "Avviso", + "Notice": "Notifica", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/ja.json b/lang/vendor/log-viewer/ja.json new file mode 100644 index 0000000..77d5f8d --- /dev/null +++ b/lang/vendor/log-viewer/ja.json @@ -0,0 +1,13 @@ +{ + "Date": "日付", + "The list of logs is empty!": "ログリストが空です!", + "All": "すべて", + "Emergency": "緊急", + "Alert": "警戒", + "Critical": "致命的", + "Error": "エラー", + "Warning": "警告", + "Notice": "通知", + "Info": "情報", + "Debug": "デバッグ" +} diff --git a/lang/vendor/log-viewer/ko.json b/lang/vendor/log-viewer/ko.json new file mode 100644 index 0000000..3938afe --- /dev/null +++ b/lang/vendor/log-viewer/ko.json @@ -0,0 +1,13 @@ +{ + "Date": "날짜", + "The list of logs is empty!": "로그가 없습니다.", + "All": "전체", + "Emergency": "긴급", + "Alert": "경고", + "Critical": "심각", + "Error": "오류", + "Warning": "주의", + "Notice": "알림", + "Info": "정보", + "Debug": "디버그" +} diff --git a/lang/vendor/log-viewer/ms.json b/lang/vendor/log-viewer/ms.json new file mode 100644 index 0000000..e496e0c --- /dev/null +++ b/lang/vendor/log-viewer/ms.json @@ -0,0 +1,13 @@ +{ + "Date": "Tarikh", + "The list of logs is empty!": "Senarai log kosong!", + "All": "Semua", + "Emergency": "Kecemasan", + "Alert": "Waspada", + "Critical": "Kritikal", + "Error": "Ralat", + "Warning": "Amaran", + "Notice": "Notis", + "Info": "Info", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/nl.json b/lang/vendor/log-viewer/nl.json new file mode 100644 index 0000000..9582905 --- /dev/null +++ b/lang/vendor/log-viewer/nl.json @@ -0,0 +1,13 @@ +{ + "Date": "Datum", + "The list of logs is empty!": "De lijst met logs is leeg!", + "All": "Alle", + "Emergency": "Noodgeval", + "Alert": "Alarm", + "Critical": "Cruciaal", + "Error": "Error", + "Warning": "Waarschuwing", + "Notice": "Opmerking", + "Info": "Informatie", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/pl.json b/lang/vendor/log-viewer/pl.json new file mode 100644 index 0000000..6a0cb27 --- /dev/null +++ b/lang/vendor/log-viewer/pl.json @@ -0,0 +1,13 @@ +{ + "Date": "Data", + "The list of logs is empty!": "Lista logów jest pusta!", + "All": "Wszystkie", + "Emergency": "Awaryjne", + "Alert": "Alerty", + "Critical": "Krytyczne", + "Error": "Błędy", + "Warning": "Ostrzeżenia", + "Notice": "Warte uwagi", + "Info": "Informacje", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/pt-BR.json b/lang/vendor/log-viewer/pt-BR.json new file mode 100644 index 0000000..306ba46 --- /dev/null +++ b/lang/vendor/log-viewer/pt-BR.json @@ -0,0 +1,13 @@ +{ + "Date": "Data", + "The list of logs is empty!": "A lista de logs está vazia!", + "All": "Todos", + "Emergency": "Emergência", + "Alert": "Alerta", + "Critical": "Crítico", + "Error": "Erro", + "Warning": "Aviso", + "Notice": "Notícia", + "Info": "Informação", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/ro.json b/lang/vendor/log-viewer/ro.json new file mode 100644 index 0000000..56b2932 --- /dev/null +++ b/lang/vendor/log-viewer/ro.json @@ -0,0 +1,13 @@ +{ + "Date": "Dată", + "The list of logs is empty!": "Nu există niciun log!", + "All": "Toate", + "Emergency": "Urgență", + "Alert": "Alertă", + "Critical": "Critic", + "Error": "Eroare", + "Warning": "Pericol", + "Notice": "Avertisment", + "Info": "Informare", + "Debug": "Depanare" +} diff --git a/lang/vendor/log-viewer/ru.json b/lang/vendor/log-viewer/ru.json new file mode 100644 index 0000000..42d4d3c --- /dev/null +++ b/lang/vendor/log-viewer/ru.json @@ -0,0 +1,13 @@ +{ + "Date": "Дата", + "The list of logs is empty!": "Список журналов пуст!", + "All": "Все", + "Emergency": "Аварийная", + "Alert": "Предупреждение", + "Critical": "Критический", + "Error": "Ошибка", + "Warning": "Предупреждение", + "Notice": "Уведомление", + "Info": "Информация", + "Debug": "Отладка" +} diff --git a/lang/vendor/log-viewer/si.json b/lang/vendor/log-viewer/si.json new file mode 100644 index 0000000..47255a5 --- /dev/null +++ b/lang/vendor/log-viewer/si.json @@ -0,0 +1,13 @@ +{ + "Date": "දිනය", + "The list of logs is empty!": "සටහන් ලැයිස්තුව හිස්ය", + "All": "සියල්ල", + "Emergency": "හදිසි", + "Alert": "පරීක්ෂාකාරී", + "Critical": "අවදානම්", + "Error": "දෝෂය", + "Warning": "අවවාදය", + "Notice": "නිවේදනය", + "Info": "තොරතුරු", + "Debug": "නිදොස්කරණය" +} diff --git a/lang/vendor/log-viewer/sv.json b/lang/vendor/log-viewer/sv.json new file mode 100644 index 0000000..694b248 --- /dev/null +++ b/lang/vendor/log-viewer/sv.json @@ -0,0 +1,13 @@ +{ + "Date": "Datum", + "The list of logs is empty!": "Det finns inga loggar att visa.", + "All": "Alla", + "Emergency": "Akut", + "Alert": "Alarmerande", + "Critical": "Kritisk", + "Error": "Error", + "Warning": "Varning", + "Notice": "Notis", + "Info": "Information", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/th.json b/lang/vendor/log-viewer/th.json new file mode 100644 index 0000000..4004192 --- /dev/null +++ b/lang/vendor/log-viewer/th.json @@ -0,0 +1,13 @@ +{ + "Date": "วันที่", + "The list of logs is empty!": "ไม่มีรายการล็อก!", + "All": "ทั้งหมด", + "Emergency": "ฉุกเฉิน", + "Alert": "วิกฤติ", + "Critical": "ร้ายแรง", + "Error": "ข้อผิดพลาด", + "Warning": "คำเตือน", + "Notice": "ประกาศ", + "Info": "ข้อมูล", + "Debug": "ดีบัก" +} diff --git a/lang/vendor/log-viewer/tr.json b/lang/vendor/log-viewer/tr.json new file mode 100644 index 0000000..162c581 --- /dev/null +++ b/lang/vendor/log-viewer/tr.json @@ -0,0 +1,13 @@ +{ + "Date": "Tarih", + "The list of logs is empty!": "Günlük listesi boş!", + "All": "Tümü", + "Emergency": "Acil", + "Alert": "Alarm", + "Critical": "Kritik", + "Error": "Hata", + "Warning": "Uyarı", + "Notice": "Bildirim", + "Info": "Bilgi", + "Debug": "Hata ayıklama" +} diff --git a/lang/vendor/log-viewer/uk.json b/lang/vendor/log-viewer/uk.json new file mode 100644 index 0000000..07e601b --- /dev/null +++ b/lang/vendor/log-viewer/uk.json @@ -0,0 +1,13 @@ +{ + "Date": "Дата", + "The list of logs is empty!": "Список журналів порожній!", + "All": "Всі", + "Emergency": "Аварійна", + "Alert": "Попередження", + "Critical": "Критична", + "Error": "Помилка", + "Warning": "Попереждення", + "Notice": "Сповіщення", + "Info": "Інформація", + "Debug": "Відладка" +} diff --git a/lang/vendor/log-viewer/uz.json b/lang/vendor/log-viewer/uz.json new file mode 100644 index 0000000..4c0034a --- /dev/null +++ b/lang/vendor/log-viewer/uz.json @@ -0,0 +1,13 @@ +{ + "Date": "Sana", + "The list of logs is empty!": "Loglar ro'yhati bo'sh!", + "All": "Hammasi", + "Emergency": "Favqulodda holat", + "Alert": "Ogohlantirish", + "Critical": "Xavfli(Muhim)", + "Error": "Xato", + "Warning": "Ogohlantirish", + "Notice": "Eslatma", + "Info": "Ma'lumot", + "Debug": "Debug" +} diff --git a/lang/vendor/log-viewer/zh-TW.json b/lang/vendor/log-viewer/zh-TW.json new file mode 100644 index 0000000..f93ddef --- /dev/null +++ b/lang/vendor/log-viewer/zh-TW.json @@ -0,0 +1,13 @@ +{ + "Date": "日期", + "The list of logs is empty!": "列表中沒有任何紀錄!", + "All": "全部", + "Emergency": "緊急", + "Alert": "警報", + "Critical": "嚴重", + "Error": "錯誤", + "Warning": "警告", + "Notice": "注意", + "Info": "訊息", + "Debug": "除錯" +} diff --git a/lang/vendor/log-viewer/zh.json b/lang/vendor/log-viewer/zh.json new file mode 100644 index 0000000..3cf8fb7 --- /dev/null +++ b/lang/vendor/log-viewer/zh.json @@ -0,0 +1,13 @@ +{ + "Date": "日期", + "The list of logs is empty!": "日志列表为空!", + "All": "全部", + "Emergency": "危急", + "Alert": "紧急", + "Critical": "严重", + "Error": "错误", + "Warning": "警告", + "Notice": "注意", + "Info": "信息", + "Debug": "调试" +} diff --git a/resources/views/vendor/log-viewer/bootstrap-3/_master.blade.php b/resources/views/vendor/log-viewer/bootstrap-3/_master.blade.php new file mode 100644 index 0000000..e699934 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-3/_master.blade.php @@ -0,0 +1,342 @@ + + + + + + + LogViewer - Created by ARCANEDEV + + + + + + + + + + {{-- Navbar --}} + + + {{-- Main container --}} +
+ @yield('content') +
+ + {{-- Footer --}} + + + {{-- Scripts --}} + + + + + @yield('modals') + @yield('scripts') + + diff --git a/resources/views/vendor/log-viewer/bootstrap-3/dashboard.blade.php b/resources/views/vendor/log-viewer/bootstrap-3/dashboard.blade.php new file mode 100644 index 0000000..e00c73b --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-3/dashboard.blade.php @@ -0,0 +1,52 @@ +@extends('log-viewer::bootstrap-3._master') + +@section('content') +

@lang('Dashboard')

+ +
+
+ +
+
+
+
+ @foreach($percents as $level => $item) +
+
+ + {{ log_styler()->icon($level) }} + + +
+ {{ $item['name'] }} + + {{ $item['count'] }} @lang('entries') - {!! $item['percent'] !!} % + +
+
+
+
+
+
+ @endforeach +
+
+
+
+@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-3/logs.blade.php b/resources/views/vendor/log-viewer/bootstrap-3/logs.blade.php new file mode 100644 index 0000000..df8fb08 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-3/logs.blade.php @@ -0,0 +1,152 @@ +@extends('log-viewer::bootstrap-3._master') + + + +@section('content') +

@lang('Logs')

+ + {{ $rows->render() }} + +
+ + + + @foreach($headers as $key => $header) + + @endforeach + + + + + @forelse($rows as $date => $row) + + @foreach($row as $key => $value) + + @endforeach + + + @empty + + + + @endforelse + +
+ @if ($key == 'date') + {{ $header }} + @else + + {{ log_styler()->icon($key) }} {{ $header }} + + @endif + @lang('Actions')
+ @if ($key == 'date') + {{ $value }} + @elseif ($value == 0) + {{ $value }} + @else + + {{ $value }} + + @endif + + + + + + + + + + +
+ {{ trans('log-viewer::general.empty-logs') }} +
+
+ + {{ $rows->render() }} +@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-3/show.blade.php b/resources/views/vendor/log-viewer/bootstrap-3/show.blade.php new file mode 100644 index 0000000..d2467e7 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-3/show.blade.php @@ -0,0 +1,286 @@ + $entries + * @var string|null $query + */ +?> + +@extends('log-viewer::bootstrap-3._master') + +@section('content') +

@lang('Log') [{{ $log->date }}]

+ +
+
+
+
@lang('Levels')
+ +
+
+
+ {{-- Log Details --}} +
+
+ @lang('Log info') : + + +
+
+ + + + + + + + + + + + + + + + + + + +
@lang('File path') :{{ $log->getPath() }}
@lang('Log entries') : + {{ $entries->total() }} + @lang('Size') : + {{ $log->size() }} + @lang('Created at') : + {{ $log->createdAt() }} + @lang('Updated at') : + {{ $log->updatedAt() }} +
+
+ +
+ + {{-- Log Entries --}} +
+ @if ($entries->hasPages()) +
+ {{ $entries->appends(compact('query'))->render() }} + + + {{ __('Page :current of :last', ['current' => $entries->currentPage(), 'last' => $entries->lastPage()]) }} + +
+ @endif + +
+ + + + + + + + + + + + @forelse($entries as $key => $entry) + + + + + + + + @if ($entry->hasStack() || $entry->hasContext()) + + + + @endif + @empty + + + + @endforelse + +
@lang('ENV')@lang('Level')@lang('Time')@lang('Header')@lang('Actions')
+ {{ $entry->env }} + + {!! $entry->level() !!} + + + {{ $entry->datetime->format('H:i:s') }} + + +

{{ $entry->header }}

+
+ @if ($entry->hasStack()) + + @endif + + @if ($entry->hasContext()) + + @endif +
+ @if ($entry->hasStack()) +
+ {!! $entry->stack() !!} +
+ @endif + + @if ($entry->hasContext()) +
+
{{ $entry->context() }}
+
+ @endif +
+ @lang('The list of logs is empty!') +
+
+ + @if ($entries->hasPages()) + + @endif +
+
+
+@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-4/_master.blade.php b/resources/views/vendor/log-viewer/bootstrap-4/_master.blade.php new file mode 100644 index 0000000..c848cea --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-4/_master.blade.php @@ -0,0 +1,270 @@ + + + + + + + + LogViewer - Created by ARCANEDEV + {{-- Styles --}} + + + + + + + + +
+
+ @yield('content') +
+
+ + {{-- Footer --}} + + + {{-- Scripts --}} + + + + + + @yield('modals') + @yield('scripts') + + diff --git a/resources/views/vendor/log-viewer/bootstrap-4/dashboard.blade.php b/resources/views/vendor/log-viewer/bootstrap-4/dashboard.blade.php new file mode 100644 index 0000000..62a5e85 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-4/dashboard.blade.php @@ -0,0 +1,53 @@ +@extends('log-viewer::bootstrap-4._master') + +@section('content') + + +
+
+ +
+ +
+
+ @foreach($percents as $level => $item) +
+
+
+ {!! log_styler()->icon($level) !!} +
+ +
+ {{ $item['name'] }} + + {{ $item['count'] }} @lang('entries') - {!! $item['percent'] !!} % + +
+
+
+
+
+
+ @endforeach +
+
+
+@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-4/logs.blade.php b/resources/views/vendor/log-viewer/bootstrap-4/logs.blade.php new file mode 100644 index 0000000..b599b17 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-4/logs.blade.php @@ -0,0 +1,152 @@ +@extends('log-viewer::bootstrap-4._master') + + + +@section('content') + + +
+ + + + @foreach($headers as $key => $header) + + @endforeach + + + + + @forelse($rows as $date => $row) + + @foreach($row as $key => $value) + + @endforeach + + + @empty + + + + @endforelse + +
+ @if ($key == 'date') + {{ $header }} + @else + + {{ log_styler()->icon($key) }} {{ $header }} + + @endif + @lang('Actions')
+ @if ($key == 'date') + {{ $value }} + @elseif ($value == 0) + {{ $value }} + @else + + {{ $value }} + + @endif + + + + + + + + + + +
+ @lang('The list of logs is empty!') +
+
+ + {{ $rows->render() }} +@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-4/show.blade.php b/resources/views/vendor/log-viewer/bootstrap-4/show.blade.php new file mode 100644 index 0000000..a3e2e46 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-4/show.blade.php @@ -0,0 +1,273 @@ + $entries + * @var string|null $query + */ +?> + +@extends('log-viewer::bootstrap-4._master') + +@section('content') + + +
+
+ {{-- Log Menu --}} +
+
@lang('Levels')
+
+ @foreach($log->menu() as $levelKey => $item) + @if ($item['count'] === 0) + + {!! $item['icon'] !!} {{ $item['name'] }} + {{ $item['count'] }} + + @else + + {!! $item['icon'] !!} {{ $item['name'] }} + {{ $item['count'] }} + + @endif + @endforeach +
+
+
+
+ {{-- Log Details --}} +
+
+ @lang('Log info') : + +
+
+ + + + + + + + + + + + + + + + + +
@lang('File path') :{{ $log->getPath() }}
@lang('Log entries') : + {{ $entries->total() }} + @lang('Size') : + {{ $log->size() }} + @lang('Created at') : + {{ $log->createdAt() }} + @lang('Updated at') : + {{ $log->updatedAt() }} +
+
+ +
+ + {{-- Log Entries --}} +
+ @if ($entries->hasPages()) +
+ + {{ __('Page :current of :last', ['current' => $entries->currentPage(), 'last' => $entries->lastPage()]) }} + +
+ @endif + +
+ + + + + + + + + + + + @forelse($entries as $key => $entry) + + + + + + + + @if ($entry->hasStack() || $entry->hasContext()) + + + + @endif + @empty + + + + @endforelse + +
@lang('ENV')@lang('Level')@lang('Time')@lang('Header')@lang('Actions')
+ {{ $entry->env }} + + + {!! $entry->level() !!} + + + + {{ $entry->datetime->format('H:i:s') }} + + + {{ $entry->header }} + + @if ($entry->hasStack()) + + @endif + + @if ($entry->hasContext()) + + @endif +
+ @if ($entry->hasStack()) +
+ {!! $entry->stack() !!} +
+ @endif + + @if ($entry->hasContext()) +
+
{{ $entry->context() }}
+
+ @endif +
+ @lang('The list of logs is empty!') +
+
+
+ + {!! $entries->appends(compact('query'))->render() !!} +
+
+@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-5/_master.blade.php b/resources/views/vendor/log-viewer/bootstrap-5/_master.blade.php new file mode 100644 index 0000000..4be6666 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-5/_master.blade.php @@ -0,0 +1,277 @@ + + + + + + + + LogViewer - Created by ARCANEDEV + {{-- Styles --}} + + + + + + + + +
+
+ @yield('content') +
+
+ + {{-- Footer --}} + + + {{-- Scripts --}} + + + + + @yield('modals') + @yield('scripts') + + diff --git a/resources/views/vendor/log-viewer/bootstrap-5/dashboard.blade.php b/resources/views/vendor/log-viewer/bootstrap-5/dashboard.blade.php new file mode 100644 index 0000000..2559212 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-5/dashboard.blade.php @@ -0,0 +1,53 @@ +@extends('log-viewer::bootstrap-5._master') + +@section('content') + + +
+
+ +
+ +
+
+ @foreach($percents as $level => $item) +
+
+
+ {!! log_styler()->icon($level) !!} +
+ +
+ {{ $item['name'] }} + + {{ $item['count'] }} @lang('entries') - {!! $item['percent'] !!} % + +
+
+
+
+
+
+ @endforeach +
+
+
+@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-5/logs.blade.php b/resources/views/vendor/log-viewer/bootstrap-5/logs.blade.php new file mode 100644 index 0000000..b9997bf --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-5/logs.blade.php @@ -0,0 +1,157 @@ +@extends('log-viewer::bootstrap-5._master') + + + +@section('content') + + +
+ + + + @foreach($headers as $key => $header) + + @endforeach + + + + + @forelse($rows as $date => $row) + + @foreach($row as $key => $value) + + @endforeach + + + @empty + + + + @endforelse + +
+ @if ($key == 'date') + {{ $header }} + @else + + {{ log_styler()->icon($key) }} {{ $header }} + + @endif + @lang('Actions')
+ @if ($key == 'date') + {{ $value }} + @elseif ($value == 0) + {{ $value }} + @else + + {{ $value }} + + @endif + + + + + + + + + + +
+ @lang('The list of logs is empty!') +
+
+ + {{ $rows->render() }} +@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection diff --git a/resources/views/vendor/log-viewer/bootstrap-5/show.blade.php b/resources/views/vendor/log-viewer/bootstrap-5/show.blade.php new file mode 100644 index 0000000..6b5f695 --- /dev/null +++ b/resources/views/vendor/log-viewer/bootstrap-5/show.blade.php @@ -0,0 +1,271 @@ + + +@extends('log-viewer::bootstrap-5._master') + +@section('content') + + +
+
+ {{-- Log Menu --}} +
+
@lang('Levels')
+
+ @foreach($log->menu() as $levelKey => $item) + @if ($item['count'] === 0) + + {!! $item['icon'] !!} {{ $item['name'] }} + {{ $item['count'] }} + + @else + + {!! $item['icon'] !!} {{ $item['name'] }} + {{ $item['count'] }} + + @endif + @endforeach +
+
+
+
+ {{-- Log Details --}} +
+
+ @lang('Log info') : +
+ + @lang('Download') + + +
+
+
+ + + + + + + + + + + + + + + + + +
@lang('File path') :{{ $log->getPath() }}
@lang('Log entries') : + {{ $entries->total() }} + @lang('Size') : + {{ $log->size() }} + @lang('Created at') : + {{ $log->createdAt() }} + @lang('Updated at') : + {{ $log->updatedAt() }} +
+
+ +
+ + {{-- Log Entries --}} +
+ @if ($entries->hasPages()) +
+ + {{ __('Page :current of :last', ['current' => $entries->currentPage(), 'last' => $entries->lastPage()]) }} + +
+ @endif + +
+ + + + + + + + + + + + @forelse($entries as $key => $entry) + + + + + + + + + @if ($entry->hasStack() || $entry->hasContext()) + + + + @endif + @empty + + + + @endforelse + +
@lang('ENV')@lang('Level')@lang('Time')@lang('Header')@lang('Actions')
+ {{ $entry->env }} + + + {!! $entry->level() !!} + + + + {{ $entry->datetime->format('H:i:s') }} + + + {{ $entry->header }} + + @if ($entry->hasStack()) + + @endif + + @if ($entry->hasContext()) + + @endif +
+ @if ($entry->hasStack()) +
+ {!! $entry->stack() !!} +
+ @endif + + @if ($entry->hasContext()) +
+
{{ $entry->context() }}
+
+ @endif +
+ @lang('The list of logs is empty!') +
+
+
+ + {!! $entries->appends(compact('query'))->render() !!} +
+
+@endsection + +@section('modals') + {{-- DELETE MODAL --}} + +@endsection + +@section('scripts') + +@endsection