Sören Brunk
58f92f148b
fix more layout issues based on joey's feedback
2014-05-02 16:29:23 +02:00
Sören Brunk
00c1cd0db1
bootstrap3 forms
2014-04-21 19:47:05 +02:00
Joey Hess
fa24ba2520
plumb creds from webapp to initremote
...
Avoids abusing setting environment variables, which was always a hack
and won't work on windows.
2014-02-11 14:07:56 -04:00
Joey Hess
e425a966ed
Deal with box.com changing the url of their webdav endpoint.
...
Use new url when making new remotes.
Transparently rewrite old url to new for existing remotes.
2013-12-02 16:01:20 -04:00
Joey Hess
958312885f
webapp: Improve UI around remote that have no annex.uuid set, either because setup of them is incomplete, or because the remote git repository is not a git-annex repository.
...
Complicated by such repositories potentially being repos that should have
an annex.uuid, but it failed to be gotten, perhaps due to the past ssh repo
setup bugs. This is handled now by an Upgrade Repository button.
2013-11-07 18:02:00 -04:00
Joey Hess
26d95e86d7
rename module
2013-10-28 11:33:14 -04:00
Joey Hess
267f8b0bb5
switch to runFormPostNoToken to work around strange yesod bug
...
I am not happy about disabling yesod's XSRF tokens, but the webapp has two
guards of its own that should suffice: Listening only to localhost
(normally) and requiring its own auth token on every single request
(always).
2013-10-14 12:19:11 -04:00
Joey Hess
ee2020bdc7
fix build w/o webdav
2013-10-13 14:19:58 -04:00
Joey Hess
dfdaa649d0
hlint
2013-10-02 01:06:59 -04:00
Joey Hess
d83a244986
UI for making encrypted ssh remotes with gcrypt
...
Improved probing the remote server, so it gathers a list of the
capabilities it has. From that list, we can determine which types
of remotes are supported, and display an appropriate UI.
The new buttons for making gcrypt repos don't work yet, but the old buttons
for unencrypted git repo and encrypted rsync repo have been adapted to the
new data types and are working.
This commit was sponsored by David Schmitt.
2013-09-29 15:14:09 -04:00
Joey Hess
7665773593
refactor
2013-09-27 00:27:59 -04:00
Joey Hess
588494cbce
webapp: Support storing encrypted git repositories on rsync.net.
...
Does not yet support re-enabling such a repository though.
This commit was sponsored by Jan Pieper.
2013-09-26 16:43:00 -04:00
Joey Hess
9fc1448947
webapp: Differentiate between creating a new S3/Glacier/WebDav remote, and initializing an existing remote. When creating a new remote, avoid conflicts with other existing (or deleted) remotes with the same name.
2013-07-20 18:15:16 -04:00
Joey Hess
ff4f008591
clean up build warnings with yesod 1.2, while still building with 1.1
2013-06-27 01:15:28 -04:00
Joey Hess
b42fe2283a
remove unnecessary haskell extensions
2013-06-04 21:13:20 -04:00
Joey Hess
1198b5444d
now builds with both yesod 1.2 and 1.1
2013-06-03 18:14:22 -04:00
Joey Hess
31753bad46
add liftH shim between yesod versions, to avoid needing zillions of ifdefs
2013-06-03 13:51:54 -04:00
Joey Hess
79fd677805
WIP yesod 1.2
2013-06-03 11:25:23 -04:00
Joey Hess
d63a0a77f2
fix build w/o DAV
2013-05-08 12:20:10 -04:00
Joey Hess
c3498042fd
webapp: Now automatically fills in any creds used by an existing remote when creating a new remote of the same type. Done for Internet Archive, S3, Glacier, and Box.com remotes.
2013-04-27 15:16:06 -04:00
Joey Hess
844e772910
fix warnings
2013-04-20 19:25:50 -04:00
Joey Hess
1f1cddbaa7
syncNewRemote is not only used for new remotes; rename to syncRemote
2013-04-08 15:43:43 -04:00
Joey Hess
9a5f421768
detect when unwanted remote is empty and remove it
...
Needs fixes to build when the webapp is disabled.
2013-04-03 17:01:40 -04:00
Joey Hess
4ef6e8fed5
improve wording
2013-03-27 15:46:08 -04:00
Joey Hess
140774a8c8
webapp: Switch all forms to POST.
2013-03-16 18:48:26 -04:00
Joey Hess
c94c99942b
make liftAnnex and liftAssistant polymorphic, like liftIO
2013-03-16 00:19:56 -04:00
Joey Hess
907b0c0d78
better liftAnnex, avoid using runAnnex undefined
2013-03-04 16:36:38 -04:00
Joey Hess
7f7c31df1c
type based git config handling
...
Now there's a Config type, that's extracted from the git config at startup.
Note that laziness means that individual config values are only looked up
and parsed on demand, and so we get implicit memoization for all of them.
So this is not only prettier and more type safe, it optimises several
places that didn't have explicit memoization before. As well as getting rid
of the ugly explicit memoization code.
Not yet done for annex.<remote>.* configuration settings.
2012-12-29 23:10:18 -04:00
Joey Hess
c9fd389fbf
webapp: Encryption can be disabled when setting up remotes.
2012-12-04 13:28:22 -04:00
Joey Hess
7b032dbbc8
webapp: Fix bad interaction between required fields and modals.
2012-12-02 17:32:54 -04:00
Joey Hess
8dd1d9aaf9
webapp: Defaults to sharing box.com account info with friends, allowing one-click enabling of the repository.
2012-11-28 13:31:49 -04:00
Joey Hess
18fe34222a
allow building webapp w/o webdav
2012-11-25 14:36:24 -04:00
Joey Hess
3dfc9cadb0
simplify
2012-11-25 00:38:11 -04:00
Joey Hess
59733456ed
refactor
2012-11-25 00:27:17 -04:00
Joey Hess
453587d392
UI for enabling existing webdav remotes
2012-11-17 16:10:13 -04:00
Joey Hess
7addb89dc1
webapp: support box.com
2012-11-17 15:30:11 -04:00