Commit graph

4680 commits

Author SHA1 Message Date
Joey Hess
ca478b7bcb Focus today was writing a notification broadcaster.
This is a way to send a notification to a set of clients, any of which can be
blocked waiting for a new notification to arrive. A complication is that any
number of clients may be be dead, and we don't want stale notifications for
those clients to pile up and leak memory.

It took me 3 tries to find the solution, which turns out to be simple: An array
of SampleVars, one per client. Using SampleVars means that clients only see the
most recent notification, but when the notification is just "the assistant's
state changed somehow; display a refreshed rendering of it", that's sufficient.
2012-07-28 15:41:49 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkpEY8WTFDhjIVTWG38Ph7ppmuXUTJAHAg
c8cc5cc8da Added a comment: selective sync 2012-07-28 04:08:00 +00:00
Joey Hess
0a66947e3b Merge branch 'master' into assistant 2012-07-27 21:05:34 -04:00
Joey Hess
13e9b275dd initremote: Avoid recording remote's description before checking that its config is valid. 2012-07-27 21:05:27 -04:00
Joey Hess
c0ca6f44ac template reorg 2012-07-27 20:47:48 -04:00
Joey Hess
ecd63e2981 template cleanup
use julius's nice #id and .class things
2012-07-27 20:25:28 -04:00
Joey Hess
7717501fee add alert close buttons 2012-07-27 16:28:00 -04:00
Joey Hess
adae40a292 now the webapp has the same options as the assistant 2012-07-27 15:40:52 -04:00
Joey Hess
02ec8ea012 much better webapp startup of the assistant
This avoids forking another process, avoids polling, fixes a race,
and avoids a rare forkProcess thread hang that I saw once time
when starting the webapp.
2012-07-27 15:33:24 -04:00
http://joeyh.name/
1b8a934e8b Added a comment 2012-07-27 18:55:51 +00:00
http://jasonwoof.com/
e8081ad812 Added a comment: auth token length 2012-07-27 18:52:19 +00:00
Joey Hess
bc5b151617 update to newer version of Bootstrap
This does fix some UI issues I was having.
2012-07-27 14:45:19 -04:00
jtang
3a861a2276 Added a comment 2012-07-27 18:21:17 +00:00
jtang
db0cdee884 Added a comment 2012-07-27 18:17:45 +00:00
http://joeyh.name/
9506aae871 Added a comment 2012-07-27 18:10:06 +00:00
Joey Hess
c93b546ebd remove bogus AI_NUMERICSERV
Not needed, and causes a segfault on OSX when it tries to dereference the
NULL servicename. (Linux handles this case better.)
2012-07-27 14:06:06 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
faaf0e7990 Added a comment 2012-07-27 17:23:24 +00:00
http://joeyh.name/
0774dff546 Added a comment 2012-07-27 16:34:45 +00:00
Joey Hess
f1f90cb30b add warning when building without the webapp 2012-07-27 12:14:57 -04:00
Joey Hess
1407a3b829 close 2012-07-27 12:10:25 -04:00
Joey Hess
3305e019db add yesod-default
another dependency cabal works without here, oddly
2012-07-27 12:09:34 -04:00
Joey Hess
6dd4863f83 blog for the "day"
Or rather, for yesterday evening up until 6 am last night, and 3 hours this
morning. I need to fix my sleep schedule.
2012-07-27 11:58:10 -04:00
Joey Hess
4c5002d370 Merge branch 'master' of ssh://git-annex.branchable.com 2012-07-27 11:57:09 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
904bbd713f Added a comment 2012-07-27 15:53:50 +00:00
Joey Hess
0f6292920a webapp now displays the real running and queued transfers
yowza!!!
2012-07-27 11:47:34 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
a8de617953 Added a comment 2012-07-27 12:20:08 +00:00
Joey Hess
4b8feea853 Merge branch 'master' into assistant 2012-07-27 04:50:35 -04:00
Joey Hess
4d15a9d1ba add 2012-07-27 04:50:27 -04:00
Joey Hess
7e3c1e008d webapp now uses twitter bootstrap
mocked up the main screen, and am actually pretty happy with it!
2012-07-27 04:48:50 -04:00
Joey Hess
1192e305c7 update to newer version needed by bootstrap 2012-07-27 04:37:29 -04:00
jtang
3f1c96800d 2012-07-27 06:47:46 +00:00
http://jasonwoof.com/
b5c3743c42 Added a comment: Your security solution is fine 2012-07-27 06:37:03 +00:00
Joey Hess
d92f5ff44c add bootstrap 2012-07-27 01:36:01 -04:00
Joey Hess
2ba02d260b add README 2012-07-27 00:40:18 -04:00
Joey Hess
1f47c1f6d8 update 2012-07-27 00:35:09 -04:00
Joey Hess
5db2605f3e update 2012-07-27 00:23:17 -04:00
Joey Hess
f1c7c475f6 automatically close the webapp window after 3 errors
It's unlikely an error would occur unless the server is stopped. But
retrying a few times seems like a good idea anyway.
2012-07-27 00:17:04 -04:00
Joey Hess
6d4d68b7b4 cleanup done things etc 2012-07-27 00:03:55 -04:00
Joey Hess
1983ca2852 added jquery to static site
Had to switch to toWaiAppPlain to avoid a seeming bug in toWaiApp;
chromium only received a partial copy of jquery. Always the same length
each time, which makes me think it's a bug in the compression, although
a bug in the autohead middleware is also a possibility.

Anyway, there's little need for compression for a local webapp. Not wasting
time compressing things is probably a net gain.

Similarly, I've not worried about minifying this yet. Although that would
avoid bloating the git-annex binary quite so much.
2012-07-26 23:55:51 -04:00
Joey Hess
ff4ab6d6da work around GHC not knowing to rebuild files using template haskell
when things they include change
2012-07-26 22:59:14 -04:00
Joey Hess
615dc09ffc use widgetFile 2012-07-26 22:54:31 -04:00
Joey Hess
e40f94cbcd add threadState member, will need this later to access the daemonStatus 2012-07-26 21:51:56 -04:00
Joey Hess
77c3bf7f88 update thread list 2012-07-26 21:51:47 -04:00
Joey Hess
94526aef89 todo 2012-07-26 21:40:24 -04:00
Joey Hess
02b1f9223a Merge branch 'master' of ssh://git-annex.branchable.com 2012-07-26 21:32:31 -04:00
Joey Hess
1d5971fa7e update 2012-07-26 21:32:08 -04:00
Joey Hess
f5ef46d01e cleaned up refreshing code into a widget
Very happy to have a reusable autoUpdate widget that can make any Yesod
widget automatically refresh!

Also added support for non-javascript browsers, falling back to meta
refresh.

Also, the home page is now rendered with the webapp status on it, before
any refreshing is done.
2012-07-26 21:03:46 -04:00
http://joeyh.name/
576224430a Added a comment 2012-07-26 22:08:53 +00:00
http://joeyh.name/
f1cbc7d725 Added a comment 2012-07-26 22:07:25 +00:00
Joey Hess
9b2eec2e7a increase timeout from 10 to 100 seconds
I've seen 10 be too short under load.
2012-07-26 18:04:09 -04:00