Repository: cordova-app-hello-world Updated Branches: refs/heads/master 4413480de -> 27919ad09
CB-11412 Update templates to designate template source dir This closes #16 Project: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/commit/27919ad0 Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/tree/27919ad0 Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/diff/27919ad0 Branch: refs/heads/master Commit: 27919ad09e1a721c2e328c269b89def6b39dd90c Parents: 4413480 Author: carynbear <[email protected]> Authored: Wed Jun 15 13:15:14 2016 -0700 Committer: Steve Gill <[email protected]> Committed: Tue Jul 12 15:59:32 2016 -0700 ---------------------------------------------------------------------- config.xml | 45 -------- hooks/README.md | 23 ---- index.js | 9 +- res/README.md | 29 ----- res/icon/android/icon-36-ldpi.png | Bin 3096 -> 0 bytes res/icon/android/icon-48-mdpi.png | Bin 4090 -> 0 bytes res/icon/android/icon-72-hdpi.png | Bin 6080 -> 0 bytes res/icon/android/icon-96-xhdpi.png | Bin 7685 -> 0 bytes res/icon/bada-wac/icon-48-type5.png | Bin 4111 -> 0 bytes res/icon/bada-wac/icon-50-type3.png | Bin 5758 -> 0 bytes res/icon/bada-wac/icon-80-type4.png | Bin 7287 -> 0 bytes res/icon/bada/icon-128.png | Bin 11401 -> 0 bytes res/icon/blackberry/icon-80.png | Bin 7287 -> 0 bytes res/icon/blackberry10/icon-80.png | Bin 7287 -> 0 bytes res/icon/ios/icon-57-2x.png | Bin 7869 -> 0 bytes res/icon/ios/icon-57.png | Bin 3908 -> 0 bytes res/icon/ios/icon-72-2x.png | Bin 11706 -> 0 bytes res/icon/ios/icon-72.png | Bin 4944 -> 0 bytes res/icon/tizen/icon-128.png | Bin 11401 -> 0 bytes res/icon/webos/icon-64.png | Bin 5463 -> 0 bytes res/icon/windows-phone/icon-173-tile.png | Bin 22878 -> 0 bytes res/icon/windows-phone/icon-48.png | Bin 4111 -> 0 bytes res/icon/windows-phone/icon-62-tile.png | Bin 7324 -> 0 bytes res/screen/android/screen-hdpi-landscape.png | Bin 218302 -> 0 bytes res/screen/android/screen-hdpi-portrait.png | Bin 222148 -> 0 bytes res/screen/android/screen-ldpi-landscape.png | Bin 42616 -> 0 bytes res/screen/android/screen-ldpi-portrait.png | Bin 42034 -> 0 bytes res/screen/android/screen-mdpi-landscape.png | Bin 92347 -> 0 bytes res/screen/android/screen-mdpi-portrait.png | Bin 90555 -> 0 bytes res/screen/android/screen-xhdpi-landscape.png | Bin 489604 -> 0 bytes res/screen/android/screen-xhdpi-portrait.png | Bin 504508 -> 0 bytes res/screen/bada-wac/screen-type3.png | Bin 90555 -> 0 bytes res/screen/bada-wac/screen-type4.png | Bin 222148 -> 0 bytes res/screen/bada-wac/screen-type5.png | Bin 107580 -> 0 bytes res/screen/bada/screen-portrait.png | Bin 222148 -> 0 bytes res/screen/blackberry/screen-225.png | Bin 16776 -> 0 bytes res/screen/blackberry10/splash-1280x768.png | Bin 60771 -> 0 bytes res/screen/blackberry10/splash-720x720.png | Bin 50431 -> 0 bytes res/screen/blackberry10/splash-768x1280.png | Bin 57145 -> 0 bytes res/screen/ios/screen-ipad-landscape-2x.png | Bin 2610052 -> 0 bytes res/screen/ios/screen-ipad-landscape.png | Bin 683155 -> 0 bytes res/screen/ios/screen-ipad-portrait-2x.png | Bin 2656572 -> 0 bytes res/screen/ios/screen-ipad-portrait.png | Bin 684294 -> 0 bytes res/screen/ios/screen-iphone-landscape-2x.png | Bin 339639 -> 0 bytes res/screen/ios/screen-iphone-landscape.png | Bin 92301 -> 0 bytes res/screen/ios/screen-iphone-portrait-2x.png | Bin 350593 -> 0 bytes .../ios/screen-iphone-portrait-568h-2x.png | Bin 34225 -> 0 bytes res/screen/ios/screen-iphone-portrait.png | Bin 93897 -> 0 bytes res/screen/tizen/README.md | 24 ---- res/screen/webos/screen-64.png | Bin 5463 -> 0 bytes res/screen/windows-phone/screen-portrait.jpg | Bin 22066 -> 0 bytes template_src/.gitignore | 2 + template_src/config.xml | 45 ++++++++ template_src/hooks/README.md | 23 ++++ template_src/res/README.md | 29 +++++ template_src/res/icon/android/icon-36-ldpi.png | Bin 0 -> 3096 bytes template_src/res/icon/android/icon-48-mdpi.png | Bin 0 -> 4090 bytes template_src/res/icon/android/icon-72-hdpi.png | Bin 0 -> 6080 bytes template_src/res/icon/android/icon-96-xhdpi.png | Bin 0 -> 7685 bytes .../res/icon/bada-wac/icon-48-type5.png | Bin 0 -> 4111 bytes .../res/icon/bada-wac/icon-50-type3.png | Bin 0 -> 5758 bytes .../res/icon/bada-wac/icon-80-type4.png | Bin 0 -> 7287 bytes template_src/res/icon/bada/icon-128.png | Bin 0 -> 11401 bytes template_src/res/icon/blackberry/icon-80.png | Bin 0 -> 7287 bytes template_src/res/icon/blackberry10/icon-80.png | Bin 0 -> 7287 bytes template_src/res/icon/ios/icon-57-2x.png | Bin 0 -> 7869 bytes template_src/res/icon/ios/icon-57.png | Bin 0 -> 3908 bytes template_src/res/icon/ios/icon-72-2x.png | Bin 0 -> 11706 bytes template_src/res/icon/ios/icon-72.png | Bin 0 -> 4944 bytes template_src/res/icon/tizen/icon-128.png | Bin 0 -> 11401 bytes template_src/res/icon/webos/icon-64.png | Bin 0 -> 5463 bytes .../res/icon/windows-phone/icon-173-tile.png | Bin 0 -> 22878 bytes template_src/res/icon/windows-phone/icon-48.png | Bin 0 -> 4111 bytes .../res/icon/windows-phone/icon-62-tile.png | Bin 0 -> 7324 bytes .../screen/android/screen-hdpi-landscape.png | Bin 0 -> 218302 bytes .../res/screen/android/screen-hdpi-portrait.png | Bin 0 -> 222148 bytes .../screen/android/screen-ldpi-landscape.png | Bin 0 -> 42616 bytes .../res/screen/android/screen-ldpi-portrait.png | Bin 0 -> 42034 bytes .../screen/android/screen-mdpi-landscape.png | Bin 0 -> 92347 bytes .../res/screen/android/screen-mdpi-portrait.png | Bin 0 -> 90555 bytes .../screen/android/screen-xhdpi-landscape.png | Bin 0 -> 489604 bytes .../screen/android/screen-xhdpi-portrait.png | Bin 0 -> 504508 bytes .../res/screen/bada-wac/screen-type3.png | Bin 0 -> 90555 bytes .../res/screen/bada-wac/screen-type4.png | Bin 0 -> 222148 bytes .../res/screen/bada-wac/screen-type5.png | Bin 0 -> 107580 bytes .../res/screen/bada/screen-portrait.png | Bin 0 -> 222148 bytes .../res/screen/blackberry/screen-225.png | Bin 0 -> 16776 bytes .../res/screen/blackberry10/splash-1280x768.png | Bin 0 -> 60771 bytes .../res/screen/blackberry10/splash-720x720.png | Bin 0 -> 50431 bytes .../res/screen/blackberry10/splash-768x1280.png | Bin 0 -> 57145 bytes .../res/screen/ios/screen-ipad-landscape-2x.png | Bin 0 -> 2610052 bytes .../res/screen/ios/screen-ipad-landscape.png | Bin 0 -> 683155 bytes .../res/screen/ios/screen-ipad-portrait-2x.png | Bin 0 -> 2656572 bytes .../res/screen/ios/screen-ipad-portrait.png | Bin 0 -> 684294 bytes .../screen/ios/screen-iphone-landscape-2x.png | Bin 0 -> 339639 bytes .../res/screen/ios/screen-iphone-landscape.png | Bin 0 -> 92301 bytes .../screen/ios/screen-iphone-portrait-2x.png | Bin 0 -> 350593 bytes .../ios/screen-iphone-portrait-568h-2x.png | Bin 0 -> 34225 bytes .../res/screen/ios/screen-iphone-portrait.png | Bin 0 -> 93897 bytes template_src/res/screen/tizen/README.md | 24 ++++ template_src/res/screen/webos/screen-64.png | Bin 0 -> 5463 bytes .../screen/windows-phone/screen-portrait.jpg | Bin 0 -> 22066 bytes template_src/www/css/index.css | 115 +++++++++++++++++++ template_src/www/img/logo.png | Bin 0 -> 21814 bytes template_src/www/index.html | 49 ++++++++ template_src/www/js/index.js | 46 ++++++++ www/css/index.css | 115 ------------------- www/img/logo.png | Bin 21814 -> 0 bytes www/index.html | 49 -------- www/js/index.js | 46 -------- 110 files changed, 339 insertions(+), 334 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/config.xml ---------------------------------------------------------------------- diff --git a/config.xml b/config.xml deleted file mode 100644 index 02e616c..0000000 --- a/config.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<!-- - 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. ---> -<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> - <name>HelloCordova</name> - <description> - A sample Apache Cordova application that responds to the deviceready event. - </description> - <author email="[email protected]" href="http://cordova.io"> - Apache Cordova Team - </author> - <content src="index.html" /> - <!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html --> - <plugin name="cordova-plugin-whitelist" spec="1" /> - <access origin="*" /> - <allow-intent href="http://*/*" /> - <allow-intent href="https://*/*" /> - <allow-intent href="tel:*" /> - <allow-intent href="sms:*" /> - <allow-intent href="mailto:*" /> - <allow-intent href="geo:*" /> - <platform name="android"> - <allow-intent href="market:*" /> - </platform> - <platform name="ios"> - <allow-intent href="itms:*" /> - <allow-intent href="itms-apps:*" /> - </platform> -</widget> http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/hooks/README.md ---------------------------------------------------------------------- diff --git a/hooks/README.md b/hooks/README.md deleted file mode 100644 index 574ad4c..0000000 --- a/hooks/README.md +++ /dev/null @@ -1,23 +0,0 @@ -<!-- -# -# 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 - -Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide. http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/index.js ---------------------------------------------------------------------- diff --git a/index.js b/index.js index 7c97cea..fdc90b3 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,9 @@ // Entry point is needed so that the module could be required. // The module dir path will be need to copy resources from it. -exports = module.exports = { - dirname: __dirname -}; + +var path = require('path'); + +module.exports = module.exports = { + dirname: path.join(__dirname, 'template_src') +}; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/README.md ---------------------------------------------------------------------- diff --git a/res/README.md b/res/README.md deleted file mode 100644 index bffb33b..0000000 --- a/res/README.md +++ /dev/null @@ -1,29 +0,0 @@ -<!-- -# -# 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. -# ---> - -Note that these image resources are not copied into a project when a project -is created with the CLI. Although there are default image resources in a -newly-created project, those come from the platform-specific project template, -which can generally be found in the platform's `template` directory. Until -icon and splashscreen support is added to the CLI, these image resources -aren't used directly. - -See https://issues.apache.org/jira/browse/CB-5145 http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/android/icon-36-ldpi.png ---------------------------------------------------------------------- diff --git a/res/icon/android/icon-36-ldpi.png b/res/icon/android/icon-36-ldpi.png deleted file mode 100644 index cd5032a..0000000 Binary files a/res/icon/android/icon-36-ldpi.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/android/icon-48-mdpi.png ---------------------------------------------------------------------- diff --git a/res/icon/android/icon-48-mdpi.png b/res/icon/android/icon-48-mdpi.png deleted file mode 100644 index e79c606..0000000 Binary files a/res/icon/android/icon-48-mdpi.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/android/icon-72-hdpi.png ---------------------------------------------------------------------- diff --git a/res/icon/android/icon-72-hdpi.png b/res/icon/android/icon-72-hdpi.png deleted file mode 100644 index 4d27634..0000000 Binary files a/res/icon/android/icon-72-hdpi.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/android/icon-96-xhdpi.png ---------------------------------------------------------------------- diff --git a/res/icon/android/icon-96-xhdpi.png b/res/icon/android/icon-96-xhdpi.png deleted file mode 100644 index ec7ffbf..0000000 Binary files a/res/icon/android/icon-96-xhdpi.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/bada-wac/icon-48-type5.png ---------------------------------------------------------------------- diff --git a/res/icon/bada-wac/icon-48-type5.png b/res/icon/bada-wac/icon-48-type5.png deleted file mode 100644 index 8ad8bac..0000000 Binary files a/res/icon/bada-wac/icon-48-type5.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/bada-wac/icon-50-type3.png ---------------------------------------------------------------------- diff --git a/res/icon/bada-wac/icon-50-type3.png b/res/icon/bada-wac/icon-50-type3.png deleted file mode 100644 index c6ddf84..0000000 Binary files a/res/icon/bada-wac/icon-50-type3.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/bada-wac/icon-80-type4.png ---------------------------------------------------------------------- diff --git a/res/icon/bada-wac/icon-80-type4.png b/res/icon/bada-wac/icon-80-type4.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/bada-wac/icon-80-type4.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/bada/icon-128.png ---------------------------------------------------------------------- diff --git a/res/icon/bada/icon-128.png b/res/icon/bada/icon-128.png deleted file mode 100644 index 3516df3..0000000 Binary files a/res/icon/bada/icon-128.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/blackberry/icon-80.png ---------------------------------------------------------------------- diff --git a/res/icon/blackberry/icon-80.png b/res/icon/blackberry/icon-80.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/blackberry/icon-80.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/blackberry10/icon-80.png ---------------------------------------------------------------------- diff --git a/res/icon/blackberry10/icon-80.png b/res/icon/blackberry10/icon-80.png deleted file mode 100644 index f86a27a..0000000 Binary files a/res/icon/blackberry10/icon-80.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/ios/icon-57-2x.png ---------------------------------------------------------------------- diff --git a/res/icon/ios/icon-57-2x.png b/res/icon/ios/icon-57-2x.png deleted file mode 100644 index efd9c37..0000000 Binary files a/res/icon/ios/icon-57-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/ios/icon-57.png ---------------------------------------------------------------------- diff --git a/res/icon/ios/icon-57.png b/res/icon/ios/icon-57.png deleted file mode 100644 index c795fc4..0000000 Binary files a/res/icon/ios/icon-57.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/ios/icon-72-2x.png ---------------------------------------------------------------------- diff --git a/res/icon/ios/icon-72-2x.png b/res/icon/ios/icon-72-2x.png deleted file mode 100644 index dd819da..0000000 Binary files a/res/icon/ios/icon-72-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/ios/icon-72.png ---------------------------------------------------------------------- diff --git a/res/icon/ios/icon-72.png b/res/icon/ios/icon-72.png deleted file mode 100644 index b1cfde7..0000000 Binary files a/res/icon/ios/icon-72.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/tizen/icon-128.png ---------------------------------------------------------------------- diff --git a/res/icon/tizen/icon-128.png b/res/icon/tizen/icon-128.png deleted file mode 100644 index 3516df3..0000000 Binary files a/res/icon/tizen/icon-128.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/webos/icon-64.png ---------------------------------------------------------------------- diff --git a/res/icon/webos/icon-64.png b/res/icon/webos/icon-64.png deleted file mode 100644 index 03b3849..0000000 Binary files a/res/icon/webos/icon-64.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/windows-phone/icon-173-tile.png ---------------------------------------------------------------------- diff --git a/res/icon/windows-phone/icon-173-tile.png b/res/icon/windows-phone/icon-173-tile.png deleted file mode 100644 index 4f15e20..0000000 Binary files a/res/icon/windows-phone/icon-173-tile.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/windows-phone/icon-48.png ---------------------------------------------------------------------- diff --git a/res/icon/windows-phone/icon-48.png b/res/icon/windows-phone/icon-48.png deleted file mode 100644 index 8ad8bac..0000000 Binary files a/res/icon/windows-phone/icon-48.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/icon/windows-phone/icon-62-tile.png ---------------------------------------------------------------------- diff --git a/res/icon/windows-phone/icon-62-tile.png b/res/icon/windows-phone/icon-62-tile.png deleted file mode 100644 index aab6061..0000000 Binary files a/res/icon/windows-phone/icon-62-tile.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-hdpi-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-hdpi-landscape.png b/res/screen/android/screen-hdpi-landscape.png deleted file mode 100644 index a61e2b1..0000000 Binary files a/res/screen/android/screen-hdpi-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-hdpi-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-hdpi-portrait.png b/res/screen/android/screen-hdpi-portrait.png deleted file mode 100644 index 5d6a28a..0000000 Binary files a/res/screen/android/screen-hdpi-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-ldpi-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-ldpi-landscape.png b/res/screen/android/screen-ldpi-landscape.png deleted file mode 100644 index f3934cd..0000000 Binary files a/res/screen/android/screen-ldpi-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-ldpi-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-ldpi-portrait.png b/res/screen/android/screen-ldpi-portrait.png deleted file mode 100644 index 65ad163..0000000 Binary files a/res/screen/android/screen-ldpi-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-mdpi-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-mdpi-landscape.png b/res/screen/android/screen-mdpi-landscape.png deleted file mode 100644 index a1b697c..0000000 Binary files a/res/screen/android/screen-mdpi-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-mdpi-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-mdpi-portrait.png b/res/screen/android/screen-mdpi-portrait.png deleted file mode 100644 index ea15693..0000000 Binary files a/res/screen/android/screen-mdpi-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-xhdpi-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-xhdpi-landscape.png b/res/screen/android/screen-xhdpi-landscape.png deleted file mode 100644 index 79f2f09..0000000 Binary files a/res/screen/android/screen-xhdpi-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/android/screen-xhdpi-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/android/screen-xhdpi-portrait.png b/res/screen/android/screen-xhdpi-portrait.png deleted file mode 100644 index c2e8042..0000000 Binary files a/res/screen/android/screen-xhdpi-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/bada-wac/screen-type3.png ---------------------------------------------------------------------- diff --git a/res/screen/bada-wac/screen-type3.png b/res/screen/bada-wac/screen-type3.png deleted file mode 100755 index ea15693..0000000 Binary files a/res/screen/bada-wac/screen-type3.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/bada-wac/screen-type4.png ---------------------------------------------------------------------- diff --git a/res/screen/bada-wac/screen-type4.png b/res/screen/bada-wac/screen-type4.png deleted file mode 100755 index 5d6a28a..0000000 Binary files a/res/screen/bada-wac/screen-type4.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/bada-wac/screen-type5.png ---------------------------------------------------------------------- diff --git a/res/screen/bada-wac/screen-type5.png b/res/screen/bada-wac/screen-type5.png deleted file mode 100755 index bd64f76..0000000 Binary files a/res/screen/bada-wac/screen-type5.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/bada/screen-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/bada/screen-portrait.png b/res/screen/bada/screen-portrait.png deleted file mode 100644 index 5d6a28a..0000000 Binary files a/res/screen/bada/screen-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/blackberry/screen-225.png ---------------------------------------------------------------------- diff --git a/res/screen/blackberry/screen-225.png b/res/screen/blackberry/screen-225.png deleted file mode 100644 index 29873e9..0000000 Binary files a/res/screen/blackberry/screen-225.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/blackberry10/splash-1280x768.png ---------------------------------------------------------------------- diff --git a/res/screen/blackberry10/splash-1280x768.png b/res/screen/blackberry10/splash-1280x768.png deleted file mode 100644 index 5f4bca9..0000000 Binary files a/res/screen/blackberry10/splash-1280x768.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/blackberry10/splash-720x720.png ---------------------------------------------------------------------- diff --git a/res/screen/blackberry10/splash-720x720.png b/res/screen/blackberry10/splash-720x720.png deleted file mode 100644 index fe1756f..0000000 Binary files a/res/screen/blackberry10/splash-720x720.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/blackberry10/splash-768x1280.png ---------------------------------------------------------------------- diff --git a/res/screen/blackberry10/splash-768x1280.png b/res/screen/blackberry10/splash-768x1280.png deleted file mode 100644 index 0fb9c1b..0000000 Binary files a/res/screen/blackberry10/splash-768x1280.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-ipad-landscape-2x.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-ipad-landscape-2x.png b/res/screen/ios/screen-ipad-landscape-2x.png deleted file mode 100644 index 0b50ed7..0000000 Binary files a/res/screen/ios/screen-ipad-landscape-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-ipad-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-ipad-landscape.png b/res/screen/ios/screen-ipad-landscape.png deleted file mode 100644 index b2f6019..0000000 Binary files a/res/screen/ios/screen-ipad-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-ipad-portrait-2x.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-ipad-portrait-2x.png b/res/screen/ios/screen-ipad-portrait-2x.png deleted file mode 100644 index cdac6a7..0000000 Binary files a/res/screen/ios/screen-ipad-portrait-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-ipad-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-ipad-portrait.png b/res/screen/ios/screen-ipad-portrait.png deleted file mode 100644 index 7f1792c..0000000 Binary files a/res/screen/ios/screen-ipad-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-iphone-landscape-2x.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-iphone-landscape-2x.png b/res/screen/ios/screen-iphone-landscape-2x.png deleted file mode 100644 index 0165669..0000000 Binary files a/res/screen/ios/screen-iphone-landscape-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-iphone-landscape.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-iphone-landscape.png b/res/screen/ios/screen-iphone-landscape.png deleted file mode 100644 index d154883..0000000 Binary files a/res/screen/ios/screen-iphone-landscape.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-iphone-portrait-2x.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-iphone-portrait-2x.png b/res/screen/ios/screen-iphone-portrait-2x.png deleted file mode 100644 index bd24886..0000000 Binary files a/res/screen/ios/screen-iphone-portrait-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-iphone-portrait-568h-2x.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-iphone-portrait-568h-2x.png b/res/screen/ios/screen-iphone-portrait-568h-2x.png deleted file mode 100644 index 10ed683..0000000 Binary files a/res/screen/ios/screen-iphone-portrait-568h-2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/ios/screen-iphone-portrait.png ---------------------------------------------------------------------- diff --git a/res/screen/ios/screen-iphone-portrait.png b/res/screen/ios/screen-iphone-portrait.png deleted file mode 100644 index 6fcba56..0000000 Binary files a/res/screen/ios/screen-iphone-portrait.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/tizen/README.md ---------------------------------------------------------------------- diff --git a/res/screen/tizen/README.md b/res/screen/tizen/README.md deleted file mode 100644 index 82c3f21..0000000 --- a/res/screen/tizen/README.md +++ /dev/null @@ -1,24 +0,0 @@ -<!-- -# -# 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. -# ---> - -# Tizen Splash Screen - -Splash screens are unsupported on the Tizen platform. http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/webos/screen-64.png ---------------------------------------------------------------------- diff --git a/res/screen/webos/screen-64.png b/res/screen/webos/screen-64.png deleted file mode 100644 index 03b3849..0000000 Binary files a/res/screen/webos/screen-64.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/res/screen/windows-phone/screen-portrait.jpg ---------------------------------------------------------------------- diff --git a/res/screen/windows-phone/screen-portrait.jpg b/res/screen/windows-phone/screen-portrait.jpg deleted file mode 100644 index 479d3e4..0000000 Binary files a/res/screen/windows-phone/screen-portrait.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/.gitignore ---------------------------------------------------------------------- diff --git a/template_src/.gitignore b/template_src/.gitignore new file mode 100644 index 0000000..fd29596 --- /dev/null +++ b/template_src/.gitignore @@ -0,0 +1,2 @@ +# OS X +.DS_Store http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/config.xml ---------------------------------------------------------------------- diff --git a/template_src/config.xml b/template_src/config.xml new file mode 100644 index 0000000..ad14b62 --- /dev/null +++ b/template_src/config.xml @@ -0,0 +1,45 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- + 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. +--> +<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> + <name>HelloCordova</name> + <description> + A sample Apache Cordova application that responds to the deviceready event. + </description> + <author email="[email protected]" href="http://cordova.io"> + Apache Cordova Team + </author> + <content src="index.html" /> + <!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html --> + <plugin name="cordova-plugin-whitelist" spec="1" /> + <access origin="*" /> + <allow-intent href="http://*/*" /> + <allow-intent href="https://*/*" /> + <allow-intent href="tel:*" /> + <allow-intent href="sms:*" /> + <allow-intent href="mailto:*" /> + <allow-intent href="geo:*" /> + <platform name="android"> + <allow-intent href="market:*" /> + </platform> + <platform name="ios"> + <allow-intent href="itms:*" /> + <allow-intent href="itms-apps:*" /> + </platform> +</widget> http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/hooks/README.md ---------------------------------------------------------------------- diff --git a/template_src/hooks/README.md b/template_src/hooks/README.md new file mode 100644 index 0000000..574ad4c --- /dev/null +++ b/template_src/hooks/README.md @@ -0,0 +1,23 @@ +<!-- +# +# 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 + +Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide. http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/README.md ---------------------------------------------------------------------- diff --git a/template_src/res/README.md b/template_src/res/README.md new file mode 100644 index 0000000..bffb33b --- /dev/null +++ b/template_src/res/README.md @@ -0,0 +1,29 @@ +<!-- +# +# 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. +# +--> + +Note that these image resources are not copied into a project when a project +is created with the CLI. Although there are default image resources in a +newly-created project, those come from the platform-specific project template, +which can generally be found in the platform's `template` directory. Until +icon and splashscreen support is added to the CLI, these image resources +aren't used directly. + +See https://issues.apache.org/jira/browse/CB-5145 http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/android/icon-36-ldpi.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/android/icon-36-ldpi.png b/template_src/res/icon/android/icon-36-ldpi.png new file mode 100644 index 0000000..cd5032a Binary files /dev/null and b/template_src/res/icon/android/icon-36-ldpi.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/android/icon-48-mdpi.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/android/icon-48-mdpi.png b/template_src/res/icon/android/icon-48-mdpi.png new file mode 100644 index 0000000..e79c606 Binary files /dev/null and b/template_src/res/icon/android/icon-48-mdpi.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/android/icon-72-hdpi.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/android/icon-72-hdpi.png b/template_src/res/icon/android/icon-72-hdpi.png new file mode 100644 index 0000000..4d27634 Binary files /dev/null and b/template_src/res/icon/android/icon-72-hdpi.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/android/icon-96-xhdpi.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/android/icon-96-xhdpi.png b/template_src/res/icon/android/icon-96-xhdpi.png new file mode 100644 index 0000000..ec7ffbf Binary files /dev/null and b/template_src/res/icon/android/icon-96-xhdpi.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/bada-wac/icon-48-type5.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/bada-wac/icon-48-type5.png b/template_src/res/icon/bada-wac/icon-48-type5.png new file mode 100644 index 0000000..8ad8bac Binary files /dev/null and b/template_src/res/icon/bada-wac/icon-48-type5.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/bada-wac/icon-50-type3.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/bada-wac/icon-50-type3.png b/template_src/res/icon/bada-wac/icon-50-type3.png new file mode 100644 index 0000000..c6ddf84 Binary files /dev/null and b/template_src/res/icon/bada-wac/icon-50-type3.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/bada-wac/icon-80-type4.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/bada-wac/icon-80-type4.png b/template_src/res/icon/bada-wac/icon-80-type4.png new file mode 100644 index 0000000..f86a27a Binary files /dev/null and b/template_src/res/icon/bada-wac/icon-80-type4.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/bada/icon-128.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/bada/icon-128.png b/template_src/res/icon/bada/icon-128.png new file mode 100644 index 0000000..3516df3 Binary files /dev/null and b/template_src/res/icon/bada/icon-128.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/blackberry/icon-80.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/blackberry/icon-80.png b/template_src/res/icon/blackberry/icon-80.png new file mode 100644 index 0000000..f86a27a Binary files /dev/null and b/template_src/res/icon/blackberry/icon-80.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/blackberry10/icon-80.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/blackberry10/icon-80.png b/template_src/res/icon/blackberry10/icon-80.png new file mode 100644 index 0000000..f86a27a Binary files /dev/null and b/template_src/res/icon/blackberry10/icon-80.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/ios/icon-57-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/ios/icon-57-2x.png b/template_src/res/icon/ios/icon-57-2x.png new file mode 100644 index 0000000..efd9c37 Binary files /dev/null and b/template_src/res/icon/ios/icon-57-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/ios/icon-57.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/ios/icon-57.png b/template_src/res/icon/ios/icon-57.png new file mode 100644 index 0000000..c795fc4 Binary files /dev/null and b/template_src/res/icon/ios/icon-57.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/ios/icon-72-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/ios/icon-72-2x.png b/template_src/res/icon/ios/icon-72-2x.png new file mode 100644 index 0000000..dd819da Binary files /dev/null and b/template_src/res/icon/ios/icon-72-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/ios/icon-72.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/ios/icon-72.png b/template_src/res/icon/ios/icon-72.png new file mode 100644 index 0000000..b1cfde7 Binary files /dev/null and b/template_src/res/icon/ios/icon-72.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/tizen/icon-128.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/tizen/icon-128.png b/template_src/res/icon/tizen/icon-128.png new file mode 100644 index 0000000..3516df3 Binary files /dev/null and b/template_src/res/icon/tizen/icon-128.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/webos/icon-64.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/webos/icon-64.png b/template_src/res/icon/webos/icon-64.png new file mode 100644 index 0000000..03b3849 Binary files /dev/null and b/template_src/res/icon/webos/icon-64.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/windows-phone/icon-173-tile.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/windows-phone/icon-173-tile.png b/template_src/res/icon/windows-phone/icon-173-tile.png new file mode 100644 index 0000000..4f15e20 Binary files /dev/null and b/template_src/res/icon/windows-phone/icon-173-tile.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/windows-phone/icon-48.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/windows-phone/icon-48.png b/template_src/res/icon/windows-phone/icon-48.png new file mode 100644 index 0000000..8ad8bac Binary files /dev/null and b/template_src/res/icon/windows-phone/icon-48.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/icon/windows-phone/icon-62-tile.png ---------------------------------------------------------------------- diff --git a/template_src/res/icon/windows-phone/icon-62-tile.png b/template_src/res/icon/windows-phone/icon-62-tile.png new file mode 100644 index 0000000..aab6061 Binary files /dev/null and b/template_src/res/icon/windows-phone/icon-62-tile.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-hdpi-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-hdpi-landscape.png b/template_src/res/screen/android/screen-hdpi-landscape.png new file mode 100644 index 0000000..a61e2b1 Binary files /dev/null and b/template_src/res/screen/android/screen-hdpi-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-hdpi-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-hdpi-portrait.png b/template_src/res/screen/android/screen-hdpi-portrait.png new file mode 100644 index 0000000..5d6a28a Binary files /dev/null and b/template_src/res/screen/android/screen-hdpi-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-ldpi-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-ldpi-landscape.png b/template_src/res/screen/android/screen-ldpi-landscape.png new file mode 100644 index 0000000..f3934cd Binary files /dev/null and b/template_src/res/screen/android/screen-ldpi-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-ldpi-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-ldpi-portrait.png b/template_src/res/screen/android/screen-ldpi-portrait.png new file mode 100644 index 0000000..65ad163 Binary files /dev/null and b/template_src/res/screen/android/screen-ldpi-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-mdpi-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-mdpi-landscape.png b/template_src/res/screen/android/screen-mdpi-landscape.png new file mode 100644 index 0000000..a1b697c Binary files /dev/null and b/template_src/res/screen/android/screen-mdpi-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-mdpi-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-mdpi-portrait.png b/template_src/res/screen/android/screen-mdpi-portrait.png new file mode 100644 index 0000000..ea15693 Binary files /dev/null and b/template_src/res/screen/android/screen-mdpi-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-xhdpi-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-xhdpi-landscape.png b/template_src/res/screen/android/screen-xhdpi-landscape.png new file mode 100644 index 0000000..79f2f09 Binary files /dev/null and b/template_src/res/screen/android/screen-xhdpi-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/android/screen-xhdpi-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/android/screen-xhdpi-portrait.png b/template_src/res/screen/android/screen-xhdpi-portrait.png new file mode 100644 index 0000000..c2e8042 Binary files /dev/null and b/template_src/res/screen/android/screen-xhdpi-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/bada-wac/screen-type3.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/bada-wac/screen-type3.png b/template_src/res/screen/bada-wac/screen-type3.png new file mode 100755 index 0000000..ea15693 Binary files /dev/null and b/template_src/res/screen/bada-wac/screen-type3.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/bada-wac/screen-type4.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/bada-wac/screen-type4.png b/template_src/res/screen/bada-wac/screen-type4.png new file mode 100755 index 0000000..5d6a28a Binary files /dev/null and b/template_src/res/screen/bada-wac/screen-type4.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/bada-wac/screen-type5.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/bada-wac/screen-type5.png b/template_src/res/screen/bada-wac/screen-type5.png new file mode 100755 index 0000000..bd64f76 Binary files /dev/null and b/template_src/res/screen/bada-wac/screen-type5.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/bada/screen-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/bada/screen-portrait.png b/template_src/res/screen/bada/screen-portrait.png new file mode 100644 index 0000000..5d6a28a Binary files /dev/null and b/template_src/res/screen/bada/screen-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/blackberry/screen-225.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/blackberry/screen-225.png b/template_src/res/screen/blackberry/screen-225.png new file mode 100644 index 0000000..29873e9 Binary files /dev/null and b/template_src/res/screen/blackberry/screen-225.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/blackberry10/splash-1280x768.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/blackberry10/splash-1280x768.png b/template_src/res/screen/blackberry10/splash-1280x768.png new file mode 100644 index 0000000..5f4bca9 Binary files /dev/null and b/template_src/res/screen/blackberry10/splash-1280x768.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/blackberry10/splash-720x720.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/blackberry10/splash-720x720.png b/template_src/res/screen/blackberry10/splash-720x720.png new file mode 100644 index 0000000..fe1756f Binary files /dev/null and b/template_src/res/screen/blackberry10/splash-720x720.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/blackberry10/splash-768x1280.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/blackberry10/splash-768x1280.png b/template_src/res/screen/blackberry10/splash-768x1280.png new file mode 100644 index 0000000..0fb9c1b Binary files /dev/null and b/template_src/res/screen/blackberry10/splash-768x1280.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-ipad-landscape-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-ipad-landscape-2x.png b/template_src/res/screen/ios/screen-ipad-landscape-2x.png new file mode 100644 index 0000000..0b50ed7 Binary files /dev/null and b/template_src/res/screen/ios/screen-ipad-landscape-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-ipad-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-ipad-landscape.png b/template_src/res/screen/ios/screen-ipad-landscape.png new file mode 100644 index 0000000..b2f6019 Binary files /dev/null and b/template_src/res/screen/ios/screen-ipad-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-ipad-portrait-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-ipad-portrait-2x.png b/template_src/res/screen/ios/screen-ipad-portrait-2x.png new file mode 100644 index 0000000..cdac6a7 Binary files /dev/null and b/template_src/res/screen/ios/screen-ipad-portrait-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-ipad-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-ipad-portrait.png b/template_src/res/screen/ios/screen-ipad-portrait.png new file mode 100644 index 0000000..7f1792c Binary files /dev/null and b/template_src/res/screen/ios/screen-ipad-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-iphone-landscape-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-iphone-landscape-2x.png b/template_src/res/screen/ios/screen-iphone-landscape-2x.png new file mode 100644 index 0000000..0165669 Binary files /dev/null and b/template_src/res/screen/ios/screen-iphone-landscape-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-iphone-landscape.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-iphone-landscape.png b/template_src/res/screen/ios/screen-iphone-landscape.png new file mode 100644 index 0000000..d154883 Binary files /dev/null and b/template_src/res/screen/ios/screen-iphone-landscape.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-iphone-portrait-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-iphone-portrait-2x.png b/template_src/res/screen/ios/screen-iphone-portrait-2x.png new file mode 100644 index 0000000..bd24886 Binary files /dev/null and b/template_src/res/screen/ios/screen-iphone-portrait-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png b/template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png new file mode 100644 index 0000000..10ed683 Binary files /dev/null and b/template_src/res/screen/ios/screen-iphone-portrait-568h-2x.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/ios/screen-iphone-portrait.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/ios/screen-iphone-portrait.png b/template_src/res/screen/ios/screen-iphone-portrait.png new file mode 100644 index 0000000..6fcba56 Binary files /dev/null and b/template_src/res/screen/ios/screen-iphone-portrait.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/tizen/README.md ---------------------------------------------------------------------- diff --git a/template_src/res/screen/tizen/README.md b/template_src/res/screen/tizen/README.md new file mode 100644 index 0000000..82c3f21 --- /dev/null +++ b/template_src/res/screen/tizen/README.md @@ -0,0 +1,24 @@ +<!-- +# +# 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. +# +--> + +# Tizen Splash Screen + +Splash screens are unsupported on the Tizen platform. http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/webos/screen-64.png ---------------------------------------------------------------------- diff --git a/template_src/res/screen/webos/screen-64.png b/template_src/res/screen/webos/screen-64.png new file mode 100644 index 0000000..03b3849 Binary files /dev/null and b/template_src/res/screen/webos/screen-64.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/res/screen/windows-phone/screen-portrait.jpg ---------------------------------------------------------------------- diff --git a/template_src/res/screen/windows-phone/screen-portrait.jpg b/template_src/res/screen/windows-phone/screen-portrait.jpg new file mode 100644 index 0000000..479d3e4 Binary files /dev/null and b/template_src/res/screen/windows-phone/screen-portrait.jpg differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/www/css/index.css ---------------------------------------------------------------------- diff --git a/template_src/www/css/index.css b/template_src/www/css/index.css new file mode 100644 index 0000000..51daa79 --- /dev/null +++ b/template_src/www/css/index.css @@ -0,0 +1,115 @@ +/* + * 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. + */ +* { + -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ +} + +body { + -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ + -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ + -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ + background-color:#E4E4E4; + background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-webkit-gradient( + linear, + left top, + left bottom, + color-stop(0, #A7A7A7), + color-stop(0.51, #E4E4E4) + ); + background-attachment:fixed; + font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; + font-size:12px; + height:100%; + margin:0px; + padding:0px; + text-transform:uppercase; + width:100%; +} + +/* Portrait layout (default) */ +.app { + background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ + position:absolute; /* position in the center of the screen */ + left:50%; + top:50%; + height:50px; /* text area height */ + width:225px; /* text area width */ + text-align:center; + padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ + margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ + /* offset horizontal: half of text area width */ +} + +/* Landscape layout (with min-width) */ +@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { + .app { + background-position:left center; + padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ + margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ + /* offset horizontal: half of image width and text area width */ + } +} + +h1 { + font-size:24px; + font-weight:normal; + margin:0px; + overflow:visible; + padding:0px; + text-align:center; +} + +.event { + border-radius:4px; + -webkit-border-radius:4px; + color:#FFFFFF; + font-size:12px; + margin:0px 30px; + padding:2px 0px; +} + +.event.listening { + background-color:#333333; + display:block; +} + +.event.received { + background-color:#4B946A; + display:none; +} + +@keyframes fade { + from { opacity: 1.0; } + 50% { opacity: 0.4; } + to { opacity: 1.0; } +} + +@-webkit-keyframes fade { + from { opacity: 1.0; } + 50% { opacity: 0.4; } + to { opacity: 1.0; } +} + +.blink { + animation:fade 3000ms infinite; + -webkit-animation:fade 3000ms infinite; +} http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/www/img/logo.png ---------------------------------------------------------------------- diff --git a/template_src/www/img/logo.png b/template_src/www/img/logo.png new file mode 100644 index 0000000..9519e7d Binary files /dev/null and b/template_src/www/img/logo.png differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/www/index.html ---------------------------------------------------------------------- diff --git a/template_src/www/index.html b/template_src/www/index.html new file mode 100644 index 0000000..646f9cb --- /dev/null +++ b/template_src/www/index.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<!-- + 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. +--> +<html> + <head> + <!-- + Customize this policy to fit your own app's needs. For more guidance, see: + https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy + Some notes: + * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication + * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly + * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this: + * Enable inline JS: add 'unsafe-inline' to default-src + --> + <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> + <meta name="format-detection" content="telephone=no"> + <meta name="msapplication-tap-highlight" content="no"> + <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> + <link rel="stylesheet" type="text/css" href="css/index.css"> + <title>Hello World</title> + </head> + <body> + <div class="app"> + <h1>Apache Cordova</h1> + <div id="deviceready" class="blink"> + <p class="event listening">Connecting to Device</p> + <p class="event received">Device is Ready</p> + </div> + </div> + <script type="text/javascript" src="cordova.js"></script> + <script type="text/javascript" src="js/index.js"></script> + </body> +</html> http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/template_src/www/js/index.js ---------------------------------------------------------------------- diff --git a/template_src/www/js/index.js b/template_src/www/js/index.js new file mode 100644 index 0000000..6963dc9 --- /dev/null +++ b/template_src/www/js/index.js @@ -0,0 +1,46 @@ +/* + * 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. + */ +var app = { + // Application Constructor + initialize: function() { + document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); + }, + + // deviceready Event Handler + // + // Bind any cordova events here. Common events are: + // 'pause', 'resume', etc. + onDeviceReady: function() { + this.receivedEvent('deviceready'); + }, + + // Update DOM on a Received Event + receivedEvent: function(id) { + var parentElement = document.getElementById(id); + var listeningElement = parentElement.querySelector('.listening'); + var receivedElement = parentElement.querySelector('.received'); + + listeningElement.setAttribute('style', 'display:none;'); + receivedElement.setAttribute('style', 'display:block;'); + + console.log('Received Event: ' + id); + } +}; + +app.initialize(); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/www/css/index.css ---------------------------------------------------------------------- diff --git a/www/css/index.css b/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/www/css/index.css +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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. - */ -* { - -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ -} - -body { - -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ - -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ - -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ - background-color:#E4E4E4; - background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-webkit-gradient( - linear, - left top, - left bottom, - color-stop(0, #A7A7A7), - color-stop(0.51, #E4E4E4) - ); - background-attachment:fixed; - font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; - font-size:12px; - height:100%; - margin:0px; - padding:0px; - text-transform:uppercase; - width:100%; -} - -/* Portrait layout (default) */ -.app { - background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ - position:absolute; /* position in the center of the screen */ - left:50%; - top:50%; - height:50px; /* text area height */ - width:225px; /* text area width */ - text-align:center; - padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ - margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ - /* offset horizontal: half of text area width */ -} - -/* Landscape layout (with min-width) */ -@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { - .app { - background-position:left center; - padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ - margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ - /* offset horizontal: half of image width and text area width */ - } -} - -h1 { - font-size:24px; - font-weight:normal; - margin:0px; - overflow:visible; - padding:0px; - text-align:center; -} - -.event { - border-radius:4px; - -webkit-border-radius:4px; - color:#FFFFFF; - font-size:12px; - margin:0px 30px; - padding:2px 0px; -} - -.event.listening { - background-color:#333333; - display:block; -} - -.event.received { - background-color:#4B946A; - display:none; -} - -@keyframes fade { - from { opacity: 1.0; } - 50% { opacity: 0.4; } - to { opacity: 1.0; } -} - -@-webkit-keyframes fade { - from { opacity: 1.0; } - 50% { opacity: 0.4; } - to { opacity: 1.0; } -} - -.blink { - animation:fade 3000ms infinite; - -webkit-animation:fade 3000ms infinite; -} http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/www/img/logo.png ---------------------------------------------------------------------- diff --git a/www/img/logo.png b/www/img/logo.png deleted file mode 100644 index 9519e7d..0000000 Binary files a/www/img/logo.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/www/index.html ---------------------------------------------------------------------- diff --git a/www/index.html b/www/index.html deleted file mode 100644 index 646f9cb..0000000 --- a/www/index.html +++ /dev/null @@ -1,49 +0,0 @@ -<!DOCTYPE html> -<!-- - 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. ---> -<html> - <head> - <!-- - Customize this policy to fit your own app's needs. For more guidance, see: - https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy - Some notes: - * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication - * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly - * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this: - * Enable inline JS: add 'unsafe-inline' to default-src - --> - <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> - <meta name="format-detection" content="telephone=no"> - <meta name="msapplication-tap-highlight" content="no"> - <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> - <link rel="stylesheet" type="text/css" href="css/index.css"> - <title>Hello World</title> - </head> - <body> - <div class="app"> - <h1>Apache Cordova</h1> - <div id="deviceready" class="blink"> - <p class="event listening">Connecting to Device</p> - <p class="event received">Device is Ready</p> - </div> - </div> - <script type="text/javascript" src="cordova.js"></script> - <script type="text/javascript" src="js/index.js"></script> - </body> -</html> http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/27919ad0/www/js/index.js ---------------------------------------------------------------------- diff --git a/www/js/index.js b/www/js/index.js deleted file mode 100644 index 6963dc9..0000000 --- a/www/js/index.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ -var app = { - // Application Constructor - initialize: function() { - document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); - }, - - // deviceready Event Handler - // - // Bind any cordova events here. Common events are: - // 'pause', 'resume', etc. - onDeviceReady: function() { - this.receivedEvent('deviceready'); - }, - - // Update DOM on a Received Event - receivedEvent: function(id) { - var parentElement = document.getElementById(id); - var listeningElement = parentElement.querySelector('.listening'); - var receivedElement = parentElement.querySelector('.received'); - - listeningElement.setAttribute('style', 'display:none;'); - receivedElement.setAttribute('style', 'display:block;'); - - console.log('Received Event: ' + id); - } -}; - -app.initialize(); \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
