-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2,358 changed files
with
506,359 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "www/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Specifies intentionally untracked files to ignore when using Git | ||
# http://git-scm.com/docs/gitignore | ||
|
||
node_modules/ | ||
platforms/ | ||
plugins/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Ionic App Base | ||
===================== | ||
|
||
A starting project for Ionic that optionally supports using custom SCSS. | ||
|
||
## Using this project | ||
|
||
We recommend using the [Ionic CLI](https://github.com/driftyco/ionic-cli) to create new Ionic projects that are based on this project but use a ready-made starter template. | ||
|
||
For example, to start a new Ionic project with the default tabs interface, make sure the `ionic` utility is installed: | ||
|
||
```bash | ||
$ npm install -g ionic | ||
``` | ||
|
||
Then run: | ||
|
||
```bash | ||
$ ionic start myProject tabs | ||
``` | ||
|
||
More info on this can be found on the Ionic [Getting Started](http://ionicframework.com/getting-started) page and the [Ionic CLI](https://github.com/driftyco/ionic-cli) repo. | ||
|
||
## Issues | ||
Issues have been disabled on this repo, if you do find an issue or have a question consider posting it on the [Ionic Forum](http://forum.ionicframework.com/). Or else if there is truly an error, follow our guidelines for [submitting an issue](http://ionicframework.com/submit-issue/) to the main Ionic repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "HelloIonic", | ||
"private": "true", | ||
"devDependencies": { | ||
"ionic": "driftyco/ionic-bower#1.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<widget id="com.crunchy.crunchy" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>Crunchy</name> | ||
<description> | ||
It is Mobile Restaurant App. | ||
</description> | ||
<author email="you@example.com" href="http://example.com.com/"> | ||
Crunchy | ||
</author> | ||
<content src="index.html" /> | ||
<access origin="*" /> | ||
<preference name="webviewbounce" value="false" /> | ||
<preference name="UIWebViewBounce" value="false" /> | ||
<preference name="DisallowOverscroll" value="true" /> | ||
<preference name="android-minSdkVersion" value="16" /> | ||
<preference name="BackupWebStorage" value="none" /> | ||
<preference name="SplashScreen" value="screen" /> | ||
<preference name="SplashScreenDelay" value="3000" /> | ||
<feature name="StatusBar"> | ||
<param name="ios-package" onload="true" value="CDVStatusBar" /> | ||
</feature> | ||
<platform name="android"> | ||
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" /> | ||
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" /> | ||
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" /> | ||
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" /> | ||
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" /> | ||
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" /> | ||
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" /> | ||
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" /> | ||
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" /> | ||
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" /> | ||
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" /> | ||
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" /> | ||
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" /> | ||
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" /> | ||
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" /> | ||
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" /> | ||
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" /> | ||
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" /> | ||
</platform> | ||
<plugin name="cordova-plugin-crypt-file" spec="^1.3.3" /> | ||
<engine name="browser" spec="^5.0.4" /> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
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()) | ||
.on('error', sass.logError) | ||
.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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<!-- | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
--> | ||
# Cordova Hooks | ||
|
||
This directory may contain scripts used to customize cordova commands. This | ||
directory used to exist at `.cordova/hooks`, but has now been moved to the | ||
project root. Any scripts you add to these directories will be executed before | ||
and after the commands corresponding to the directory name. Useful for | ||
integrating your own build systems or integrating with version control systems. | ||
|
||
__Remember__: Make your scripts executable. | ||
|
||
## Hook Directories | ||
The following subdirectories will be used for hooks: | ||
|
||
after_build/ | ||
after_compile/ | ||
after_docs/ | ||
after_emulate/ | ||
after_platform_add/ | ||
after_platform_rm/ | ||
after_platform_ls/ | ||
after_plugin_add/ | ||
after_plugin_ls/ | ||
after_plugin_rm/ | ||
after_plugin_search/ | ||
after_prepare/ | ||
after_run/ | ||
after_serve/ | ||
before_build/ | ||
before_compile/ | ||
before_docs/ | ||
before_emulate/ | ||
before_platform_add/ | ||
before_platform_rm/ | ||
before_platform_ls/ | ||
before_plugin_add/ | ||
before_plugin_ls/ | ||
before_plugin_rm/ | ||
before_plugin_search/ | ||
before_prepare/ | ||
before_run/ | ||
before_serve/ | ||
pre_package/ <-- Windows 8 and Windows Phone only. | ||
|
||
## Script Interface | ||
|
||
All scripts are run from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables: | ||
|
||
* CORDOVA_VERSION - The version of the Cordova-CLI. | ||
* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios). | ||
* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer) | ||
* CORDOVA_HOOK - Path to the hook that is being executed. | ||
* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate) | ||
|
||
If a script returns a non-zero exit code, then the parent cordova command will be aborted. | ||
|
||
|
||
## Writing hooks | ||
|
||
We highly recommend writting your hooks using Node.js so that they are | ||
cross-platform. Some good examples are shown here: | ||
|
||
[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#!/usr/bin/env node | ||
|
||
// Add Platform Class | ||
// v1.0 | ||
// Automatically adds the platform class to the body tag | ||
// after the `prepare` command. By placing the platform CSS classes | ||
// directly in the HTML built for the platform, it speeds up | ||
// rendering the correct layout/style for the specific platform | ||
// instead of waiting for the JS to figure out the correct classes. | ||
|
||
var fs = require('fs'); | ||
var path = require('path'); | ||
|
||
var rootdir = process.argv[2]; | ||
|
||
function addPlatformBodyTag(indexPath, platform) { | ||
// add the platform class to the body tag | ||
try { | ||
var platformClass = 'platform-' + platform; | ||
var cordovaClass = 'platform-cordova platform-webview'; | ||
|
||
var html = fs.readFileSync(indexPath, 'utf8'); | ||
|
||
var bodyTag = findBodyTag(html); | ||
if(!bodyTag) return; // no opening body tag, something's wrong | ||
|
||
if(bodyTag.indexOf(platformClass) > -1) return; // already added | ||
|
||
var newBodyTag = bodyTag; | ||
|
||
var classAttr = findClassAttr(bodyTag); | ||
if(classAttr) { | ||
// body tag has existing class attribute, add the classname | ||
var endingQuote = classAttr.substring(classAttr.length-1); | ||
var newClassAttr = classAttr.substring(0, classAttr.length-1); | ||
newClassAttr += ' ' + platformClass + ' ' + cordovaClass + endingQuote; | ||
newBodyTag = bodyTag.replace(classAttr, newClassAttr); | ||
|
||
} else { | ||
// add class attribute to the body tag | ||
newBodyTag = bodyTag.replace('>', ' class="' + platformClass + ' ' + cordovaClass + '">'); | ||
} | ||
|
||
html = html.replace(bodyTag, newBodyTag); | ||
|
||
fs.writeFileSync(indexPath, html, 'utf8'); | ||
|
||
process.stdout.write('add to body class: ' + platformClass + '\n'); | ||
} catch(e) { | ||
process.stdout.write(e); | ||
} | ||
} | ||
|
||
function findBodyTag(html) { | ||
// get the body tag | ||
try{ | ||
return html.match(/<body(?=[\s>])(.*?)>/gi)[0]; | ||
}catch(e){} | ||
} | ||
|
||
function findClassAttr(bodyTag) { | ||
// get the body tag's class attribute | ||
try{ | ||
return bodyTag.match(/ class=["|'](.*?)["|']/gi)[0]; | ||
}catch(e){} | ||
} | ||
|
||
if (rootdir) { | ||
|
||
// go through each of the platform directories that have been prepared | ||
var platforms = (process.env.CORDOVA_PLATFORMS ? process.env.CORDOVA_PLATFORMS.split(',') : []); | ||
|
||
for(var x=0; x<platforms.length; x++) { | ||
// open up the index.html file at the www root | ||
try { | ||
var platform = platforms[x].trim().toLowerCase(); | ||
var indexPath; | ||
|
||
if(platform == 'android') { | ||
indexPath = path.join('platforms', platform, 'assets', 'www', 'index.html'); | ||
} else { | ||
indexPath = path.join('platforms', platform, 'www', 'index.html'); | ||
} | ||
|
||
if(fs.existsSync(indexPath)) { | ||
addPlatformBodyTag(indexPath, platform); | ||
} | ||
|
||
} catch(e) { | ||
process.stdout.write(e); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "Crunchy", | ||
"app_id": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
browser=Chrome.INTEGRATED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
file.reference.App-Source_Code=. | ||
files.encoding=UTF-8 | ||
site.root.folder=${file.reference.App-Source_Code} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
<type>org.netbeans.modules.web.clientproject</type> | ||
<configuration> | ||
<data xmlns="http://www.netbeans.org/ns/clientside-project/1"> | ||
<name>Source Code</name> | ||
</data> | ||
</configuration> | ||
</project> |
Oops, something went wrong.