Skip to content

Commit

Permalink
clean up commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivramv committed Jun 4, 2015
1 parent 4c57e58 commit f054258
Show file tree
Hide file tree
Showing 33 changed files with 58 additions and 204 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
**/bower_components/
Procfile
platforms/
1 change: 0 additions & 1 deletion .~lock.Taskit - Mobile App using Kinvey mBaaS.odp#

This file was deleted.

Binary file removed Taskit - Mobile App using Kinvey mBaaS.pdf
Binary file not shown.
Binary file removed app-walkthrough.odp
Binary file not shown.
3 changes: 1 addition & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<content src="index.html" />
<preference name="permissions" value="none" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="stay-in-webview" value="false" />
Expand All @@ -19,7 +18,7 @@
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="10" />
<preference name="android-minSdkVersion" value="17" />
<preference name="android-installLocation" value="auto" />
<preference name="SplashScreen" value="res/xml/splash.png" />
<preference name="SplashScreenDelay" value="10000" />
Expand Down
Binary file not shown.
Binary file added docs/Taskit - Mobile App using Kinvey mBaaS.pdf
Binary file not shown.
Binary file added docs/task-it.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ gulp.task('watch',function(){
gulp.task('build-dist',function(done){
plugins.runSequence(
'clean-dist',
['copy-library','copy-scripts','copy-css','copy-partials'],
'inject-files',
['copy-scripts','copy-css'],
'copy-library','copy-partials','inject-files',
done
)
});
Expand Down
Binary file not shown.
Binary file modified platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion platforms/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="22" />
</manifest>
4 changes: 4 additions & 0 deletions platforms/android/assets/www/app.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ nav .glyphicon {
.btn {
-webkit-transition: background-color 0.3s;
transition: background-color 0.3s; }

@media (min-width: 768px) {
.navbar-header {
float: none !important; } }
2 changes: 1 addition & 1 deletion platforms/android/assets/www/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions platforms/android/assets/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta name="description" content="Task management">
<meta name="description" content="Task It">
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval' http://da189i1jfloii.cloudfront.net">

<title>Task Management</title>
<title>Task It</title>
<!-- Place favicon.ico in the root directory -->

<!--lib:css-->
Expand All @@ -28,12 +29,9 @@
<!--src:js-->
<script src="app.min.js"></script>
<!--endinject-->
<script type="text/javascript" src="cordova.js"></script>
</head>
<body data-ui-view="body">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->


</body>
</html>

</body>
</html>
2 changes: 1 addition & 1 deletion platforms/android/assets/www/partials/add-task.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="form-group">
<label class="control-label col-xs-offset-1 col-sm-2" for="endDate">End Date</label>
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-pull-1">
<input type="date" class="form-control" id="endDate" placeholder="End Date" data-ng-model="task.endDate" name="endDate" required/>
<input type="date" class="form-control" id="endDate" placeholder="End Date" data-ng-model="task.endDate" name="endDate" min={{addTaskForm.startDate.$viewValue}} required/>
</div>
</div>

Expand Down
Binary file removed platforms/android/assets/www/splash.png
Binary file not shown.
3 changes: 1 addition & 2 deletions platforms/android/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<content src="index.html" />
<preference name="permissions" value="none" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="stay-in-webview" value="false" />
Expand All @@ -29,7 +28,7 @@
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="10" />
<preference name="android-minSdkVersion" value="17" />
<preference name="android-installLocation" value="auto" />
<preference name="SplashScreen" value="res/xml/splash.png" />
<preference name="SplashScreenDelay" value="10000" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/login/js/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
angular.module('login')
.controller('loginController',['$rootScope','$scope','$state','$kinvey','notify',function($rootScope,$scope,$state,$kinvey,notify){

$scope.login = function(){
if ($scope.loginForm.username.$error.required || $scope.loginForm.password.$error.required) return null;

$kinvey.User.login({
username: $scope.user.username.trim(),
password: $scope.user.pwd
Expand Down
1 change: 1 addition & 0 deletions src/components/main/js/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ angular.module('main')
.config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){
$urlRouterProvider.otherwise('/');
$stateProvider.state('root',{
abstract: true,
views: {
'body': {
templateUrl: 'partials/body.html'
Expand Down
7 changes: 4 additions & 3 deletions src/components/main/js/run/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
angular.module('login')
.run(['$kinvey','$state','$rootScope',function($kinvey,$state,$rootScope){
$kinvey.init({
angular.module('main')
.run(['$kinvey','$state','$rootScope','$document','$timeout','notify',function($kinvey,$state,$rootScope,$document,$timeout,notify){

$kinvey.init({
appKey: 'kid_Wk8MsXwikg',
appSecret: '68c9a63e8a4a41b98898796652bfccc5'
}).then(function(activeUser){
Expand Down
2 changes: 1 addition & 1 deletion src/components/tasks/partials/add-task.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="form-group">
<label class="control-label col-xs-offset-1 col-sm-2" for="endDate">End Date</label>
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-pull-1">
<input type="date" class="form-control" id="endDate" placeholder="End Date" data-ng-model="task.endDate" name="endDate" required/>
<input type="date" class="form-control" id="endDate" placeholder="End Date" data-ng-model="task.endDate" name="endDate" min={{addTaskForm.startDate.$viewValue}} required/>
</div>
</div>

Expand Down
4 changes: 4 additions & 0 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ nav .glyphicon {
.btn {
-webkit-transition: background-color 0.3s;
transition: background-color 0.3s; }

@media (min-width: 768px) {
.navbar-header {
float: none !important; } }
16 changes: 7 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta name="description" content="Task management">
<meta name="description" content="Task It">
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval' http://da189i1jfloii.cloudfront.net">

<title>Task Management</title>
<title>Task It</title>
<!-- Place favicon.ico in the root directory -->

<!--lib:css-->
Expand All @@ -21,12 +22,9 @@
<script src="http://da189i1jfloii.cloudfront.net/js/kinvey-angular-1.3.2.min.js"></script>
<!--src:js-->
<!--endinject-->
<script type="text/javascript" src="cordova.js"></script>
</head>
<body data-ui-view="body">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->


</body>
</html>

</body>
</html>
6 changes: 2 additions & 4 deletions src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

var environment = (function defineEnvironment(){
// var agent = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?'webview':'browser';
var agent = 'browser'
var agent = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?'webview':'browser';
// var agent = 'browser'
return {
agent: agent,
readyEvent: agent === 'webview'? 'deviceready':'DOMContentLoaded',
Expand Down
Loading

0 comments on commit f054258

Please sign in to comment.