Commit Graph

849 Commits

Author SHA1 Message Date
mpl cdd9a7322e Merge "app/hello: dummy server application (hello world)" 2014-05-08 20:52:10 +00:00
mpl 21dda2b4ef app/hello: dummy server application (hello world)
Change-Id: I6690b9459325af5a76d1de679d56701eefdd195e
2014-05-08 22:15:01 +02:00
mpl 4b1fb3d138 Merge "search: sort by creation time" 2014-05-08 17:11:45 +00:00
mpl 2088ce739b search: sort by creation time
Change-Id: I3695d91dde0d42419c62a23f20ba19416c53e5ef
2014-05-08 18:55:53 +02:00
Eric Drechsel f4e051fe6c ui: fix 437, error in container aspect when children aren't in searchSession
Change-Id: I04e217483bc1f1b1bd55a8afedb8da8f9dcdb296
2014-05-05 19:25:43 -07:00
Brad Fitzpatrick 384b627b5e ui: reduce describe depth, using recursive describe instead
Updates issue https://code.google.com/p/camlistore/issues/detail?id=319

Change-Id: Ie02b0f565c6ff4c9582cecc78914392a60bf9502
2014-05-04 20:03:00 -07:00
Aaron Boodman 81cfa6f39f Don't show checkmark in container aspect right now because it's not operable
Change-Id: I63ccc449802e1d5437431ec3e3305d735a7d335e
2014-05-02 20:12:22 -07:00
Aaron Boodman 888a2e9f3f Add container aspect.
Change-Id: I54ea18ab91edb28413e01583231457b5190532c2
2014-05-02 20:11:01 -07:00
Aaron Boodman 4be7f8f977 Add a directory aspect.
Change-Id: I27700cabafda6143534b999859f071f478f44a36
2014-05-02 19:19:17 -07:00
Aaron Boodman f03f0568cc Remove cam.reactUtil.quacksLike because React 0.10.0 has this built-in.
Change-Id: Id76bfe32b52fcc3896eb57cd03c1967c6b8fbfac
2014-05-02 19:17:04 -07:00
Aaron Boodman df38df2275 Aspects: A new idea for the detail page.
http://imgur.com/Re14XKc,6fYHJqp,39nnQiT#0

Camlistore is built around the idea that every object is a blob,
but blobs can also self-describe themselves as more than a blob.

For example, some blobs are also files, or images, or sets, or
permanodes, or movies, or foursquare checkins. Etc.

Here is an idea for the detail page that reflects that underlying
reality of Camlistore.

Each blob has a single canonical URL in the web UI for its detail
page. Currently this is /?p=<...>, but should ideally be just
/<blobref>.

Within the web UI, many "aspects" register interest in providing
views on blobs. Each time the user navigates to a detail page,
each aspects gets to say whether it can provide a useful view on
the blob.

Aspects are currently rendered (crappily) as tabs along the bottom
of the UI. I'm not sure how they should actually be rendered, this
is temporary.

This patch includes the following aspects:
- image (the old image detail)
- permanode (the old old permanode page)
- blob (the old old blob page)

Change-Id: Idb3cdbb203799a5d9c113d1b37b67a2724040085
2014-05-02 19:13:08 -07:00
Aaron Boodman 632366d148 Upgrade React to 0.10.0.
Change-Id: I1c47fec4293b762f26103d41ebd1faacb96e26e5
2014-05-02 19:10:09 -07:00
mpl ef5acd75e3 twitter importer: fixed to new API
Change-Id: I490001a1f780f1074baa78a4daa563e55096242c
2014-04-23 16:53:49 +02:00
Aaron Boodman 457a597112 Merge "Recent versions of Chrome no longer fire popstate on initial load." 2014-04-15 08:32:20 +00:00
Aaron Boodman 49010a1834 Recent versions of Chrome no longer fire popstate on initial load.
Back button broke as a result for first navigation. This fixes it
a different, more robust way.

Change-Id: I4a65c3d75d58dfbc186ae4532af7c9f385e463ea
2014-04-15 01:31:16 -07:00
Eric Drechsel 17f44ca79c Fix React warning about unnecessary bind (with aspects CL as well)
Change-Id: Iff5755cda30beecbdbb0bb203518d9a0bf63c575
2014-04-14 21:15:05 +00:00
Aaron Boodman 7ea783a06c Center the Foursquare logo properly no matter the container size.
There are other problems at small container sizes, but those are
a bit more involved to fix.

Change-Id: I4faf708d7cceccdf32dcd7f58b02c115fc55c661
2014-04-12 16:34:16 -07:00
Aaron Boodman 0083542dc8 Fix: sometimes the foursquare photos don't completely fill the available space
Change-Id: I6cafd5ebdd73da81e4fbdfd73ecfc596213c7433
2014-04-12 13:54:36 -07:00
Aaron Boodman 941f34fdcc Merge "Custom rendering for Foursquare checkins." 2014-04-12 05:22:20 +00:00
Aaron Boodman 18eed8251a Custom rendering for Foursquare checkins.
Change-Id: I12e0bc49810deef1c5c14fe223ecd50c5949ac7c
2014-04-11 22:21:54 -07:00
Aaron Boodman d7e9b5bb41 Compare file extensions case-insensitively.
Change-Id: I3ff1578e0b3066b577d29a3128068970a89ab64c
2014-04-10 20:54:09 -07:00
Aaron Boodman bdd9a56c1d Add more video file formats to detected list.
Change-Id: Ib03ab03b0cd68c69c8c3f8778d513df259a6140f
2014-04-10 17:48:24 -07:00
Brad Fitzpatrick bf2d1123b8 ui: add a custom BlobItemDemoContent renderer type, for demos
BlobItemDemoContent is a demo node type, useful for giving talks and showing
how a custom renderer can be invoked just by making a permanode, setting
its "camliNodeType" attribute to "camlistore.org:demo", and then changing its
background color with the "color" property or text with the "title" property.

Change-Id: Ib592471b785fde5750754bde3aa71eb8e2c10f3b
2014-04-06 11:49:59 -07:00
Aaron Boodman 12196cd638 Custom rendering for QuickTime movie files.
Change-Id: I9f527d40a4572c3584dc081e47d45ca65db76163
2014-04-05 17:21:08 -07:00
mpl 291320d451 pkg/index: cleanup, refactor sub pkgs
http://camlistore.org/issue/263

Change-Id: I319bb097f0ce30b2bd5271b5c3bbff92b8dcc318
2014-04-05 01:22:05 +02:00
Aaron Boodman 768f8afe95 Introduce custom renderings per-data type in the search results.
Currently there are two renderers: image and generic (for the
file/folder icons). But it should be easy to add new types now.

Change-Id: Ib1b348cad614e4e8ff6e61fb6e41538678916588
2014-03-31 22:35:12 -07:00
Brad Fitzpatrick bf2a7b60a3 Importer overhaul. Only Foursquare is currently working.
The rest are currently stubbed out and will need updating
to the new APIs.

Change-Id: I9d70302b3ac1026192413bf9dcd3c8f1eb420349
2014-03-31 10:56:30 -07:00
mpl cdc4ed5ae2 camput init: ring/key related fixes
1) Removed exec call to gpg, because it automatically looks in .gnupg/,
which we don't use anymore as a default.
2) Now taking into account global --secret-keyring flag.
This flag is now in osutil.
3) New or modified funcs in osutil
4) Made sure --gpgkey works too.
5) Cleaned up error messages and hints.

Context: http://camlistore.org/issue/364
         http://camlistore.org/issue/368

Change-Id: I2e51032ed0597da656db100d72f5588b37308e1a
2014-03-28 19:55:18 +01:00
Aaron Boodman e839eaebde Factor out the image-specific parts of the detail page into a separate class.
This will allow custom renderings of other types of content in the detail view.

Change-Id: I3a8ca6c67e890a51f6b4effe3316beef2cd970cd
2014-03-25 21:47:10 -07:00
Govert Versluis 96637ffcd3 pkg/blobserver/mongo: Add support for blob storage in MongoDB
Related changes:
Split docker-related test-helper functions from pkg/sorted/mongo.
These helper functions are now also used in the pkg/blobserver/mongo
tests too.
Also fixed a typo in a comment in pkg/blob/fetcher.go and a missing variable in
debug output in pkg/blobserver/storagetest/storagetest.go

Addresses http://camlistore.org/issue/127

Change-Id: I8b6f57f9ced066d6f83788fdcc87be6619c65c3c

Conflicts:
	pkg/blob/fetcher.go
2014-03-22 12:36:59 -07:00
Aaron Boodman a85361a2a7 Rename IndexPageReact to IndexPage
Change-Id: If901a5e9585bb561795c904341b777aa62ad4a26
2014-03-22 06:24:48 -07:00
Aaron Boodman 99a4ff78f5 Remove Closure-based index page, as it is no longer used.
Change-Id: Ibd24c5785841ad1ff978576c4d83362ea0fd3fde
2014-03-22 06:19:29 -07:00
mpl 3d7c093ac8 Merge "UI: reset search session data if empty result." 2014-03-21 13:11:14 +00:00
Nick O'Neill 2d70c95aef Tweet importing with some basic info
Change-Id: I73455eef50dcdc495ddc042d266b3a4a8020c877
2014-03-20 18:57:43 -07:00
mpl 828999e322 UI: reset search session data if empty result.
http://camlistore.org/issue/352

Change-Id: I085c744a8ca31c4420f8132c897305c548b0483e
2014-03-21 00:53:01 +01:00
mpl 2dd3e17129 sorted/sqlite: initialize DB when needed, added test.
Change-Id: Ibd418e357e2bed6a5beed2dda2f947c7c999fe92
2014-03-19 18:16:05 +01:00
Tamás Gulácsi 65fa5d6d3e Picasa: add importer.
Imports all images from all albums, and puts each image in its album.
Each album is linked under "Picasa (<username>)".
Tries to skip already imported files (check based on album/filename).
See Issue #391.

Change-Id: If00751671a429891c05bbe41f59c1421b2ff2de8
2014-03-17 10:52:51 +01:00
Aaron Boodman f44173135f Merge "Fix bug where "Select as current set" item never shows up." 2014-03-17 04:39:40 +00:00
Aaron Boodman 4677e5ec97 Fix bug where "Select as current set" item never shows up.
Change-Id: Ibc6b98c3feb65f28c3768cfaf6169044e41ad160
2014-03-16 21:38:43 -07:00
Brad Fitzpatrick bfc607fee7 index: reindex blobs when dependent blobs arrive out-of-order
Keep track of missing dependencies both in memory and in the index's
underlying sorted.KeyValue. When we see a dependent blob arrive, see
if we can reindex things.

Fixes camlistore.org/issue/102

Change-Id: I3d8cfc463e4b8c9d158be8f9656e772839b093b9
2014-03-15 08:44:09 -07:00
Brad Fitzpatrick bf94a73859 Get rid of SeekFetcher vs StreamingFetcher distinction and complexity.
StreamingFetcher is now just Fetcher, and its FetchStreaming is now
just Fetch.

SeekFetcher is gone. Blobs are max 16 MB anyway, so we can slurp to
memory when needed. The main thing that cared about SeekFetcher
was the GET handler, ServeBlobref, because http.ServeContent needed
one for range requests. That's rewritten in an earlier commit, using
the FakeSeeker from another earlier commit.

Lot of code got simpler as a result.

Change-Id: Ib819413e48a8f9b8d97f596d0fbf771dab211f11
2014-03-14 12:29:13 -07:00
Aaron Boodman 75fb861821 Merge "Web UI: Fix for infinite loop with extremely wide aspect ratio images." 2014-03-13 15:44:21 +00:00
Aaron Boodman 12a4c07c54 Web UI: Fix for infinite loop with extremely wide aspect ratio images.
Change-Id: I567000d10adc542e5759d06a82a28db380d225ad
2014-03-13 08:43:38 -07:00
mpl d9f33ac45b Merge "UI: enable "deleting" items on search page" 2014-03-12 13:42:47 +00:00
mpl 9263181931 UI: enable "deleting" items on search page
Items can be selected and effectively hidden from a UI point of view.

For now, since only the selected permanode is marked as deleted, and
GC is not yet implemented, no content is actually deleted. This is
really more like hiding the content permanently without deleting it.

Change-Id: I6ebc228905e3612503f153ff3bbb44ba24a43d09
2014-03-11 21:39:58 +01:00
Aaron Boodman 2add0472e1 Inital support for camliContentImage.
Change-Id: Ie89d296eb1ce5b8ae4ff4d4cb8c1f97f09a4c98c
2014-03-10 21:28:13 -07:00
mpl 8ab115cb21 UI: add support for deleting selected permanodes
Feature disabled for now, until the backend (corpus) part is ready.

Change-Id: Ib3527b8f3bfb6793bb60d5e91cd06bc8fab5a5c0
2014-03-06 23:05:20 +01:00
Brad Fitzpatrick 01f2173e64 ui: fix link from old detail page to new UI detail page
Change-Id: Iaa36f532169d3f6697060d9baa2178caaa19423d
2014-02-27 21:06:03 -08:00
Aaron Boodman ff16bcf1e9 Merge "Starting to fool around with property sheet UI" 2014-02-27 09:59:35 +00:00
Aaron Boodman 7ecc4858b9 Starting to fool around with property sheet UI
Looks like: http://i.imgur.com/HxE1oFi.png

Change-Id: Id3188148fd1ef97dac16a53e96ebe41f64cf1ee7
2014-02-27 01:57:49 -08:00