Skip to content

Commit e36f076

Browse files
committed
Merge branch 'v1.2'
2 parents 5ee5f81 + e096ad6 commit e36f076

File tree

127 files changed

+3582
-2232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+3582
-2232
lines changed

Diff for: .babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

Diff for: .bootstraprc

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
bootstrapVersion: 3
3+
#loglevel: debug
4+
5+
env:
6+
development:
7+
extractStyles: false
8+
production:
9+
extractStyles: true
10+
11+
styleLoaders:
12+
- style
13+
- css
14+
- sass
15+
16+
styles:
17+
18+
# Mixins
19+
mixins: true
20+
21+
# Reset and dependencies
22+
normalize: true
23+
print: true
24+
glyphicons: true
25+
26+
# Core CSS
27+
scaffolding: true
28+
type: true
29+
code: true
30+
grid: true
31+
tables: true
32+
forms: true
33+
buttons: true
34+
35+
# Components
36+
component-animations: true
37+
dropdowns: true
38+
button-groups: true
39+
input-groups: true
40+
navs: true
41+
navbar: true
42+
breadcrumbs: false
43+
pagination: true
44+
pager: true
45+
labels: true
46+
badges: false
47+
jumbotron: true
48+
thumbnails: false
49+
alerts: true
50+
progress-bars: false
51+
media: true
52+
list-group: true
53+
panels: true
54+
wells: true
55+
responsive-embed: false
56+
close: true
57+
58+
# Components w/ JavaScript
59+
modals: false
60+
tooltip: false
61+
popovers: false
62+
carousel: false
63+
64+
# Utility classes
65+
utilities: true
66+
responsive-utilities: true
67+
68+
scripts: false

Diff for: .eslintrc

+19-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@
33
"parser": "babel-eslint",
44
"env": {
55
"browser": true,
6-
"node": true
6+
"node": true,
7+
"jasmine": true,
8+
"jest": true
79
},
810
"rules": {
11+
"camelcase": 1,
12+
"complexity": 1,
13+
"curly": 1,
14+
"eqeqeq": 2,
15+
"indent": [0, 2],
16+
"no-bitwise": 1,
917
"no-console": 0,
1018
"new-cap": 0,
1119
"strict": 0,
1220
"no-underscore-dangle": 0,
1321
"no-use-before-define": 0,
1422
"eol-last": 0,
15-
"quotes": [2, "single", "avoid-escape"]
23+
"quotes": [2, "single", "avoid-escape"],
24+
"max-len": [1, 120],
25+
"max-params": [1, 10],
26+
"max-statements": [1, 40],
27+
"no-var": 0,
28+
"valid-jsdoc": [1, {
29+
"requireReturn": false,
30+
"requireParamDescription": false,
31+
"requireReturnDescription": false
32+
}]
1633
}
1734
}

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ node_modules/
22
coverage/
33
dist/
44
.idea/
5+
.vscode/
6+
production.conf.json
7+
development.conf.json

Diff for: .jshintrc

-60
This file was deleted.

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ LD-VOWL requires [Node.js](https://nodejs.org/) to be built.
1313
3. Run `npm install` in the root directory of LD-VOWL to install the dependencies.
1414
4. Run `npm run-script start` to start a local webpack development server on port 8080 or run `npm run-script deploy` for a production build.
1515

16+
## Build
17+
18+
To get a production build, run `npm run-script deploy`. After the build is finished, the results will be inside the `dist` directory.
19+
1620
## Tests
1721

1822
In order to run the unit tests, run `npm run-script test`.

Diff for: app/app.config.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,23 @@ import settingsTemplate from './components/settings/settings.html';
33
import graphTemplate from './components/graph/graph.html';
44
import aboutTemplate from './components/about/about.html';
55

6+
/**
7+
* @param {$httpProvider} $httpProvider
8+
* @param {$routeProvider} $routeProvider
9+
* @param {$logProvider} $logProvider
10+
*
11+
* @ngInject
12+
*/
613
function routing($httpProvider, $routeProvider, $logProvider) {
714

8-
'ngInject';
9-
1015
// set up http interceptor
1116
$httpProvider.interceptors.push('RequestCounter');
1217
$httpProvider.defaults.useXDomain = true;
1318
delete $httpProvider.defaults.headers.common['X-Requested-With'];
1419

20+
// apply changes in the next $digest cycle (around 10 milliseconds later, depending on the browser)
21+
$httpProvider.useApplyAsync();
22+
1523
// set up routes
1624
$routeProvider
1725
.when('/', {
@@ -42,9 +50,7 @@ function routing($httpProvider, $routeProvider, $logProvider) {
4250
redirectTo: '/'
4351
});
4452

45-
// jshint ignore:start
4653
$logProvider.debugEnabled(__LOGGING__); // eslint-disable-line no-undef
47-
//jshint ignore:end
4854

4955
} // end of routing()
5056

Diff for: app/app.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import routing from './app.config';
1111
import runBlock from './app.run';
1212

1313
// create main app module
14-
module.exports = angular.module('ldVOWLApp', ['ngRoute', 'ngAnimate', 'ui.bootstrap', 'ngCookies', components, filters,
15-
services, utilities])
14+
export default angular.module('ldVOWLApp', ['ngRoute', 'ngAnimate', 'ui.bootstrap',
15+
components.name,
16+
filters.name,
17+
services.name,
18+
utilities.name])
1619
.config(routing)
1720
.run(runBlock);

Diff for: app/app.run.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
/**
2+
* @param {$rootScope} $rootScope
3+
*
4+
* @ngInject
5+
*/
16
function runBlock($rootScope) {
27

3-
'ngInject';
4-
58
$rootScope.$on('$routeChangeSuccess', function (event, current) {
69
if (current && current.$$route && current.$$route.title) {
710
$rootScope.title = current.$$route.title;

Diff for: app/components/about/about.module.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import angular from 'angular';
22

33
import AboutCtrl from './about.ctrl';
44

5+
/**
6+
* @ngdoc module
7+
* @name components.about
8+
* @description
9+
*
10+
* Module for the about page of the application.
11+
*/
512
export default angular.module('components.about', [])
6-
.controller('AboutCtrl', AboutCtrl)
7-
.name;
13+
.controller('AboutCtrl', AboutCtrl);

Diff for: app/components/components.module.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ import sidebar from './sidebar/sidebar.module';
77
import start from './start/start.module';
88
import about from './about/about.module';
99

10-
export default angular.module('components', [graph, header, settings, sidebar, start, about])
11-
.name;
10+
export default angular.module('components', [graph.name,
11+
header.name,
12+
settings.name,
13+
sidebar.name,
14+
start.name,
15+
about.name]);

0 commit comments

Comments
 (0)