This change should have been with
65343d114d , to keep up with the app
handler changes.
It is ok to hardcode 3179 as the server's listen port (even if that is
not the actually chosen port), because the app handler will only use the
host part of the listen address.
Change-Id: Ib0a40a0376680d67a0617f184d5986117c704246
Using go:generate to call a shell script with some go doc + sed hackery.
we could probably do it better with go/types later if needed.
Change-Id: Ie1cf04d418b8b498f83f7029eb736dbc779feeb5
Done with gopherjs and jquery.
Some build tagging added in pkg/schema and pkg/netutil because
gopherjs does not support cgo (so no os/user).
Issue #798
Change-Id: Ib1e1e94185f75cdf696aa2dd31c57fa9e3af84a1
Run gopherjs to generate trivial javascript code that is used by the
publisher app.
Context:
https://github.com/camlistore/camlistore/issues/798#issuecomment-226902924
github.com/gopherjs vendored in at rev
f3c437955da554f2643747a598b0cc772a749f3f
PLEASE NOTE that this copy of gopherjs has been modified to avoid
depending on fsnotify. Hence the -w flag and the gopherjs serve command
are most likely broken.
Diff for that modification:
https://gist.github.com/mpl/ac9033bb28207401b7cedc3d74e6c096
Dependencies for building gopherjs:
kardianos/osext 29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc
neelance/sourcemap 8c68805598ab8d5637b1a72b5f7d381ea0f39c31
spf13/cobra c678ff029ee250b65714e518f4f5c5cb934955de
spf13/pflag 7f60f83a2c81bc3c3c0d5297f61ddfa68da9d3b7
golang.org/x/crypto/ssh/terminal
c197bcf24cde29d3f73c7b4ac6fd41f4384e8af6
golang.org/x/tools/go/types/typeutil
ac02106e04bdb66a2db0413d931012bea165d7e0
github.com/gopherjs/jquery vendored in at
fbbfc4bbe29a29cb05788b66be44e0ac7f43cac7
jquery vendored in at 2.2.3
Change-Id: I7ff2d8e43e8a963f5ac1d13a2c936f263f7c53fc
These improvements on the server app handler should help writing
and running stand-alone apps.
The two main goals are:
1) "simple" configurations should work automatically; the parameters for
the app are derived from the Listen and BaseURL of the Camlistore
server.
2) More advanced configurations, such as being behind a proxy, should be
easily configurable through the app's Listen, BackendURL, and ApiHost
parameters.
I had worked on them while doing the scanning cabinet app, and I am
backporting them now since we haven't landed the scanning cabinet yet,
and people have been having trouble setting up the publisher.
pkg/app/app_test.go is gone because app.ListenAddress is now dumb. The
hard work is done in pkg/server/app instead.
Fixes#818
Change-Id: Ice2610d6bac611b209cc3a928e67fa6093a41d3e
This allows deferring HTTP authentication and authorization to a proxy
(such as nginx) between Camlistore and the rest of the world, without
breaking the web UI.
Fixes#816
Change-Id: Ia4b5be8f2236ddac68dc0d3a09f0f24e588c4995
Rids us of the IsMonthly hack.
We still need to do something about AddTemplateTheme in handler.go
though, see TODO there. In another change.
Also, change servePage to take a struct for its args, more in line with
Go style of few arguments.
Context: issue #815
Change-Id: Ib6799be31b78af3010eee942034f2ac0e8e1d76e
We were reusing markdownRenderer per-launch,
which was leading to auto-generated ids incrementing
on each request. See
https://github.com/russross/blackfriday/pull/129Fixes#814.
Change-Id: Idb97348b076e4514cf22abe462bbdf3f8e7f6f9e
I had forgotten that the launcher also uses website/tmpl/page.html when
I introduced the gross IsMonthly hack. Which bites us now that the
launcher is restarted.
I'll rethink the IsMonthly mechanism right after.
Fixes#815
Change-Id: I7d2f7fd553e0ae9ab386266d310ee8175ce2d4ea
Let double-delete test pass.
Make leveldb and memdb Deletes go on for ErrNotFound.
Add test for batch deleting nonexisting key, and partial batch delete
errors - fix it for mongo.
Fixes#760.
Change-Id: I0a0e28836a723d245564f3dabaf328bf73bf463a
rsc.io/letsencrypt vendored at rev
a019c9e6fce0c7132679dea13bd8df7c86ffe26c
vendor/github.com/xenolf/lego was vendored within rsc.io/letsencrypt
vendor/gopkg.in/square/go-jose.v1/ was vendored within
rsc.io/letsencrypt
golang.org/x/crypto at rev 77f4136a99ffb5ecdbdd0226bd5cb146cf56bc0e for
github.com/xenolf/lego
golang.org/x/time/rate at rev a4bde12657593d5e90d0533a3e4fd95e635124cb
for rsc.io/letsencrypt
Fixes#805
Change-Id: I4ccdee328d8832e361fa5a39e5b94edc7c90ec34
The google Endpoint is now available in upstream oauth2, we no longer
need to define it ourselves.
Fixes#810
Change-Id: I37db869ff7696c53ba456ecba55e72c8c86dd119
Output differences:
- Changed the heading "Contributing to Camlistore" to just
"Contributing", so the heading ID stays the same.
- Remove "ul.lispaced" class, just put newlines
between list items instead (visually identical)
- One instance of obsolete <tt> tag in /code replaced with <code>
Site index page has non-typographic elements, so converting to markdown
seems pointless.
Change-Id: I7b19337742f727f85e58639a1168cc46fd8a4e62
It was just routing links from other pages to
https://camlistore.org/code#contributing
Let this be handled by a redirect
/doc/contributing → /doc/code#contributing
instead.
/doc/contributing.md is allowed to 404. It has only been valid since
April and was only linked from release notes, so there are probably no
external links.
Change-Id: I04809760cbdb2cf37e98d36f545d2952f96f3113
This file would seem to be the source for /contributors, but actually
it's a fallback for /website/content/tmpl/contrib.html.
Add a comment explaining the automatic generation to avoid confusion
for folks attempting to edit the website.
Also rename the template to contributing.html for consistency.
Change-Id: Ic98c494b0cc24292dac8a4a22c751aded87f5b48
The blobpacked storage, among others, needs a sorted storage
implementation for its meta index. This changes lets the high-level
config specify a sorted implementation (that various indexes will use)
even when the (main) indexer is specifically disabled.
Fixes#797
Change-Id: Id69a939318aa6654b9fb92ee34978ae1d1c24291