Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandoche Adittane committed Jul 15, 2016
2 parents 05babfe + 73706dd commit be350fd
Show file tree
Hide file tree
Showing 60 changed files with 1,704 additions and 179 deletions.
1 change: 1 addition & 0 deletions .grunt/grunt-gh-pages/gh-pages/src
Submodule src added at 96417b
31 changes: 28 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = function (grunt) {

// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
grunt.loadNpmTasks('grunt-gh-pages');

// Automatically load required Grunt tasks
require('jit-grunt')(grunt, {
Expand Down Expand Up @@ -224,7 +225,7 @@ module.exports = function (grunt) {
src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
ignorePath: /(\.\.\/){1,2}bower_components\//
}
},
},

// Compiles Sass to CSS and generates necessary files if requested
compass: {
Expand Down Expand Up @@ -413,7 +414,8 @@ module.exports = function (grunt) {
'*.{ico,png,txt}',
'*.html',
'images/{,*/}*.{webp}',
'styles/fonts/{,*/}*.*'
'styles/fonts/{,*/}*.*',
'CNAME',
]
}, {
expand: true,
Expand Down Expand Up @@ -456,7 +458,15 @@ module.exports = function (grunt) {
configFile: 'test/karma.conf.js',
singleRun: true
}
}
},

ghpages: {
options: {
base: 'dist'
},
src: ['**']
},

});


Expand Down Expand Up @@ -513,4 +523,19 @@ module.exports = function (grunt) {
'test',
'build'
]);

grunt.registerTask('deploy', [
'ghpages',
]);

/*
grunt.initConfig({
'gh-pages': {
options: {
base: 'dist'
},
src: ['**']
}
});
*/
};
1 change: 1 addition & 0 deletions app/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
happybots.io
Binary file modified app/favicon.ico
Binary file not shown.
Binary file added app/images/alex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/alexBg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/alexBg5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/alexIco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/alexIcoNoBorder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/happybotsIco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoXL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoXS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoXXL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/hbIcoXXS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/messenger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/modelo-expediente-academico.xls
Binary file not shown.
Binary file added app/images/patricia.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/sandoche.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/wip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/wipBg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/wipIco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/wipIco3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 40 additions & 39 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<title>HAPPYBOTS</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
Expand All @@ -13,6 +13,13 @@
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
<script src="https://use.fontawesome.com/b8df798ef0.js"></script>

<meta property="og:title" content="HAPPYBOTS" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://happybots.io" />
<meta property="og:image" content="http://happybots.io/images/hbIcoXXL.png" />

</head>
<body ng-app="happybotsApp">
<!--[if lte IE 8]>
Expand All @@ -21,52 +28,41 @@

<!-- Add your site or application content here -->
<div class="header">
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<ng-include src="'views/shared/navbar.html'"></ng-include>
</div>

<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#js-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div ng-view=""></div>

<a class="navbar-brand" href="#/">happybots</a>
</div>

<div class="collapse navbar-collapse" id="js-navbar-collapse">

<ul class="nav navbar-nav">
<li class="active"><a href="#/">Home</a></li>
<li><a ng-href="#/about">About</a></li>
<li><a ng-href="#/">Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

<div class="container">
<div ng-view=""></div>
</div>
ga('create', 'UA-80374030-1', 'auto');

<div class="footer">
<div class="container">
<p><span class="glyphicon glyphicon-heart"></span> from the Yeoman team</p>
</div>
</div>
</script>


<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
!function(A,n,g,u,l,a,r){A.GoogleAnalyticsObject=l,A[l]=A[l]||function(){
(A[l].q=A[l].q||[]).push(arguments)},A[l].l=+new Date,a=n.createElement(g),
r=n.getElementsByTagName(g)[0],a.src=u,r.parentNode.insertBefore(a,r)
}(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
<script type="text/javascript">
window.doorbellOptions = {
appKey: 'YqIzK3YXyT4WO8ADjR0mkeaWqSbS53zez5BPAk9uKnbGRE95oPdp8PYA7EHZCDnY',
hideButton: true,
};
(function(w, d, t) {
var hasLoaded = false;
function l() { if (hasLoaded) { return; } hasLoaded = true; window.doorbellOptions.windowLoaded = true; var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/3973?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g); }
if (w.attachEvent) { w.attachEvent('onload', l); } else if (w.addEventListener) { w.addEventListener('load', l, false); } else { l(); }
if (d.readyState == 'complete') { l(); }
}(window, document, 'script'));

ga('create', 'UA-XXXXX-X');
ga('send', 'pageview');
function showDoorbellModal() {
doorbell.show();
return false;
}
</script>

<!-- build:js(.) scripts/vendor.js -->
Expand All @@ -78,13 +74,18 @@
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-touch/angular-touch.js"></script>
<script src="bower_components/angular-typer/dist/typer.min.js"></script>
<!-- endbower -->
<!-- endbuild -->

<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/main.js"></script>
<script src="scripts/controllers/about.js"></script>
<script src="scripts/controllers/wip.js"></script>
<script src="scripts/controllers/bot.js"></script>
<script src="scripts/controllers/contact.js"></script>
<script src="scripts/services/botsdata.js"></script>
<script src="scripts/directives/botbar.js"></script>
<!-- endbuild -->
</body>
</html>
28 changes: 21 additions & 7 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,35 @@ angular
'ngAnimate',
'ngRoute',
'ngSanitize',
'ngTouch'
'ngTouch',
'typer',
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl',
controllerAs: 'main'
.when('/wip', {
templateUrl: 'views/wip.html',
controller: 'WipCtrl',
controllerAs: 'wip'
})
.when('/about', {
templateUrl: 'views/about.html',
controller: 'AboutCtrl',
controllerAs: 'about'
})
.when('/:name', {
templateUrl: 'views/bot.html',
controller: 'BotCtrl',
controllerAs: 'bot'
})
.otherwise({
redirectTo: '/'
redirectTo: '/alex'
});
}).run(['$rootScope', '$location', '$window', function($rootScope, $location, $window){
$rootScope
.$on('$stateChangeSuccess',
function(event){
if (!$window.ga)
return;
$window.ga('send', 'pageview', { page: $location.path() });
});
});
}]);
21 changes: 21 additions & 0 deletions app/scripts/controllers/bot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

/**
* @ngdoc function
* @name happybotsApp.controller:BotCtrl
* @description
* # BotCtrl
* Controller of the happybotsApp
*/
angular.module('happybotsApp')
.controller('BotCtrl', ['$scope', '$routeParams', '$location', 'botsData', function ($scope, $routeParams, $location, botsData) {

var botName = $routeParams.name;
$scope.Bot = botsData[botName];

// Redirect if no bot found
if(angular.isUndefined(botsData[botName])) {
$location.path('/')
}

}]);
17 changes: 0 additions & 17 deletions app/scripts/controllers/main.js

This file was deleted.

16 changes: 16 additions & 0 deletions app/scripts/controllers/wip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

/**
* @ngdoc function
* @name happybotsApp.controller:WipCtrl
* @description
* # WipCtrl
* Controller of the happybotsApp
*/
angular.module('happybotsApp')
.controller('WipCtrl', ['$scope', function ($scope) {

$scope.feature = "Image Face Recognition";
$scope.newBotName = "Eeve";

}]);
18 changes: 18 additions & 0 deletions app/scripts/directives/botbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

/**
* @ngdoc directive
* @name happybotsApp.directive:botBar
* @description
* # botBar
*/
angular.module('happybotsApp')
.directive('botBar', ['botsData', function (botsData) {
return {
templateUrl: 'views/shared/botbar.html',
restrict: 'E',
link: function postLink(scope, element, attrs) {
scope.Bots = botsData;
}
};
}]);
22 changes: 22 additions & 0 deletions app/scripts/services/botsdata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

/**
* @ngdoc service
* @name happybotsApp.botsData
* @description
* # botsData
* Value in the happybotsApp.
*/
angular.module('happybotsApp')
.value('botsData', {
"alex" : {
name: "Alex",
id: "alex",
description: "A Wikipedia bot for messenger",
imageSrc:"images/alex.png",
imageBgSrc:"images/alexBg5.jpg",
icoSrc:"images/alexIcoNoBorder.png",
messengerUrl: "http://m.me/alex.wikimessenger",
githubUrl: "https://github.com/patriciamayo/Alex-wikiMessenger"
},
});
Loading

0 comments on commit be350fd

Please sign in to comment.