You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/08/23 23:49:09 UTC
[03/14] git commit: removed unnessary files
removed unnessary files
Project: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/commit/29da7f53
Tree: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/tree/29da7f53
Diff: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/diff/29da7f53
Branch: refs/heads/master
Commit: 29da7f53d6a937216e1050d77973cac61d2a57a4
Parents: 63efe5b
Author: Steven Gill <st...@gmail.com>
Authored: Fri Aug 23 14:25:26 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Aug 23 14:25:26 2013 -0700
----------------------------------------------------------------------
Makefile | 26 -
build/install.js | 75 -
framework/css/index.css | 115 -
framework/img/logo.png | Bin 21814 -> 0 bytes
framework/index.html | 47 -
framework/js/index.js | 49 -
framework/manifest.webapp | 28 -
framework/res/icon/webos/icon-64.png | Bin 5463 -> 0 bytes
framework/res/screen/webos/screen-64.png | Bin 5463 -> 0 bytes
framework/style/icons/cordova.png | Bin 19932 -> 0 bytes
framework/style/icons/cordova_48.png | Bin 4111 -> 0 bytes
lib/cordova.firefoxos-debug.js | 129 -
lib/cordova.firefoxos.js | 6090 -------------------------
13 files changed, 6559 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 5481ac5..0000000
--- a/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-# build script for Apache Cordova Firefox OS
-
-PORT_DEVICE = 6000
-PORT_LOCAL = 6000
-XPCSHELL ?= ~/Documents/mozilla/mozilla-central/obj-x86_64-apple-darwin11.4.2/dist/bin/xpcshell
-ADB ?= adb
-FOLDER = framework
-VERSION := $(shell cat VERSION)
-
-
-
-all :: packaged install
-
-copy_js:
- cp lib/cordova.firefoxos.js framework/cordova-$(VERSION).js
-
-package: copy_js
- cd ./${FOLDER} && zip -X ./application.zip ./* -x application.zip
-
-packaged: package
- ${ADB} push ./${FOLDER}/application.zip /data/local/tmp/b2g/${FOLDER}/application.zip
-
-install:
- ${ADB} forward tcp:$(PORT_LOCAL) tcp:$(PORT_DEVICE)
- @echo "Please confirm the remote debugging prompt on the phone!"
- ${XPCSHELL} build/install.js ${FOLDER} $(PORT_LOCAL)
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/build/install.js
----------------------------------------------------------------------
diff --git a/build/install.js b/build/install.js
deleted file mode 100644
index fbc6488..0000000
--- a/build/install.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
-* Load this script in xpcshell and connect...
-*/
-const Cc = Components.classes;
-const Cu = Components.utils;
-
-Cu.import("resource://gre/modules/devtools/dbg-client.jsm");
-
-var gTransport = null;
-var gClient = null;
-var gQuit = false;
-var gId = null;
-
-function connect(aPort, aHost) {
- gTransport = debuggerSocketConnect(aHost ? aHost : "localhost", aPort);
- gTransport.hooks = {
- onClosed: function() {
- print("Connection closed, quitting.");
- gQuit = true;
- }
- };
- gTransport.ready();
-}
-
-try {
- dump("Connecting to install " + arguments[0] + "\n");
- gId = arguments[0];
- let port = arguments[1] || 6000;
-
- connect(port, "localhost");
- gClient = new DebuggerClient(gTransport);
-} catch(ex) {
- dump("Couldn't connect: " + ex + "\n");
- quit(1);
-}
-
-function onWebappsEvent(aState, aType, aPacket) {
- if (aType.error) {
- dump("Error: " + aType.message + "\n");
- } else {
- dump("Success!\n");
- }
-
- gQuit = true;
-}
-
-gClient.connect(function onConnected(aType, aTraits) {
- gClient.listTabs(function(aResponse) {
- if (!aResponse.webappsActor) {
- dump("No webapps remote actor!\n");
- gQuit = true;
- return;
- }
- gClient.addListener("webappsEvent", onWebappsEvent);
- gClient.request({ to: aResponse.webappsActor,
- type: "install",
- appId: gId,
- appType: 1
- },
- function onResponse(aResponse) {
- if (aResponse.error) {
- dump("Failed to install: " + aResponse.message + "\n");
- gQuit = true;
- } else {
- dump("Installation in progress...\n");
- }
- });
- });
-});
-
-let mainThread = Cc["@mozilla.org/thread-manager;1"].getService().mainThread;
-
-while (!gQuit) {
- mainThread.processNextEvent(true);
-}
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/css/index.css
----------------------------------------------------------------------
diff --git a/framework/css/index.css b/framework/css/index.css
deleted file mode 100644
index 51daa79..0000000
--- a/framework/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-firefoxos/blob/29da7f53/framework/img/logo.png
----------------------------------------------------------------------
diff --git a/framework/img/logo.png b/framework/img/logo.png
deleted file mode 100644
index 9519e7d..0000000
Binary files a/framework/img/logo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/index.html
----------------------------------------------------------------------
diff --git a/framework/index.html b/framework/index.html
deleted file mode 100644
index d0a5250..0000000
--- a/framework/index.html
+++ /dev/null
@@ -1,47 +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>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
- <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>
- <button onclick="getOrientation();">Get Orientation</button>
- </div>
- <script type="text/javascript" src="cordova-2.6.0.js"></script>
- <script type="text/javascript" src="js/index.js"></script>
- <script type="text/javascript">
- app.initialize();
-
- function getOrientation() {
- alert(orientation.getCurrentOrientation());
- }
- </script>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/js/index.js
----------------------------------------------------------------------
diff --git a/framework/js/index.js b/framework/js/index.js
deleted file mode 100644
index 31d9064..0000000
--- a/framework/js/index.js
+++ /dev/null
@@ -1,49 +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() {
- this.bindEvents();
- },
- // Bind Event Listeners
- //
- // Bind any events that are required on startup. Common events are:
- // 'load', 'deviceready', 'offline', and 'online'.
- bindEvents: function() {
- document.addEventListener('deviceready', this.onDeviceReady, false);
- },
- // deviceready Event Handler
- //
- // The scope of 'this' is the event. In order to call the 'receivedEvent'
- // function, we must explicity call 'app.receivedEvent(...);'
- onDeviceReady: function() {
- app.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);
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/manifest.webapp
----------------------------------------------------------------------
diff --git a/framework/manifest.webapp b/framework/manifest.webapp
deleted file mode 100644
index b62fd86..0000000
--- a/framework/manifest.webapp
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "Apache Cordova",
- "description": "Apache Cordova",
- "launch_path": "/index.html",
- "orientation": "portrait-primary",
- "fullscreen": true,
- "developer": {
- "name": "Herm Wong",
- "url": "https://github.com/hermwong/incubator-cordova-b2g"
- },
- "permissions": [
- "content-camera",
- "camera"
- ],
- "activities": {
- "record": {
- "filters": {
- "type": "photos"
- },
- "disposition": "window"
- }
- },
- "default_locale": "en-US",
- "icons": {
- "120": "/style/icons/cordova.png",
- "60": "/style/icons/cordova_48.png"
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/res/icon/webos/icon-64.png
----------------------------------------------------------------------
diff --git a/framework/res/icon/webos/icon-64.png b/framework/res/icon/webos/icon-64.png
deleted file mode 100644
index 03b3849..0000000
Binary files a/framework/res/icon/webos/icon-64.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/res/screen/webos/screen-64.png
----------------------------------------------------------------------
diff --git a/framework/res/screen/webos/screen-64.png b/framework/res/screen/webos/screen-64.png
deleted file mode 100644
index 03b3849..0000000
Binary files a/framework/res/screen/webos/screen-64.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/style/icons/cordova.png
----------------------------------------------------------------------
diff --git a/framework/style/icons/cordova.png b/framework/style/icons/cordova.png
deleted file mode 100644
index e8169cf..0000000
Binary files a/framework/style/icons/cordova.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/29da7f53/framework/style/icons/cordova_48.png
----------------------------------------------------------------------
diff --git a/framework/style/icons/cordova_48.png b/framework/style/icons/cordova_48.png
deleted file mode 100644
index 8ad8bac..0000000
Binary files a/framework/style/icons/cordova_48.png and /dev/null differ