Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Add Patreon support #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ db.serialize(function() {
discourse STRING,\
reddit STRING,\
twitter STRING,\
patreon STRING,\
blog STRING,\
website STRING,\
notes STRING,\
Expand Down
1 change: 1 addition & 0 deletions backend/rustaceans.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ var fields = [
"discourse",
"reddit",
"twitter",
"patreon",
"blog",
"website",
"notes"
Expand Down
1 change: 1 addition & 0 deletions backend/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var fields = [
["discourse", true],
["reddit", true],
["twitter", true],
["patreon", true],
["blog", true],
["website", true],
["notes", true]
Expand Down
5 changes: 5 additions & 0 deletions rustaceans.org/src/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const Card = (props) => {
if (props.twitter) {
twitter = <div className="row"><span className="key">twitter username</span><span className="value"><a href={"https://twitter.com/" + props.twitter}>{props.twitter}</a></span></div>
}
let patreon = null;
if (props.patreon) {
patreon = <div className="row"><span className="key">patreon username</span><span className="value"><a href={"https://www.patreon.com/" + props.patreon}>{props.patreon}</a></span></div>
}
let website = null;
if (props.website) {
website = <div className="row"><span className="key">website</span><span className="value"><a href={props.website}>{props.website}</a></span></div>
Expand Down Expand Up @@ -74,6 +78,7 @@ export const Card = (props) => {
{discourse}
{reddit}
{twitter}
{patreon}
{website}
{blog}
{email}
Expand Down