-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
82 lines (73 loc) · 3.38 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import './css/main.scss';
// data
import portfolio from './portfolio.json';
var angular = require('angular');
require('@uirouter/angularjs');
require('angular-animate');
require('ng-async-img');
require('angular-moment');
var d3 = require('d3');
import { schemePastel1, schemeDark2 } from 'd3-scale-chromatic';
d3.schemePastel1 = schemePastel1;
d3.schemeDark2 = schemeDark2;
import Moment from 'moment';
import { extendMoment } from 'moment-range';
const moment = extendMoment(Moment);
import _ from 'lodash';
var app = angular.module('app', ['ui.router', 'ngAnimate', 'ngAsyncImg']);
app.constant('portfolio', portfolio);
app.constant('_', _);
app.constant('moment', moment);
app.constant('d3', d3);
app.constant('images', {
profilePicImgURL: require('./images/juan.jpg'),
$404: require('./images/404.jpg'),
icons: {
avatar: require("./images/icons/glyphicons-4-user.png"),
experience: require("./images/icons/glyphicons-342-briefcase.png"),
skills: require("./images/icons/glyphicons-731-puzzle.png"),
software: require("./images/icons/glyphicons-691-laptop.png"),
education: require("./images/icons/glyphicons-501-education.png"),
certifications: require("./images/icons/glyphicons-333-certificate.png"),
interests: require("./images/icons/glyphicons-20-heart-empty.png")
},
company_logos: {
"PDFCrunch": require("./images/company_logos/pdfcrunch.png"),
"GoodWith": require("./images/company_logos/goodwith.png"),
"FCDO": require("./images/company_logos/fcdo.jpg"),
"Cytora": require("./images/company_logos/cytora.jpg"),
"all.health": require("./images/company_logos/allhealth.jpg"),
"Climate Policy Radar": require("./images/company_logos/cpr.jpg"),
"Offworld Live": require("./images/company_logos/offworld.jpg"),
"Triller": require("./images/company_logos/triller.jpg"),
"Sponge": require("./images/company_logos/sponge.jpg"),
"Bulb": require("./images/company_logos/bulb.jpg"),
"Muse App": require("./images/company_logos/muse.jpg"),
"TAB (The App Business)": require("./images/company_logos/tab.jpg"),
"Barclaycard": require("./images/company_logos/barclaycard.jpg"),
"O2 (Telefónica UK)": require("./images/company_logos/o2.jpg"),
"Tesco": require("./images/company_logos/tesco.jpg"),
"Capco": require("./images/company_logos/capco.jpg"),
"Condé Nast": require("./images/company_logos/condenast.jpg"),
"Government Digital Service": require("./images/company_logos/gds.jpg"),
"self-employed": require("./images/company_logos/freelance.jpg"),
"NET-A-PORTER": require("./images/company_logos/netaporter.jpg"),
"BeatThatQuote.com": require("./images/company_logos/beatthatquote.jpg"),
"ManBytesDog": require("./images/company_logos/no_logo.jpg"),
"Business Edge Systems": require("./images/company_logos/imx.jpg"),
"iGate Technologies": require("./images/company_logos/no_logo.jpg"),
}
});
app.filter('abs', function () {
return function (num) { return Math.abs(num); }
});
app.filter('list', function () {
return function (val) {
return val.slice(0, val.length - 1).join(', ') + ' and ' + val[val.length - 1];
}
});
require('./src/routes.js');
require('./src/home.js');
require('./src/404.js');
require('./src/viz.js');
require('./src/stats.js');