Commit Graph

508 Commits

Author SHA1 Message Date
Aaron Boodman 1e0db747fd Make directory aspect actually work.
Change-Id: I560cb9c8d91a395c26253d7fd4a8ec605671a910
2014-08-15 21:37:43 -07:00
Aaron Boodman 6b9ed9e467 Some cleanup: remove an unneeded file and rename another.
Change-Id: I7ef87c7fcfc831d40b2c507128de04b7c8b20d1c
2014-08-15 21:37:22 -07:00
Aaron Boodman a6450f6468 Merge "Propagate all clicks in the hacky child frame up to the main app." 2014-08-16 04:20:08 +00:00
Aaron Boodman 48803d183b Propagate all clicks in the hacky child frame up to the main app.
This is temporary duct tape to make the child frames work better
utnil they are rewritten.

Change-Id: I1822af95620164896b959f946b9a888e6ecdf91f
2014-08-15 21:19:54 -07:00
Brad Fitzpatrick 2ee36e4f1a Embed Mozilla's Root CA set for use in Docker environments without CA files.
Thanks to Adam Langley and Kelsey Hightower for pointers:

https://github.com/kelseyhightower/contributors/blob/master/certs.go
https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07
https://github.com/agl/extract-nss-root-certs

Change-Id: I440cedf476446da852c409958a877fbcdb464340
2014-08-15 17:15:09 -07:00
Aaron Boodman e9b8024007 Create a cache of search sessions to improve performance for common navigations.
This was done in a more manual way in the old UI. This is a bit more general.

Change-Id: I2a0f14a7023edc17c4853a2bc1fa5c7987f71de9
2014-08-14 17:14:24 -07:00
Aaron Boodman 0f0ad341c4 Fix piggy menu on mobile for reals, this time with actual testing.
Touch devices still deliver 'mouseover' events, so you can't rely
on that. Anyway, on things like the Chromebook pixel there is a
mouse and a touchscreen. So it just has to work for both modes
simultaneously.

Change-Id: Ia63f159d5c7edd319a56cf1f79d65d799a71367c
2014-08-10 16:18:59 +00:00
Aaron Boodman 12dcf822cc Make the piggy menu work on mobile devices.
Change-Id: Iab7a557d3c8d1ac5099ce09709b4493363570a64
2014-08-10 08:43:16 -07:00
Aaron Boodman ad33510071 Reset selection on navigation.
This fixes https://code.google.com/p/camlistore/issues/detail?id=484.

Would be better to store it in history and restore, but ... later.

Change-Id: If8c1d3fab89a689be859c70c2cba71583dfdc789
2014-08-09 23:07:41 -07:00
Aaron Boodman 03f0f598da Moved the nav from the side to across the top.
Various other related improvements.

Change-Id: I4469991ef4327a9a80f1bbf5ba5fed2a10f4eb79
2014-08-09 21:07:29 -07:00
Brad Fitzpatrick 7146e3b1e9 camlistored: change an ioutil.ReadFile to wkfs
Change-Id: Id5d50d33bcfb7395b55f0f28776e1f6c880ccf46
2014-08-08 10:55:25 -07:00
Brad Fitzpatrick f764d2ca06 camlistored: missing error checks in self-signed cert writing
Change-Id: I19629179b580859fa670fa22f4ca319280728d2a
2014-08-08 10:53:44 -07:00
Brad Fitzpatrick c0a149ac3e Move GCE stuff out of camlistored into new package. Use from camtool.
Now camtool dumpconfig works on GCE too using the same mechanisms as camlistored.

Change-Id: I11c5311a6b7ace35fb0c6dd661ba9bdcad7820ed
2014-08-07 12:33:52 -07:00
Brad Fitzpatrick b6cff26139 camlistored: register a jsonconfig _gce_instance_meta lookup func
Change-Id: I1f3201be49aed32ac572282ffa4581ce4c71184f
2014-08-06 17:00:58 -07:00
Brad Fitzpatrick 5540a38dbd More work towards making the /gcs/ filesystem paths work on GCE. Incomplete.
Change-Id: I58ceec5d1c1cb61cbaa7d7e68a13ed5482dfbb0d
2014-08-05 12:45:10 -07:00
Brad Fitzpatrick acf2eeb2d4 remove redunant part of error message
Change-Id: I87958658d5af5f4b52cdadbf0b9d0b3748bd1738
2014-08-04 22:50:56 -07:00
Brad Fitzpatrick a01175d45c On GCE, use VM instance attribute camlistore-config-bucket to find config dir (bucket)
Change-Id: I56a7df55c182938eaf787b2ac6a32e20867409d5
2014-08-04 22:49:22 -07:00
Brad Fitzpatrick c8322af356 Add well-known filesystem abstraction package 'wkfs' for cloud deployment ease.
Part of Camlistore deploy to GCE easily. Will use paths like /gcs/bucket/foo or /gce-meta/attr for some
things previously-assumed to only be stored on the OS filesystem.

Change-Id: I2ed6cf5759c4d277f4e89a33a0fcfeee8bcbbf82
2014-08-04 21:27:07 -07:00
Brad Fitzpatrick 1bfd1b7d98 camlistored, serverinit: allow server config from URLs.
paves the way for server config from GCE metadata, too.

Change-Id: I9e54e3ad79eb53e7ae96159f2aa02f4a017e8e11
2014-08-02 16:53:58 -07:00
Brad Fitzpatrick afe0bfc5ac Rename flag for consistency.
Change-Id: Iaa2d0fc4bf02a27a30eb85aee9b8f757440a35c6
2014-08-02 14:31:02 -07:00
Brad Fitzpatrick 1577fc1e56 Merge "netutil: add HostPort, serverinit: return app baseURL" 2014-08-01 18:50:59 +00:00
Aaron Boodman 00552a0ded Merge "Require date and username before custom rendering Twitter items." 2014-08-01 18:50:59 +00:00
Aaron Boodman 8dba194013 Render containers with the camliContentImage attr as folders for now.
Something fancier would be better, but without this change they'd get
rendered as single images, which would be confusing.

Change-Id: Icd08eb1716ae1f3bebe2f064388cac822a0a4e63
2014-08-01 11:52:24 -07:00
mpl 0a869ad067 netutil: add HostPort, serverinit: return app baseURL
Context: http://camlistore.org/issue/479

This patch allows camlistored to wait for all the apps to be serving,
before printing its own listening address.

Change-Id: I4035b115a03ef6a2a43177b83b5b65ebc50a2188
2014-08-01 00:01:27 +02:00
mpl 41bdd85120 ui/permanode: cope better with not a permanode case
A camliPath can now have a file blob as a target (instead of a
permanode). And when we render these camliPath members as links, since
it can happen that these members haven't been described, we can't know
in advance whether to link them as permanodes or as blobs, so we
always default to permanode. Therefore, it can now legitimately happen
that we end up on the permanode page, while the blobRef is actually
one of a non permanode.

This patch tries to cope with that situation in a bit nicer way.

Context: http://camlistore.org/issue/470

Change-Id: Ic3b728541e164a6e6056d8f275a1d7e76b41e043
2014-07-30 01:07:06 +02:00
mpl b7d8d55bb3 pkg/webserver: use a custom logger, if provided
http://camlistore.org/issue/479

Change-Id: I41bd0a02d40e9ad94f655b5c1abdfa5db76c7019
2014-07-29 01:40:51 +02:00
Brad Fitzpatrick 7bd5e287d4 Merge "Fixed calls to formatting functions" 2014-07-21 17:34:27 +00:00
tnt 6868a882b9 Fixed calls to formatting functions
Change-Id: I3ec2af85364674ac6f1a88cd12b6cb369d8e50e1
2014-07-21 22:06:53 +00:00
mpl b82459424d devcam server --makethings
Only creates twitter things for now.

http://camlistore.org/issue/417

Change-Id: I05d548e012586279e165c01468524ceb055ff17b
2014-07-21 23:24:33 +02:00
Brad Fitzpatrick cc418dac8f Merge "legal: package for compiled-in licenses" 2014-07-11 17:08:59 +00:00
Piotr S. Staszewski 5e61e2d84e legal: package for compiled-in licenses
Initial implementation, printing helper and 'wiring' for cam* tools.

Change-Id: Icf8baa77ee1f12495be8f1a57b7d575d6918cb5c
2014-07-10 23:01:54 +02:00
Aaron Boodman 90cb6a84fb Merge "Replace cam.Nav with cam.NavReact. We weren't using the non-React one anymore." 2014-07-02 19:49:24 +00:00
Aaron Boodman 4009ece74e Replace cam.Nav with cam.NavReact. We weren't using the non-React one anymore.
Change-Id: I9369dda7ed4b9fc45a1fd91ef0c6343f37e3baf5
2014-07-04 21:33:27 -07:00
mpl cc40a72019 Merge "ui/permanode.js: some clean up" 2014-07-02 20:24:16 +00:00
mpl 37a000e400 ui/permanode.js: some clean up
-removed redundant "gallery" feature (since container aspect does it)
-> allowed to get rid of blob_item_container dependency.

-removed the whole resolvedMetaData business. If one wants to derive
properties (such as the title) from children blobs/permanodes, just
create a new BlobItem for that child and get the properties with
methods on that child.
-> makes for clearer code, and easier to prevent null errors.

-started making use of search session

Change-Id: Ic706c96e1c05ad5489ab4b14ed21e315a557a8a8
2014-07-03 22:42:31 +02:00
Aaron Boodman de204ded6a Require date and username before custom rendering Twitter items.
Change-Id: I642ceac6c3ccca18dc32cc092a513604152384cb
2014-07-01 14:23:38 -07:00
Aaron Boodman 5b0cba5b50 Don't custom render a Twitter item with incomplete data.
Change-Id: I03aad6b6f7f4d0b95e79818c0db4765dc09ee253
2014-07-01 14:20:13 -07:00
Aaron Boodman f61d429d32 Merge "Always handle clicks on aspect links in JavaScript." 2014-07-01 18:32:25 +00:00
Aaron Boodman fef60569f4 Always handle clicks on aspect links in JavaScript.
It would be better to support real URLs for these, but I need to
figure out how routing those should work first.

So for now this is maybe less annoying.

Change-Id: I1992d23cb0f94b509f73db23a542b56ca5df7531
2014-07-01 14:51:48 -07:00
Aaron Boodman 6cfd84b278 Don't do local navigation if a modifier key is pressed.
Change-Id: I8e3996628f8c247652c8a51a8bcf602d5bdfef02
2014-06-28 20:00:48 -07:00
Brad Fitzpatrick 8465f4b92b Merge "ui: bulk tagging in debug console." 2014-06-26 18:37:03 +00:00
Brad Fitzpatrick 488f1b4481 Merge "ui: fix permanode page" 2014-06-21 16:11:18 +00:00
Brad Fitzpatrick 0c772ef189 ui: fix permanode page
This was null. Not sure why.

Change-Id: I501ab108a386832cf9f7f7d41b3c7172329f45f4
2014-06-21 09:51:44 -07:00
Aaron Boodman 1138db00cd start at twitter renderer.. pretty ugly right now. still working on it...
Change-Id: I7e4940d05bf0eb03f2eb68fb330a8fbe77c38173
2014-06-20 06:25:18 -07:00
mpl 58aeb1bd01 ui/blob.js: hash for non ascii too
http://camlistore.org/issue/450

Change-Id: Ic474833927d28de0ba403eeabef6295e406463a2
2014-06-20 21:04:04 +02:00
Mario Russo d05e8a7ba1 ui: bulk tagging in debug console.
Implemented bulk tagging operations via single command 'tag'. Add, Delete, Set, and Clear modes are available (add, del, set, clear). Help on command usage is supplied via -help argument.

basic usage: tag <mode> (args)
tag add 1,2,3
tag del 1,2
tag set 1
tag clear
tag -help

Caveats:
Client will attempt to add/remove tags regardless if the selected permanode contains those values. So it will add a tag multiple times and attempt to delete a tag that is not set.

Change-Id: Ib5c8ccc3d74e49701629c37397de478b95db4fd6
2014-06-14 21:32:26 +02:00
mpl a34f9e2669 publisher app
http://camlistore.org/issue/365

Change-Id: I281fdcbbe6a2bdf15607e75a21bc93b453f82c85
2014-06-15 00:03:03 +02:00
mpl 7052f8b6f1 ui/search_session: test for safe this.data_
Context: http://camlistore.org/issue/352

Change-Id: Ic8e21f78bdd1cd356a6ef09cbfcaa759f228a6bc
2014-06-09 19:18:06 +02:00
mpl ab01a64601 ui/permanode.js: describe members as well
This change is needed to display the members list/gallery.

Change-Id: I5ee645feceaa5f842ab493ee523d7b3539c76652
2014-05-30 02:18:17 +02:00
Tamás Gulácsi cbb777ffb0 Rewrite Picasa importer for the new Importer API
Reorganizes common OAuth2 things into importer/oa2_importers.go
Rewrites CallbackURLParameters to return url.Values.

A controversial workaround for nil context has been left out,
and this may cause panic and will need a proper fix.

Change-Id: I0789f4732412aa559078ec2c6b6797925ab8cd05
2014-05-21 22:37:50 +02:00