Skip to content

Commit

Permalink
angularjs and other dependencies are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sercaneraslan committed May 12, 2018
1 parent 5eb6649 commit a231377
Show file tree
Hide file tree
Showing 8 changed files with 7,519 additions and 27 deletions.
10 changes: 5 additions & 5 deletions app/js/config/ng-config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Defined Grabs Module
var grabs = angular.module('grabs', [
'ngRoute',
'pageTitle'
]);
window.grabs = angular.module('grabs', [
'ngRoute',
'pageTitle'
]);

// Grabs Routing Configuration
grabs.config(['$locationProvider', '$routeProvider', function ($locationProvider, $routeProvider) {
angular.module('grabs').config(['$locationProvider', '$routeProvider', function ($locationProvider, $routeProvider) {
'use strict';

$routeProvider.when('/', {
Expand Down
2 changes: 1 addition & 1 deletion app/js/filter/safeHtml.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Safe HTML Filter
grabs.filter('safeHtml', ['$sce', function($sce) {
angular.module('grabs').filter('safeHtml', ['$sce', function($sce) {
return function(val) {
return $sce.trustAsHtml(val);
};
Expand Down
2 changes: 1 addition & 1 deletion app/js/service/languageService.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Grabs Language Service
grabs.factory('languageService', ['$http', function($http) {
angular.module('grabs').factory('languageService', ['$http', function($http) {
'use strict';

return {
Expand Down
6 changes: 3 additions & 3 deletions app/views/homepage/HomepageCtrl.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
grabs.controller('HomepageCtrl', ['$scope', '$route', 'languageService', function ($scope, $route, languageService) {
angular.module('grabs').controller('HomepageCtrl', ['$scope', '$route', 'languageService', function ($scope, $route, languageService) {
'use strict';

$scope.lang = $route.current.key;

languageService.getLanguageFile('homepage/' + $scope.lang).success(function (response) {
$scope.ln = response;
languageService.getLanguageFile('homepage/' + $scope.lang).then(function (response) {
$scope.ln = response.data;
});
}]);
2 changes: 1 addition & 1 deletion grabs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "$COMMAND" == "install" ]]; then
npm install || error "NPM Installation FAILED"

info "Installing Bower Dependencies"
grunt bower:install || error "Bower Installation FAILED"
grunt bowercopy || error "Bower Installation FAILED"

info "Grunt Working"
grunt || error "Grunt FAILED"
Expand Down
21 changes: 13 additions & 8 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
module.exports = function (grunt) {
var myHash = new Date().valueOf().toString(),
sortedJsPaths = [
'js/components/angular/*.js',
'js/components/angular-route/*.js',
'js/components/angular.js',
'js/components/angular-route.js',
'js/**/*.js',
'views/**/*.js'
],
Expand Down Expand Up @@ -144,14 +144,19 @@ module.exports = function (grunt) {
}
},

bower: {
bowercopy: {
options: {
targetDir: 'app/js/components',
cleanTargetDir: false,
cleanBowerDir: true,
verbose: true
clean: true
},
install: {}
libs: {
options: {
destPrefix: 'app/js/components/'
},
files: {
'angular.js': 'angular/angular.js',
'angular-route.js': 'angular-route/angular-route.js'
},
}
},

htmlmin: {
Expand Down
Loading

0 comments on commit a231377

Please sign in to comment.