Tidy fetch URL

This commit is contained in:
Kai Hendry
2012-08-10 17:46:15 +02:00
parent 3a5bfc5f6a
commit 9594228dd4
3 changed files with 13 additions and 2 deletions

View File

@@ -1,2 +1,4 @@
DirectoryIndex index.shtml index.html DirectoryIndex index.shtml index.html
AddType text/cache-manifest .appcache AddType text/cache-manifest .appcache
RewriteEngine on
RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA]

View File

@@ -17,9 +17,18 @@
* Won't work on protected accounts (duh!) * Won't work on protected accounts (duh!)
* No @mentions or DMs from other accounts * No @mentions or DMs from other accounts
# API
Fetch your tweets manually by accessing the URL:
http://greptweet.com/f/TWITTER_USERNAME
Last 4 tweets:
curl -s http://greptweet/u/webconverger/tweets.txt | head -n4
# TODO # TODO
* Redesign [client to be offline first](http://natalian.org/archives/2012/07/16/navigator.onLine/)
* Nail these [bugs](https://github.com/kaihendry/Greptweet/issues?state=open) * Nail these [bugs](https://github.com/kaihendry/Greptweet/issues?state=open)
# Shell script feedback on the Web works by disabling Apache's mod_deflate ! # Shell script feedback on the Web works by disabling Apache's mod_deflate !

View File

@@ -54,7 +54,7 @@ $(document).ready(function() {
$("input[type=text]").focus(); $("input[type=text]").focus();
footer = '<p><a href="' + NAME + '.txt" class="btn primary"><i class="icon-download"></i> Download</a>'; footer = '<p><a href="' + NAME + '.txt" class="btn primary"><i class="icon-download"></i> Download</a>';
footer += '<a href="' + "/create.cgi?id=" + NAME + '" class="btn"><i class="icon-refresh"></i> Update</a></p>'; footer += '<a href="' + "/f/" + NAME + '" class="btn"><i class="icon-refresh"></i> Update</a></p>';
$("#source").html(footer); $("#source").html(footer);
document.title = "Greptweet " + NAME; document.title = "Greptweet " + NAME;