Move to webpack

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-01-22 14:19:02 +01:00
parent e94986744d
commit 24f4f84eb6
43 changed files with 184 additions and 218 deletions

View File

@@ -20,11 +20,13 @@
*
*/
import app from '../app/App.js';
/** global: OC */
app.controller('AppController', function ($scope, $location, $http, $route, $log, $rootScope) {
app.controller('AppController', function ($scope, $location, $http, $log, $rootScope) {
$rootScope.sidebar = {
show: false
};
$scope.sidebar = $rootScope.sidebar;
$scope.user = oc_current_user;
});
});

View File

@@ -20,6 +20,7 @@
*
*/
import app from '../app/App.js';
/* global oc_defaults OC */
app.controller('BoardController', function ($rootScope, $scope, $stateParams, StatusService, BoardService, StackService, CardService, LabelService, $state, $transitions, $filter) {

View File

@@ -21,6 +21,7 @@
*/
/* global app moment */
import app from '../app/App.js';
app.controller('CardController', function ($scope, $rootScope, $routeParams, $location, $stateParams, $interval, $timeout, $filter, BoardService, CardService, StackService, StatusService) {
$scope.sidebar = $rootScope.sidebar;
@@ -184,4 +185,4 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
};
};
});
});

View File

@@ -22,7 +22,7 @@
/* global app angular */
app.controller('ListController', function ($scope, $location, $filter, BoardService, $element, $timeout, $stateParams, $state, StatusService) {
var ListController = function ($scope, $location, $filter, BoardService, $element, $timeout, $stateParams, $state, StatusService) {
function calculateNewColor() {
var boards = BoardService.getAll();
@@ -193,5 +193,6 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
});
};
});
};
export default ListController;