Commit Graph

502 Commits

Author SHA1 Message Date
luz paz d605f86c82 Fix various typos
Found via `codespell -q 3 -S ./clients/web/embed,./clients/chrome -L ba,everytime,impres,keypair,msdos,pres,ro,te,ue`
2022-05-02 14:31:09 -07:00
Tamás Gulácsi 8df8a3657d
staticcheck: Use time.Since, time.Until
checks S1012,S1024

Use global staticcheck.conf
2022-03-13 16:30:36 -04:00
jincheng9 93a6515db8
fix bug: typo (#1574) 2021-11-21 02:07:48 -05:00
Tamás Gulácsi 1c400bd5b3 Remove unused code
as `staticcheck -checks=U1000` suggested.
2021-08-09 17:34:14 +02:00
aviau 8204dc0dd3 misc: go 1.15 -> 1.16 (closes #1398) 2021-07-29 17:33:10 -04:00
Alexandre Viau fb961cf310
make codebase go-vet-clean (#1379)
Co-authored-by: Bob Glickstein <bobg@emphatic.com>
2021-07-26 21:19:53 -04:00
mpl b470765c15 website: make 0.11 visible
Fixes #1307
2020-11-20 17:00:01 +01:00
Brad Fitzpatrick c9f78d02ad Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is. 2019-07-29 11:15:21 -07:00
Brad Fitzpatrick 41f5d4a190 Stop using Gerrit (googlesource.com), switch to just GitHub & PRs
Discussed at https://groups.google.com/d/msg/perkeep/terI3u9hfqg/-TWI0dOyCQAJ
2019-06-05 09:50:11 -07:00
mpl 9417938aa3 vendor: update a bunch of dependencies, and clean some things up
This change:

1) makes perkeep.org/server/perkeepd/ui/goui a module on its own, so that it
gets ignored by go mod with respect to perkeep.org. Because there's no reason it
should appear in perkeep.org/go.mod, as it is only used by gopherjs to rebuild
the web UI code.
2) updates a few of our dependencies to keep up with upstream changes (go get
-u, go mod tidy, go mod vendor).
3) readds manually (since go mod vendor removes them)
vendor/github.com/gopherjs/gopherjs (and its deps) as well as vendor/myitcv.io
because they are needed when one wants to rebuild the web UI.

As a result I think we can now drop dep, so it is done in this change as
well.

Change-Id: I155819163e15e214a6ba44bab2c19ae171d83d1b
2019-05-30 02:03:30 +02:00
mpl 52e4df095d website: record version with buildinfo
So now when we get the e-mail on a website restart, we'll actually
know what version of it is running.

Also,
make.go: skip gopherjs checks when we only build the website or
camnetdns.

Change-Id: I3f6985afc8931fe478cc4f7caba2b1fc31bc815b
2019-03-27 23:09:54 +01:00
Mathieu Lonjaret 78362dc1c0 Merge "pk-web: enable TLS-ALPN-01 for Lets Encrypt" 2019-02-24 16:47:59 +00:00
mpl b46cc46d5d pk-web: enable TLS-ALPN-01 for Lets Encrypt
I'm getting reminders from Let's Encrypt that perkeep.org is using a
cert obtained with TLS-SNI-01, which is now deprecated.

I think this change would be enough to switch to TLS-ALPN-01.

Change tested on the staging instance at https://staging.camlistore.net

Change-Id: I19dc51171228e6598846a778aadb8497d3406446
2019-02-23 20:00:10 +01:00
Brad Fitzpatrick 0683145d61 website: remove opencollective links
Per https://groups.google.com/forum/#!topic/perkeep/Kqvh2dJVmoo

Change-Id: I5ffbf4b323613f9fc83c2082ee6512df64300f4f
2019-02-12 09:11:48 -08:00
mpl ffc9707902 pk-web: do not panic on empty slice of hashes
Fixes #1247

Change-Id: Ia8dcce72c889a72be736ef8d50871516845d52e2
2019-02-01 19:10:39 +01:00
mpl 4906b8803e doc/synology: update latest tarballs
Also mention synology packages on download page.

Change-Id: I76118d6dc93d8ba44ce5af6eb422ee12971dfae5
2018-07-26 03:28:50 +02:00
Mathieu Lonjaret 9c7ceeb90a Merge "pk-web: push commit to perkeep repo instead of camlistore one" 2018-07-10 18:49:29 +00:00
Neil Pankey 97c4bd0ffa website: replace 'camtool env' with 'pk env'
Change-Id: I97c1ed8c7800ff7af13759d2c03238b9c46e2dde
2018-07-08 14:25:41 -07:00
mpl 28f7599a8f pk-web: push commit to perkeep repo instead of camlistore one
We were still pushing to the camlistore repository. That worked, thanks to the
redirect, but we might as well push directly to the correct one now.

Change-Id: Ide4668ee587568cba928cb360289000aa106e955
2018-07-03 17:58:28 +02:00
mpl b3381cc58d pk-web: add paging on timeout for docker runs
It happens somewhat regularly that pk-web stops syncing commits to
github, and sending e-mails about it, because any docker run process
seems to get stucked. Invariably, restarting the docker service
(systemctl restart docker), seems to fix the problem.

This change adds a timeout mechanism for functions running a docker run
exec, so that after the timeout, we get notified by e-mail about what
function is blocked.

Change-Id: I16bd4f5abc7864ceb176a0e69c5300165194b18f
2018-06-27 20:06:02 +02:00
mpl 1abff5383c website: fix sender for commit msg with mailgun
Change-Id: I58163e568914ef821d48399da62082275f1734b5
2018-06-14 20:11:16 +02:00
mpl a140b28f5d website: Gerrit instance update
Updates #1176

Change-Id: I9f5cf347f1a6b369cf490cc30cc05134d14d7b8a
2018-05-24 21:32:18 +02:00
mpl 4a53f0fddf website: fix clone URL to the perkeep on github one
Updates #981

Change-Id: I54138307b56ab683eac658b38b20a770f147b014
2018-05-18 17:38:21 +02:00
mpl 2f2280880b pk-web: remove extra trailing slash on file URL
Fixes #1160

Change-Id: I2f1f2e57ba888eb4a5eec1e222a76e7abbdec428
2018-05-16 02:28:11 +02:00
mpl 0917920684 pk-web: handle new perkeep-release download bucket
And keep handling downloads from legacy camlistore-release bucket.

Change-Id: Ia4b411bce5c3575df0167ecb1390f392b6597202
2018-05-14 18:48:14 +02:00
mpl b76a4f6727 internal/osutil: revert to using "test safe" func for identitySecretRing
And while we're at it, rename said func (CamliConfigDir) to
PerkeepConfigDir.

Fixes #1161

Change-Id: Ia8c9b5826046437b77c8e16ee91912e31ad319a3
2018-05-12 02:12:03 +02:00
Brad Fitzpatrick 789f861964 all: rename some references to .config/camlistore to .config/perkeep
Updates #981

Change-Id: Id76fe17d80380bdb973bc85ec8f54ba9500aff40
2018-05-02 21:36:29 -07:00
Brad Fitzpatrick f6ad3092bc doc: more 0.10 release note docs
Change-Id: I05bef0f001eb3652a830a085b00e008b23574e0d
2018-05-02 19:04:40 -07:00
Brad Fitzpatrick 12894d4630 all: Windows fixes (don't listen on file descriptors in test.World, etc)
test/integration: don't listen on file descriptors.
make.go: unrelated, but options to make it much faster.
internal/images: t.Skip on HEIC dependency failures

Fixes #1140
Updates golang/go#25210

Change-Id: I8092155411826d6ed1f8d85230b753d1369044af
2018-05-01 21:38:19 -07:00
mpl 326de1d794 website: revert bin name to camlistored for demo
We have not updated the camlistore/demoblobserver image that the website
runs, so the binary it should execute is camlistored, not perkeepd.
As it is, it keeps on trying to run it every 10s, which makes it busy
for nothing. And I don't think it's worth spending time on updating the
image for now, so it's easier to just revert to the old name.

Change-Id: I769aecaaecdb027d686a78adf9a37a14e9ef9b9d
2018-05-01 10:19:43 -07:00
mpl 76e61108c7 doc: add lfnw 2018 talk
Change-Id: I512a0620b13c0d070db28198271ad2ca0e80ad3b
2018-04-30 22:40:50 -07:00
Brad Fitzpatrick c806ab4bcd doc: update build instructions
Fixes #1135

Change-Id: I7e5897308594acc591c66dd6656605cdad1a7f3c
2018-04-30 16:38:29 -07:00
mpl 87a8e7ad54 website: fix test working dir
Change-Id: If92dc43b4ee3e5fd2ac9c6490d242d3dacff74b1
2018-04-25 23:18:16 -07:00
Mathieu Lonjaret 03b0ab4601 Merge "website: add links to android app" 2018-04-25 01:53:10 +00:00
mpl e02c044e67 website: add links to android app
Change-Id: I90ed3cbe168b95dfaeaa674b330c1b704145f6e6
2018-04-24 18:51:58 -07:00
mpl 2286b6442b website: move go code to pk-web package
Fixes #1109

Change-Id: Ibcba1addf25da414f4d9cb42f621d6b9184898da
2018-04-23 16:42:35 -07:00
Brad Fitzpatrick ca76a40bbc Rename camlistored to perkeepd.
Updates #981

Change-Id: I8fe43c240c149074c23128a89ab426af9cbf94b4
2018-04-21 11:06:09 -07:00
mpl 11d1e107b2 website: mention CoC on community page
Also fix related markdown typo in README.

Change-Id: I90d89e88d00ee2225bea4bd65ce213e729218616
2018-03-19 16:39:20 +01:00
Paul Lindner 72f2fa2586 Merge "website: add header anchor links on hover" 2018-02-28 19:24:04 +00:00
Peter Etelej 5e7f6dfb6e
website: add header anchor links on hover
Adds header link icons on hover. Check for headers (h1-h4) with
defined id's and adds link icon with relevant fragment link.

Fixes #1028

Change-Id: Ic9c8744efe12dda251f4a461adb0b09cf84604c3
2018-02-25 00:46:45 +03:00
mpl c7baf2027d website: change mailing-list to perkeep
Change-Id: I5249b9eee35786dfef24d1c1be767fe5af66cd13
2018-02-16 02:30:21 +01:00
Brad Fitzpatrick f9f109ffa1 all: more Camlistore to Perkeep renamings
Updates #981

Change-Id: I7fd4958bceaa4ada63d07aacf08af11cc03f32d7
2018-01-30 13:31:59 -08:00
Paul Lindner 459c75410e all: more renaming of Camlistore to Perkeep
Change-Id: I118e3cbcf20d80afeffc84f001388c4556f21628
2018-01-30 03:02:56 -08:00
Will Norris cf7cd27d50 website: include blackfriday's CommonExtensions
WithExtension() options passed to Run() are not additive, so the
AutoHeadingIDs extension must be ORed together with CommonExtensions.

Fixes #1046

Change-Id: Ib0984397b251ff9277b7b2e4dac79add962709b7
2018-01-30 05:23:21 +00:00
Mathieu Lonjaret 6ff8a5ccd5 Merge "website: use Lets Encrypt http-01 challenge" 2018-01-24 16:43:00 +00:00
mpl b80f29d9c8 website: use Lets Encrypt http-01 challenge
Also remove the the chrome bug repro stuff, because the bug in question
has now been fixed in chrome for 2 years
(https://bugs.chromium.org/p/chromium/issues/detail?id=567692).

Issue #1033

Change-Id: I8dc4b595c3854a9f5479d0b7240bc98d1fe4aca3
2018-01-24 17:14:20 +01:00
Paul Lindner 6d2d9714de all: simpify constructs by running gofmt -s on all code
Change-Id: Idc12ddcfe8f735d77c6baa942f5bb7a2c7d9b40b
2018-01-21 10:27:12 -08:00
Paul Lindner 45aed2db49 vendor: upgrade github/russross/blackfriday to v2
This upgrades the markdown conversion library to v2 and
switches camweb to use the new, simplified API.

Change-Id: I710110431fdfa32104c591abdf9b01c74a214f48
2018-01-12 18:11:02 -08:00
Will Norris 9399eb13d1 website: properly calculate domainName in prod
move calculation of domainName into main rather than init.  This is
necessary because the root var, which domainName is based on, is not
passed as a command line flag when run in production.

Also clean up a few minor things in godoc.go from previous CLs, such as
removing the docRx var which is no longer used.

Fixes #1036

Change-Id: I7145b87d5f1ed13e143bd3750ce22f2d41d6169d
2018-01-12 19:25:03 +00:00
Paul Lindner b3e91ad9f0 website: fix docHandler test when run via devcam
The test added for proper markdown title generation
do not work when run via devcam.  This is caused by
depending on doc/uses.md as the input testdata.
devcam does not copy markdown files into the target tmp
directory so this test fails when run that way.

Solution is create a markdown file in a testdata directory.
These are copied to the target tmp directory and the test
succeeds.

Change-Id: Iae654dca2374b925e6c895a71d4d93b12ccc188b
2018-01-08 06:08:19 -08:00