Skip to content

Commit

Permalink
First round of fixes for the list of installed apps #138
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKinlan committed Dec 30, 2011
1 parent 123ea00 commit fb59acc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RELEASE := $(shell cat ./src/release.js)
DEBUG := $(shell cat ./src/debug.js)

all: server/webintents/cache.manifest.src production
all: server/webintents/static/cache.manifest production

release: ./src/webintents.js ./src/json2.js ./src/base64.js
cat ./src/webintents.js ./src/json2.js ./src/base64.js | sed 's|// __WEBINTENTS_ROOT|$(RELEASE)|' > webintents.js
Expand All @@ -20,7 +20,7 @@ production: server/webintents/static/cache.manifest release
server/webintents/static/webintents.js:

# Manifest depends on changes to other files, so include them in the dependency chain
server/webintents/static/cache.manifest: server/webintents/cache.manifest.src server/webintents/static/picker.html server/webintents/static/picker.js server/webintents/static/webintents.js server/webintents/static/intents.html server/webintents/static/json2.js server/webintents/static/webintents-server.js server/webintents/static/controller.js server/webintents/static/base64.js
server/webintents/static/cache.manifest: server/webintents/cache.manifest.src server/webintents/static/list.html server/webintents/static/picker.html server/webintents/static/picker.js server/webintents/static/webintents.js server/webintents/static/intents.html server/webintents/static/json2.js server/webintents/static/webintents-server.js server/webintents/static/controller.js server/webintents/static/base64.js
cat server/webintents/cache.manifest.src > server/webintents/static/cache.manifest
echo '#' `date` >> server/webintents/static/cache.manifest

Expand Down
2 changes: 1 addition & 1 deletion server/webintents/static/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var IntentController = new (function() {
this.renderActions = function(actions, intent, root) {
root = root || document.getElementById("actions");
var action;
for(var i = 0; action = actions.actions[i]; i++) {
for(var i = 0; action = actions[i]; i++) {
var actionElement = renderAction(action, intent);
root.appendChild(actionElement);
}
Expand Down
20 changes: 18 additions & 2 deletions server/webintents/static/list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
<!doctype html>
<html>
<html manifest="cache.manifest">
<head>
<title>Installed Intents</title>
<title>Installed Applications</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
<style>
li {
clear:both;
}

li img {
width: 32px;
height: 32px;
}

li span {
display: block;
color: #888;
font-style: italic;
}
</style>
<script src="/webintents-server.js"></script>
<script src="/controller.js"></script>
<script>
Expand Down

0 comments on commit fb59acc

Please sign in to comment.