From 1f1e66be1198e3260ff15d964b5b2834dc5fb803 Mon Sep 17 00:00:00 2001 From: rizkyilhampra Date: Tue, 13 Jun 2023 19:09:15 +0800 Subject: [PATCH 1/5] change title --- resources/views/user/user.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/user/user.blade.php b/resources/views/user/user.blade.php index f3bcb4c..0621011 100644 --- a/resources/views/user/user.blade.php +++ b/resources/views/user/user.blade.php @@ -137,7 +137,7 @@ class="img-fluid chocolat-image" @can('asUser') - @section('title', 'User ' . html_entity_decode('—')) + @section('title', auth()->user()->name . html_entity_decode(' —')) @include('user.profile-modal') @include('user.detail-diagnosis-modal') @push('styleLibraries') From 20642c77fc905bde5f921d483d61f11544851684 Mon Sep 17 00:00:00 2001 From: rizkyilhampra Date: Tue, 13 Jun 2023 19:37:49 +0800 Subject: [PATCH 2/5] change notyf condition and style --- public/spesified-assets/user/script.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/public/spesified-assets/user/script.js b/public/spesified-assets/user/script.js index 4cf8a03..4d1b79c 100644 --- a/public/spesified-assets/user/script.js +++ b/public/spesified-assets/user/script.js @@ -220,12 +220,18 @@ function ajaxGetGejala() { document.addEventListener('DOMContentLoaded', async () => { const notyf = new Notyf({ position: { - x: 'right', + x: 'center', y: 'top', }, dismissible: true, }); + if (isUser) { + if (login != false) { + notyf.success(login); + } + } + const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip( tooltipTriggerEl)) @@ -437,15 +443,6 @@ document.addEventListener('DOMContentLoaded', async () => { }) } - if (isUser) { - if (login && !localStorage.getItem('notyfshown')) { - notyf.success(login); - localStorage.setItem('notyfshown', true); - } else { - localStorage.removeItem('notyfshown'); - } - } - const openImageChocolat = document.querySelectorAll('.open-image-chocolat'); openImageChocolat.forEach((element, index) => { From 8167ba9ec21c2ecee447537a9011636d19063f98 Mon Sep 17 00:00:00 2001 From: rizkyilhampra Date: Tue, 13 Jun 2023 19:41:38 +0800 Subject: [PATCH 3/5] change condition where Chocolat lib show --- .../user/detail-diagnosis-modal.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/public/spesified-assets/user/detail-diagnosis-modal.js b/public/spesified-assets/user/detail-diagnosis-modal.js index 480b1b8..7f1de72 100644 --- a/public/spesified-assets/user/detail-diagnosis-modal.js +++ b/public/spesified-assets/user/detail-diagnosis-modal.js @@ -117,11 +117,16 @@ function drawDetailDiagnosis(response, diagnosed) { }); imagePenyakit.addEventListener('click', () => { - const chocolatInstance = Chocolat([{ - src: assetStorage + '/' + response.penyakit.image, - title: response.penyakit.name, - }], {}); - chocolatInstance.api.open(); + const lebarLayar = window.innerWidth || document.documentElement.clientWidth || document + .body.clientWidth; + + if (lebarLayar >= 992) { + const chocolatInstance = Chocolat([{ + src: assetStorage + '/' + response.penyakit.image, + title: response.penyakit.name, + }], {}); + chocolatInstance.api.open(); + } }); } } From fc4295531a050baa4fb826983ce8486fae8f11b0 Mon Sep 17 00:00:00 2001 From: rizkyilhampra Date: Tue, 13 Jun 2023 19:45:13 +0800 Subject: [PATCH 4/5] change text --- resources/views/user/user.blade.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/resources/views/user/user.blade.php b/resources/views/user/user.blade.php index 0621011..25920a9 100644 --- a/resources/views/user/user.blade.php +++ b/resources/views/user/user.blade.php @@ -29,14 +29,12 @@
- Sistem ini menggunakan metode forward chaining dalam mendiagnosis penyakit. Prosesnya - dimulai dengan evaluasi gejala yang diberikan oleh pengguna, kemudian - sistem akan mencocokkan dengan aturan yang ada. Jika terdapat aturan yang telah terpenuhi, - sistem akan memberikan detail hasil diagnosis penyakit. Detail hasil diagnosis - penyakit akan - disimpan di - dalam sistem. Pengguna dapat melihat kembali detail hasil diagnosis yang telah dilakukan - pada histori diagnosis di menu profil. + Sistem ini menggunakan metode forward chaining untuk mendiagnosis penyakit. Proses dimulai + dengan mengevaluasi gejala yang diberikan oleh pengguna, kemudian sistem mencocokkannya + dengan aturan yang ada. Jika terdapat aturan yang terpenuhi, sistem akan memberikan detail + hasil diagnosis penyakit. Detail hasil diagnosis penyakit akan disimpan dalam sistem. + Pengguna dapat melihat kembali detail hasil diagnosis yang telah dilakukan pada histori + diagnosis di menu profil.
+

Detail Diagnosis

+