Commit Graph

1943 Commits

Author SHA1 Message Date
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
Brad Fitzpatrick e2a0f194ba Merge "fix search handler test: leading slash for thumbnailSrc removed" 2012-11-12 23:28:46 +00:00
Brad Fitzpatrick 998163ec09 Merge "images: exif, rotation, flipping" 2012-11-12 23:28:29 +00:00
mpl ffcbad9528 fix search handler test:
leading slash for thumbnailSrc removed

Change-Id: If402235986d12bfbba11bbaf4f82d5cb051ec226
2012-11-12 23:20:24 +01:00
mpl fd274ecbb1 fix serverconfig tests,
broken because of discovery move from ui to root

Change-Id: I3e2e5c9280f9ea691d9143aa2bc0a971a6dce325
2012-11-12 23:04:55 +01:00
mpl 858326fec1 images: exif, rotation, flipping
This change implements rotation and flipping on images.
It can be done automatically, using the EXIF Orientation as a hint,
or optionally forced.

Change-Id: I97e887599d6a191964344e81cf8e90922313d958
2012-11-12 21:26:53 +01:00
mpl 89baddb2d0 recent permanodes ui: set width and height of thumbnails
http://code.google.com/p/camlistore/issues/detail?id=63

Change-Id: I51d851993e3b14c54685bc4186ea623db1fe6045
2012-11-12 16:25:42 +01:00
Brad Fitzpatrick 3e1d6675cf Add another hackfest entry.
Probably missed a couple years of these, but good for posterity.

Change-Id: Ib628ab2b5e9569b664f203cf388bedc082fd2333
2012-11-10 21:22:46 -08:00
mpl def34eff94 display thumbnail on the permanode page if content is image.
The serveDescribe search handler now also checks for the
thumbnails req parameter and uses populateJSONThumbnails.
As a result, the client side can directly use thumbnailSrc
from the json response.

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

Change-Id: I4ff606f8d3ef291490f05cabdc66219744b53638
2012-11-10 00:04:44 +01:00
mpl 438ae4ecb4 recent permanodes thumbnails
Change-Id: I140766df4b58853e5bc4358f564cf1cfc807882a
2012-11-09 19:43:18 +01:00
Brad Fitzpatrick fddd9e6d2e Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-11-09 10:00:55 -08:00