Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from shankari/strip_down
Browse files Browse the repository at this point in the history
Stripping out some more modules
  • Loading branch information
shankari authored Mar 30, 2020
2 parents db32b25 + 2c4a93e commit b88c729
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 401 deletions.
2 changes: 0 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/stats/clientstats.js"></script>
<script src="js/splash/referral.js"></script>
<script src="js/splash/customURL.js"></script>
<script src="js/splash/startprefs.js"></script>
<script src="js/splash/localnotify.js"></script>
<script src="js/controllers.js"></script>
Expand Down
4 changes: 1 addition & 3 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@

angular.module('emission', ['ionic',
'emission.controllers','emission.services', 'emission.plugin.logger',
'emission.splash.customURLScheme', 'emission.splash.referral',
'emission.services.email',
'emission.intro', 'emission.main',
'pascalprecht.translate'])

.run(function($ionicPlatform, $rootScope, $http, Logger,
CustomURLScheme, ReferralHandler) {
.run(function($ionicPlatform, $rootScope, $http, Logger) {
console.log("Starting run");
// alert("Starting run");
$ionicPlatform.ready(function() {
Expand Down
46 changes: 0 additions & 46 deletions www/js/splash/customURL.js

This file was deleted.

41 changes: 0 additions & 41 deletions www/js/splash/referral.js

This file was deleted.

14 changes: 2 additions & 12 deletions www/js/splash/startprefs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
angular.module('emission.splash.startprefs', ['emission.plugin.logger',
'emission.splash.referral',
'emission.plugin.kvstore'])

.factory('StartPrefs', function($window, $state, $interval, $rootScope, $ionicPlatform,
$ionicPopup, KVStore, storage, $http, Logger, ReferralHandler) {
$ionicPopup, KVStore, storage, $http, Logger) {
var logger = Logger;
var nTimesCalled = 0;
var startprefs = {};
Expand Down Expand Up @@ -164,7 +163,6 @@ angular.module('emission.splash.startprefs', ['emission.plugin.logger',
startprefs.getNextState = function() {
return startprefs.getPendingOnboardingState().then(function(result){
if (result == null) {
var temp = ReferralHandler.getReferralNavigation();
if ($rootScope.tripConfirmParams) {
logger.log("Showing tripconfirm from startprefs");
var startEndParams = $rootScope.tripConfirmParams;
Expand All @@ -186,16 +184,8 @@ angular.module('emission.splash.startprefs', ['emission.plugin.logger',
var changeState = function(destState) {
logger.log('changing state to '+destState);
console.log("loading "+destState);
// TODO: Fix this the right way when we fix the FSM
// https://github.com/e-mission/e-mission-phone/issues/146#issuecomment-251061736
var reload = false;
if (($state.$current == destState.state) && ($state.$current.name == 'root.main.goals')) {
reload = true;
}
$state.go(destState.state, destState.params).then(function() {
if (reload) {
$rootScope.$broadcast("RELOAD_GOAL_PAGE_FOR_REFERRAL")
}
logger.log("state change to "+destState+" was successful");
});
};

Expand Down
Loading

0 comments on commit b88c729

Please sign in to comment.