clean js files

master
Chakib (spike) Benziane 11 years ago
parent cf4ea21ced
commit 11b13ba053

@ -1,32 +0,0 @@
// Generated by CoffeeScript 1.4.0
(function() {
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).config([
'$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/home.html',
controller: MyCtrl1
});
$routeProvider.when('/freelance', {
templateUrl: 'partials/freelance.html',
controller: MyCtrl1
});
$routeProvider.when('/projects', {
templateUrl: 'partials/projects.html',
controller: MyCtrl2
});
$routeProvider.when('/blog', {
templateUrl: 'partials/blog.html',
controller: MyCtrl2
});
$routeProvider.when('/contact', {
templateUrl: 'partials/contact.html',
controller: MyCtrl2
});
return $routeProvider.otherwise({
redirectTo: '/'
});
}
]);
}).call(this);

@ -1,66 +0,0 @@
// Generated by CoffeeScript 1.4.0
(function() {
this.dockCtrl = function($scope, $location) {
var defaultSelected;
$scope.icons = [
{
"class": 'profil',
icon: 'icon-user',
link: '/freelance',
text: 'What I Do'
}, {
"class": 'projects',
icon: 'icon-laptop',
link: '/projects',
text: 'My work'
}, {
"class": 'blog',
icon: 'icon-book',
link: '/blog',
text: 'Ideas'
}, {
"class": 'contact',
icon: 'icon-envelope-alt',
link: '/contact',
text: 'Get in touch'
}
];
$scope.selected = null;
defaultSelected = function() {
var icon, _i, _len, _ref, _results;
_ref = $scope.icons;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
icon = _ref[_i];
if ($location.path() === icon.link) {
_results.push($scope.selected = $scope.icons.indexOf(icon));
} else {
_results.push(void 0);
}
}
return _results;
};
defaultSelected();
return $scope["switch"] = function($index) {
if ($scope.selected === $index) {
$location.path('/');
return $scope.selected = null;
} else {
$scope.selected = $index;
return $location.path($scope.icons[$index].link);
}
};
};
dockCtrl.$inject = ['$scope', '$location'];
window.MyCtrl1 = function() {};
MyCtrl1.$inject = [];
window.MyCtrl2 = function() {};
MyCtrl2.$inject = [];
}).call(this);

@ -1,12 +0,0 @@
// Generated by CoffeeScript 1.4.0
(function() {
angular.module('myApp.directives', []).directive('appVersion', [
'version', function(version) {
return function(scope, elm, attrs) {
return elm.text(version);
};
}
]);
}).call(this);

@ -1,12 +0,0 @@
// Generated by CoffeeScript 1.4.0
(function() {
angular.module('myApp.filters', []).filter('interpolate', [
'version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}
]);
}).call(this);

@ -1,6 +0,0 @@
// Generated by CoffeeScript 1.4.0
(function() {
angular.module('myApp.services', []).value('version', '0.1');
}).call(this);