From 354c63edd02fc53272d8c91d78d462944993ac42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 28 Apr 2026 22:42:15 +0300 Subject: [PATCH] feat: implement admin dashboard UI and utility functions for plugin management --- app/Functions/pelinom.php | 5 +- .../{pelinom6.min.css => citrus-core.min.css} | 0 assets/admin/css/{stellar.css => citrus.css} | 154 ++++++++++------ ...nom6.app.min.js => citrus-core.app.min.js} | 0 ...m6.core.min.js => citrus-core.core.min.js} | 0 resources/views/admin/inc/plugins.blade.php | 172 ++++++++++-------- resources/views/admin/index.blade.php | 8 +- 7 files changed, 206 insertions(+), 133 deletions(-) rename assets/admin/css/{pelinom6.min.css => citrus-core.min.css} (100%) rename assets/admin/css/{stellar.css => citrus.css} (61%) rename assets/admin/js/{pelinom6.app.min.js => citrus-core.app.min.js} (100%) rename assets/admin/js/{pelinom6.core.min.js => citrus-core.core.min.js} (100%) diff --git a/app/Functions/pelinom.php b/app/Functions/pelinom.php index 84d7c19..491415d 100644 --- a/app/Functions/pelinom.php +++ b/app/Functions/pelinom.php @@ -11,6 +11,8 @@ use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\App; +use App\Fields; + function differentValues($dizi) @@ -1529,12 +1531,13 @@ function diger_ayarlar() } -function fields() +function fields($content_type = []) { $fields = Fields::get(); $fields = json_decode($fields, true); $fields2 = array(); foreach (@$fields as $r) { + if (in_array($r['title'], $content_type)) { $fields2[$r['title']] = array( "values" => explode(",", $r['values']), diff --git a/assets/admin/css/pelinom6.min.css b/assets/admin/css/citrus-core.min.css similarity index 100% rename from assets/admin/css/pelinom6.min.css rename to assets/admin/css/citrus-core.min.css diff --git a/assets/admin/css/stellar.css b/assets/admin/css/citrus.css similarity index 61% rename from assets/admin/css/stellar.css rename to assets/admin/css/citrus.css index 42f9698..aa5bb1b 100644 --- a/assets/admin/css/stellar.css +++ b/assets/admin/css/citrus.css @@ -1,4 +1,5 @@ -.table-sm td, .table-sm th { +.table-sm td, +.table-sm th { padding: 2px; text-align: left; white-space: nowrap; @@ -6,75 +7,93 @@ text-overflow: ellipsis; } -.table-sm input, .table-sm select, .table-sm .select2-selection { +.table-sm input, +.table-sm select, +.table-sm .select2-selection { padding: 0px 10px; - height:30px; - border:none; + height: 30px; + border: none; background: transparent; } + .table-sm .select2 { - min-width:200px; + min-width: 200px; } + .table-sm td { - min-width:10%; + min-width: 10%; } + .sidebar-inverse #sidebar img { filter: contrast(0) brightness(2); } + .sidebar-inverse #sidebar input { - -background:transparent; - -margin-bottom:10px; - -color: white; + + background: transparent; + + margin-bottom: 10px; + + color: white; } + .sidebar-inverse i img { filter: invert(1) !important; width: 33px; } -.table-sm td:hover{ + +.table-sm td:hover { /*min-width: 200px;*/ - overflow:none !important; + overflow: none !important; } + .rc-handle:hover { background: #e0e0e0; width: 5px; margin-left: -2px; } + .table-responsive { - min-height:500px + min-height: 500px } + .table-sm .dropdown-item input { - height:initial; + height: initial; } + .table-sm .dropdown-item { font-size: 11px; - padding:3px + padding: 3px } + .table-sm .dropdown-toggle { background: none; } + .table-sm .dropdown-menu { max-height: 226px; overflow: auto; } -.data-tables input, .data-tables select, .data-tables .select2-selection { +.data-tables input, +.data-tables select, +.data-tables .select2-selection { padding: 0px 10px; - height:30px; - border:none; + height: 30px; + border: none; background: transparent; } -.data-tables td, .data-tables th { +.data-tables td, +.data-tables th { padding: 2px; text-align: center; white-space: nowrap; text-overflow: ellipsis; } -.new-form td, .new-form th { +.new-form td, +.new-form th { padding: 2px; text-align: center; white-space: nowrap; @@ -82,29 +101,34 @@ color: white; text-overflow: ellipsis; } -.new-form input, .new-form select, .new-form .select2-selection { +.new-form input, +.new-form select, +.new-form .select2-selection { padding: 0px 10px; - height:30px; - -} -.new-form .select2 { - min-width:200px; -} -.new-form td { - min-width:10%; + height: 30px; + } -.new-form td:hover{ +.new-form .select2 { + min-width: 200px; +} + +.new-form td { + min-width: 10%; +} + +.new-form td:hover { /*min-width: 200px;*/ - overflow:none !important; + overflow: none !important; } .new-form .dropdown-item input { - height:initial; + height: initial; } + .new-form .dropdown-item { font-size: 11px; - padding:3px + padding: 3px } .new-form .dropdown-menu { @@ -112,16 +136,17 @@ color: white; overflow: auto; } -.new-form .btn-sm { +.new-form .btn-sm { height: 30px; } -table .filter-list > button { +table .filter-list>button { padding: 3px; height: 12px; } -table .filter-list > button:after { - margin:0px; + +table .filter-list>button:after { + margin: 0px; vertical-align: text-top; margin-top: 1px; } @@ -131,42 +156,56 @@ table .filter-list > button:after { height: 150px; overflow: auto; } + .filter-list { - position:absolute; - top:3px; - right:3px; + position: absolute; + top: 3px; + right: 3px; z-index: 1000; } -.filter-list > button { + +.filter-list>button { background: white !important; } + .table-sm thead th { - position:relative; + position: relative; } -.dx-datagrid td, .table-bordered, .table-bordered td, .table-bordered th { + +.dx-datagrid td, +.table-bordered, +.table-bordered td, +.table-bordered th { border-color: #a4a3a3 !important; } + .sub-menu-text { position: relative; left: 40px; } + .sub-menu-icon { width: 22px !important; } + .tab-pane { display: none; } + .tab-pane.active { display: block; } + .tab-pane.active .select2-container { width: 100% !important; } .modal-content { border-radius: 15px; - border: none; /* Optional: Cleaner look */ + border: none; + /* Optional: Cleaner look */ } + .modal-header { border-radius: 15px 15px 0 0; } @@ -177,20 +216,31 @@ table .filter-list > button:after { display: inline-flex; align-items: center; justify-content: center; - gap: 0.5rem; /* Space between icon and text */ + gap: 0.5rem; + /* Space between icon and text */ vertical-align: middle; } -.btn i, -.btn .material-icons, +.btn i, +.btn .material-icons, .btn .material-symbols-outlined, .btn svg { - font-size: 1.1em; /* Slightly larger icons usually look better */ + font-size: 1.1em; + /* Slightly larger icons usually look better */ line-height: 1; - margin: 0; /* Reset margins */ + margin: 0; + /* Reset margins */ } /* Reset existing specific fix to rely on flexbox */ .btn .material-symbols-outlined { - top: 0; + top: 0; +} + +.content-header .btn { + color: white; +} + +.content-header .btn:hover { + color: black; } \ No newline at end of file diff --git a/assets/admin/js/pelinom6.app.min.js b/assets/admin/js/citrus-core.app.min.js similarity index 100% rename from assets/admin/js/pelinom6.app.min.js rename to assets/admin/js/citrus-core.app.min.js diff --git a/assets/admin/js/pelinom6.core.min.js b/assets/admin/js/citrus-core.core.min.js similarity index 100% rename from assets/admin/js/pelinom6.core.min.js rename to assets/admin/js/citrus-core.core.min.js diff --git a/resources/views/admin/inc/plugins.blade.php b/resources/views/admin/inc/plugins.blade.php index 86c1d7c..86ab517 100644 --- a/resources/views/admin/inc/plugins.blade.php +++ b/resources/views/admin/inc/plugins.blade.php @@ -1,7 +1,9 @@ - - + + @@ -10,28 +12,36 @@ - + - + - + - + - - + + - - + + - + - - + + @@ -108,8 +125,8 @@ --> - - + + @@ -121,7 +138,8 @@ - + @@ -143,54 +161,56 @@ use the latest version -->
- + - - - + + + - + - - - - - - - - + + + - - - - - + + + + - - - - + + + + + - - - - -
+ + + + + + + + + + @@ -227,26 +247,26 @@ function ExportToExcel(type, fn, dl) { text-align: left; max-width: 75%; } - + @media (max-width: 767px) { .timeline { max-width: 98%; padding: 25px; } } - + .timeline h1 { font-weight: 300; font-size: 1.4em; } - + .timeline h2, .timeline h3 { font-weight: 600; font-size: 1rem; margin-bottom: 10px; } - + .timeline .event { border-bottom: 1px dashed #e8ebf1; padding-bottom: 25px; @@ -255,26 +275,26 @@ function ExportToExcel(type, fn, dl) { background: #8080801f; padding: 15px; } - + @media (max-width: 767px) { .timeline .event { padding-top: 30px; } } - + .timeline .event:last-of-type { padding-bottom: 0; margin-bottom: 0; border: none; } - + .timeline .event:before, .timeline .event:after { position: absolute; display: block; top: 0; } - + .timeline .event:before { left: -207px; content: attr(data-date); @@ -283,14 +303,14 @@ function ExportToExcel(type, fn, dl) { font-size: 0.9em; min-width: 120px; } - + @media (max-width: 767px) { .timeline .event:before { left: 0px; text-align: left; } } - + .timeline .event:after { -webkit-box-shadow: 0 0 0 3px rgb(206, 10, 10); box-shadow: 0 0 0 3px rgb(206, 10, 10); @@ -302,13 +322,13 @@ function ExportToExcel(type, fn, dl) { content: ""; top: 5px; } - + @media (max-width: 767px) { .timeline .event:after { left: -31.8px; } } - + .rtl .timeline { border-left: 0; text-align: right; @@ -318,14 +338,14 @@ function ExportToExcel(type, fn, dl) { border-top-left-radius: 4px; border-right: 3px solid #727cf5; } - + .rtl .timeline .event::before { left: 0; right: -170px; } - + .rtl .timeline .event::after { left: 0; right: -55.8px; } - \ No newline at end of file + \ No newline at end of file diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index 46ef3bf..d0d1a08 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -73,7 +73,7 @@
+ style="background-image: url('assets/admin/media/photos/photo24@2x.jpg');">