-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
36 lines (31 loc) · 977 Bytes
/
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
import './css/main.scss';
import headerImgURL from './images/header.png';
import $404ImgURL from './images/404.jpg';
import _portfolio from './portfolio.json';
require('angular');
require('@uirouter/angularjs');
require('angular-animate');
require('ng-async-img');
require('angular-moment');
import moment from 'moment';
import _ from 'lodash';
var portfolio = _.filter(_portfolio, function (it) {
return !(it.hasOwnProperty('disabled') && it.disabled);
});
var app = angular.module('app', ['ui.router', 'ngAnimate', 'ngAsyncImg', 'angularMoment']);
app.constant('portfolio', portfolio);
app.constant('_', _);
app.constant('moment', moment);
app.constant('images', {
header: headerImgURL,
$404: $404ImgURL
});
app.filter('abs', function() {
return function(num) { return Math.abs(num); }
});
require('./src/routes.js');
require('./src/card.js');
require('./src/home.js');
require('./src/typewriter.js');
require('./src/slogan.js');
require('./src/404.js');