From e302f46b2c9bd6e0865d5cfabf08ec37611e7ab1 Mon Sep 17 00:00:00 2001 From: danielhernandez Date: Mon, 9 Sep 2024 14:52:26 -0600 Subject: [PATCH] added assets and a formatting utility function #175 --- .../project/app/assets/images/extras/add.png | Bin 0 -> 510 bytes .../app/assets/images/extras/check.png | Bin 0 -> 1091 bytes .../project/app/assets/images/extras/more.png | Bin 0 -> 458 bytes .../app/assets/images/extras/unknown.png | Bin 0 -> 4347 bytes .../project/app/src/services/index.js | 2 ++ .../project/app/src/utils/formatSeconds.js | 18 ++++++++++++++++++ 6 files changed, 20 insertions(+) create mode 100644 staff/daniel-hernandez/project/app/assets/images/extras/add.png create mode 100644 staff/daniel-hernandez/project/app/assets/images/extras/check.png create mode 100644 staff/daniel-hernandez/project/app/assets/images/extras/more.png create mode 100644 staff/daniel-hernandez/project/app/assets/images/extras/unknown.png create mode 100644 staff/daniel-hernandez/project/app/src/utils/formatSeconds.js diff --git a/staff/daniel-hernandez/project/app/assets/images/extras/add.png b/staff/daniel-hernandez/project/app/assets/images/extras/add.png new file mode 100644 index 0000000000000000000000000000000000000000..2f835a230523ae8222e820acf0178de9305722bb GIT binary patch literal 510 zcmeAS@N?(olHy`uVBq!ia0vp^CLqkg1|*MGNWTVBoCO|{#S9EO-XP4l)OOlRpde#$ zkh>GZx^prwfgF}}M_)$E)e-c@Na+5t>978G?-_DBnJLDkHp1$pAtdh-)4u=Wp zwoLa9NO!0k%wyQmIL~1Zqx%Dn4_O8R6~+>l3?+9xS9Ny2RNErlcD6?UuX*O@rDyY= zPj^j7**m9{@!`3*WtW1JH++cNxkH9Yn8T-L-MwnDod5f?%{KO5t@_O=ks$bM)_LjO z73Swxb#4pXc_$}tK?0A#hTiS5`MxLPH}mT_UAxt`p6y@^BeRZEyG!em#ZH$36<@BH zP!i%{rKKV(I?1oVX}_+;*0Y|PJGV0Il-4i5+_(Ou^O4r27gYXlUZ!TW_)}!@M7eZ! zspCvc-~6-JGA;|e%+1nJt!b`y_H5IEy-VfRg&T7}+`yST#aeNpAxqQmCu(h*(l}Vm zLv5tF&fR@s(4gEdbK>dwBVK}fi&i@O@!4$@JA3?7ZpMWafA)^Urz&5|akj~5Hd!b=slQazuY_8yZb0S>WedG2t`G}TPTfbRoS1io7mvp$eVQq$rhIx77 piDuy)WixLc%T-r#K6K!S`R7G-ALW*^$pNE_!PC{xWt~$(69C?%&bt5r literal 0 HcmV?d00001 diff --git a/staff/daniel-hernandez/project/app/assets/images/extras/check.png b/staff/daniel-hernandez/project/app/assets/images/extras/check.png new file mode 100644 index 0000000000000000000000000000000000000000..e6b34d5d5c824632f1200a0cf3d756879b8511d2 GIT binary patch literal 1091 zcmV-J1ibr+P)@~0drDELIAGL9O(c600d`2O+f$vv5yP-! zYEWsXGtNib^!HRHP8v^a|2>X?8RMjS;iXnVqq<8$dQ1u3`tOX&Jcxk=(XGChnkef-;P1SFzroA zT~nXtHSP9NW3VgdFA#yAa?u zp)vA26o4d}L+#C|w?h;nYGn)4|eKD((pM4<*k9dK;5!a@*+?>@V! z7KNVXEPD;9y;&UA92-+}h^sjiYJm)nfytLcqyw0ob){7WM?@W2mMvcbW`Q&ZbH{6E zLaoMs4pX)%F|pP(2Ky(x+2Q=}wNuEM-oT^bv!j{Y+~Ue6BtYP+-@z*{M_b5xwH97L zPUNXMHUe~J-)W(v)3+zAMmfRN99MheLcDbEyn$>I^CQ^gluZ}hfd~EHTx}(U6rc_X z??aOCVTnC~3?vzNU{%|Ol%PZUhGmH*_WAEEO9X9@=5RU!V6-E*EL+ojdvTwwC)Gh$6L38Oij zP#c)uq{TQy)eEcGHm5-J*m{1r^{%=ZvU3E~GQCO5SGSE$bu_45?uGae2PQWh;4btM z7~~OZG2gZi^NVXO5;Wj~nldV%NOSOB8{S*cmO6(}iy7Jvp;HZ9GH&Ios7PH=W7~gl zQkrAEpY5QG$_LaK0t1`qay2Jyd*fo{ki_|c)A?1?Tz!ku9N>B+Z%z7 zu7QaXYEy!|2u!4wS6s~*hckqCNP=NOtw<9Xa0cvo zYL4~(TtnPuP+n|7RxDo(@`OFcO41&UB&YVq1>2z%?a?>J9cnR&294Anq42PaL_Z2t zbDUG8m{h}h)S3or4XYC{e=;V`v5{&NoUlF0y}fb%7o^0rM~osdj`qeyrtd@E_6Xl% zb!oj06C~5u2PzU&`EY!EA^NHx{iZiFX=ifh3HL@%ISwV$@E`7I<&jl7q#*zR002ov JPDHLkV1ht&@pAwG literal 0 HcmV?d00001 diff --git a/staff/daniel-hernandez/project/app/assets/images/extras/more.png b/staff/daniel-hernandez/project/app/assets/images/extras/more.png new file mode 100644 index 0000000000000000000000000000000000000000..76bcb0e30f79426928a310dfe565562196f45f1c GIT binary patch literal 458 zcmV;*0X6=KP)@~0drDELIAGL9O(c600d`2O+f$vv5yPoe}o*S=X6SW(`R9M6hu05O7CGJ1OO6c9u5~p;WjyJiNcvDe3ZF?UU2wU&)01)q65aq)h`9240GGfO!kym|&lNUG?8CxObWA=;t1~;92 z30+8m%b~=(LgW5Fmp;C!>5xXbN^Ot02(b414G>Z+>XQ*7%m4rY07*qoM6N<$g3`dk AZU6uP literal 0 HcmV?d00001 diff --git a/staff/daniel-hernandez/project/app/assets/images/extras/unknown.png b/staff/daniel-hernandez/project/app/assets/images/extras/unknown.png new file mode 100644 index 0000000000000000000000000000000000000000..ca41b00ed2ac2d48264b28f62fed95b2d972cf19 GIT binary patch literal 4347 zcmeHLS6CCu5)K_f5u{5H6crAgV5m}}G^HIx5;_u^bV5g}C_NC4)JWARpp=MoAp{Q) zLPsDVQX)mE0Rqz7jXvM!`*a`X+izxeW_NaH|8HiK{x;FSz;>Ap003OLXQ1-{0HAaJ zO{~l`3BM3Tls266Gq4H(0Hh6n6Wv>l>~}OFUBCnVJAkSI;4+P2bb}Z}0Dx)~`>`Vv z0Kl1kPY3cal#ViOT#>a?&_+E|&AAZ*&oD9fnLKy1c%7Li#IlW-hsCaTOs8MFL+4WJ zM}gN0Lr@Q|r8@?BcVhW&l62m7mkBz-UXKa4%B#O%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y14CCI!g9WN*Nar&5mC&a*>qR>B-sqd9;V zP2wD{65sIJOdjr3se!>A*Cu9+$Rsc6R7 z1@9R04CM%2 zUA;BxAv^*%V~sq17jC)-)m5$H@Rp!$42Aufyb&Y%*I0$Ug?;qF+cX0IIEV+Yh!O+2n;6nvCjXI<&kKVoj~%L{NNoT!fK z#IxgPalX(Eds#qVS#@>wHv8PRay&8;TwnF&F;EK7mzZmkZzG&Qh{Nyapir_N^(DJ7 zx#kjpyn%Y_$ulOD?S5QzW6+^G8Nd6;y-tY_z+4L6DdO)^xm6PGU6I+=^f4yWgq2^B^o`h+iKyprsM~By2~x0d^L9K+5^qV0+B4&yuRAI_8n(WN!W= k`f~qRuUi9e$ijxZIt%OYv(qrzUj^Wvu8B_7oky|%0oT;ekpKVy literal 0 HcmV?d00001 diff --git a/staff/daniel-hernandez/project/app/src/services/index.js b/staff/daniel-hernandez/project/app/src/services/index.js index 02665a341..3065715a5 100644 --- a/staff/daniel-hernandez/project/app/src/services/index.js +++ b/staff/daniel-hernandez/project/app/src/services/index.js @@ -4,6 +4,8 @@ import signOut from './auth/signOut'; import checkEmail from './auth/checkEmail'; import search from './search'; +export { signIn, signUp, signOut, checkEmail, search }; + export default { signIn, signUp, diff --git a/staff/daniel-hernandez/project/app/src/utils/formatSeconds.js b/staff/daniel-hernandez/project/app/src/utils/formatSeconds.js new file mode 100644 index 000000000..635fa6352 --- /dev/null +++ b/staff/daniel-hernandez/project/app/src/utils/formatSeconds.js @@ -0,0 +1,18 @@ +const formatSeconds = totalSeconds => { + if (totalSeconds < 0) return '00:00'; + + const hours = Math.floor(totalSeconds / 3600); + const minutes = Math.floor((totalSeconds % 3600) / 60); + const seconds = totalSeconds % 60; + + const formattedMinutes = minutes.toString().padStart(2, '0'); + const formattedSeconds = seconds.toString().padStart(2, '0'); + + if (hours > 0) { + const formattedHours = hours.toString().padStart(2, '0'); + return `${formattedHours}:${formattedMinutes}:${formattedSeconds}`; + } + return `${formattedMinutes}:${formattedSeconds}`; +}; + +export default formatSeconds;