forked from RoboCup-SSL/ssl-status-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteamLogoUrl.js
45 lines (42 loc) · 2.07 KB
/
teamLogoUrl.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const knownLogos = new Map([
['a-team', require('@/assets/logos/a-team.png')],
['ais', require('@/assets/logos/ais.png')],
['blue', require('@/assets/logos/blue.png')],
['cmμs', require('@/assets/logos/cmμs.png')],
['er-force', require('@/assets/logos/er-force.png')],
['greentea', require('@/assets/logos/greentea.png')],
['immortals', require('@/assets/logos/immortals.png')],
['kiks', require('@/assets/logos/kiks.png')],
['luhbots', require('@/assets/logos/luhbots.png')],
['mct-susano-logics', require('@/assets/logos/mct-susano-logics.png')],
['mrl', require('@/assets/logos/mrl.png')],
['namec', require('@/assets/logos/namec.png')],
['neuislanders', require('@/assets/logos/neuislanders.png')],
['op-amp', require('@/assets/logos/op-amp.png')],
['orcabot', require('@/assets/logos/orca-bot.png')],
['ri-one', require('@/assets/logos/rione.png')],
['robôcin', require('@/assets/logos/robocin.png')],
['robodragons', require('@/assets/logos/robodragons.png')],
['robofei', require('@/assets/logos/robofei.png')],
['roboime', require('@/assets/logos/roboime.png')],
['robojackets', require('@/assets/logos/robojackets.png')],
['roboteam-twente', require('@/assets/logos/roboteam-twente.png')],
['src', require('@/assets/logos/src.png')],
['tigers-mannheim', require('@/assets/logos/tigers-mannheim.png')],
['ubc-thunderbots', require('@/assets/logos/ubc-thunderbots.png')],
['ultron', require('@/assets/logos/ultron.png')],
['umass-minutebots', require('@/assets/logos/umass-minutebots.png')],
['uroborus', require('@/assets/logos/uroborus.png')],
['yellow', require('@/assets/logos/yellow.png')],
['zjunlict', require('@/assets/logos/zjunlict.png')],
]);
import defaultLogo from '@/assets/logos/no-logo.png';
const teamLogoUrl = function (teamName) {
const logoBaseName = teamName.toLowerCase().replace(' ', '-');
const logoPath = knownLogos.get(logoBaseName);
if (logoPath !== undefined) {
return logoPath;
}
return defaultLogo;
};
export default teamLogoUrl;