Commit Graph

1853 Commits

Author SHA1 Message Date
Brad Fitzpatrick 4fbce6f15b Add camliCondCall; use it. For optional hooks.
Change-Id: I63cf8b21d05cd4ff924433e7821dd756976d12ff
2012-12-07 14:09:07 -05:00
Brad Fitzpatrick e16153306a Quiet some image log spam; behind a flag now
Change-Id: Ib43ae05cd98d156e2755536136a991c540d9c97c
2012-12-06 18:01:47 -08:00
Brad Fitzpatrick 3137b8a71b Add TODO about connection throttling for testing.
Change-Id: I595d7fd3d80183aa24d6cd298651fc8090dd6b6b
2012-12-06 17:57:27 -08:00
Brad Fitzpatrick 682390dffa Add a GIF mime type, TODOs, add camdebug mime command.
Change-Id: Ic8930d4250dec30ed8c9a056c1cecd70cc447f9d
2012-12-06 17:53:03 -08:00
Brad Fitzpatrick 31df4a7a01 Add generic file icon.
Change-Id: I23517e6112ddfd7048a575161a7785b73fb7bd0f
2012-12-06 17:36:34 -08:00
Brad Fitzpatrick c368e4a2a8 Click to make new permanode
Change-Id: I78e5f732beb0857eb9958b2a187c68b1a7b68e55
2012-12-06 17:23:34 -08:00
Brad Fitzpatrick 3dc3241ceb use classList add/remove
Change-Id: If521a42bbbe13f61145e001e7897a68a3c491192
2012-12-06 17:18:22 -08:00
Brad Fitzpatrick f9154d8761 Recent page: drag & drop onto big plus tile.
Change-Id: Id78edf9d268df4266576e39ce8207ec06a0b99d6
2012-12-06 17:14:18 -08:00
Brad Fitzpatrick c606e06276 Move more of permanode.js's uploading logic into camli.js, and document it better.
Change-Id: I68098e7bce50286c1621b818a5fd4ede165149a0
2012-12-06 15:58:42 -08:00
Brad Fitzpatrick 0d16c1d290 Remove unused code.
Change-Id: I275f89d1cc493be4938093fc9bacd1618cd5f798
2012-12-06 15:27:07 -08:00
Brad Fitzpatrick 752ed053d3 Add some missing vars
Change-Id: I66b3f6da878d7c9e9cc5bce4cac2ff8d033487c8
2012-12-06 15:08:00 -08:00
Brad Fitzpatrick d1c8a85308 Make the permanode file upload onchange do something.
Change-Id: I7e3ce0257906e733e8f81dd5a94b2eb34361bcc3
2012-12-06 14:32:45 -08:00
Brad Fitzpatrick f7562e033a Remove useless params.
Change-Id: Ia08a8e7282b69010b59561d6faa74adb27c4cd79
2012-12-06 14:19:15 -08:00
Brad Fitzpatrick e3e65ee91b Add --offline dev-server option.
Change-Id: I1ecbc624af1519a44681f5bb57f1e14eaa83ced7
2012-12-06 13:55:39 -08:00
Brad Fitzpatrick 8c038b8715 Perl formatting
Change-Id: I7bc3d2def8c3a619d6d9b14821b3694665ca8542
2012-12-06 13:49:09 -08:00
mpl dbc6bc6b0d goexif fixes
Change-Id: Ia7a2cca52db464d3e25aa2b8b36e86a9dc5c9d1c
2012-12-06 18:24:55 +01:00
mpl 47d1aa58e2 dev-server usage
Change-Id: Idd100a09b2d99785fdd40a518a2db754d945191b
2012-12-06 16:56:11 +01:00
mpl 19edba9f64 newui layout, only for dev-server use for now.
Change-Id: I0e77b8088b2e04fd56e017678cb6e0a476b10682
2012-12-04 21:41:35 +01:00
Brad Fitzpatrick 6cb3b6d69f Forgot to make embeds
Change-Id: Ib90ba363ce740549be0cd7e22f20437d1396b0ff
2012-12-01 12:41:00 -08:00
Brad Fitzpatrick 59f431ae71 Ignore OS X noise.
Change-Id: I75fc2e3fd2a83ba47c91aa9b483abb07371873e4
2012-12-01 10:55:45 -08:00
Brad Fitzpatrick 7ebc09ef25 reformat javascript with consistent indent
Change-Id: Idc70d6959b3708bc3b5893dffeaebd9950016ab6
2012-12-01 10:55:22 -08:00
Brad Fitzpatrick 2f072dfc20 auth: fix nil dereference crash
Change-Id: I4552829da795236b9c875a753b6f1d710066d89a
2012-12-01 10:54:14 -08:00
Brad Fitzpatrick 48bd05ad8d Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-11-30 22:10:06 -08:00
Brad Fitzpatrick 43e240f0f6 Fix mymysql for Go 1.1; see https://code.google.com/p/go/issues/detail?id=4476
Change-Id: I6b5d66b68715f7d71ce665dbf90dfc0d4eefab5a
2012-11-30 22:09:51 -08:00
mpl cb0a0951d8 Merge "file embedding: enable compression (mainly for large .js files)." 2012-11-30 17:58:05 +00:00
mpl f7ff5bb17b file embedding: enable compression (mainly for
large .js files).

We will need this when we start getting large js
files generated when using the closure library.

Change-Id: Iaecacd54c3d08637918b1afd420fb90f1a84aabb
2012-11-30 19:03:37 +01:00
Brad Fitzpatrick ed67d8926a Prevent browser range selection 2012-11-28 10:49:22 -08:00
Brad Fitzpatrick af7cce81fb Permanode selection (and range selection, etc) 2012-11-28 10:15:39 -08:00
Brad Fitzpatrick e9806cf4a7 reduce some logspam. still a fair bit around images 2012-11-28 10:14:37 -08:00
Brad Fitzpatrick 2d766e09d3 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-11-25 09:45:52 -08:00
Brad Fitzpatrick 338fe5b4e8 Prettier recent thumbnails page. 2012-11-25 09:45:30 -08:00
mpl 174e4da790 goexif: synced with upstream
Change-Id: I6198e6c7501d3c3c15671389c0065ee613d1486e
2012-11-23 11:10:43 +01:00
mpl 9b8c0bffc4 ui, recent permanodes: tiled thumbnails style
Change-Id: Ie31753e01a897b72eb7996d93d8ea8cdfe5efa54
2012-11-21 18:48:35 +01:00
mpl 1942c8509b dev-server: when wiping, initialize blobserver
with blobs in ./dev-server-template

Change-Id: I49f9c861daecfdc5a32fed4a9e53e188e2cc0003
2012-11-21 11:17:35 +01:00
mpl f26cd134de Do not error out when "Orientation" tag is absent
Change-Id: I76cfc8066986614c5690f0e27b217fb96b52ae36
2012-11-19 23:40:26 +01:00
mpl fa1269da45 import github.com/camlistore/goexif as a third party
Change-Id: I34842677f4d9335df2478692e0b0d169d00d0942
2012-11-19 23:04:04 +01:00
mpl fbead58f92 fix tests for images and netutil
Change-Id: I89d978ce25cc8748ffab54aa3112e6b854f73b85
2012-11-19 19:52:06 +01:00
Brad Fitzpatrick 306b58afd6 Merge "Modifications allowing /setup to be view on Windows" 2012-11-19 01:16:23 +00:00
Maxime Lavigne 3ec58472db Modifications allowing /setup to be view on Windows
When you go to /setup on Windows, it currently checks
the "localhostAuthorized" function that checks your
UserID with os.Getuid() and than check with the local
and remote address to see if you are allow. In Windows
os.Getuid will always equals -1 and the function default
to unallowed. On darwin, it does check for uid but
afterward only cares if the local and remote addresses
are loopback addresses.

So, I changed this function so that when the os.Getuid
is not avalaible on the platform and returns -1, it does
the same check as in darwin.

I also modified the "isLocalhost" function to use the
helper function "net.IsLoopback" instead of string matching.

Since, I already had parsed addresses and had to call
AddPairUserId, I checked if it wouldn't be simpler to
pass net.Addr directly instead of strings and reconvert
them afterward. It seemed after looking at all the code
that called this function that it simplified calls quite
a bit to do so.

Finally, I modified "netutil.Localhost" for it to return
the first IP it finds instead of the string representation
of the first IP enclosed in square brackets. Since the square
brackets around the IP are only necessary in a TCPAddr, it
would be simplier and more robust for the user to directly
print TCPAddr instead of appending this string to a post.

Change-Id: Id79de6bebd6380f877074211c0d260782058765f
2012-11-18 20:20:25 -05:00
mpl 3117265b61 bugfix in auth; mode was not set by config in localhost case
Change-Id: I5349af00d7629ca77de73dd886ba44d6bbc56da0
2012-11-16 18:12:41 +01:00
mpl 03a8e7370b default to localhost auth type when generating config for camlistored and clients
Change-Id: I95e74bcde6c1ca564f76e1ed9a916de48c1b6513
2012-11-16 16:49:19 +01:00
mpl fca3f33449 Merge "search UI: find all roots" 2012-11-16 01:03:54 +00:00
mpl b204d521c3 Merge "fix serverconfig tests, broken because of discovery move from ui to root" 2012-11-16 00:57:24 +00:00
mpl 4a97ef3bb1 Merge "small fixes subsequent to brads comments on 94541905ffe9e92e97125229331ca9a25305381a" 2012-11-16 00:55:29 +00:00
mpl 0824bc7f7c Pointer to minux codereview to do the restart on darwin
Change-Id: I077803b367b543f998d5d25026db2be477963bf8
2012-11-15 18:57:53 +01:00
mpl 535b856e1c small fixes subsequent to brads comments on 94541905ff
Change-Id: I7493cc715f85d146049a452e9808814a13f7468b
2012-11-15 18:42:19 +01:00
Brad Fitzpatrick 3fe746e3aa Merge "find the path to the executable of the running instance to restart camli properly" 2012-11-15 16:45:10 +00:00
mpl 94541905ff use pkg/images (EXIF help) for thumbnails in ui
Change-Id: I60f0102efd1eb5b1c9ca070fe959b499ed8f7c5a
2012-11-15 01:53:58 +01:00
mpl 62b5da6f99 find the path to the executable of the running instance
to restart camli properly

This change adds the functionality to find the path to
the currently running executable, so that camlistore
can be restarted without à priori knowledge of cwd.
It should work for linux, netBSD and freeBSD, and it
might work for openBSD.
The naive (os.Args[0]) approach is still used with
darwin.

Reference: https://codereview.appspot.com/6736069/

Change-Id: Icc9fc2b4e1b3542cfbe6c457c1fefbe762eff2f1
2012-11-14 16:10:50 +01:00
mpl d1e5a1d4c6 search UI: find all roots
This change allows to find all roots (permanodes with the
"camliRoot" attribute) from the search.html ui page.
To achieve that, func (x *Index) SearchPermanodesWithAttr
now uses a prefix string without the query part if the
query is "".

http://code.google.com/p/camlistore/issues/detail?id=35

Change-Id: I396fba683e6e7b2296d1f0df8009c07e3c2cd09d
2012-11-14 11:11:40 +01:00