MOBILE-3811 bbb: Add purpose and icon on BBB, not definitive

main
Pau Ferrer Ocaña 2022-01-18 14:36:40 +01:00
parent 96b172c42c
commit c7e3e68a94
2 changed files with 17 additions and 56 deletions

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
import { CoreConstants } from '@/core/constants'; import { CoreConstants, ModPurpose } from '@/core/constants';
import { Injectable, Type } from '@angular/core'; import { Injectable, Type } from '@angular/core';
import { CoreModuleHandlerBase } from '@features/course/classes/module-base-handler'; import { CoreModuleHandlerBase } from '@features/course/classes/module-base-handler';
import { CoreCourseModuleData } from '@features/course/services/course-helper'; import { CoreCourseModuleData } from '@features/course/services/course-helper';
@ -45,6 +45,7 @@ export class AddonModBBBModuleHandlerService extends CoreModuleHandlerBase imple
[CoreConstants.FEATURE_GRADE_OUTCOMES]: true, [CoreConstants.FEATURE_GRADE_OUTCOMES]: true,
[CoreConstants.FEATURE_BACKUP_MOODLE2]: true, [CoreConstants.FEATURE_BACKUP_MOODLE2]: true,
[CoreConstants.FEATURE_SHOW_DESCRIPTION]: true, [CoreConstants.FEATURE_SHOW_DESCRIPTION]: true,
[CoreConstants.FEATURE_MOD_PURPOSE]: ModPurpose.MOD_PURPOSE_COMMUNICATION,
}; };
/** /**

View File

@ -1,55 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" style="fill:none" id="svg4" version="1.1" viewBox="0 0 74 74" height="74" width="74" sodipodi:docname="icon.svg" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="3768" inkscape:window-height="2096" id="namedview6" showgrid="false" inkscape:zoom="6.9532167" inkscape:cx="33.858158" inkscape:cy="40.191094" inkscape:window-x="72" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="svg4"/>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" <metadata id="metadata10">
width="24px" height="24px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve" preserveAspectRatio="xMinYMid meet"> <rdf:RDF>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-58.9473" y1="84.1865" x2="58.9479" y2="-84.1852"> <cc:Work rdf:about="">
<stop offset="0" style="stop-color:#283274"/> <dc:format>image/svg+xml</dc:format>
<stop offset="0.7088" style="stop-color:#293275"/> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<stop offset="0.967" style="stop-color:#273F87"/> <dc:title/>
</linearGradient> </cc:Work>
<symbol id="New_Symbol" viewBox="-107.423 -107.423 214.847 214.846"> </rdf:RDF>
<g> </metadata>
<path fill="url(#SVGID_1_)" stroke="#5D6AA4" stroke-width="9.3191" d="M102.765,0c0-56.755-46.009-102.764-102.765-102.764 <defs id="defs8"/>
c-56.754,0-102.764,46.009-102.764,102.764S-56.754,102.764,0,102.764C56.756,102.764,102.765,56.755,102.765,0z"/> <path style="clip-rule:evenodd;fill:#000000;fill-rule:evenodd;stroke-width:4.9333334" id="path2" d="m 69.066667,37.000002 c 0,17.710171 -14.356493,32.066664 -32.066668,32.066664 -17.709926,0 -32.0666657,-14.356493 -32.0666657,-32.066664 0,-17.709928 14.3567397,-32.0666678 32.0666657,-32.0666678 17.710175,0 32.066668,14.3567398 32.066668,32.0666678 z m 4.933333,0 C 74,57.434359 57.43436,74 36.999999,74 16.565443,74 0,57.434359 0,37.000002 0,16.565443 16.565443,0 36.999999,0 57.43436,0 74,16.565443 74,37.000002 Z m -49.333333,8.616952 v -25.88362 c 1.836828,0 3.404888,0.89841 4.704624,2.69493 1.29944,1.796524 1.949308,3.959199 1.949308,6.487385 v 16.701305 c 0,1.330619 0.66526,1.995831 1.995877,1.995831 h 10.313579 c 1.33062,0 1.996322,-0.665212 1.996322,-1.995831 v -7.918345 c 0,-1.286416 -0.665702,-1.951528 -1.996322,-1.996272 h -1.99588 c -2.573174,-0.0894 -4.747052,-0.76067 -6.520634,-2.01566 -1.774717,-1.253908 -2.661728,-2.800014 -2.661728,-4.638173 h 11.178242 c 2.395477,0 4.435066,0.843154 6.121625,2.52843 1.685227,1.686412 2.528826,3.726 2.528826,6.121675 v 7.918345 c 0,2.395135 -0.843599,4.43566 -2.528826,6.121378 -1.686559,1.686216 -3.726148,2.528334 -6.121625,2.528334 H 33.316476 c -2.395181,0 -4.436002,-0.842118 -6.121327,-2.528334 -1.686412,-1.685718 -2.528482,-3.726243 -2.528482,-6.121378 z" inkscape:connector-curvature="0"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-75.0186" y1="112.8037" x2="-15.8528" y2="28.3063" gradientTransform="matrix(1 0 0 1 18.4946 -31.9512)">
<stop offset="0" style="stop-color:#BEC7E5"/>
<stop offset="0.0956" style="stop-color:#B5BEDE"/>
<stop offset="0.2524" style="stop-color:#9CA5CC"/>
<stop offset="0.4508" style="stop-color:#747DAE"/>
<stop offset="0.6809" style="stop-color:#3D4684"/>
<stop offset="0.7582" style="stop-color:#293275"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M0.282,98.502C26.323,98.31,54.293,87.893,74.49,63.84C73.631,43.207,36.703,22.057,5.886-1.229
c-25.857-19.538-65.427-37.86-92.487-45.059c-25.73,49.263-7.016,96.619,25.25,123.238C-46.256,90.16-23.508,98.679,0.282,98.502z
"/>
</g>
<g>
<g>
<path d="M55.602-25.561c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.179-9.16h-37.367
c-8.679,0-16.073,3.051-22.179,9.16c-6.11,6.106-9.162,13.501-9.162,22.179v93.779c6.656,0,12.336-3.254,17.046-9.764
c4.708-6.509,7.062-14.344,7.062-23.505v-60.511c0-4.821,2.411-7.231,7.232-7.231h37.367c4.821,0,7.231,2.41,7.231,7.231V3.128
c0,4.66-2.41,7.07-7.231,7.232H17.03c-9.323,0.324-17.2,2.757-23.626,7.304c-6.43,4.543-9.643,10.145-9.643,16.805h40.501
c8.678,0,16.068-3.056,22.179-9.161c6.105-6.11,9.16-13.5,9.16-22.18V-25.561z"/>
</g>
</g>
<g opacity="0.46">
<g>
<path fill="#FFFFFF" d="M55.602-25.561c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.179-9.16h-37.367
c-8.679,0-16.073,3.051-22.179,9.16c-6.11,6.106-9.162,13.501-9.162,22.179v93.779c6.656,0,12.336-3.254,17.046-9.764
c4.708-6.509,7.062-14.344,7.062-23.505v-60.511c0-4.821,2.411-7.231,7.232-7.231h37.367c4.821,0,7.231,2.41,7.231,7.231V3.128
c0,4.66-2.41,7.07-7.231,7.232H17.03c-9.323,0.324-17.2,2.757-23.626,7.304c-6.43,4.543-9.643,10.145-9.643,16.805h40.501
c8.678,0,16.068-3.056,22.179-9.161c6.105-6.11,9.16-13.5,9.16-22.18V-25.561z"/>
</g>
</g>
<g>
<path fill="#FFFFFF" d="M53.829-26.788c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.18-9.16h-37.367
c-8.679,0-16.073,3.051-22.179,9.16c-6.109,6.106-9.16,13.501-9.16,22.179v93.779c6.655,0,12.336-3.255,17.045-9.764
c4.708-6.509,7.062-14.345,7.062-23.505v-60.511c0-4.821,2.41-7.231,7.232-7.231h37.367c4.821,0,7.232,2.41,7.232,7.231V1.901
c0,4.66-2.411,7.07-7.232,7.232h-7.232C5.935,9.457-1.942,11.89-8.368,16.438c-6.43,4.542-9.644,10.144-9.644,16.803h40.501
c8.679,0,16.069-3.055,22.18-9.16c6.105-6.109,9.16-13.5,9.16-22.179V-26.788z"/>
</g>
</symbol>
<use xlink:href="#New_Symbol" width="214.847" height="214.846" x="-107.423" y="-107.423" transform="matrix(0.1376 0 0 -0.1376 14.9995 15)" overflow="visible"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB