Skip to content

Commit

Permalink
Use simple donations link instead of server-side component
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Oct 13, 2023
1 parent b069f7b commit 2648f2f
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 284 deletions.
9 changes: 0 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#!/bin/bash
set -euo pipefail

mkdir -p functions
pushd functions-src
for d in * ; do
pushd "$d"
go build -o "../../functions/$d"
popd
done
popd

pushd script
go run . > ../themes/default/layouts/partials/github-sponsors.html
popd
Expand Down
25 changes: 25 additions & 0 deletions content/donations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Donations
header: true
---

Developing Syncthing costs money, in domain and hosting fees for the various
servers we need to run the operation such as discovery servers, build
servers and this website. Your donations help fund these costs. We also
periodically award grants for the development of specific features, which is
paid for by these donations.

[Click to donate securely using any major credit or debit card.](https://donate.stripe.com/eVadSl1excyx7xScMM)

You can manage or cancel your existing recurring donation by visiting the
[subscription portal](https://billing.stripe.com/p/login/9AQ6rx2cLbRhbhS5kk)
and logging in with your email address.

If you experience any issues with the donation handling, regret your
donation and want a refund, or want to cancel a recurring donation please
feel free to contact [donations@syncthing.org](mailto:donations@syncthing.org) at any time.

If you'd like to become a corporate sponsor of the project and be featured here
we're happy to discuss that too!

{{% sponsors %}}
43 changes: 0 additions & 43 deletions content/donations/_index.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/donations/cancelled.md

This file was deleted.

10 changes: 0 additions & 10 deletions content/donations/recurring.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/donations/success.md

This file was deleted.

9 changes: 0 additions & 9 deletions functions-src/donate/go.mod

This file was deleted.

24 changes: 0 additions & 24 deletions functions-src/donate/go.sum

This file was deleted.

166 changes: 0 additions & 166 deletions functions-src/donate/main.go

This file was deleted.

1 change: 0 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build]
publish = "_site"
command = "./build.sh"
functions = "functions"

[build.environment]
GO_VERSION = "1.20.2"
Expand Down
9 changes: 1 addition & 8 deletions themes/default/layouts/partials/github-sponsors.html
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@

<a href="https://github.com/funnel-io">
<img src="https://avatars.githubusercontent.com/u/16645447?v=4" class="img github-avatar" alt="funnel-io">
</a>

<a href="https://github.com/MobiusSync">
<img src="https://avatars.githubusercontent.com/u/74066406?v=4" class="img github-avatar" alt="Möbius Sync for iOS">
</a>
non-200 OK status code: 401 Unauthorized body: "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/graphql\"}"

0 comments on commit 2648f2f

Please sign in to comment.