From f29558d35b31b9e0d884753981e7f9dfabdc0770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 19 Jan 2022 10:23:34 +0100 Subject: [PATCH] MOBILE-3811 assets: Add svg versions of some assets --- .../conversation-info/conversation-info.html | 2 +- .../messages/pages/discussion/discussion.html | 2 +- .../group-conversations/group-conversations.html | 2 +- src/assets/img/grades/agg_mean.png | Bin 341 -> 0 bytes src/assets/img/grades/agg_mean.svg | 1 + src/assets/img/grades/agg_sum.png | Bin 318 -> 0 bytes src/assets/img/grades/agg_sum.svg | 1 + src/assets/img/group-avatar.png | Bin 972 -> 0 bytes src/assets/img/group-avatar.svg | 1 + .../features/grades/services/grades-helper.ts | 6 +++--- 10 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 src/assets/img/grades/agg_mean.png create mode 100644 src/assets/img/grades/agg_mean.svg delete mode 100644 src/assets/img/grades/agg_sum.png create mode 100644 src/assets/img/grades/agg_sum.svg delete mode 100644 src/assets/img/group-avatar.png create mode 100644 src/assets/img/group-avatar.svg diff --git a/src/addons/messages/components/conversation-info/conversation-info.html b/src/addons/messages/components/conversation-info/conversation-info.html index 59f120624..c72e7b344 100644 --- a/src/addons/messages/components/conversation-info/conversation-info.html +++ b/src/addons/messages/components/conversation-info/conversation-info.html @@ -20,7 +20,7 @@
+ onError="this.src='assets/img/group-avatar.svg'">

diff --git a/src/addons/messages/pages/discussion/discussion.html b/src/addons/messages/pages/discussion/discussion.html index 06978fd47..2c85e5dbd 100644 --- a/src/addons/messages/pages/discussion/discussion.html +++ b/src/addons/messages/pages/discussion/discussion.html @@ -6,7 +6,7 @@

+ onError="this.src='assets/img/group-avatar.svg'" core-external-content role="presentation" [siteId]="siteId || null"> diff --git a/src/addons/messages/pages/group-conversations/group-conversations.html b/src/addons/messages/pages/group-conversations/group-conversations.html index bfd14752d..5d6e5b57b 100644 --- a/src/addons/messages/pages/group-conversations/group-conversations.html +++ b/src/addons/messages/pages/group-conversations/group-conversations.html @@ -151,7 +151,7 @@ + onError="this.src='assets/img/group-avatar.svg'"> diff --git a/src/assets/img/grades/agg_mean.png b/src/assets/img/grades/agg_mean.png deleted file mode 100644 index 78c8046dfe8fa156481cf5a070e7d5e5ca2a93b8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 341 zcmV-b0jmCqP)ZJ#p+^L_rUG(O3;)72rT;{I|pm#r01B z$#fMxTKrPl%HrNZ$BKAXnL^24DLPMm(3>#>aPI7L{=_!*L(cyKGD(nj`r%-PmY5m{way%t545g_5-Nd+lb8=OxtU>+Y$Yh5A}ux6I~z@vKOhCz% diff --git a/src/assets/img/grades/agg_sum.png b/src/assets/img/grades/agg_sum.png deleted file mode 100644 index 7bcc0e43aadddb5c7b3d776b73379bdfca45aa66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5X9(cMqhE&{2N^xK^PCr+|5cFHJgPH%*<;$WoB~GxjJFx6x z6mR&!JWI(@p{(T*r$-UHBa8B`jSl%H3@fWt6kQht%PX7|XINP`!@^A8$Dx>YQzDOp zukeC@^$k~9kL+NQe8AXum+snFooliNQbYnhE}7*nm$&~0EShO46AMm+CEvB^^CcY;Y7g>@d+l<4p*B@ z diff --git a/src/assets/img/group-avatar.png b/src/assets/img/group-avatar.png deleted file mode 100644 index 2e336c95ca87f61a6fa1309231e138b520c8a771..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmV;-12g=IP)+J08?(XjO z_4V`f^X28`-QC^l>gws~>Ez_(i_vXf0000LbW%=J0RR90|NsC0|NsC0|NsC0|NsC0 z|4^{{F8}}l32;bRa{vH2T>t<%T>(QO5DEYQ0|iM$K~#90?U~zxs~`+TM*&4ts-5}& zZ#~{>B^L;tp3V#Vtu?STge2%!^#OeqNP!ecffPuA{8vb=v@u%M={b^?9HeQ@p|*)5 z1eOe>w&s+LK8(bYhIA%S$1_BhB*fWpsC67eW=TSN1JrX6nI#F)aH!@WGD`~5z>&r< zaU-;(ARQjcEWOY&6VeQWQp3=sEnkH=buNJ(-7g^y4_&7mf^fA1Zz+LPEgab{^LhB^ z&C!-ZNDYThl|$1l6FSOL3aP+dd*YUl+s2k+hzmBEcGXBRj2W?|91?hE@d~l&b~Vs4 z2U5BIh$Y)Q628=n`S6opG8S>wB1?s6V9dM`z8 zzpz<7mtr|Bx?>PEU-XC_#;5dhBTtzf9rU7Y|D$%|OABXR^n zZ)Q&Hi7yU`G(wq=5`jc|6iVcwAq9!FjkJi?F$u}^7HTF%5ZqEEgnBvwBrCR7@$tn% zB6Xb;yX#p9(S)SLzD!~vS=)UVyHi*Q+o14b-zEJmggNiN7ZPc*IkD;fZy}LRp3|5O z`N+b5WS@K_t>iBXY)&PRIdUAOWM3&-xhXR8u07TgH5nyE$G%O(Kho5~W}=OMWl4Pr udbGGvMSD~M diff --git a/src/core/features/grades/services/grades-helper.ts b/src/core/features/grades/services/grades-helper.ts index 91af997c6..b4d26bfa2 100644 --- a/src/core/features/grades/services/grades-helper.ts +++ b/src/core/features/grades/services/grades-helper.ts @@ -543,11 +543,11 @@ export class CoreGradesHelperProvider { text = text.replace('%2F', '/').replace('%2f', '/'); if (text.indexOf('/agg_mean') > -1) { row.itemtype = 'agg_mean'; - row.image = 'assets/img/grades/agg_mean.png'; + row.image = 'assets/img/grades/agg_mean.svg'; row.iconAlt = Translate.instant('core.grades.aggregatemean'); } else if (text.indexOf('/agg_sum') > -1) { row.itemtype = 'agg_sum'; - row.image = 'assets/img/grades/agg_sum.png'; + row.image = 'assets/img/grades/agg_sum.svg'; row.iconAlt = Translate.instant('core.grades.aggregatesum'); } else if (text.indexOf('/outcomes') > -1 || text.indexOf('fa-tasks') > -1) { row.itemtype = 'outcome'; @@ -555,7 +555,7 @@ export class CoreGradesHelperProvider { row.iconAlt = Translate.instant('core.grades.outcome'); } else if (text.indexOf('i/folder') > -1 || text.indexOf('fa-folder') > -1) { row.itemtype = 'category'; - row.icon = 'fas-cubes'; + row.icon = 'fas-folder'; row.iconAlt = Translate.instant('core.grades.category'); } else if (text.indexOf('/manual_item') > -1 || text.indexOf('fa-square-o') > -1) { row.itemtype = 'manual';