Skip to content
Snippets Groups Projects
Commit 13d61f27 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

Delete css and dist folders from git

parent 69fd528a
Branches
No related tags found
No related merge requests found
This diff is collapsed.
File deleted
Source diff could not be displayed: it is too large. Options to address this: view the blob.
File deleted
File deleted
This diff is collapsed.
(function (angular) {
"use strict";
var translations = {
"en": {
"info_title_1": "How to stay connected ?",
"info_title_2": "What is Betskills ?",
"info_title_3": "How to use Betskills ?",
"info_title_4": "General terms of use",
"who_we_are": "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?",
"how_to_use": "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?",
"legal_terms": "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?",
"facebook_link": "https://www.facebook.com/betskillsuk",
"twitter_link": "https://twitter.com/betskills",
"instagram_link": "https://www.instagram.com/betskills",
"daily_predictions": "Daily Predictions",
"all_predictions": "All the predictions",
"unlock": "Unlock",
"predictions": "Predictions"
},
"fr": {
"info_title_1": "Comment resté connecté ?",
"info_title_2": "Qui sommes-nous ?",
"info_title_3": "Comment utiliser Betskills ?",
"info_title_4": "Conditions générales d'utilisation",
"who_we_are": "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker.",
"how_to_use": "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker.",
"legal_terms": "Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker.",
"facebook_link": "https://www.facebook.com/betskillsfrance",
"twitter_link": "https://twitter.com/betskills_fr",
"instagram_link": "https://www.instagram.com/betskills_fr",
"daily_predictions": "Prédictions gratuites",
"all_predictions": "Toutes les prédictions",
"unlock": "Dévérouiller",
"predictions": "Prédictions"
}
};
/**
* @ngInject
*/
function setupRun($ionicPlatform) {
$ionicPlatform.ready(function () {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
}
function nativeScrolling($ionicConfigProvider) {
$ionicConfigProvider.scrolling.jsScrolling(false);
}
/**
* @ngInject
*/
function setupRoutes($urlRouterProvider) {
$urlRouterProvider.otherwise('/tabs/football');
}
/**
* @ngInject
*/
function setupCaching($ionicConfigProvider) {
$ionicConfigProvider.views.maxCache(0);
}
angular.module(
'starter',
[
'ionic',
'templatescache',
'ngCordova',
'Config',
'pascalprecht.translate'
])
.run(setupRun)
.config(setupRoutes)
.config(function($ionicConfigProvider, $stateProvider,
$urlRouterProvider, $translateProvider) {
$ionicConfigProvider.views.maxCache(5);
$ionicConfigProvider.tabs.style('standard');
$ionicConfigProvider.tabs.position('bottom');
Object.keys(translations).forEach(function (key) {
$translateProvider.translations(key, translations[key]);
});
$translateProvider.preferredLanguage('fr');
$translateProvider.useSanitizeValueStrategy('escape');
})
.config(setupCaching)
.config(nativeScrolling)
.config(function ($httpProvider) {
$httpProvider.defaults.headers.common = {};
$httpProvider.defaults.headers.post = {};
$httpProvider.defaults.headers.put = {};
$httpProvider.defaults.headers.patch = {};
});
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function () {
"use strict";
angular.module('Config', ['starter']);
})();
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngInject
*/
function setupRoutes($stateProvider) {
$stateProvider
.state('tabs.football', {
url: '/football',
views: {
'tab-football': {
templateUrl: 'js/pages/football/template.html',
controller: 'FootballController as footballCtrl'
}
}
});
}
angular.module('starter')
.config(setupRoutes);
})(angular);
/**
* Created by jeremyguiselin on 10/12/2016.
*/
(function (angular) {
"use strict";
/**
* @ngInject
*/
function setupRoutes($stateProvider) {
$stateProvider
.state('info', {
url: '/info',
views: {
'content': {
templateUrl: 'js/pages/info/template.html',
controller: 'InfoController as infoCtrl'
}
}
});
}
angular.module('starter')
.config(setupRoutes);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngInject
*/
function setupRoutes($stateProvider) {
$stateProvider
.state('tabs.notification', {
url: '/notification',
views: {
'tab-notification': {
templateUrl: 'js/pages/notifications/template.html',
controller: 'NotificationController as notificationCtrl'
}
}
});
}
angular.module('starter')
.config(setupRoutes);
})(angular);
/**
* Created by jeremyguiselin on 30/10/2016.
*/
(function (angular) {
"use strict";
/**
* @ngInject
*/
function setupRoutes($stateProvider) {
$stateProvider
.state('tabs', {
url: '/tabs',
views: {
'content': {
templateUrl: 'js/pages/tabs/template.html',
}
}
});
}
angular.module('starter')
.config(setupRoutes);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngInject
*/
function setupRoutes($stateProvider) {
$stateProvider
.state('tabs.tennis', {
url: '/tennis',
views: {
'tab-tennis': {
templateUrl: 'js/pages/tennis/template.html',
controller: 'TennisController as tennisCtrl'
}
}
});
}
angular.module('starter')
.config(setupRoutes);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngdoc controller
* @name ChoiceController
*
* @description
* Controller for the choice of sport page.
*
* @ngInject
*/
function FootballController(
$ionicHistory,
$scope,
$http,
constantConfig
) {
var deregistrationCallbackList = [];
deregistrationCallbackList.push(
$scope.$on('$ionicView.afterEnter', function(){
$ionicHistory.clearHistory();
})
);
// cleanup
$scope.$on('$destroy', function(){
angular.forEach(deregistrationCallbackList, function(deregistrationCallback){
deregistrationCallback();
});
deregistrationCallbackList = null;
});
var deviceData = {};
ionic.Platform.ready(function () {
if (window.cordova) {
var device = ionic.Platform.device();
window.FirebasePlugin.getToken(function (token) {
deviceData = Object.assign(device, {'token': token});
}, function (error) {
$scope.deviceData = error;
});
window.FirebasePlugin.onTokenRefresh(function (token) {
deviceData = Object.assign(device, {'token': token});
}, function (error) {
$scope.deviceData = error;
});
} else {
//Mock deviceData
deviceData = {
platform: 'Android',
version: '6.0.1',
model: 'AquarisE5',
uuid: '7f4a6a40e5c87158',
token: 'cNgyx3ZgOX4:APA91bF5eigDuJLjj8wI8SC4l5KIHATuxi-2G5whpWI1n1jWpWWwRAwbEXec4fQ2S7HW8EdUPaREXJ5fVd_TZV8rZq_eIJIEhEadeH9wpsbYmUUM7E8H8Y0Qst9KmBuHWodCFFJPJ0vh'
}
}
$http.post(constantConfig.apiUrl + 'devices/register', deviceData)
.then(function successCallback() {
$state.go('tabs.football');
}, function errorCallback() {
});
});
}
angular.module('starter')
.controller('FootballController', FootballController);
})(angular);
/**
* Created by jeremyguiselin on 22/10/2016.
*/
(function (angular) {
"use strict";
/**
* @ngdoc controller
* @name HomeController
*
* @description
* Controller for the token storage
*
* @ngInject
*/
function HomeController(
$ionicHistory,
$scope,
$http,
$state,
constantConfig
) {
var deregistrationCallbackList = [];
deregistrationCallbackList.push(
$scope.$on('$ionicView.afterEnter', function () {
$ionicHistory.clearHistory();
})
);
// cleanup
$scope.$on('$destroy', function () {
angular.forEach(deregistrationCallbackList, function (deregistrationCallback) {
deregistrationCallback();
});
deregistrationCallbackList = null;
});
var deviceData = {};
}
angular.module('starter')
.controller('HomeController', HomeController);
})(angular);
/**
* Created by jeremyguiselin on 10/12/2016.
*/
(function (angular) {
"use strict";
/**
* @ngdoc controller
* @name InfoController
*
* @description
* Controller for the info page.
*
* @ngInject
*/
function InfoController(
$ionicHistory,
$scope
) {
var deregistrationCallbackList = [];
// cleanup
$scope.$on('$destroy', function(){
angular.forEach(
deregistrationCallbackList,
function(deregistrationCallback){
deregistrationCallback();
});
deregistrationCallbackList = null;
});
$scope.myGoBack = function() {
$ionicHistory.goBack();
};
}
angular.module('starter')
.controller('InfoController', InfoController);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngdoc controller
* @name NotificationController
*
* @description
* Controller for the notification page.
*
* @ngInject
*/
function NotificationController(
constantConfig,
$ionicHistory,
$scope,
$http
) {
this.status = [];
var self = this;
var deregistrationCallbackList = [];
var uuid = '';
if (window.cordova) {
uuid = ionic.Platform.device().uuid;
} else {
uuid = '7f4a6a40e5c87158';
}
this.findNotificationStatus = function(id) {
var notificationStatus = 'read';
self.status.forEach(function (el) {
if (el.notification.id === id) {
notificationStatus = el.status;
}
});
return notificationStatus;
};
deregistrationCallbackList.push(
$scope.$on('$ionicView.afterEnter', function(){
$ionicHistory.clearHistory();
})
);
// cleanup
$scope.$on('$destroy', function(){
$http.get(constantConfig.apiUrl + 'notifications/'+uuid+'/read');
angular.forEach(
deregistrationCallbackList,
function(deregistrationCallback){
deregistrationCallback();
});
deregistrationCallbackList = null;
});
$http
.get(constantConfig.apiUrl + 'notifications/' + uuid)
.then(function successCallback(response) {
self.status = response['data']['status'];
$scope.notifications = response['data']['notifications'];
}, function errorCallback() {
$scope.notifications = [];
});
}
angular.module('starter')
.controller('NotificationController', NotificationController);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular) {
"use strict";
/**
* @ngdoc controller
* @name ChoiceController
*
* @description
* Controller for the choice of sport page.
*
* @ngInject
*/
function TennisController(
$ionicHistory,
$scope,
$http,
constantConfig
) {
var deregistrationCallbackList = [];
deregistrationCallbackList.push(
$scope.$on('$ionicView.afterEnter', function(){
$ionicHistory.clearHistory();
})
);
// cleanup
$scope.$on('$destroy', function(){
angular.forEach(deregistrationCallbackList, function(deregistrationCallback){
deregistrationCallback();
});
deregistrationCallbackList = null;
});
$scope.pictureUrl = constantConfig.imgUrl;
$http
.get(constantConfig.apiUrl + 'predictions/tennis/free')
.then(function successCallback(response) {
$scope.freePredictions = response['data'];
}, function errorCallback() {
$scope.freePredictions = [];
});
$http
.get(constantConfig.apiUrl + 'packs/tennis')
.then(function successCallback(response) {
$scope.packs = response['data'];
}, function errorCallback() {
$scope.packs = [];
});
$scope.getPicturePath = function (name) {
var parts = name.toLowerCase().split(' ');
return parts.join('-');
};
$scope.isBought = function (id) {
return null;
}
$scope.selected = [];
$scope.price = 0;
$scope.isSelected = function (pack) {
return $scope.selected.indexOf(pack) !== -1;
}
$scope.select = function (pack) {
if ($scope.isBought(pack.id) === null) {
if ($scope.selected.indexOf(pack) !== -1) {
$scope.selected.splice($scope.selected.indexOf(pack), 1);
$scope.price -= pack.price_in_cents;
} else {
$scope.selected.push(pack);
$scope.price = pack.price_in_cents;
}
}
}
}
angular.module('starter')
.controller('TennisController', TennisController);
})(angular);
/**
* Created by jeremyguiselin on 25/09/2016.
*/
(function (angular){
"use strict";
angular.module('Config')
.constant("constantConfig", {
"apiClient": "betskills",
"appStaging": "development",
"apiUrl": "http://betskills.dev/api/",
"imgUrl": "http://betskills.dev/img/application/"
});
angular.module('Config')
.constant("notificationConfig",{
'core': {
'app_id': 'com.jeremyguiselin.betskills'
},
'push': {
'sender_id': '1006878207346',
'pluginConfig': {
'ios': {
'badge': true,
'sound': true
},
'android': {
'iconColor': '#343434'
}
}
}
});
})(angular);
angular.module('templatescache', []).run(['$templateCache', function($templateCache) {$templateCache.put('./js/pages/football/template.html','<ion-view cache-view="false" title="Football">\n <ion-nav-buttons side="right">\n <img ui-sref="info" class="info-icon" src="img/info.png" alt="info">\n </ion-nav-buttons>\n <ion-content class="has-header">\n <h1>Football</h1>\n </ion-content>\n</ion-view>\n');
$templateCache.put('./js/pages/info/template.html','<ion-view cache-view="false" title="Info">\n <ion-nav-buttons side="left">\n <img class="info-icon" ng-click="myGoBack()" src="img/back.png" alt="">\n </ion-nav-buttons>\n <ion-content class="has-header info">\n <h3 class="title-section" translate="info_title_1"></h3>\n <div class="social-networks">\n <a target="_system" href=\'{{"instagram_link"|translate}}\'>\n <img src="img/instagram.png">\n <p>Instagram</p>\n </a>\n <a target="_system" href=\'{{"facebook_link"|translate}}\'>\n <img src="img/facebook.png">\n <p>Facebook</p>\n </a>\n <a target="_system" href=\'{{"twitter_link"|translate}}\'>\n <img src="img/twitter.png">\n <p>Twitter</p>\n </a>\n </div>\n <h3 class="title-section" translate="info_title_2"></h3>\n <p class="content" translate="who_we_are"></p>\n <h3 class="title-section" translate="info_title_3"></h3>\n <p class="content" translate="how_to_use"></p>\n <h3 class="title-section" translate="info_title_4"></h3>\n <p class="content" translate="legal_terms"></p>\n </ion-content>\n</ion-view>\n');
$templateCache.put('./js/pages/notifications/template.html','<ion-view cache-view="false" title="Notifications">\n <ion-nav-buttons side="right">\n <img ui-sref="info" class="info-icon" src="img/info.png" alt="info">\n </ion-nav-buttons>\n <ion-content class="has-header">\n <ion-list>\n <ion-item ng-repeat="notification in notifications" class="notification-item">\n <div class="title">\n <div ng-hide="notificationCtrl.findNotificationStatus(notification.id) == \'read\'" class="green-circle"></div>\n {{ notification.title }}\n </div>\n <div class="date">{{notification.date | date: \'shortDate\'}}</div>\n <div class="content">{{ notification.content}}</div>\n </ion-item>\n </ion-list>\n </ion-content>\n</ion-view>\n');
$templateCache.put('./js/pages/tabs/template.html','<ion-view hide-back-button="true">\n <ion-tabs class="tabs-icon-top">\n <ion-tab title="Football" icon="icon tab-img football" icon-on="icon tab-img football-selected" ui-sref="tabs.football" class="tab-football">\n <ion-nav-view name="tab-football"></ion-nav-view>\n </ion-tab>\n\n <ion-tab title="Tennis" icon="icon tab-img tennis" icon-on="icon tab-img tennis-selected" ui-sref="tabs.tennis" class="tab-tennis">\n <ion-nav-view name="tab-tennis"></ion-nav-view>\n </ion-tab>\n\n <ion-tab title="Notifications" icon="icon tab-img notification" icon-on="icon tab-img notification-selected" ui-sref="tabs.notification" class="tab-notification">\n <ion-nav-view name="tab-notification"></ion-nav-view>\n </ion-tab>\n </ion-tabs>\n</ion-view>\n');
$templateCache.put('./js/pages/tennis/template.html','<ion-view cache-view="false" title="Tennis">\n <ion-nav-buttons side="right">\n <img ui-sref="info" class="info-icon" src="img/info.png" alt="info">\n </ion-nav-buttons>\n <ion-content class="has-header">\n <h3 class="title-section" translate="daily_predictions"></h3>\n <ion-list>\n <ion-item ng-repeat="freePrediction in freePredictions" class="prediction">\n <div class="team">\n <img src="{{pictureUrl}}team/{{getPicturePath(freePrediction.first_team.name)}}.png" />\n <div class="name">{{freePrediction.first_team.name}}</div>\n </div>\n <div class="center">\n <div class="title">\n {{ freePrediction.league.name }} - <span class="date">{{freePrediction.date | date: \'shortDate\'}}</span>\n </div>\n <div class="figures">\n <div class="figure">1</div>\n <div class="figure"></div>\n <div class="figure">2</div>\n </div>\n <div class="prediction_figures">\n <div\n class="prediction_figure"\n ng-class="freePrediction.prediction_win_first > freePrediction.prediction_win_second ? \'main-prediction\' : \'\'">\n {{freePrediction.prediction_win_first}}<span class="percent">%</span>\n </div>\n <div class="prediction_figure"></div>\n <div\n class="prediction_figure"\n ng-class="freePrediction.prediction_win_second > freePrediction.prediction_win_first ? \'main-prediction\' : \'\'">\n {{freePrediction.prediction_win_second}}<span class="percent">%</span>\n </div>\n </div>\n </div>\n <div class="team">\n <img src="{{pictureUrl}}{{getPicturePath(freePrediction.second_team.name)}}.png" />\n <div class="name">{{freePrediction.second_team.name}}</div>\n </div>\n </ion-item>\n </ion-list>\n <h3 class="title-section" translate="all_predictions"></h3>\n <ion-list>\n <ion-item ng-repeat="pack in packs" class="pack-item">\n <a ui-sref="{{isBought(pack.id)}}" ng-click="select(pack)">\n <div class="selected-pack" ng-class="{active : isSelected(pack)}" >\n <img src="img/white-check.png" />\n </div>\n <div class="pack-background" style="background-image: url(\'{{pictureUrl}}pack/{{getPicturePath(pack.name)}}.png\')">\n <div class="title">{{pack.name}}</div>\n </div>\n </a>\n </ion-item>\n </ion-list>\n <div class="unlock" ng-class="{active : selected.length > 0}">\n <a ui-sref="" class="content">\n {{"unlock" | translate}} {{"predictions" | translate}} <span>{{price / 100}}\u20AC</span>\n </div>\n </div>\n </ion-content>\n</ion-view>\n');}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment