Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
597 additions
and
4,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
.DS_Store | ||
*.pid | ||
*.bpkg | ||
webintents.js | ||
webintents.debug.js | ||
webintents.min.js | ||
tools/chrome/extensions/share/webintents.js | ||
examples/lib/webintents* | ||
widgets/lib/webintents* | ||
server/lib/webintents* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
RELEASE := $(shell cat ./src/release.js) | ||
DEBUG := $(shell cat ./src/debug.js) | ||
|
||
all: webintents.js webintents.min.js server/cache.manifest webintents.debug.js examples tools | ||
all: server/cache.manifest production | ||
|
||
examples: examples/lib/webintents.js examples/lib/webintents.debug.js examples/lib/webintents.min.js | ||
|
||
tools: tools/chrome/extensions/share/webintents.js | ||
|
||
examples/lib/webintents.js: webintents.js | ||
ln -f webintents.js examples/lib/webintents.js | ||
|
||
examples/lib/webintents.debug.js: webintents.debug.js | ||
ln -f webintents.debug.js examples/lib/webintents.debug.js | ||
|
||
examples/lib/webintents.min.js: webintents.min.js | ||
ln -f webintents.min.js examples/lib/webintents.min.js | ||
|
||
webintents.js: ./src/release.js ./src/webintents.js ./src/json2.js ./src/base64.js | ||
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 | ||
cp webintents.js server/webintents.js | ||
cp webintents.js widgets/lib/webintents.js | ||
cp webintents.js examples/lib/webintents.js | ||
cp webintents.js tools/chrome/extensions/share/webintents.js | ||
|
||
webintents.debug.js: ./src/webintents.js ./src/debug.js ./src/json2.js ./src/base64.js | ||
cat ./src/webintents.js ./src/json2.js ./src/base64.js | sed 's|// __WEBINTENTS_ROOT|$(DEBUG)|' > webintents.debug.js | ||
debug: ./src/webintents.js ./src/debug.js ./src/json2.js ./src/base64.js | ||
cat ./src/debug.js ./src/webintents.js ./src/json2.js ./src/base64.js | sed 's|// __WEBINTENTS_ROOT|$(DEBUG)|' | sed 's|//DEBUG(|DEBUG(|' > webintents.js | ||
cp webintents.js server/webintents.js | ||
cp webintents.js widgets/lib/webintents.js | ||
cp webintents.js examples/lib/webintents.js | ||
cp webintents.js tools/chrome/extensions/share/webintents.js | ||
|
||
webintents.min.js: webintents.js | ||
uglifyJs $^ > $@ | ||
production: release | ||
uglifyjs webintents.js > server/webintents.min.js | ||
|
||
tools/chrome/extensions/share/webintents.js: webintents.js | ||
ln -f webintents.js tools/chrome/extensions/share/webintents.js | ||
server/webintents.js: | ||
|
||
# Manifest depends on changes to other files, so include them in the dependency chain | ||
server/cache.manifest: server/cache.manifest.src server/picker.html server/script/picker.js server/webintents.js server/intents.html server/script/json2.js server/script/webintents-server.js server/webintents.min.js server/webintents.debug.js server/script/controller.js server/script/base64.js | ||
server/cache.manifest: server/cache.manifest.src server/picker.html server/script/picker.js server/webintents.js server/intents.html server/script/json2.js server/script/webintents-server.js server/script/controller.js server/script/base64.js | ||
cat server/cache.manifest.src >> server/cache.manifest | ||
echo '#' `date` >> server/cache.manifest | ||
|
||
server/webintents.js: webintents.js | ||
ln -f webintents.js server/webintents.js | ||
|
||
server/webintents.debug.js: webintents.debug.js | ||
ln -f webintents.debug.js server/webintents.debug.js | ||
|
||
server/webintents.min.js: webintents.min.js | ||
ln -f webintents.min.js server/webintents.min.js | ||
|
||
clean: webintents.js webintents.min.js webintents.debug.js server/cache.manifest examples/lib/webintents.debug.js examples/lib/webintents.min.js examples/lib/webintents.js server/webintents.js server/webintents.min.js server/webintents.debug.js | ||
rm $^ | ||
clean: | ||
rm -f webintents.js | ||
rm -f server/cache.manifest | ||
rm -f server/webintents.js | ||
rm -f server/webintents.min.js | ||
rm -f examples/lib/webintents.js | ||
rm -f widgets/lib/webintents.js | ||
rm -f tools/chrome/extensions/share/webintents.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
body { | ||
} | ||
|
||
h1 { | ||
margin-top: 10px; | ||
font-size: 3em; | ||
margin-bottom: 15px; | ||
} | ||
|
||
a { | ||
color: #1465A3; | ||
} | ||
|
||
nav.sub a:active { | ||
background-color: red; | ||
} | ||
|
||
h2 { | ||
font-size: 2em; | ||
margin-bottom: 15px; | ||
margin-top: 25px; | ||
} | ||
|
||
h3 { | ||
font-size: 1.6em; | ||
margin-bottom: 15px; | ||
margin-top: 15px; | ||
} | ||
|
||
dl { | ||
line-height: 20px; | ||
} | ||
|
||
p { | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
line-height: 20px; | ||
} | ||
|
||
pre { | ||
padding: 5px; | ||
font-family: Courier New; | ||
background-color: #eee; | ||
border: solid 1px #ccc; | ||
line-height: 20px; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
dt { | ||
font-weight: 700; | ||
} | ||
|
||
dd { | ||
padding-left: 10px; | ||
} | ||
|
||
ul { | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
|
||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
ul li { | ||
margin-bottom: 3px; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,51 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="/css/reset.css" /> | ||
<link rel="stylesheet" href="/css/base.css" /> | ||
<script src="/lib/webintents.js"></script> | ||
<title>Intent: Discover</title> | ||
<intent | ||
action="http://webintents.org/discover" | ||
type="application/JSON" | ||
href="discover.html" | ||
title="Webintents.org's APIs" | ||
/> | ||
<style> | ||
body { | ||
height: 100%; | ||
} | ||
|
||
iframe { | ||
width: 45%; | ||
height: 80%; | ||
width: 100%; | ||
height: 800px; | ||
} | ||
|
||
#register { | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h2>This is an example app that lets the user discover services that other API's offer</h2> | ||
<iframe src="register.html"></iframe> | ||
<iframe src="action.html"></iframe> | ||
<header> | ||
<h1>Discover intent example</h1> | ||
<nav> | ||
<a href="http://webintents.org/">Web Intents</a> | ||
<a href="http://webintents.org/discover">Discover Intent documentation</a> | ||
<a href="http://examples.webintents.org/">Examples</a> | ||
<a href="http://webintents.org/faq.html">FAQ</a> | ||
</nav> | ||
</header> | ||
<section> | ||
<p>This is an example app that lets the user discover services that other | ||
APIs offer</p> | ||
<div> | ||
<div id="register"> | ||
<h2>Discover Intent Registration</h2> | ||
<pre><intent | ||
action="http://webintents.org/discover" | ||
type="application/JSON" | ||
href="discover.html" | ||
title="Example.com's APIs" | ||
/></pre> | ||
</div> | ||
<iframe src="action.html"></iframe> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.