Commit Graph

20 Commits

Author SHA1 Message Date
Brad Fitzpatrick c3d05cdce9 Move more packages out of pkg/ and into internal/
Moved hashutil, httputil, osutil, netutil,
images, media, magic, video, and rollsum.
2018-01-02 21:03:30 -08:00
Brad Fitzpatrick 11e9c5567c Move some packages from perkeep.org/pkg to perkeep.org/internal
Notably: pkg/misc all moves.

And pkg/googlestorage is deleted, since it's not used. Only the
x/net/http2/h2demo code used to use it, but that ended in
https://go-review.googlesource.com/33230 (our vendored code is old).
So just nuke that dir for now. When it's refreshed, it'll either be
gone (dep prune) or new enough to not need googlestorage.

Also move pkg/pools, pkg/leak, and pkg/geocode to internal.

More remains.

Change-Id: I2640c4d18424062fdb8461ba451f1ce26719ae9d
2018-01-01 20:54:48 -08:00
Brad Fitzpatrick d6a0b05df0 Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.

After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.

This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.

Also, this only moves the lru package to internal. More will move to
internal later.

Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.

This updates some docs, but not all.

devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).

Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 16:03:34 -08:00
Daniel Heath 59ac14caa5 Vendor OpenSans (apache 2 licence)
Change-Id: Ie74b37efc007011b32810fd91c65b7750588a76e
2017-12-29 10:22:49 -08:00
Paul Lindner 3e703921d1 vendor: update myitcv.io/react and react javascript library
Update myitcv.io/react to revision:
  bca7c66b77ed8a5b86fb77cff70914c4a7cc3ce5

Update react, react-dom to v15.6.2 based on instructions in
  https://reactjs.org/blog/2017/09/25/react-v15.6.2.html

Add vendor/embed/react/update.sh script to assist with future updates

Update mobile UI to fix problems documented here:
  https://reactjs.org/warnings/legacy-factories.html

Update mobile.html and debug_console.html to use minified js

Fixes #977

Change-Id: I15ea81822e4f85669b321d5b3eb8b169f534def7
2017-11-27 08:55:30 -08:00
mpl 52b139ea6c vendor: update Google Closure
To rev 37a4c36ce6286bb78bceb20579fecdfe7a759e02

Fix vendor/embed/closure/updatelibrary.go to now fetch from github.
Fix pkg/misc/closure/gendeps.go to work with new addDependency calls.

Fixes #903
Fixes #961

Change-Id: Ie555cf9bf5a8624845095fb3351482a690a2571c
2017-10-03 17:33:49 +02:00
Mathieu Lonjaret 531b074ae4 Merge "server/camlistored/ui: map aspect, freeze marker cluster" 2017-08-23 14:35:01 +00:00
mpl 2aa72f1204 vendor/embed/leaflet: embed 2x markers
Change-Id: I93c5b462e1a9649ccc1973e7f3607c207358248d
2017-08-23 03:19:44 +02:00
mpl ccab088e61 vendor/embed/fontawesome: embed woff2 files as well
Change-Id: Idbbd099b5ee32b179d7b9c035e8477d0924bf5d9
2017-08-23 03:09:25 +02:00
mpl 3d405cd9ac server/camlistored/ui: map aspect, freeze marker cluster
Add a plugin to the markers cluster, strongly inspired (but trimmed, and
modified) from https://github.com/ghybs/Leaflet.MarkerCluster.Freezable
to freeze the markers cluster as it is on each zoom level.

Fixes #940

Change-Id: Id7f1ed8182a5bd701c6c47e02b144a67f9b69b36
2017-08-22 19:53:23 +02:00
mpl 1bd8f09c44 server/camlistored/ui: use marker cluster in map aspect
Let the map aspect cluster markers by proximity, using the Marker
Clustering plugin for Leaflet.

Since we already do the work of spreading markers evenly server-side,
this plugin is a bit redundant.

However, it is still usefull as it allows us to request e.g. 1000 nodes,
and display a representation of all these nodes, without actually
displaying them all individually. This offers a work-around for the
bugs/glitches described in
https://github.com/camlistore/camlistore/issues/937

Even better, it allows us to re-enable the use of the awesome markers
that were introduced in e4b7db8274, but
that we had to disable because of the aforementioned glitches.

Also, added the 2x awesome marker images that the leaflet awesome markers
plugin uses for retina/mobile displays.

https://github.com/Leaflet/Leaflet.markercluster vendored in
vendor/embed/leaflet at version 1.0.6

Related: issue #947

Change-Id: I28c1184ad171af5eca953bb05f4a943d3573bfb4
2017-08-17 00:56:04 +02:00
mpl 49b97b2244 server/camlistored/ui: use search.MapSort in map aspect
Also make use of the new "locrect" search predicate, which allows us to
drop support for raw query with coordinates.

Also revert for now to using the native leaflet markers instead of the
AwesomeMarkers icons, as something in their style seems to be interfering
badly with the UI.

Fixes #934

Change-Id: Idd85eeb42673c43a216bce81c26a6bff5ad0c08a
2017-08-01 02:04:32 +02:00
Mathieu Lonjaret 83a35501ed Merge "server/camlistored/ui: improve map aspect search and markers" 2017-07-05 23:06:03 +00:00
mpl e4b7db8274 server/camlistored/ui: improve map aspect search and markers
Notably:

-do not load any markers on an empty search query, because that would
mean loading absolutely all of the items with a location, which seems
like a bad idea.

-use different markers for different nodes. For now, foursquare
checkins, file images, and files have their own marker.

-vendor in https://github.com/lvoogdt/Leaflet.awesome-markers to achieve
the above, which relies on Font Awesome, which we already have in.
icons available for the markers: http://fontawesome.io/icons/

-when no location can be inferred from the search query, set the view to
encompass all markers that were drawn.

-when a location search is known, draw a rectangle representing the
results zone.

-use thumber for image in marker popup

-use title, if possible, instead of blobRef for link text in marker
popup

-switch to directly using OpenStreetMap tiles, instead of MapBox ones.

https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png

Change-Id: Ibc84fa988aea8b8d3a2588ee8790adf6d9b5ad7a
2017-07-06 01:03:03 +02:00
mpl 96010548bc vendor: update Font Awesome to 4.7.0
Mainly because there are new icons, such as the twitter one, that we
might want to use in the new map aspect of the web UI.

Change-Id: I050cb15b6cae8908cf8aab01744a12cd842cd41a
2017-06-23 01:09:02 +02:00
Eric Drechsel 2b093f38c8 vendor: update react to 15.4.2
The main motivation is that we want to use gopherjs +
github.com/myitcv/gopherjs/react , which requires a recent react.

This CL also fully switches to only using minified js files.

The changes in server/camlistored/ui are the result of some react
API changes, such as:

 - wraps component instantiation in React.createElement
 - React.classSet -> classNames
 - Need tbody between table and tr in a couple places
 - component array elts need unique keys (longstanding warning)
 - change root elt from body to a child div (to fix warning)
 - don't check isMounted in container render function
 - fix a bunch of style keys using kebab-case instead of camelCase

Change-Id: Idc22d07704688ccde3e4f67d4f188a5ad32b6e32
2017-01-25 19:11:58 +01:00
Eric Drechsel 74503f15f4 upgrade less.js to 2.6.1, so CSS loads via http/2
b550b2081f/dist/less.js

Fixes #780

Change-Id: I562003ec4eddc16de2b9501411f435fd6345fb6b
2016-05-21 14:46:40 -07:00
Tilman Dilo d208b531c9 Fix permissions for files
Use mode 0644 instead of 0755 for non-vendored files.

Change-Id: Ifbe1d5e21f24814531248a8a6c84d6f0a72c071c
2016-04-28 21:15:09 +02:00
mpl 63d6e384bb path fixes for third_party move
A few more left in in misc/docker that I'll do separately

Related: 75d60962f6

Change-Id: Id5f6a3729e33aca97f8664ca8ef91afc64461891
2016-04-21 12:25:17 -07:00
Brad Fitzpatrick 75d60962f6 Move remaining stuff in third_party/* to vendor/*
Change-Id: Ifbcc02817083cba68d8c1acec3e6ec50e8f61149
2016-04-20 16:49:15 -07:00