Permalink
Browse files

Initial skeleton

  • Loading branch information...
0 parents commit cee75287a95d069567306c36c0bcdad40832881f @lmorchard committed Sep 6, 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Komodo Project File - DO NOT EDIT -->
+<project id="C7625D4E-E3EE-4E85-991D-B241498CD0B9" kpf_version="4" name="FlickrUploader.kpf">
+<preference-set idref="C7625D4E-E3EE-4E85-991D-B241498CD0B9">
+ <boolean id="import_live">1</boolean>
+</preference-set>
+</project>
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2009 Leslie Michael Orchard
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,91 @@
+###########################################################################
+# Makefile for automating various webOS SDK development tasks
+# l.m.orchard@pobox.com
+# http://decafbad.com
+#
+# Example targets:
+# make jslint
+# make jsdoc
+# make update
+# make tests
+# TARGET=device make update
+# TARGET=device make tests
+#
+# TODO: Get Palm Inspector kill / launch working on Linux?
+#
+###########################################################################
+
+APPID=$(shell grep '"id"' src/appinfo.json | cut -d: -f2 | cut -d'"' -f2)
+VERSION=$(shell grep '"version"' src/appinfo.json | cut -d: -f2 | cut -d'"' -f2)
+OS=$(shell uname -s)
+IPK=bin/$(APPID)_$(VERSION)_all.ipk
+
+ifeq ($(TARGET),device)
+ NOVACOM_ID=$(shell novacom -l | grep castle-linux | head -1 | cut -d' ' -f2)
+ DEVICE=usb
+ UPDATE_TARGETS=remove launch tail-log
+ TESTS_TARGETS=launch-tests
+else
+ NOVACOM_ID=$(shell novacom -l | grep emulator | head -1 | cut -d' ' -f2)
+ DEVICE=tcp
+ UPDATE_TARGETS=kill-inspector remove restart launch launch-inspector tail-log
+ TESTS_TARGETS=launch-tests tail-log
+endif
+
+all: update
+
+docs: FORCE
+ jsdoc -c=docs/jsdoc-toolkit.conf
+
+lint: FORCE
+ for fn in `find src -type f -not -path '*/vendor/*' -name '*js'`; do \
+ echo '----------------------------------------'; \
+ echo $$fn; \
+ cat $$fn | jslint; \
+ done;
+
+FORCE:
+
+package:
+ palm-package -o bin src
+
+tests: $(TESTS_TARGETS)
+
+update: $(UPDATE_TARGETS)
+
+tail-log:
+ echo '----------------------------------------'; echo; \
+ echo 'tail -f /var/log/messages | grep $(APPID)' | novacom -d $(NOVACOM_ID) open tty://
+
+kill:
+ -palm-launch -d $(DEVICE) -c $(APPID)
+
+remove: kill
+ -palm-install -d $(DEVICE) -r $(APPID)
+
+restart:
+ echo 'killall LunaSysMgr; exit' | novacom -d $(NOVACOM_ID) open tty://;
+ sleep 3;
+
+reboot:
+ echo 'reboot; exit' | novacom -d $(NOVACOM_ID) open tty://
+
+install: package
+ palm-install -d $(DEVICE) $(IPK)
+
+launch: install
+ palm-launch -d $(DEVICE) -i $(APPID)
+
+launch-tests: install
+ palm-launch -p "{ testsEnabled:true, runTestsAtLaunch:true }" -d $(DEVICE) $(APPID)
+
+kill-inspector:
+ifeq ($(OS),Darwin)
+ -ps x | grep -i 'palm inspector' | grep -v 'grep' | cut -c1-6 | xargs kill
+endif
+
+launch-inspector:
+ifeq ($(OS),Darwin)
+ sleep 3;
+ open -g -a Palm\ Inspector;
+endif
No changes.
No changes.
No changes.
@@ -0,0 +1,5 @@
+function StageAssistant() {
+}
+
+StageAssistant.prototype.setup = function() {
+}
@@ -0,0 +1,14 @@
+{
+ "id":"com.decafbad.flickr-uploadr",
+ "version":"0.0.1",
+ "title":"Flickr Uploader",
+ "vendor":"DECAFBAD",
+ "vendorurl":"http://decafbad.com/",
+ "main":"index.html",
+ "icon":"icon.png",
+ "miniicon":"miniicon.png",
+ "type":"web",
+ "theme":"light",
+ "noWindow":false,
+ "noDeprecatedStyles":true
+}
@@ -0,0 +1,7 @@
+{
+ "logLevel":20,
+ "timingEnabled":true,
+ "logEvents":true,
+ "debuggingEnabled":true,
+ "escapeHTMLInTemplates":true
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <title>Flickr Uploader</title>
+ <script src="/usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1" />
+
+ <!-- application stylesheet should come in after the one loaded by the framework -->
+ <link href="stylesheets/flickruploader.css" media="screen" rel="stylesheet" type="text/css" />
+</head>
+<body>
+ <h2>This text verifies your application is running.</h2>
+ <p>
+ To create a fully functional Palm application create a scene and remove this text from index.html.
+ See the documentation on Palm Applications for more information on creating applications and scenes.
+ </p>
+</body>
+</html>
@@ -0,0 +1,5 @@
+[
+ {
+ "source": "app\/assistants\/stage-assistant.js"
+ }
+]
@@ -0,0 +1 @@
+/* Put Application specific CSS here. */

0 comments on commit cee7528

Please sign in to comment.