From 30eda7483ca7957cc87446b97a2b0d7d33cba8d8 Mon Sep 17 00:00:00 2001 From: Ism1tha Date: Wed, 4 Dec 2024 18:34:02 +0100 Subject: [PATCH 01/15] feat: :art: layout made by Oriol, work in progress --- .../Controllers/Admin/InventoryController.php | 31 +++ .../Layouts/Admin/AdminInventoryLayout.php | 143 ----------- app/src/app/Layouts/Admin/AdminLayout.php | 236 +++++++++--------- .../app/Layouts/Customer/CustomerLayout.php | 2 +- app/src/app/Views/Admin/Inventory.php | 1 + app/src/public/assets/css/app.css | 19 ++ app/src/public/assets/images/avatar.png | Bin 0 -> 4595 bytes app/src/public/assets/images/isotip.png | Bin 0 -> 2517 bytes .../assets/images/logotip-horizontal.png | Bin 0 -> 6806 bytes app/src/routes/admin.php | 6 + 10 files changed, 180 insertions(+), 258 deletions(-) create mode 100644 app/src/app/Controllers/Admin/InventoryController.php delete mode 100644 app/src/app/Layouts/Admin/AdminInventoryLayout.php create mode 100644 app/src/app/Views/Admin/Inventory.php create mode 100644 app/src/public/assets/images/avatar.png create mode 100644 app/src/public/assets/images/isotip.png create mode 100644 app/src/public/assets/images/logotip-horizontal.png diff --git a/app/src/app/Controllers/Admin/InventoryController.php b/app/src/app/Controllers/Admin/InventoryController.php new file mode 100644 index 00000000..8d8ffab6 --- /dev/null +++ b/app/src/app/Controllers/Admin/InventoryController.php @@ -0,0 +1,31 @@ + 'Admin/Inventory', + 'title' => 'Dashboard', + 'layout' => 'Admin/AdminLayout', + 'data' => [ + 'users' => $users, + 'contracts' => $contracts, + 'elements' => $elements, + 'workorders' => $workorders, + ], + ]); + } +} diff --git a/app/src/app/Layouts/Admin/AdminInventoryLayout.php b/app/src/app/Layouts/Admin/AdminInventoryLayout.php deleted file mode 100644 index 5d3e26f4..00000000 --- a/app/src/app/Layouts/Admin/AdminInventoryLayout.php +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - <?php echo $title . ' - ' . getenv('APP_NAME'); ?> - - - - - - - - -
- - - - - -
- -
-
-
-
- Welcome, - - - Logout -
-
- - -
- -
-
-
- - - - - - - diff --git a/app/src/app/Layouts/Admin/AdminLayout.php b/app/src/app/Layouts/Admin/AdminLayout.php index 5d3e26f4..f039dd61 100644 --- a/app/src/app/Layouts/Admin/AdminLayout.php +++ b/app/src/app/Layouts/Admin/AdminLayout.php @@ -1,143 +1,151 @@ + + - - <?php echo $title . ' - ' . getenv('APP_NAME'); ?> - + <?php echo $title . ' - ' . getenv('APP_NAME'); ?> + - - -
- - + +
+ + Tipo Tarea +
+ +
+ + Usuarios +
- -
- -
-
-
-
- Welcome, - - - Logout -
-
+ +
+ + Partes +
- -
- -
+ +
- + +
+ +
+ + const menuButton = document.getElementById('menuButton'); + const dropdown = document.getElementById('dropdown-menu'); + menuButton.addEventListener('click', () => { + dropdown.classList.toggle('hidden'); + }); + + function toggleDropdown() { + dropdown.classList.toggle('hidden'); + } + diff --git a/app/src/app/Layouts/Customer/CustomerLayout.php b/app/src/app/Layouts/Customer/CustomerLayout.php index 17195fcf..2e13e6f6 100644 --- a/app/src/app/Layouts/Customer/CustomerLayout.php +++ b/app/src/app/Layouts/Customer/CustomerLayout.php @@ -5,7 +5,7 @@ - <?php echo htmlspecialchars($title) . ' - ' . htmlspecialchars(getenv('APP_NAME')); ?> + <?php echo $title . ' - ' . getenv('APP_NAME'); ?> diff --git a/app/src/app/Views/Admin/Inventory.php b/app/src/app/Views/Admin/Inventory.php new file mode 100644 index 00000000..53fc6e17 --- /dev/null +++ b/app/src/app/Views/Admin/Inventory.php @@ -0,0 +1 @@ +Mapa inventari de l'aplicació diff --git a/app/src/public/assets/css/app.css b/app/src/public/assets/css/app.css index e69de29b..e8b49a0e 100644 --- a/app/src/public/assets/css/app.css +++ b/app/src/public/assets/css/app.css @@ -0,0 +1,19 @@ +/* Importing Google Fonts */ +@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"); + +/* Global Styles */ + +body { + font-family: "Poppins", sans-serif; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: "Montserrat", sans-serif; +} + diff --git a/app/src/public/assets/images/avatar.png b/app/src/public/assets/images/avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..a0a3f8ca67578b3495171d5ac32f1b82c65e003c GIT binary patch literal 4595 zcmVPx`tw}^dRCod9omp@cN1DgmbL`B+;N6&g*ob|Yo!DLP%WUi%-g%greQ?agj>BtI zRg#dv96I_?w-6G#5XT@82w@Ny1OkBo*$8tP3pi%+14VER?Xdr-u~P{esqq+bC=--|v;L{W;cR~Q9V90OU{0Yz+Q z3WE-A8&qLGWFY~~34a$wqKRx$poqVRB2+>VJ0k!kuvW^#1IXf9oQeHiWTg|K*gaL4 zOGt(yUWghf!L&>j&O;WH@Kwr>BP1^4qDAXlKY}XSp$J!^9*iECEPf7obS~=Oc=9VI(|v7*6SR&f?=2Je+U6 z>NR26TV!oV<8bcd1ngZi0ozx2zk4bsz_mRQ%CF2+%ay-uNNWh)LaXg?ugDm8d z8iJoBIfM)){ufXsg>`l2`X~|0=cQnBx(#V*X(4^>cAMwF>b9|P%Z&R}p7!bg{)2-k z*#`+#%z!FBU0&?3|oy-J*K&py+j#>h@ztJK@nH61k>e| z@X^YNNOy#;F@pipe*1XU1azE|*n*P9Qk)P*F%m1AU?9i-BNXuzOE`~@#bU{v6lPkZ zLD9SOXQblWhFG?ch*5M#_-8iK4KozDq<@1VoMQ>++lDyIDKK+~qrobiX2!jvtRaal zI1~3TVTw1rzvHy@bI9VCE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 zVWCKe25pZ%OyDmFBA6r_udb(<+N!6Ip3;Gt}*cbfXW_p*Ub-zZp|~2441iGUQX|cii-4!%rdBmjJjD zeg?I-y4%5Mh-V~&+^G%u2xo9I!iTMEuzF7?uEBf5oC6xkK=f%ROSKfK7N_3)sV1MO zaN(TrD)P*0zOx2`1}f8B&1?vV2U%pHuZv>#%I+d||z;xRkx dwUJVF{Xb~f_d$%X*FXRO002ovPDHLkV1k_kpiKY( literal 0 HcmV?d00001 diff --git a/app/src/public/assets/images/isotip.png b/app/src/public/assets/images/isotip.png new file mode 100644 index 0000000000000000000000000000000000000000..3f6856bc2c39ca038de7a0aa8beb1fa063d0fe20 GIT binary patch literal 2517 zcmV;`2`cu9P)Px;k4Z#9RCodHT)%GPHXJtW98jQ(=T6r*$kN8jp{V-=4GN@@y!4jN%~qhev#1P3 zfex20U6VKPJwcPHV>1+&Snl9^13!X`j}qk{DM}(GO7gWfU`VDZ@~7`3fB#5nFgSev zn+ULnv+=7Ze>#u-FkD_N!ey`ySF=qR2V3cj@}++_f4sPU_4w@>u4^3;HXRSxWIALg zmm@a088Yu-7V4*dNQ^R7qCJNu|&BtK)H9b?3gBJXyjs3}1ZW>zoiDO?3_RIo6*o2m~^ zMjYI#ZHIBNs3H?U44L;vfJ2U(qv({48|v{R5Sx&Z*$ec+Z3t9T7axpR7)}ZhfCq3c z`v=(bJQ3?c64>OqYE1d4Z2=g}91uzf=7jLs;1UG2Ee^h->!D`UdMLog^;g zQFQuHrQ2P|MB5l%d6(31VldoNziq1L>)t~;8?t!9 zDG8~YnFLX**``nr*OlJzI!Z$D$Jde}gibbWrnPFVkie%uaSx%BTe|~;h9S@Qe}1$6 z_~#cH0s8>H5Is)OjAj1*K8*gv?aNdTMq23&^!#V)9SM0i z)~bl62Kq9*6vGko7Q)xxC%sQ)RL@6OUX}nHvWdB)z*gtSV)W0K{=M38-QNh@5KmY~ z&Pf_TjHY$n{=2>|O6QeMRn>BK+_FY zdbCIgP5CJD-U|C-Z7en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hy~5QB+SY$8|rwJ3q$S1>P-0(kI-W{P_39_S4_Lx)%vM zP69x&SU|BRAlc@qKBv5K<&|*^aN~Fngc!B^c%<*CNK?MDN)kj=7-?eycxqu1Dr*Lq zf%n=#OC3#herInmA+Bn#WZ-o;1uqBz2-HK8W(Awv@L8cDqm%%Ep1ffz%NLP$H%?TJ zDKQ`eE-N-{;hjJL!sbhfGrkV}#QrV%<^3BZ4O1c{wM0PMCa)wrSsdoK#RaZ1!-aFuJAxWcUWtCIuM|RrMtod0o`G(?dd>(7MAV`4+M0FwYH}N z0a{qPD?AX;9oE{O4g_dn>8|kqLqNK!*427|DTU-AkVa2Jn)cUQy<~aQzqMJ+??PCl fp0N_vWzPR!x#83(0}G+l00000NkvXXu0mjfH7u7* literal 0 HcmV?d00001 diff --git a/app/src/public/assets/images/logotip-horizontal.png b/app/src/public/assets/images/logotip-horizontal.png new file mode 100644 index 0000000000000000000000000000000000000000..a763b4ee2d4d17ba4484aedd3c922a4702acfe2e GIT binary patch literal 6806 zcmcJU_dA^1_xBNrE?N-1j-!_-qebtGM2TSZAo}RNw+N#55@HZFdW#y2jNXSBj2^uV zqJ^*He4any`Qr~~u)U}j}Uve4HbK!p6oc1bM7zI8ie{GG&oM}_=RmP}EICdT~0kmv6C z0ndFtkZo#3kah_J6(6Fa4u#={WEW8s5qz_JdcOKxW!y%N(cCU$Mr3LQnVK(Hk z&C$fqxJk9D5boO0^{khXopdw>hiXM|Vy5i*4belyyetAHaWhME~$Fc3EVhN+PpnBD+ce}}VQEnI^0WjBU7VWKfa5(oZoj%7)( znD}yL0WnqawSpSuvIU}F9&H<$E-xjIvcf0j1t!6Bl(kOei6&|zd{a9-iegZ-`4iaP zbIb=Z*{m46<%&EmDbH|AeSgo$%Nmu$9)~N%1~k|uOmf#%imSy}84VvVJ()P$q8bCN ztTH&bA44`1ssH_)iL@qp!SW{VdOey~CL&xt#v_T(nk7>0c(u^m z_DsnYfVrdQ`|$_VO_c#YUmU%U-N34GZy1IoQ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6&$l zVJnozq{;*(-RNX6uJJeadk4F$P?1IOJ%3|pU;&lWS+7?CHiYAQ5#SV*ErB3O6 zYm{eZvA{sGwy@r54-}AA=g4e^mz9-8ZqBQCw3XmYra&WKXy#n|gDcXxT%@T={Gffpat7$p}xY0&g|0?M``W;AS#%+2_Jy1FS^-4B13$ZC8^L3e|5 zfR@j>_p~-=z7VLvVPi*5mj*sb7b$0yL(4+~?xF0FNy2$^lXo2){yq6mTr}hX>kM?J z(0)k0FmN)fWJF5H(yQZ;!;-e-#FR_Zl0k6QF5AE$NNCta2-BXG-te#-VJzM0v;e_% z=WJhK7L}%NS=#*Lo^PukT!Y8GvmKu?r?Vn$d?Ge~9SG-PhMJC<_zNH8EI%I65G{OpsX>i8$(8aJEGb)NlB zQ=Z7s%gQRqh|fiEAoi&rZT+79M|@8d#zNF!bkHmsy1cb3ge6#tm#UE9kAuxFB9#P& z*NRNhqD6g^OF&8Bp3{qJJYK#AI+_Piclb0^fu)7)Dm6uI+q$#oUlMhX!t`(jdg%3C z-EAH)A&>z(6ZNUIQoQtmv(Y`n(uAn!BXbS^J6piP1hlMiI*f8Y7*vVGAVvK}xj%7?@}OftW2GxvdW{{M7a<09#2@VKjn zl*@~GGyFeh7D9@FW$7CzWD?gkx&)}$wqzqFO1tkjnZ5V(In0Q8_j64j6fUu1-95eX XyrB|$q!oRC(1f9;1X8S)HxK(i$Up74 literal 0 HcmV?d00001 diff --git a/app/src/routes/admin.php b/app/src/routes/admin.php index 81f96ffc..c3abc2b4 100644 --- a/app/src/routes/admin.php +++ b/app/src/routes/admin.php @@ -4,6 +4,7 @@ use App\Controllers\Admin\DashboardController; use App\Controllers\Admin\ElementController; use App\Controllers\Admin\IncidenceController; +use App\Controllers\Admin\InventoryController; use App\Controllers\Admin\TaskTypeController; use App\Controllers\Admin\TreeTypeController; use App\Controllers\Admin\UserController; @@ -19,6 +20,11 @@ 'method' => 'index', 'middlewares' => [AdminMiddleware::class], ], + '/admin/inventory' => [ + 'controller' => InventoryController::class, + 'method' => 'index', + 'middlewares' => [AdminMiddleware::class], + ], // === Users GET Routes '/admin/users' => [ 'controller' => UserController::class, From 11d37f982126021b1907822ac1bcdc67fd440939 Mon Sep 17 00:00:00 2001 From: Ism1tha Date: Wed, 4 Dec 2024 18:37:02 +0100 Subject: [PATCH 02/15] fix: :ambulance: work-reports route on nav fixed --- app/src/app/Layouts/Admin/AdminLayout.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/app/Layouts/Admin/AdminLayout.php b/app/src/app/Layouts/Admin/AdminLayout.php index f039dd61..d3a29264 100644 --- a/app/src/app/Layouts/Admin/AdminLayout.php +++ b/app/src/app/Layouts/Admin/AdminLayout.php @@ -117,9 +117,9 @@
-
- - Partes +
+ + Partes
From fe77533896e1bd41eabca3bcbef7b31face91c2d Mon Sep 17 00:00:00 2001 From: Ism1tha Date: Wed, 4 Dec 2024 18:42:16 +0100 Subject: [PATCH 03/15] feat: submenu not showing if in admin inventory page on admin layout --- app/src/app/Layouts/Admin/AdminLayout.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/app/Layouts/Admin/AdminLayout.php b/app/src/app/Layouts/Admin/AdminLayout.php index d3a29264..12727e91 100644 --- a/app/src/app/Layouts/Admin/AdminLayout.php +++ b/app/src/app/Layouts/Admin/AdminLayout.php @@ -79,6 +79,7 @@ + + +
From aa91c4dfd1f445d74f3093190c02f3be6bdf23a0 Mon Sep 17 00:00:00 2001 From: elbacalau Date: Wed, 4 Dec 2024 19:33:49 +0100 Subject: [PATCH 04/15] feat: improve user authentication flow and error handling --- app/src/app/Layouts/Admin/AdminLayout.php | 112 ++++++++++------------ 1 file changed, 50 insertions(+), 62 deletions(-) diff --git a/app/src/app/Layouts/Admin/AdminLayout.php b/app/src/app/Layouts/Admin/AdminLayout.php index 12727e91..8746d2cf 100644 --- a/app/src/app/Layouts/Admin/AdminLayout.php +++ b/app/src/app/Layouts/Admin/AdminLayout.php @@ -17,9 +17,8 @@
@@ -79,57 +73,55 @@ - -