Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

node_modules/
plugins/
resources/android
resources/ios

*.log
.DS_Store

Expand All @@ -7,4 +14,10 @@ www/js/*
www/css/*
www/img/*
www/templates/*
www/index.html
www/index.html
www/fonts/*
www/dist/*
platforms/android/assets
platforms/android/res
platforms/ios/**/Resources
coverage
11 changes: 2 additions & 9 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@
<!-- @endif -->

<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- <script src="lib/ionic/js/ionic.bundle.js"></script> -->

<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

<!-- custom configuration -->
<script src="js/config/config.js"></script>

<!-- app's js -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/controllers/ApplicationCtrl.js"></script>
<script src="js/services.js"></script>
<script src="js/services/Session.js"></script>
</head>
<body ng-app="BuildTools" ng-controller="ApplicationCtrl" animation="slide-left-right-ios7">
<!--
Expand All @@ -45,5 +37,6 @@ <h1 class="title">{{pageTitle}}</h1>
have templates inline in this html file if you'd like).
-->
<ion-nav-view></ion-nav-view>
<script src="dist/bundle.js"></script>
</body>
</html>
74 changes: 45 additions & 29 deletions app/js/app.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,58 @@
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'buildTools' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
var buildTools = angular.module('BuildTools', [ 'ionic',
'BuildTools.config',
'BuildTools.controllers',
'BuildTools.services'
]);

buildToolsServices.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
//

var angular = require('angular')

// dependencies of ionic
require('angular-animate')
require('angular-sanitize')
require('angular-ui-router')

require('ionic')
require('ionic-angular')

require('./config/config.js')
require('./controllers.js')
require('./services.js')

var buildTools = angular.module('BuildTools', [
'ionic',
'BuildTools.config',
'BuildTools.controllers',
'BuildTools.services'
])

buildTools.run(function ($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.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true)
}
if(window.StatusBar) {
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
StatusBar.styleDefault()
}
});
})
})

// Configure Ionic
.config(function($stateProvider, $urlRouterProvider) {

// Ionic uses AngularUI Router which uses the concept of states
// Learn more here: https://github.com/angular-ui/ui-router
// Set up the various states which the app can be in.
// Each state's controller can be found in controllers.js
$stateProvider
// Configure Ionic
.config(function ($stateProvider, $urlRouterProvider) {
// Ionic uses AngularUI Router which uses the concept of states
// Learn more here: https://github.com/angular-ui/ui-router
// Set up the various states which the app can be in.
// Each state's controller can be found in controllers.js
$stateProvider

.state('login', {
url: "/login",
templateUrl: "templates/login.html",
controller: 'LoginCtrl'
})
.state('login', {
url: '/login',
templateUrl: 'templates/login.html',
controller: 'LoginCtrl'
})

// if none of the above states are matched, use this as the fallback
$urlRouterProvider.otherwise("/login");
// if none of the above states are matched, use this as the fallback
$urlRouterProvider.otherwise('/login')

});
})
4 changes: 3 additions & 1 deletion app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
* See controllers/ for the individual Controller definitions
*/

var buildToolsCtrl = angular.module('BuildTools.controllers', ['ionic', 'BuildTools.config']);
module.exports = angular.module('BuildTools.controllers', ['ionic', 'BuildTools.config'])
.controller('ApplicationCtrl', require('./controllers/ApplicationCtrl'))
.controller('LoginCtrl', require('./controllers/LoginCtrl'))
11 changes: 9 additions & 2 deletions app/js/controllers/ApplicationCtrl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
buildToolsCtrl.controller('ApplicationCtrl', function($scope, Config) {
function ApplicationCtrl ($scope, Config) {
// your code here
var foo = (a) => a + 1

});
var bar = foo(3)

console.log('bar:', bar)

}

module.exports = ['$scope', 'Config', ApplicationCtrl]
11 changes: 11 additions & 0 deletions app/js/controllers/LoginCtrl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function LoginCtrl ($scope, Config) {
// your code here
var foo = (a) => a + 1

var bar = foo(3)

console.log('bar:', bar)

}

module.exports = ['$scope', 'Config', LoginCtrl]
3 changes: 2 additions & 1 deletion app/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
* See services/ for the individual Service definitions.
*/

var buildToolsServices = angular.module('BuildTools.services', ['BuildTools.config']);
module.exports = angular.module('BuildTools.services', ['BuildTools.config'])
.service('SessionService', require('./services/Session'))
6 changes: 4 additions & 2 deletions app/js/services/Session.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
buildToolsServices.service('Session', function () {
function SessionService () {
// your code here
});
}

module.exports = [SessionService]
12 changes: 0 additions & 12 deletions app/res/README.md

This file was deleted.

124 changes: 0 additions & 124 deletions app/res/convert.sh

This file was deleted.

4 changes: 2 additions & 2 deletions app/scss/ionic.app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ $dark: #444 !default;
// The path for our ionicons font files, relative to the built CSS in www/css
$ionicons-font-path: "../lib/ionic/fonts" !default;

// Include all of Ionic
@import "www/lib/ionic/scss/ionic";
/* Include all of Ionic */
@import "../../node_modules/ionic/scss/ionic";

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
Expand Down
6 changes: 6 additions & 0 deletions app/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<ion-view title="Login page">
<ion-nav-title>Log in please.</ion-nav-title>
<ion-content scroll="true" class="has-header">
<div>This is the login page.</div>
</ion-content>
</ion-view>
8 changes: 0 additions & 8 deletions bower.json

This file was deleted.

Loading