Permalink
Browse files

Skeleton commit for the mobile app's Ionic project.

NOTE: this is not a buildable project, please wait on the initial build scripts before attempting to make use of this repo.
  • Loading branch information...
l12s committed Aug 8, 2014
1 parent 9393851 commit 4a854f13944a2af78553cc4b13f97cc59d9146d4
View
@@ -0,0 +1,7 @@
{
"name": "ActionCenter-Mobile",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.0.0-beta.11"
}
}
View
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.actioncentermobile951898" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>actioncenter-mobile</name>
<description>
An Ionic Framework and Cordova project.
</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">
Ionic Framework Team
</author>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
</widget>
View
@@ -0,0 +1,50 @@
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var paths = {
sass: ['./scss/**/*.scss']
};
gulp.task('default', ['sass']);
gulp.task('sass', function(done) {
gulp.src('./scss/ionic.app.scss')
.pipe(sass())
.pipe(gulp.dest('./www/css/'))
.pipe(minifyCss({
keepSpecialComments: 0
}))
.pipe(rename({ extname: '.min.css' }))
.pipe(gulp.dest('./www/css/'))
.on('end', done);
});
gulp.task('watch', function() {
gulp.watch(paths.sass, ['sass']);
});
gulp.task('install', ['git-check'], function() {
return bower.commands.install()
.on('log', function(data) {
gutil.log('bower', gutil.colors.cyan(data.id), data.message);
});
});
gulp.task('git-check', function(done) {
if (!sh.which('git')) {
console.log(
' ' + gutil.colors.red('Git is not installed.'),
'\n Git, the version control system, is required to download Ionic.',
'\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.',
'\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.'
);
process.exit(1);
}
done();
});
View
@@ -0,0 +1,4 @@
{
"name": "actioncenter-mobile",
"app_id": ""
}
View
@@ -0,0 +1,17 @@
{
"name": "ionic-project",
"version": "1.0.0",
"description": "An Ionic project",
"dependencies": {
"gulp": "^3.5.6",
"gulp-sass": "^0.7.1",
"gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0"
},
"devDependencies": {
"bower": "^1.3.3",
"gulp-util": "^2.2.14",
"shelljs": "^0.3.0"
}
}
View
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
View
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
View
@@ -0,0 +1,4 @@
$ionicons-font-path: "../www/lib/ionic/fonts" !default;
// Include all of Ionic
@import "www/lib/ionic/scss/ionic";
View
No changes.
View
No changes.
View
No changes.
View
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<!--TODO(leah): Figure out how / where to put styling information-->
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!--TODO(leah): Move these imports once our pre-build phase is ready-->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/services.js"></script>
</head>
<body ng-app="actioncenter" animation="slide-left-right-ios7">
<ion-nav-bar class="bar-stable nav-title-slide-ios7">
<!--TODO(leah): Figure out how this looks / works on Android-->
<ion-nav-back-button class="button-icon icon ion-ios7-arrow-back">
Back
</ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view></ion-nav-view>
</body>
</html>
View
@@ -0,0 +1,25 @@
var actionCenter = angular.module('actioncenter', ['ionic', 'actioncenter.controllers', 'actioncenter.services']);
actionCenter.run(function ($ionicPlatform) {
$ionicPlatform.ready(function () {
// Hide the accessory bar by default
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
// Requires org.apache.cordova.statusbar
if (window.StatusBar) {
StatusBar.styleDefault();
}
});
});
// TODO(leah): Move the routing to a separate file and update once designs are ready
actionCenter.config(function ($stateProvider, $urlRouterProvider) {
// TODO(leah): Set up the application routing via AngularUI router
$stateProvider.state('', {});
// TODO(leah): Define the default page to take the user to if nothing matched
$stateProvider.otherwise('');
});
View
@@ -0,0 +1,4 @@
var actionCenterControllers = angular.module('starter.controllers', []);
// TODO(leah): Set this up to import the relevant controllers
actionCenterControllers.controller('WelcomeCarouselCtrl', welcomeCarouselController);
View
@@ -0,0 +1,3 @@
var actionCenterServices = angular.module('starter.services', []);
actionCenterServices.service('ActionCenterAPI', actionCenterAPI);
@@ -0,0 +1,7 @@
/**
* Basic API service singleton, used across the app with multiple facets for endpoint specific tasks.
*/
var actionCenterAPI = function() {
};
View
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
View
No changes.

0 comments on commit 4a854f1

Please sign in to comment.