Nicolas Pouillard
e11946796d
Fix imports and casing in Build.InstallDesktopFile
2012-08-02 20:11:41 +02:00
Joey Hess
6b38227bad
only write data file when installing as normal user
2012-08-02 13:12:36 -04:00
Joey Hess
d2b48cacdb
add some strictness annotations
...
on general principles
2012-08-02 09:20:21 -04:00
Joey Hess
1f2127c520
trim long filenames (have to fit on the sidebar)
...
30 characters would mostly work, but 20 is safer due to some wider letters
like 'w'. Of course this is very heuristic based on filesize anyway.
(Bootstrap does a surprisingly bad job at dealing with overlong words
in the sidebar.)
2012-08-02 09:15:08 -04:00
Joey Hess
520a0463a7
start webapp thread earlier so it opens ASAP
2012-08-02 09:09:06 -04:00
Joey Hess
7cc5fdbd7b
layout
2012-08-02 09:08:58 -04:00
Joey Hess
191ee3b697
awesome alert combining
...
Now an alert tracks files that have recently been added. As a large file
is added, it will have its own alert, that then combines with the tracker
when dones.
Also used for combining sanity checker alerts, as it could possibly want to
display a lot.
2012-08-02 09:03:04 -04:00
Joey Hess
3695cab949
avoid showing alert when there are no remotes to push to
2012-08-02 09:00:13 -04:00
Joey Hess
22d7447ced
fix tilde expansion
2012-08-02 07:55:10 -04:00
Joey Hess
9a038b4a9b
better ~/ handling
2012-08-02 07:50:13 -04:00
Joey Hess
112ce4f49c
support XDG_DATA_DIR
2012-08-02 07:47:39 -04:00
Joey Hess
adf5789c1b
fix bugs, add desktop dir
2012-08-02 07:47:20 -04:00
Joey Hess
60da0d6ad2
full autostart support
...
git annex assistant --autostart will start separate daemons in each
listed autostart repo
running the webapp outside any git-annex repo will open it on the
first listed autostart repo
2012-08-02 00:42:33 -04:00
Joey Hess
23fe661d37
install autostart file too
2012-08-01 23:31:53 -04:00
Joey Hess
ffeb060002
don't use hamlet for htmlshim
...
This allows me to not build-depend on blaze-markup, which was causing
me some trouble when tring to build with cabal on debian. Seems debian
ships Text.Blaze.Renderer.String in two packages.
2012-08-01 21:28:37 -04:00
Joey Hess
e78b13c428
hook desktop menu file installation into makefile and cabal
2012-08-01 21:05:27 -04:00
Joey Hess
ed07546288
add template-haskell build-dep for webapp
2012-08-01 21:04:15 -04:00
Joey Hess
9422e27489
installing desktop file working
...
Not hooked up to either Makefile or cabal yet
2012-08-01 20:49:02 -04:00
Joey Hess
89ec253a6a
implement enough of the fdo specs to be able to write desktop menu files
...
to the appropriate system or local user directory
2012-08-01 20:27:45 -04:00
Joey Hess
bdd5fe4170
fix the watch command to not run the whole assistant
...
heh :)
2012-08-01 17:01:04 -04:00
Joey Hess
d7a2600edd
webapp is no longer a daemon
...
Remove --foreground and --stop options from it.
2012-08-01 16:40:38 -04:00
Joey Hess
ca512f1450
always run webapp in foreground
2012-08-01 16:34:17 -04:00
Joey Hess
7606f3e7c1
cleanup
2012-08-01 16:31:16 -04:00
Joey Hess
8181b38ef6
write pid file even when running in foreground
...
This prevents multiple runs of the assistant in the foreground, and lets
--stop stop foregrounded runs too.
The webapp firstrun case also now writes a pid file, once it's made the git
repo to put it in.
2012-08-01 16:30:53 -04:00
Joey Hess
ecc168aba3
implemented firstrun repository creation and redirection to full webapp
...
Some of the trickiest code I've possibly ever written.
2012-08-01 16:10:26 -04:00
Joey Hess
1efe4f3332
only use smart default on first run
2012-07-31 21:34:29 -04:00
Joey Hess
b9afb7785e
typo
2012-07-31 21:12:58 -04:00
Joey Hess
e81e8913d9
default repository location
...
Unifying poll results, it's Annex in lowercase. :)
When cwd is HOME, use ~/Desktop/annex, unless there's no Desktop directory;
then use use ~/annex
If cwd is not $HOME, use cwd
2012-07-31 21:06:30 -04:00
Joey Hess
bab80bf24a
full input validation for repository path
...
Expands ~ , checks for every crazy input problem I can think of
2012-07-31 20:56:10 -04:00
Joey Hess
c950e8fba0
move out to template
2012-07-31 18:33:19 -04:00
Joey Hess
4b5ffe8f9b
implemented the addrepository form
...
shiny!
2012-07-31 17:57:08 -04:00
Joey Hess
bcf5c81593
when run in uninitialized git repo, do firstrun
...
My $HOME is in git, let's make it work :)
2012-07-31 16:19:24 -04:00
Joey Hess
c70496dc7f
improve first run screen
2012-07-31 16:13:09 -04:00
Joey Hess
0d3686972d
form
2012-07-31 12:33:52 -04:00
Joey Hess
1efb0d109e
don't start webapp when in a git repo that has not been git-annex initted
...
Maybe later it can prompt if they want to use the repo with git-annex, but
for now this is a sane easy choice.
2012-07-31 12:20:31 -04:00
Joey Hess
04794eafc0
webapp now starts up when run not in a git repo
2012-07-31 12:17:31 -04:00
Joey Hess
b9b0097876
tweak types so the webapp can run without a threadstate when outside an annex
2012-07-31 11:19:40 -04:00
Joey Hess
e9d9d9d5ea
add icons
2012-07-31 03:10:16 -04:00
Joey Hess
f0a88e1203
change url
2012-07-31 02:36:18 -04:00
Joey Hess
02b345249b
stub
2012-07-31 02:35:07 -04:00
Joey Hess
c77411053b
remove clickability on brand
2012-07-31 02:33:51 -04:00
Joey Hess
2c8bbdf307
made navbar work
...
also added an About page and a stub Config page.
2012-07-31 02:30:26 -04:00
Joey Hess
5fed026bcd
reorg templates
2012-07-31 01:24:49 -04:00
Joey Hess
58dfa3fa5b
split up webapp files
2012-07-31 01:11:32 -04:00
Joey Hess
6e40aed948
fix noscript mode to not allocate notification ids on each refresh
...
Now the javascript does an ajax call at the start to request the url
to use to poll, and the notification id is generated then, once we know
javascript is working.
2012-07-30 22:24:19 -04:00
Joey Hess
2821f9f976
cleanup
2012-07-30 20:35:30 -04:00
Joey Hess
d3413ee5a9
further refactoring my js
2012-07-30 20:33:23 -04:00
Joey Hess
9648acc7a4
got this JS working
2012-07-30 20:22:10 -04:00
Joey Hess
9b1ed7a720
Merge branch 'assistant' into assistant-longpolling-rewrite
2012-07-30 19:40:16 -04:00
Joey Hess
5de897e8d7
remove the "running" alert
2012-07-30 18:26:36 -04:00